opengl/vertex sharing

Started by
0 comments, last by Sengir 24 years, 5 months ago
hi.
I use vertex arrays through opengl and pass a index list(DrawElements).
vertexes are shared where possible.
Now I want to add texture coordinates through a texcoords array, but I don't want the texture coordinates to be the same for a vertex on each face. faces should be able to use the same vertex with other texcoords.
but I don't see the possibility for this in ogl. I can only pass _one_ index list which indices to vertexes _and_ texcoords.
any idea?

thanks in advance, would be great if you mail the answer to sengir@gmx.net.


Sengir


--
Sengir
Advertisement
They key here is not to share verts. OpenGL does this for you. All verts should be split up and matched with the correct texture coords.

Josh

This topic is closed to new replies.

Advertisement