PDA

View Full Version : OBJ texture



MatrixChess
08-04-2008, 09:31 AM
Hi, I'm new to this forum (this is my first post).

I want to say if it is possible to fit a texture on an OBJ model loaded in opengl with a specific library. The model is a skittle therefore I can't make it vertex by vertex... How can I do?

I'm sorry for my bad english

Thanks in advance

dletozeun
08-04-2008, 01:19 PM
You need to generate texture coordinates at each vertex or get them from the obj file.

ZbuffeR
08-04-2008, 02:16 PM
You can have automatic texture generation with glTexGen.
http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml

Spheres and cylinders are ok.

MatrixChess
08-04-2008, 03:50 PM
Thanks for the response!!

I will study this function to get it working and then i will post the result (or the problems that I will have).