gl.glDrawElements --indices start offset

hello :slight_smile:

i load 3d models into


FloatBuffer ob_v = BufferUtil.newFloatBuffer(meme24);
FloatBuffer ob_c = BufferUtil.newFloatBuffer(meme2
4);
FloatBuffer ob_t = BufferUtil.newFloatBuffer(meme24);
FloatBuffer ob_n = BufferUtil.newFloatBuffer(meme2
4);
IntBuffer ob_indices = BufferUtil.newIntBuffer(meme2*6);

and draw the first one with

gl.glDrawElements(GL.GL_TRIANGLES, counter , GL.GL_UNSIGNED_INT, ob_indices);

thats perfect but my question is

can i change the start offset of the ob_indices at the DrawElements?
at moment they start by indices position 0 -> -> counter,
i want for example Indices position 20 -> -> 20+counter

did i need another command for this?

i got it! at gamedev.net i found the solution

int offset=12;
ob_indices.position( offset );

thats all :slight_smile: