I am making a JavaFX project (making the main interface) but which also extends SimpleApplication. The idea being that I can have a JavaFX interface and also run a 3D world in a separate window.
I have JavaFX working fine and so too with the 3D view, but I cannot load any assets. (I currently have a black window of default size showing the fps, vertex count etc).
I changed the project.properties file of this project to include the lines:
assets.jar.name=assets.jar assets.excludes=**/*.j3odata,**/*.mesh,**/*.skeleton,**/*.mesh\.xml,**/*.skeleton\.xml,**/*.scene,**/*.material,**/*.obj,**/*.mtl,**/*.3ds,**/*.dae,**/*.blend,**/*.blend*[0-9] assets.folder.name=assets assets.compress=true
…and copied/pasted the assets-impl.xml from another project across to this one.
I have also added
<extension file="assets-impl.xml" id="assets"> <dependency dependsOn="-init-assets" target="-do-init"/> </extension>
…to the project.xml file.
The project compiles and builds absolutely fine. When I go to type in an asset I want to load, it even finishes off what I’m typing (eg. if I type “foldername/sampleasset” it will prompt me with “.j3o”. I can also view the moodel in the model/scene viewer.
When I try to run it however, I get “com.jme3.asset.AssetNotFoundException: assets/Scenes/theScene.j3o”
What might I have done wrong, please?
Is there something I’ve missed?