Jump to content
  • Advertisement

Archived

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

Zainuluk

3DS Import problems

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

Hi, My problem is that I have a car model .3ds file format. I also have two texture maps in jpeg format. In a modeling tool my car looks correct with the textures in the right places. However when i put it in my project only one of the textures is displayed. can anyone help. note that one texture is for the body of the car whilst the other is for the lights, tyres, windscreen etc.

Share this post


Link to post
Share on other sites
Advertisement
Do you use the MultiTexture extension or something like that?
Because the only way to have 2 textures in basic OpenGL is to do 2 pass with blending.

( Be Side )

Share this post


Link to post
Share on other sites
Well I was thinking of doing multi-texturing but won''t that show both textures at the sametime. And blending will have the same effect. Is it possible to texture each polygon on a model with an individual texture.

Share this post


Link to post
Share on other sites
I don''t know what you use to read the 3ds file, but the easiest way to get different parts of the model textured with different textures must be to (when loading the model) split the faces into two different groups. So, you''ve got a layout like:

model
{
float3 vertice[];
facegroup facegroups[]
}

facegroup
{
int textureid;
int3 faces[];
}

Or something like that.

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!