Importation scene from jme


#1

Hello I created a field to do tests with the jmonkeyengine field editor (so the file extension is.j3o) I put it in assets/Scenes so I was wondering how to put field in a program to get its rendering.Thank you for your help


#2

The quick answer is to use the AssetManager to load your asset like this:

     app.getAssetManager().loadModel("Scenes/" + nameOfYourSceneHere + ".j3o);

But here is a also link to the basic tutorial about loading assets.
https://wiki.jmonkeyengine.org/jme3/beginner/hello_asset.html

You may also find it helpful to go through the other beginner tutorials as well if you haven’t already :slightly_smiling_face:

And here is more in depth information about the asset manager and the assets directory of your project https://wiki.jmonkeyengine.org/jme3/advanced/asset_manager.html


#3

Have you successfully loaded the field yet?