Re: [AD] DRAW_MODE_TRANS in Zbuffered POLYTYPE_FLAT

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


tom st denis wrote:
> Doesn't make sense.  If there is a pixel with a further z-coord a
> closer one should overwrite it in a zbuffer model right?  Then why
> can't it just translucify it as it draws over the other pixels?
> 
> It can be done (I have done it with Plush3d before) with only one
> zbuffer, you just have to sort your faces first.

Ah, now I understand. You're right, it can be done if you assume the
translucent polygons are sorted (but not otherwise). And z-buffering can
be needed even if you know that these polygons are already sorted, since
there may be other non-translucent polygons that are not (and can't be)
sorted, right?

So I suppose the reason why Allegro doesn't support this is that
z-buffering is a very new feature and no one has written this yet. If
you need it, I guess you'll have to write it yourself and ask the people
in charge to add it...

Sven Sandberg



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/