home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4022 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: nntp.teleport.com!sschaem
  2. From: sschaem@teleport.com (Stephan Schaem)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Bitfieldinsert?
  5. Date: 15 Feb 1996 23:28:53 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Message-ID: <4g0fjl$gh1@maureen.teleport.com>
  8. References: <38232222@kone.fipnet.fi> <4f4qo2$i6o@oreig.uji.es> <38232329@kone.fipnet.fi> <4fnh84$1m7@oreig.uji.es>
  9. NNTP-Posting-Host: kelly.teleport.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Jorge Acereda Macia (ii202@rossegat.uji.es) wrote:
  13. : Jyrki Saarinen (jsaarinen@kone.fipnet.fi) wrote:
  14.  
  15. : > Well, a friend of my made a Gouraud polygon routine
  16. : > a while ago that does 8 pixels on two instructions.
  17. : > (all four planes in a long word; a little blitting or CPU
  18. : > passes needed)
  19.  
  20. : >         move.l  (a0,d0.w*4),(a1)+
  21. : >         addx.l  d1,d0
  22.  
  23. : Cool! Looks fast when working with big polys, but handling left and
  24. : right bytes (edges) should slow down the thing...
  25.  
  26.  4bit chunky version would be, to draw 8 4bit pixel
  27.  
  28.     REPEAT 16
  29.     move.l    (a0)+,(a1)+        ;draw 8 pixels
  30.     ENDR
  31.  
  32.  a0 is a pointer in a lighting cube ... Think of it as tmapping a
  33.  X*1 texture and having all the texture size prescaled so you only
  34.  have intereg part when steping in the texture.
  35.  
  36.  in 8bit its the same but you map only 4 pixels at a time.
  37.  
  38.  I think doing chunky/c2p is a better solution then the above methode,
  39.  but thats just a first impression.
  40.  
  41.  But back to bitfield inst, they are nice for <33 pixel wide flat
  42.  lighted triangles. I think a 25mhz 030 can draw ~70,000 32x16 polygon
  43.  using bfset.
  44.  
  45.  Stephan
  46.