I have data from *.obj file.
I know how draw with GL_TRIANGLES. How i can convert data for GL_TRIANGLE_STRIP?
like glDrawArrays(GL_TRIANGLE_STRIP, 0, numberOfFaces);
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is a non trivial problem, and generally not something you want to do anyway, but there are a couple of external libraries out there to take care of this, like this one:
http://users.telenet.be/tfautre/softdev/tristripper/