Path: chuka.playstation.co.uk!news From: shrew@shrew.shrew.shrew (Rob) Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: copper backgrounds Date: Tue, 15 Feb 2000 09:04:57 GMT Organization: shrew Lines: 34 Message-ID: <38a91646.883570@www.netyaroze-europe.com> References: <84bli3$8m01@chuka.playstation.co.uk> Reply-To: shrew@shrew.shrew.shrew NNTP-Posting-Host: mailgate.scee.sony.co.uk X-Newsreader: Forte Free Agent 1.11/32.235 On Wed, 29 Dec 1999 00:44:48 -0000, "Nigel Critten" wrote: >Hi, > >This one will probably only make sense to anyone who used to code or know >anything about the Amiga, it was possible to alter one colour every scanline >so you could have a 256 colour gradient background on a 2 colour screen >(320x256), is there anything similar I can do on the Yaroze. > >I could setup a gradient box, except there is no reference to a Gradient Box >function in the manuals there is a structure for one in the libs however, I >could setup 320 Gradient Lines but that just doesn't sound like the best >way, that I suppose leave setting up a gradient polygon? > >I know this is basic stuff but I'm guilty of not touching the yaroze for a >few months and it's all gone, other stuff has pushed that out of my head, >only limited registers you see :-) (7 at last count) > >Nigel > > somewhere on someones machine I've got the code for inputting primitives straight into the ordering table - and in this case its fairly easy to create a gouraud rectangle that fills the screen. You can only specify the colours at the corners but its very fast. Of course you could split it up into smaller rectangles for more control. If youre still interested I'll have to dig it out (might take a couple of weeks - I dont want to sit through the whole 'print out the OT and work out the structures' thing again Rob