Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!cmcl2!lanl!beta!dac!matthias From: matthias@mpx1.lanl.gov Newsgroups: comp.graphics Subject: Re: 2D to 3D conversion Message-ID: <1264.255aa9e1@mpx1.lanl.gov> Date: 10 Nov 89 10:58:40 GMT References: <822@uwm.edu> Followup-To: comp.graphics Organization: LAMPF Data Analysis Center, Los Alamos NM Lines: 33 In article <822@uwm.edu>, jrn@csd4.csd.uwm.edu (James Ray Norton) writes: .. > ^ > | > | > | > | > | > . ---------------> > . > . > . > > Now, how do I convert the point (x,y,z) to screen coordinates (x,y)? .. Similar questions have appeared in this newsgroup in the not so distant past, I think. What you want does not look like a general 3D rotation (Euler angles) followed by a projection on to a specified plane. Rather, if I understand correctly, you want to try: (x',y')=screen coordinates ; (x,y,z)=original point x' = x - z*sin(phi1) y' = y - z*sin(phi2) where phi1 and phi2 are tilt angles that you may want to choose to be 45 deg. I hope this is also useful to those who have asked similar questions. Regards, Bjorn