i want to export gltf by jme
JME can import GLTF. JME can’t export anything.
im not sure why you need it, since in 99,99% cases need just import, the only case on mind is that you are doing some model Editor.
Anyway You would need write exporter yourself in this case, because its not needed for a games to export models, only to import. (so like Paul said there is build-in import only, because export is not needed)
Possibly exporting to .OBJ would be easier, then you can use blender to convert it.
Here’s an old thread you could use for inspiration:
Make a jme application that:
- loads the j3o
- get the Mesh object
- iterate over the mesh buffers like the code in the link
- write output to a text file (.obj)
Load .obj with blender and export as .gltf
That’s a good way to go
.obj dont support animations or morph shapes or PBR material
while .gltf do. So it would be ok only if model have no animations.