I’m not able to see the “convert to binary j3o” option as the tutorial indicates when I right-click on “main.scene” in the town scene folder. I am using the “Basic Game (Gradle)” template. The town scene is unzipped in my Scenes/ folder, and the project builds and runs fine with the XML scene.
I found two prior threads with this issue but the solutions they presented seemed not to apply to me. The Properties tab for main.scene says “Unrecognized File”, could that be related? Also, the AssetBrowser pane seems to be freezing/not working. The project otherwise builds and runs fine.
I’m running 3.7.0 stable with Java 21 on Arch Linux. Thanks for your help.
Do you know if the conversion button appears for gltf files? Ogre xml/scene hasn’t been maintained in jme for a long time so it’s not unlikely that the SDK has dropped support for it in favor of gltf.
If you haven’t already, try double-clicking the file. That is supposed to convert it to j3o as well.
Also, since the scene is loading properly, you could write up a little code to save the loaded scene to a j3o binary.
Spatial scene = assetManager.loadModel("path/to/model.scene");
try {
BinaryExporter.getInstance().save(scene, new File("/full/path/to/model.j3o"));
} catch (IOException e) {
throw new RuntimeException(e);
}
Hi @codex , good call–the conversion menu item does appear for .gltf files! It’s also very useful to know that gltf is becoming the standard. Thanks very much for the help.
I wonder if there is anyone working on updating the tutorials? I just forked the repo and wouldn’t mind submitting some small fixes to make it smoother for other newcomers like me.