Hi,
I have imported a model (.blend file) and I am able to see this model in the scene composer. It has been converted to a .j30 file and when I reference it in my code to attempt to load it in the game it throws an error that the model can’t be found. Any help would be much appreciated!
Here is the code in question to load the model. The file path in the properties of the model is given as /home/charliemcc/Test/assets/Models/tree/tree.j3o
Spatial tree = assetManager.loadModel("Models/tree/tree.j30");
tree.scale(1f,1f,1f);
tree.rotate(0.0f, 0.0f, 0.0f);
tree.setLocalTranslation(0.0f, 0.5f, -2.0f);
rootNode.attachChild(tree);
DirectionalLight sun = new DirectionalLight();
sun.setDirection(new Vector3f(-0.1f, -0.7f, -1.0f).normalizeLocal());
rootNode.addLight(sun);
viewPort.setBackgroundColor(ColorRGBA.Blue);