redman2k's picture

Sprite drawing problem

Hello,

I have two sprites with transparencies set. If I look at the sprites from one angle, they draw just fine. But if I rotate my camera a bit and look at them from another direction, the transparency blocks some of my 3d models. Any ideas what could be causing this? Is there some sort of drawing order I need to change if the camera is roated? I attached a couple pictures that will hopefully help give clues.



Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
yehiyam's picture

Hi
you need to sort everything that is transparent in the scene by distance to the camera. then render from back to front. this way the alpha blending or testing will work fine. google alpha blending to get the theory behind that