Archived

This topic is now archived and is closed to further replies.

TGA textures with MS3D models

This topic is 5315 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

The .MS3D model format stores a texture file name with every material... Load the TGA from the texture file, like you would load any other TGA...

And to use mipmaps you have to set the texture filter to GL_LINEAR_MIPMAP_LINEAR, GL_LINEAR_MIPMAP_NEAREST, GL_NEAREST_MIPMAP_LINEAR, GL_NEAREST_MIPMAP_NEAREST...
And you need to use the gluBuil2DMipmaps function, instead of glTexImage...

Share this post


Link to post
Share on other sites