From: Vic Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro - Triangle bug? Date: Wed, 20 May 1998 17:00:23 -0400 Organization: Communications Accessibles Montreal, Quebec Canada Lines: 11 Message-ID: <35634467.7A3@cam.org> References: <35633112 DOT 3679877 AT news DOT flashnet DOT it> NNTP-Posting-Host: dialup-380.hip.cam.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Tiziano Lena wrote: > > Hi! > Has the triangle(...) call any known bug? > I ported my Djgpp 3d engine to Djgpp+Allegro (3.0 + WIP) and the > program sometimes crashes (SIGFPE) when I am close to objects. > In gdb I made a disassemb and saw that it points to the triangle > routine... are you doing any clipping? Are any of the Z coords negative, or very close to 0? You should clip to a Z=1 plane before drawing.