PDA

View Full Version : questions about triangle_strip



hadesql
06-04-2014, 02:00 PM
Recently, I'm trying to code a program to draw a object by triangle_strip on the screen, I load a obj file and convert it to triangle_strip style, but when trying to texture and lighting the object, problem comes, the texture coordination and normal are disordered. Is there anyone have done this job?

PS: android, opengle es, java

tonyo_au
06-04-2014, 08:00 PM
Texture coordinates and normals aren't directly related to triangle-strip method of drawing. If they are incorrect it will be to do with your obj decoder.
Why are you using triangle strips for an obj file? It is easier to setup a vertex/index buffer system with it.