Advertisement

OpenGl + translucent object

Started by February 08, 2000 04:36 AM
3 comments, last by RR4 25 years, 1 month ago
Hi! I have two objects to draw. The second is like water, it have to cross the first objects How can I set the object to be translucent? Should I use glBlendFunc and/or the alpha value for each point?
You can check NeHe´s exemple code about transparence:

www.demonews.com

Gandalf the White
Gandalf the Black
Advertisement
Nehe''s page is offline...
enable blending, set the type of source and dest blending you need, and use alpha values for each vertice.
Carl "trixter"[email=carl@trixoft.com]carl@trixoft.com[/email]http://www.trixoft.com
Remember that translucent objects must be rendered last, and from back to front.

This topic is closed to new replies.

Advertisement