home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.teleport.com!sschaem
- From: sschaem@teleport.com (Stephan Schaem)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Bitfieldinsert?
- Date: 26 Feb 1996 16:44:39 GMT
- Organization: Teleport - Portland's Public Access (503) 220-1016
- Message-ID: <4gso1n$2l0@maureen.teleport.com>
- References: <38232552@kone.fipnet.fi> <4gh0gt$6ll@maureen.teleport.com> <38232647@kone.fipnet.fi>
- NNTP-Posting-Host: julie.teleport.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Jyrki Saarinen (jsaarinen@kone.fipnet.fi) wrote:
-
- : > Trying to find correct gouraud shading code (Wich 'nobody' seem to do)
- : > I saw a post saying that he can do gouraud on a PC at .25 cycle per
- : > pixel. So I guess this as been done already , and you can probably get
- : > áthe source code .. but then its for the x86 :)
-
- : Hmm, any ideas how? That would be 4 pixels per one instruction..
-
- shading table and using 32bit move.
-
- : > Well, it would be a ham6 screen... the rendering is done in interleaved
- : > componant: line only 4bit red, line 1 only 4bit of green, line 2 4bit
- : > blue, line 3 4bit red etc... then this is c2p in the lower 4planne of
- : > a 256x300 interlaced screen (only 256x150 4bit is c2p per feild.)
- : > c2p a 256x150 screen 4bit take ~11ms on a 030 (cpu only).
-
- : Wow, some code please.. On the other hand, I am not 100% sure
- : if the true color mode has actually some use. Can a fast 24b
- : to HAM8 conversion be done? A long per pixel would be nice..
-
- I was talking about ham6, 4bit per componant not 24...
- This mean you use a 4bit plain c2p routine...
- ~18ms for 320x200 cpu only. 25mhz 030.
- Since its interleaved when you render true color you switch source
- componant depanding on the row you render. The result is something
- like "transgresion2" (If you have a PC check it out, it does 6bit
- per componant ).
- The power required to do this on an amiga is render in 4bit with
- source switching (no overhead really, happen once per scan line and is
- only getting one of 3 pointer), and 4bit c2p to a ham6 screen with the
- upper 2 bit preset.
- The result is TV style 12bit color res with 256*100 spacial res
- on a 6bit 256*300 ham6 screen using 4bit per pixel.
-
- : > Have you seen Transgression2 on the PC? they use vertical componant
- : > interleave ... ok they have 64shade per componant, OCS only as 16.
- : > But you can get dithering for free.
-
- : The ray tracing 64k intro?
-
- Yes... this 8bit mode is equivalent to an ham6 mode.
-
- Stephan
-