Jump to content
  • Advertisement

Archived

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

Piglet

Speed differences for billboarding

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

OK, I''ve now found 2 ways of doing billboarding. One is to use blending, the other to use alpha testing as follows :- glDisable(GL_BLENDING) glEnable(GL_ALPHA_TEST ) glAlphaFunc(GL_GREATER,0.5) Of, course, this assumes that your texture has been set-up with transparent areas having an alpha value < 0.5 ... My question is which is the best method? Obviously, I have to switch blending back on for rendering my particle system etc. However, using the above technique for billboarding means that I don''t have to pass the polygons in depth-first order ..... no sorting for me :-) Any comments ....

Share this post


Link to post
Share on other sites
Advertisement
an alpha test is far quicker than doing blending. so if its good enuf use it instead of blending

http://members.xoom.com/myBollux

Share this post


Link to post
Share on other sites
also to get really picky
processors tend to do the ''not equal 0'' in one opp
thus glAlphaTest(GL_NOTEQUAL,0.0);
maybe be the quickest of all (i havent tested this though)

http://members.xoom.com/myBollux

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!