Jump to content
  • Advertisement
Sign in to follow this  
hikarihe

map_refl & map_Kd difference?

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

i'm trying to load an obj model into my opengl program and I came across these reading the .mtl files.

 

What is the difference between map_refl and map_Kd for textures?

 

I haven't used lighting yet and I just want the textures to appear on the model. In this case does it make a difference if I just pass the given texture (ignoring these prefixes) when drawing faces?

 

thanks ^^

 

EDIT:

as expected, it works but the refl (reflection?) texture looks weird. also map_refl is not an official mtl declaration (maybe blender only?)

Edited by hikarihe

Share this post


Link to post
Share on other sites
Advertisement

if anyone is interested I got around this by doing the following for the mtl_refl declaration:

 

// enable reflection
glTexGeni( GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP );
glEnable( GL_TEXTURE_GEN_T );
glTexGeni( GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP );
glEnable( GL_TEXTURE_GEN_S );
Edited by hikarihe

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!