I’ve managed finally to load assets from Dungeon Keeper 2. But I have problems setting the LOD levels. As I don’t understand all said in https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:mesh. From there I understood that I only need to specify a new set of triangles for each LOD level. Like so:
VertexBuffer buf = new VertexBuffer(Type.Index);
buf.setupData(VertexBuffer.Usage.Static, 3, VertexBuffer.Format.Int, BufferUtils.createIntBuffer(indexes));
jMonkeyEngine doesn’t say anything but I get OpenGl error opening the model. The model doesn’t show in the scene editor but I see it has all 16 LOD levels and correct amount of trianges. Here is the complete code: https://github.com/tonihele/OpenDungeonKeeper/blob/master/src/toniarts/opendungeonkeeper/tools/convert/KmfModelLoader.java
Yes, this is a bit difficult. I don’t know what should I provide you with in order you to be able to help me.
Here is a youtube link for the loaded IMP
[video]Dungeon Keeper 2 mesh loading (not textured) - YouTube