Jump to content
  • Advertisement

Archived

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

titan2782

TGA textures with MS3D models

This topic is 5528 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

Advertisement
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
I''ve a version who use a TGA texture loader with MS3D.



========================
Leyder Dylan (dylan.leyder@slug-production.be.tf
http://www.slug-production.be.tf/

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!