From: darn AT NOSPAM DOT vxl DOT imag DOT net (Darren Grant) Newsgroups: comp.os.msdos.djgpp Subject: Re: 3D Stuff in Allegro Date: Fri, 26 Dec 1997 19:51:23 GMT Organization: Cyberion Networking Corp. Lines: 11 Message-ID: <34a409f9.80383587@news.imag.net> References: <67vlel$lk0 AT nexus DOT nexus DOT edu DOT au> NNTP-Posting-Host: turkey.imag.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Fri, 26 Dec 1997 16:27:40 +0930, "Tom Cook" wrote: >then call line() to draw the line between these two projected points. this >causes problems, though, when one of the points is behind the camera and the >other is not. Now either I don't calculate one of the points and therefore You should clip the line at z=zmin before performing the perspective math.