home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!waikato.ac.nz!comp.vuw.ac.nz!cc-server4.massey.ac.nz!pnv.palm.cri.nz!hrpctw
- Newsgroups: comp.graphics
- Subject: Depth Sorting
- Message-ID: <hrpctw.10@pnv.palm.cri.nz>
- From: news@massey.ac.nz (USENET News System)
- Date: Fri, 8 Jan 93 03:29:01 GMT
- Organization: DSIR, Palmerston North, New Zealand
- Lines: 16
-
- I need to be able to display a very complicated three dimensional structure
- consisting of a lot of small unconnected polygons, a whole heap of line
- segments, a few very small ellipsoids, which are probably small enough to
- be approximated by a single polygon each. I have no problems in performing
- the 3D transformations etc, but I'm having trouble figuring out what exactly
- is the best way of displaying this data. For a first attempt I'll probably
- just sort the objects in order from back to front and plot them like that,
- but this is not really a good solution. What I would like is a fairly nice
- algorithm (understandability is preferable to efficiency) that will allow
- me to draw polygons and line segments without objects being drawn over the
- top of objects on front of them.
-
- Does anyone have any such algorithms, (or better still, C code), or know
- where I can look to find something suitable.
-
- Any help will be deeply appreciated.
-