OBJ texture

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

You need to generate texture coordinates at each vertex or get them from the obj file.

You can have automatic texture generation with glTexGen.
http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml

Spheres and cylinders are ok.

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).