🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Masking and dept problems

Started by
1 comment, last by Axesor 18 years, 1 month ago
I've followed Nehe's masking tutorial, and got it to work just fine, but in the rendering part, you have to disable GL_DEPTH_TEST. So when I render the screen, the mask image always overlaps all other polygons. But if I dont disable GL_DEPTH_TEST, the mask dont work. Any idea how I can fix this?
Advertisement
Try to disable depthwriting with glDepthMask(GL_FALSE);

The program makes the masked object first to last and last shall be first.

So if you make the masked object the first thing in your Rendering code, it will be on the very bottom, yet if it is the last thing drawn; it shall be on top.
.::WARNING!::. Axesor is a total newb or n00b! Beware his lack ofintellegence of OpenGL. Feel sorry for him and keep him in your thoughts.~Leader of the phsychoward

This topic is closed to new replies.

Advertisement