Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: Ed Federmeyer Newsgroups: scea.yaroze.programming.3d_graphics Subject: Re: Do gouraud quads work? Date: Fri, 07 Nov 1997 22:42:51 -0600 Organization: (no organization) Lines: 36 Message-ID: <3463EDCB.1872@charlie.cns.iit.edu> References: <345E2641.41C6@san.rr.com> <63ms60$sk228@chuka.playstation.co.uk> Reply-To: fedeedw@charlie.cns.iit.edu NNTP-Posting-Host: charlie.cns.iit.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0C-GZone (Win95; I) Mario Wynands wrote: > > David White wrote in message <345E2641.41C6@san.rr.com>... > >3. I can get Gouraud(gradation), No-Texture triangles, > > but Gouraud(gradation), No-Texture Quads consistantly > > generate errors (GPU Code 0h not supported) when I call > > GsLinkObject4. I also get this problem with code that > > generates a simple array of quads. Could the value > > of 'olen' for gradation quads be wrong; I'm using '8'? > > This was actually one of the first bugs (I am assuming it is a bug) that we > came across when starting out on the Yaroze. > > By a bizarre coincidence the first program I wrote attempted to create a > single gouraud quad. Of course it didn't work no matter what I tried. I > went over every inch of the code for a whole day before deciding to try and > change the primitive type which did work (gouraud triangle from memory I > think). > > Even gouraud quads in TMDs created by RSDLink don't seem to work. > > Has anybody got a gouraud quad to work, or is this a bug? I've uploaded a file to my web page called "snakesrc.zip", which is the source code for the "Snake Demo" I put up much earlier. It uses "G_4" (Gouraud shaded quads) to make the "sides" of the snake. Check out line 62 of "snaketmd.c". One thing to note, the last two values to the setPRIM_HDR() macro are different for each type of primitive, and whether it is lit, shaded, txtured, etc. You need to look up the values in that fileformat.pdf file. EdF P.S. My Web Page is at: http://www.scea.sony.com/net/yaroze/pages/efedermeyer.html