[SOLVED] Can't load blender model

If I try to load a blender file I get the following error:

Caused by: com.jme3.asset.AssetLoadException: No loader registered for type "blend"
	at com.jme3.asset.ImplHandler.aquireLoader(ImplHandler.java:196) ~[jme3-core-3.5.1-stable.jar:3.5.1-stable]
	at com.jme3.asset.DesktopAssetManager.loadLocatedAsset(DesktopAssetManager.java:268) ~[jme3-core-3.5.1-stable.jar:3.5.1-stable]
	at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:388) ~[jme3-core-3.5.1-stable.jar:3.5.1-stable]
	at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:439) ~[jme3-core-3.5.1-stable.jar:3.5.1-stable]
	at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:444) ~[jme3-core-3.5.1-stable.jar:3.5.1-stable]
	at com.test.ma.test3d.control.engines.Java3D$5.doExec(Java3D.java:778) ~[com.test.ma.test3d.control/:na]
	at com.test.ma.test3d.control.engines.Java3D$5.doExec(Java3D.java:1) ~[com.test.ma.test3d.control/:na]
	at com.test.ma.test3d.control.engines.JME3Helper$CallableRender.call(JME3Helper.java:52) ~[com.test.ma.test3d.control/:na]

My Dependencies are:

core-0.27.jar
dense64-0.27.jar
denseC64-0.27.jar
gson-2.8.1.jar
jinput-2.0.9-natives-all.jar
jinput-2.0.9.jar
jme3-blender-3.3.2-stable.jar
jme3-core-3.5.1-stable.jar
jme3-desktop-3.5.1-stable.jar
jme3-effects-3.3.2-stable.jar
jme3-lwjgl-3.5.1-stable.jar
jme3-plugins-3.5.1-stable.jar
lwjgl-2.9.3.jar
lwjgl-platform-2.9.3-natives-linux.jar
lwjgl-platform-2.9.3-natives-osx.jar
lwjgl-platform-2.9.3-natives-windows.jar
simple-0.27.jar

Maybe there’s missing a dependency?

Hi

Afaik “jme3-blender” module has been removed from the JME repo (since v3.4 release) and is no more maintained. You can still use jme3-blender v3.3.2 or below but it is recommended to convert to GLTF format.

I see you already have it in the dependencies list. Make sure you have registered com.jme3.scene.plugins.blender.BlenderModelLoader into asset manager:

assetManager.registerLoader(BlenderModelLoader.class, "blend");
1 Like

You saved my day. :grinning: :+1:

Thank you very much!!!

2 Likes

You’re welcome. :slightly_smiling_face:

Its worth saying that loading blend files like this will be very slow and ideally you’ll want to convert them to j3o format for release.

(Exporting from blender into GLTF format is also likely to be more future proof than trying to work with blend files directly)