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

Sprite Clipping

Started by
0 comments, last by David20321 24 years, 1 month ago
How can I make it so that objects obscure sprites? The sprites can be seen through everything. Anyone know how to fix this? It draws the landscape first, then it goes into a loop to draw all of my rectangular prisms and finally it goes into another loop to draw my sprites.
Advertisement
Use the feedbackbuffer to see if something is between you and the sprite, if not, render the sprite, otherwise, do not
(you can find me on IRC : #opengl on undernet)

This topic is closed to new replies.

Advertisement