Log in or register to post comments

Rendering Transparent Object

July 16, 2012 - 7:08am #1

How can I render a transparent object with certain alpha blending value?

For example a glass cup?

I'm concerned about the blending part.

Rendering Transparent Object

July 16, 2012 - 9:20am #2

To confirm, are you working w/ OpenGL ES directly or Unity?

Alpha blending requires the use of ..

glEnable (GL_BLEND);

glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

You can also set the opacity, which is how you can create glass-like effects.

see: http://www.opengl.org/archives/resources/faq/technical/transparency.htm

Also check stackoverflow for questions on this topic. There are several posts addressing similar questions.

Log in or register to post comments