Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


map_refl & map_Kd difference?


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   -  Reputation: 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.


Sponsor:

#2 hikarihe   Members   -  Reputation: 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.



PARTNERS