Jump to content
  • Advertisement

Archived

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

georgeou2003

About the stencil test?

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

Recently , I am learning NEHE''s OpenGL tutorials.In lesson 27, the tutorial tells me to use the stencil test to case shadow on the object.I look in MSDN Libaray,but I just can''t find out how stencil test operates.So can anyone tell me more about it? Many thanks!

Share this post


Link to post
Share on other sites
Advertisement
You controll the stencil buffer with the function
glStencilMask(), glStencilOp() and glStencilFunc()

Take a look at http://biology.ncsa.uiuc.edu/cgi-bin/infosrch.cgi?cmd=getdoc&coll=0650&db=bks&fname=/SGI_Developer/OpenGL_RM/6302 for more information.

--------------------------------------------------------

"If it looks good, it is good computer graphics"
"If it looks like computer graphics, it is bad computer graphics"

Corrail
corrail@gmx.at
ICQ#59184081

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!