Hi,
I have a bit difficulty to use glDrawRangeElements with VBO in LWJGL so I want to double check the use of :
GL12.glDrawRangeElements(int mode, int start, int end, int indices_count, int type, long indices_buffer_offset)
I have created a VBO with several 3d model in it. I have checked the data that I parse to the GPU and they seems to be correct. When I draw the 1srt object, I have no problem. But when I want to draw the others, it is messed up. I think I have miss understand the meaning of the parameters of glDrawRangeElements :
ref.start = number of the first index
ref.size = number of index need to draw the model
GL12.glDrawRangeElements(GL11.GL_TRIANGLES ,
ref.start,
ref.start+ref.size,
ref.size,
GL11.GL_SHORT,
0)