Problems on rendering order of translucent polygons

Post Reply
marcio_jl_m
Posts: 2
Joined: Thu Feb 26, 2009 12:09 am

Problems on rendering order of translucent polygons

Post by marcio_jl_m » Thu Feb 26, 2009 12:25 am

Hi,

I'm rendering a scene with many translucent polygons, so I'm manually sorting and rendering from the farthest to the nearest one. Finally I call glFlush( GL_TRANS_MANUALSORT ).
Everything is working fine on NO$GBA, but on real DS the nearer polygon doesn't blend with the farther one. In other words, the farther polygon remains exactly the same and the last rendered nearer one doesn't blend on that area, it's just not drawn. As I'm setting the manual sorting flag what might be the mistake?

Thanks in advance.
Marcio

marcio_jl_m
Posts: 2
Joined: Thu Feb 26, 2009 12:09 am

Re: Problems on rendering order of translucent polygons

Post by marcio_jl_m » Thu Feb 26, 2009 10:31 pm

Hi,

I could fix that setting a different POLY_ID for each translucent polygon. When two overlapping translucent polys have different IDs, the blending works fine. But this is not a very good solution when you have many translucent polys, like particles, because you have only 64 different IDs. Of course, if two polys don't overlap they can share the same ID but inside a scene it's not easy to ensure this condition...

Thanks!

WinterMute
Site Admin
Posts: 2003
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Problems on rendering order of translucent polygons

Post by WinterMute » Wed Mar 04, 2009 4:51 pm

Unfortunately that's the way the hardware works - you'll need to sort and apply IDs as appropriate.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests