Mail Archives: djgpp/1997/04/03/21:45:17
> >Painting the items back-to-front. All you have to do is order
> >the things to be drawn by distance and draw everything. If
> >there are lots of overlaps, this gets wasteful, since you end
> >up drawing lots of pixels multiple times. But it's easy to
> >code.
> Actually, that's depth sorting. The painter's algorithm is to convert all the
> polygons into a set of polygons that consist of only what is to be displayed.
> It eliminates any hidden polygons, and breaks up any partially-hidden polygons.
No, thats wrong. Painters basically sorts the polygons from furtherest to
nearest and draws them. Overdraw aplenty. Its called painters because it is
just like a painter painting a picture. He paints on top of paint he has
already drawn... the depth sorting occurs because you have to depth sort
the polygons to be able to paint the furtherest to nearest polygons. It
doesn't removed hidden polygons at all........
I have never seen a painters algorithm that has what you say it does...
Leathal.
- Raw text -