PDA

View Full Version : Import obj with texture



Nicula Madalin
05-04-2005, 02:28 PM
Hi
I'm new to OpenGL so I have a question. It is possible to import objects from 3ds max with textures to a project in visual c++.
Until now I succesfully imported objects(obj files) from 3ds max without texture and i want to know if it's possible(and how)to import with textures.

bansheeogl
05-04-2005, 05:05 PM
its all possible.

for obj, check the VT lines those has the UV co-ords .. they are stored like vertexes position you already claim to load as well as faces, then theres no problem on loading the uvs into your struct (if using ... or array) and asign it using glTexParameteri