alpha blending problem 2 |
Author :
0stress
Post Date :
2006-09-29 07:57
Posts :
10
|
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 |
Author :
grant
Post Date :
2006-09-29 09:05
Posts :
117
|
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 |
Author :
0stress
Post Date :
2006-09-29 12:19
Posts :
10
|
I render first the opaque object, the second pass enable alpha blend , disable depth test and draw semi transaprent object |
All Rights Reserved, © Zeus Communications, Multimedia & Development 2004-2005