home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!network.ucsd.edu!cogsci!crl!hartung
- From: hartung@crl.ucsd.edu (Jeffrey P. Hartung)
- Newsgroups: comp.graphics
- Subject: Re: Millions! of colors...
- Message-ID: <1856@cogsci.ucsd.EDU>
- Date: 26 Jan 93 16:32:26 GMT
- References: <1993Jan20.180052.133265@ns1.cc.lehigh.edu> <1993Jan21.031952.4994@leland.Stanford.EDU>
- Sender: news@cogsci.ucsd.EDU
- Organization: University of California, San Diego
- Lines: 33
-
- In article <1993Jan21.031952.4994@leland.Stanford.EDU> ledwards@leland.Stanford.EDU (Laurence James Edwards) writes:
- >Well, yes you're right you can't use that many, but note there is a difference
- >between most 8-bit cards and 24bit cards. Almost all 8bit cards use a lookup
- >table with 24bit entries, whereas 24bit cards do not use a lookup table at all.
-
- Very few (S)VGA cards actually have DACs that can do 8-bits per primary. Most
- only use 6-bits per primary. The highest 2 bits are ignored in a 24-bit RGB
- color specification. A few have switchable DACs that can be made into 8-bit
- per primary. They are useful when you need to create a 256 color monochrome
- gradient, for instance, or a 256 color greyscale image.
-
- >Now all you really need is a 20bit card with a lookup table that has 24bit
- >entries, and you're range of available colors would be exactly the same (on a
- >1024x768 screen) as the 24bit card. But, now you've got a very large lookup
- >table (3MB) in addition to you're screen memory, so it's cheaper and simpler
- >from the hardware design standpoint to just go with the 24bits and no lookup
- >table.
-
- This would be silly since you'd have to send 3 bytes to specify the index
- value (with the high nibble on one byte being ignored) in a 20-bit lookup
- table and _then_ have the lookup table send the analog RGB signals to the
- monitor. Furthermore, with a good dithering algorithm and color optimization
- routine, 256 colors can look pretty good under most circumstances if speed is
- of the essence.
-
- >Larry Edwards
-
-
- --
- --Jeff Hartung--
- Disclaimer: My opinions only, etc., etc., BLAH! BLAH! BLAH!...
- InterNet - hartung@crl.ucsd.edu BITNET - hartung@ucsd
- UUCP - ucsd!crl.ucsd.edu!hartung
-