From: Alan Marrs Newsgroups: comp.os.msdos.djgpp Subject: gouraud shading with allegro? Date: Thu, 23 Jan 1997 13:25:42 +0000 Organization: Defence Research Agency Lines: 13 Message-ID: <32E766D6.41C6@signal.dra.hmg.gb> NNTP-Posting-Host: signal.dra.hmg.gb 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 I was wondering if there was a fast way to do gouraud shading using the functions built into allegro. I've currently got a 3D flat shading engine based upon allegro. I'd like to modify this to do gouraud shading. Currently I draw a scanline using hline() so I would envisage a simple modification would be to replace the call to hline() with one that draws a line by interpolating between the colors of the line edges. I'm aware of the different drawing modes, do these affect hline()? Anyone out there who can help? BTW I'd appreciate a decription of the finer points of the drawing elements of allegro. Thanks. Alan.