Hello guys, I have recently picked up jMonkey Engine 3. After a few days of messing around, I tried to recreate the voxel engine here: http://hub.jmonkeyengine.org/groups/free-announcements/forum/topic/simple-voxel-engine-starter-kit/
but my map mesh is not rendering at all, any helps are appreciated.
nvm solved
While I can’t say it is your only problem, this is certainly incorrect:
this.setBuffer(Type.Index, 1, BufferUtils.createIntBuffer(indexesArray));
I belive the 1 should be a 3 since you are probably making a triangle mesh.
@pspeed said:
While I can't say it is your only problem, this is certainly incorrect:
this.setBuffer(Type.Index, 1, BufferUtils.createIntBuffer(indexesArray));
I belive the 1 should be a 3 since you are probably making a triangle mesh.
hmmmm, i just checked the wiki and it put '1' there: https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:custom_meshes
i will try 3, thank you for your help