Skip to main content
GameDev.net gamedev.net
🔒 Locked

map_refl & map_Kd difference?

Started by hikarihe Feb 24, 2013 at 10:16 AM 0 replies 3.9k views
Original Post
hikarihe
hikarihe

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?)

hikarihe
hikarihe

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 );

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.