Hello,
I’m trying to load a model (very simple, just 2 triangles) and show it on screen. When I convert the data into a display list it’s only displaying 1 of the triangles. After debugging it I found no errors, all the data is set, the drawing is putting the correct coordinates, etc. Can someone help me figure it out? The self extracting file is here (the site is case sensitive): www.jvffprogramming.hpg.com.br/Files.exe
What you are trying to do here is draw triangle primitives (GL_TRIANGLES). For this you need 3 points for each trinagle (3 for the first, 3 for the second etc).
Perhaps what you need to do is use the GL_TRIANGLE_LIST primitive. I believe that the triangles in your display list are in this format ?? This requires 3 points for the first triangle, and 1 additional point for each triangle after that.