Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!m.cs.uiuc.edu!s.cs.uiuc.edu!mcooper From: mcooper@s.cs.uiuc.edu Newsgroups: comp.graphics Subject: Re: 3-d -----> 2-d Message-ID: <207400034@s.cs.uiuc.edu> Date: 19 Oct 89 20:41:00 GMT References: <2370@ge-dab.GE.COM> Lines: 23 Nf-ID: #R:ge-dab.GE.COM:2370:s.cs.uiuc.edu:207400034:000:813 Nf-From: s.cs.uiuc.edu!mcooper Oct 19 15:41:00 1989 /* ---------- "Re: 3-d -----> 2-d" ---------- */ In article <1133@utkcs2.cs.utk.edu> wozniak@utkux1.utk.edu (Bryon Lape) writes: > > Does anyone know of an algorithm for translating 3-d to 2-d so >that I can plot on my IBM-PC? I wish to display all axises at a >rotation >suitable to view everything. > >-bryon- I hope I'm not being simplistic here, but it seems the easiest way to convert any 3D object into 2D is (assuming the object is made of polygons) sort the polygons by depth (z value) using a simple depth sort (or the painters' algorithm. Effective, but S-L-O-W) and then plot each polygon according to its x,y coords. Or are you asking something else? -Marc Cooper "When the going gets weird, mcooper@cs.uiuc.edu the weird turn pro." -Hunter S. Thompson University of Illinios, C-U