How to save a model in JME native format?

Hello,

I wish to create a model via code, then I need to save the model like any other one (obj or the native jme format). Is it possible? How?

Thank you for your help!

https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:custom_meshes

Use BinaryExporter

1 Like

BinaryExporter is perfect! I noticed that Spatial implements “Savable” and…



save(Savable object, java.io.File f)



Thank you! Thumb up for you :slight_smile: