Texture mapping complex objects.

I just don’t get it, texture mapping complex opjects that is. Can anyone recommend a good tutorial on doing this with say … a faceted model? I want to write or locate a WaveFront .OBJ file reader for use in a lot of projects. I need to be able to staple those textures onto the models and I just don’t understand how.

Any tutorials?

Thanks!

Once you read in the data, for each face, you change textures with the glBindTexture command, then you draw the face.

There are a few good .OBJ readers, I like the one at glvelocity, it is in the code archives section. Romka also put up a demo that had a .OBJ reader. Nate Robins and Nate Miller, both have .OBJ readers.