Sign in to follow this  

map_refl & map_Kd difference?

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

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