[SOLVED] com.jme3.asset.AssetLoadException: No loader registered for type "gltf"

Environment:
IDEA Community 2019.1.3
Gradle 5.6.2
Java 11
Blender 2.8

Code:
Spatial mymodel = assetManager.loadModel(
“Models/cube/gltf/cube.gltf”);
rootNode.attachChild(mymodel);
DirectionalLight sun = new DirectionalLight();
sun.setDirection((new Vector3f(-0.5f, -0.5f, -0.5f)));
sun.setColor(ColorRGBA.White);
rootNode.addLight(sun);

build.gradle:

%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5

I guess you also need to add jme3-plugins to dependencies.

1 Like

Thanks
Works fine now without errors:

2 Likes