Blender Model with Material and Texturen Crash

So I had been starting with blender and jmonkey a few months ago. The Engine Works finde until I applied Material and Texturen to the Model in blender. Now eher Programm with a blender Model with Texture Crashs with “Nullpointerexeption”. I am using Material Node in blender and Im using the Import Model Option in the File category.

Die I go with the Wrong jdk or something. I doesn’t work on both Computers.

Thanks Tim

Please supply the stacktrace and maybe some kind of code and or model.

1 Like

java.lang.NullPointerException
at com.jme3.export.binary.BinaryImporter.readObject(BinaryImporter.java:314)
at com.jme3.export.binary.BinaryImporter.load(BinaryImporter.java:242)
at com.jme3.export.binary.BinaryImporter.load(BinaryImporter.java:125)
at com.jme3.export.binary.BinaryImporter.load(BinaryImporter.java:109)
at com.jme3.asset.DesktopAssetManager.loadLocatedAsset(DesktopAssetManager.java:259)
at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:373)
at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:416)
at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:420)
at mygame.Main.makeScene(Main.java:122)
at mygame.Main.simpleInitApp(Main.java:56)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:220)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:130)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:211)
at java.lang.Thread.run(Thread.java:745)

1 Like

Are you using the SDK or another IDE?
In case you’re not using the SDK,you’ll have to import the appropriate libraries to your project’s classpath.

Im using the SDK v3.2.0-prealpha-sdk 1

As long as I am using no materials every model works, so the error defently belongs to the materials.
How do you apply Materials and Texture on models in blender?

Via UV mapping. There are a lot of tutorials on how to do that in blender here in the wiki and on the internet (YouTube).