Skip to main content
GameDev.net gamedev.net
🔒 Locked

Alpha blending textures vs framebuffer

Started by godmodder Mar 25, 2006 at 1:09 PM 1 replies 500+ views
Original Post
godmodder
godmodder
Hello, I want to render transparent glass with opengl. Should I use alpha blending on the textures or in the framebuffer. I don't know what the advantages are of both techniques. Does alphablending in the framebuffer require sorting of the geometry? Thankx, Jeroen
zedzeek
zedzeek
u will prolly need to sort geometry back to front. + have the translucency factor in the glass (not the framebuffer) many ways of blending eg GL_SRC_ALPHA ONE_MINUS_SRC_ALPHA or a constant blend color, u will need to experiment. also u might wanna have reflection + refraction (which require more work) theres numerous demos/examples on the net.
godmodder
godmodder
Yes, but codesamplers.com has a tutorial on blending in the framebuffer, and they don't seem to do any sorting in it...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.