Hello, I’m new to JOGL
I want to draw some geometry calling glDrawElements(), but for the ‘type’ arguments only accpets unsigned types. So what I did was to load a model(3ds) from C++ and then save it as raw data in a file.
The number of vertex and the number of faces are stored as ‘int’ and I can read them correctly from Java. The vertex and normals are stored as floats(c++, little endian), and the faces indices as unsigned int.
What I see in the screen are a very messy collection of triangles. But…, I also can see some geometry that is being drawn correctly, and also the vertices are not random, they are all in the area of the model(a rolled necklace), So I guess the problems is just with the indices. What is the correct way to load them?