Menu
Forums
Login | Register

Home > Forums > OpenGL ES > alpha blending problem 2 Page :  1 
alpha blending problem 2
Hi
I have a problem with alpha blending.
I disable depth test and draw a solid cube and a solid sphere, cube is semi transparent, the sphere is opaque.
When the sphere is in front of the cube is semi transparent too. Why?
The blend function is SRC_ALPHA, ONE_MINUS_SRC_ALPHA .
Thank a lot
Hi,

Are you first drawing the cube, then the sphere?

And is it correct that the color of your sphere is (r, g, b, 1.0)?

Have you tried disabling blending before rendering the sphere.

Regards,
Grant
I render first the opaque object, the second pass enable alpha blend , disable depth test and draw semi transaprent object

Home > Forums > OpenGL ES > alpha blending problem 2 Page :  1 

You need to be logged in to reply to this topic.


All Rights Reserved, © Zeus Communications, Multimedia & Development 2004-2005

Read the Disclaimer

Links