Re: Buffer Error (Exception)
Posted by
gouessej on
Oct 04, 2010; 10:01am
URL: https://forum.jogamp.org/Buffer-Error-Exception-tp1625341p1628798.html
Hi!
Don't use indirect buffers, don't call IntBuffer.allocate nor FloatBuffer.allocate, rather use com.jogamp.common.nio.Buffers.newDirectIntBuffer and newDirectFloatBuffer. You should store your vertices into a float buffer, not into an int buffer as your array contains float values.