Sign in to follow this  
godmodder

OpenGL Alpha blending textures vs framebuffer

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this