www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/21/13:45:43

From: Vic <tudor AT cam DOT org>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 <eip> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019