Advertisement

TGA textures with MS3D models

Started by May 27, 2003 11:14 PM
1 comment, last by titan2782 21 years, 9 months ago
How would i modify the MS3d model loading code to use TGA''s and mipmaping? i tried, but failed I suck. Any ideas? Or maybe mip map support for the bitmap loader? Thanks Dustin Davis Owner / CEO Programmers Unlimited www.Programmers-Unlimited.com
Dustin DavisOwner / CEOProgrammers Unlimitedwww.Programmers-Unlimited.com
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...
Advertisement
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/
========================Leyder Dylan (dylan.leyder@slug-production.be.tf http://users.skynet.be/fa550206/Slug-Production/Index.htm/

This topic is closed to new replies.

Advertisement