View Full Version : OBJ texture

08-04-2008, 10: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

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

08-04-2008, 03:16 PM
You can have automatic texture generation with glTexGen.

Spheres and cylinders are ok.

08-04-2008, 04: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).