Hi,
I got an field of 3D-Coordinates with the dimensions 620x512. I am trying to display the points using JOGL. It worked fine with display lists, but now I want to use the glDrawArrays-funktion.
First I create an FloatBuffer:
this.coordBuffer = BufferUtil.newFloatBuffer( 150000 );
After that I fill the buffer and set it as VertexPointer:
for (...)
{
this.coordBuffer.put( (float) coord.x );
this.coordBuffer.put( (float) coord.y );
this.coordBuffer.put( (float) coord.z );
}
this.coordBuffer.rewind();
gl.glVertexPointer( 3, GL.GL_FLOAT, 0, this.pointCloud.coordBuffer );
Now wenn I try to draw the Array:
gl.glDrawArrays( GL.GL_POINTS, 0, 620*512 );
the Display stays blank.
Now the interessting thing is, if I use only 5000 Points it works fine, but if I create the Buffer for 50000 or more Points nothing appears on the screen even if I try to paint just 50 coordinates
gl.glDrawArrays( GL.GL_POINTS, 0, 50 );
Is there any maximum size for the FloatBuffer? Or do I miss something else?
Thanks in advance for any help.