[SOLVED] Quake3level.zip Material Not Found

Dear all,

In 2013, I bought the book “jMonkeyEngine 3.0 - Beginner’s guide”. I completed the book and download all resources but never do any real project. After almost 10 years, I finally re-open the book and start back my 3D learning. Of course, a lot of things are outdated and depreciated (animation, debug, etc.). But this is not very difficult to update thanks to the wiki.

One of my biggest concern is that the resources of jmonkeyengine.googlecode are not available anymore. Not a big deal because I downloaded it in the past. But now, when I tried to use it, I have a lot of problems. By example, the quack3level.zip. When I import it, I got the following stage:

assetManager.registerLocator("quake3level.zip", ZipLocator.class);
sceneNode = (Node)assetManager.loadModel("main.meshxml");

I assume I need to link the geometries to their materials using “Scene.material”.

But how to do it? And if the issue is another one, how can I fix this issue?

Thanks in advance for your support.

I think the easy solution is to rename Scene.material to main.material

 MaterialList matList = (MaterialList) assetManager.loadAsset("Scene.material");
 OgreMeshKey key = new OgreMeshKey("main.meshxml", matList);
 Node gameLevel = (Node) assetManager.loadAsset(key);
1 Like

And it is working now. I used the second option (code with MaterialList).

Here is the result:

Many thanks!