Alpha blending textures vs framebuffer

Started by
1 comment, last by godmodder 18 years, 1 month ago
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
Advertisement
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.
Yes, but codesamplers.com has a tutorial on blending in the framebuffer, and they don't seem to do any sorting in it...

This topic is closed to new replies.

Advertisement