Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!BRUNY.CC.UTAS.EDU.AU!u906400 From: u906400@BRUNY.CC.UTAS.EDU.AU (Roger Scott) Newsgroups: comp.graphics Subject: How do I draw a perspective view? Message-ID: <9106010027.AA01356@bruny.cc.utas.edu.au> Date: 1 Jun 91 15:27:53 GMT Sender: rwh@ucbvax.BERKELEY.EDU Lines: 21 Could somebody please explain to me how to take a point (x,y,z) in space and map it onto a screen as a single point perspective view in (x,y)? I've had a look through the books, but I can't follow what's happening. It is for an assignment and so far I can get it to draw a cube properly, but when I throw anything more difficult at the program the lines seem to go everywhere. I am currently using xp = (x/((z/d)+1)) & yp = (y/((z/d)+1)) where d is the distance between the point and the origin. Is this right? I don't think it is or otherwise I would have figured it out by now. Any help appreciated. Roger. ***************************************************************** * Roger Scott 3rd Year Computer Science * * University Of Tasmania, AUSTRALIA * * Internet/AARnet u906400@bruny.cc.utas.edu.au (Try here 1st) * * or ap351@cleveland.freenet.edu * * or Roger.Scott@p15.f206.n670.z3.fidonet.org * *****************************************************************