Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

riz

texture mapping and glMaterialfv

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

Hey all, Does calling glMaterialfv() affect texture mapping in any way? I copied Nehe''s code for loading a texture and set all the glEnable()''s but I can''t think of what is causing the texture not to show up, the main thing that is different between his program and mine is that I am calling glMaterialfv() for setting material types in the walls, etc of my program... Oh, and I am using glut instead of winmain(), etc. thanks in advance, riz

Share this post


Link to post
Share on other sites
Advertisement
are you setting the tex coords correctly? I have messed those up before, sometimes forgot them all together. Does it work when you dont use glMaterialfv()?

what we do in life... echoes in eternity...

Share this post


Link to post
Share on other sites
ah, i figured it out,

I was calling my load textures method before creating the window in GLUT. Call me stupid. OH well, at least i''ll never do that again....

thanks anyway

riz

Share this post


Link to post
Share on other sites

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