Advertisement

culling and blending

Started by August 11, 2000 09:19 AM
3 comments, last by Bruno 24 years, 3 months ago
Hi When i enable Culling, all of my transparent objects, became solid., is there a way to overcome this? thanks Bruno
huh? i think a couple of screenshots are in order
Advertisement
Just imagine a solid cube, with the top of the cube being solid, where it should be transparent.
If i enable culling, that face becames solid, if i disable culling, the face becames transparent....
If you still need the screenshot, i will get one

thanks
Bruno
I think your problem is that transparent polygons need to be drawn after any opaque polygons, as well as in a back to front order. The problem is with how HSR is being performed in your application--I''m guessing with a z-buffer. When polygons are drawn, they are also put into the z-buffer whether they are transparent or not. This has the effect of transparent polygons blocking any opaque polygons that are drawn after and behind it, despite their blending values. If you make sure to draw them all last, then their values will not be in the z-buffer to block opaque polygons from being drawn. Back to front drawing is not entirely necessary, but will make the blending more accurate. If you don''t order the polygons, then make sure to disable the z-buffer when drawing the transparent polygons.
Thanks for the replys, I''ve fixed it., i was making a real stupid mistake

This topic is closed to new replies.

Advertisement