/* attempt to deal with prototype, bootstrap, jquery conflicts */ /* for dropdown menus */

Jump to content

Image of the Day

Day 17 -- a bunch more tools join the table :) #blender3d #screenshotsaturday #itssaturdaysomewhere #lowpoly #3D https://t.co/CYJucn0Lfv
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

map_refl & map_Kd difference?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 hikarihe   Members   

243
Like
0Likes
Like

Posted 24 February 2013 - 04:16 AM

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, 24 February 2013 - 04:57 PM.


#2 hikarihe   Members   

243
Like
0Likes
Like

Posted 24 February 2013 - 05:00 PM

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, 24 February 2013 - 05:01 PM.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.