home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / hardware / 19880 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  3.2 KB

  1. Path: sparky!uunet!mcsun!ub4b!news.cs.kuleuven.ac.be!blekul11!stud16
  2. Newsgroups: comp.sys.amiga.hardware
  3. From: stud16@cc4.kuleuven.ac.be (Kurt Haenen)
  4. Distribution: world
  5. References: <BxAvtu.1F9@fc.hp.com> <1992NOV10.093926.5786@TDB.UU.SE>
  6. Date: Wednesday, 18 Nov 1992 14:57:39 +01
  7. Message-ID: <1992Nov18.144917@cc4.kuleuven.ac.be>
  8. Organization: K.U.Leuven - Academic Computing Center
  9. Subject: Re: Three AGA questions.
  10. Nntp-Posting-Host: 134.58.8.1
  11. Lines: 56
  12.  
  13. In article <1992NOV10.093926.5786@TDB.UU.SE>, t92etr@tdb.uu.se writes:
  14. > Steve Koren (koren@fc.hp.com) wrote:
  15. > : Mattias Dahlberg (matt-dah@dsv.su.se) wrote:
  16. > :
  17. > : >    since then 256000 will be the number of pixels. But shouldn't it
  18. > : >    be 262144 on all higher resolutions...?
  19. > :
  20. > : What's a couple of thousand colors here or there? :-) But seriously, I
  21. > : think the correct value is 2^18+64.  (Ie, there are 64 base registers
  22. > : you can set to whatever you want, and you can HAM your way to 2^18 more
  23. > : colors beyond those).
  24. >
  25. > Well,those 64 base registers are probably part of the 2^18 colors.
  26. > I think that the number 256000 comes from confusion with 256k (256*1024=262144).
  27. >
  28.  
  29.   Well, maybe I'm wrong, but I'll try anyway ...
  30.  
  31. The way I thing HAM8 works (correct me if I'm wrong, but I'll base
  32. my statements upon this info):
  33.  
  34. - You have 64 (= 2^6) base registers.
  35. - You have 4 modes (2 bits for the mode) : choose a base register,
  36.   modify red/green/blue component.
  37. - Modifying the component is done by keeping the lower two bits of
  38.   that component as they were for the previous pixel and changing
  39.   the upper 6 bits as indicated in the bitmap.
  40.  
  41. Well, with these assumptions, I think the number of possible colors
  42. for the HAM8 mode is about 16 Million (i.e. 24bit colour).  We can
  43. choose the base-registers in such a way that every possible
  44. combination of the lower 2 bits for every component (ie. 6 bits = 64
  45. colours) are found in the base-registers.  The upper 6 bits of each
  46. component can be changed using those HAM-change-component modes, so
  47. every colour in the 24 bit space can be created as follows :
  48.   - Select the base register with the correct settings for the
  49.     2 lower-bits of each component
  50.   - Change the upper 6 bits of the red component to the value you
  51.     want it to be
  52.   - Same for the green component
  53.   - Same for the blue component
  54.  
  55. Note that this won't be done in practice, since you would need 4 steps
  56. to get the colour you want, *BUT* it shows that (if the resolution
  57. would be large enough) HAM8 could show the full 24 bit space.
  58.  
  59. +----------------+-------------------+------------------------------------+
  60. |/////\\_____\\\\|                   |                                    |
  61. |//// /_____ \\\\|  Kurt Haenen      |  Tjee, with this new cruncher,     |
  62. |/// /\____//\\\\|  Homsemstraat 53  |  I can put two times as many disks |
  63. |\\\/\ \   / / \\|  3891 Borlo       |  in one box than I used to ...     |
  64. |\\\/\\ \ / /\/\\|___________________|____________________________________|
  65. |\\\/\\\/_\/\/ //|                                       |                |
  66. | Kurt \/_\ / ///|  EMAIL : STUD16 @ CC4.KULEUVEN.AC.BE  | 2B || !2B T^ = |
  67. | Haenen  \\\/// |          FHGAA99@ CC1.KULEUVEN.AC.BE  | THE QUESTION ! |
  68. +----------------+---------------------------------------+----------------+
  69.