Jump to content
  • Advertisement
Sign in to follow this  
CNBABY

glutExtensionSupported

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

if my program pass this command: glutExtensionSupported("GL_ARB_shadow") ,it could insure that i could use the ARB_shadow extention?

Share this post


Link to post
Share on other sites
Advertisement
i use
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_COMPARE_MODE_ARB, GL_COMPARE_R_TO_TEXTURE_ARB ) for shadow mapping.
but i feel it dose not compare in my program.
how do i check it?

Share this post


Link to post
Share on other sites
in fact ,in my program i throw off the next codes,the effect dose not change.so i throw doubt upon,i think the codes didn't work.

glTexParameteri( GL_TEXTURE_2D, GL_DEPTH_TEXTURE_MODE_ARB,GL_LUMINANCE);
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_COMPARE_MODE_ARB, GL_COMPARE_R_TO_TEXTURE_ARB );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_COMPARE_FUNC_ARB, GL_LEQUAL );

Share this post


Link to post
Share on other sites
goto the nvidia developer website and download a showmapping example from there (theres bound to be a couple)
see if it works, if so, try to incorperate that code into your app (ie see where they differe)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!