home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4088 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 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: 19 Feb 1996 00:34:54 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Message-ID: <4g8gje$oov@maureen.teleport.com>
  8. References: <38232329@kone.fipnet.fi> <4fnh84$1m7@oreig.uji.es> <4g0fjl$gh1@maureen.teleport.com> <38232461@kone.fipnet.fi>
  9. NNTP-Posting-Host: linda.teleport.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Jyrki Saarinen (jsaarinen@kone.fipnet.fi) wrote:
  13.  
  14. : >  4bit chunky version would be, to draw 8 4bit pixel
  15. : > 
  16. : >     REPEAT 16
  17. : >     move.l    (a0)+,(a1)+        ;draw 8 pixels
  18. : >     ENDR
  19. : > 
  20. : >  a0 is a pointer in a lighting cube ... Think of it as tmapping a
  21. : >  X*1 texture and having all the texture size prescaled so you only
  22. : >  have intereg part when steping in the texture.
  23. : >  in 8bit its the same but you map only 4 pixels at a time.
  24.  
  25. : Hey, finally a place for doing some c2p pass(es) in the inner
  26. : loop..?  Have you done this code, btw?
  27.  
  28.  Nope, I'm just thinking about it... I will probably create a dithered
  29.  gouraud lighting cube, and render in 12bit (rgb buffer) and render
  30.  in ham6 in 256*300 (interleaved componant).12bit dithered should look
  31.  pretty good. My guess a full true color scene can be rendred and c2p at 
  32.  near 50fps on a good old A3000.
  33.  
  34. : >  But back to bitfield inst, they are nice for <33 pixel wide flat
  35. : >  lighted triangles. I think a 25mhz 030 can draw ~70,000 32x16 polygon
  36. : >  using bfset.
  37.  
  38. : Yep. Too bad that idea cant be used in something serious.
  39.  
  40.  I use it... You dont alway have to texture, gouraud light small triangle.
  41.  so if you have some object with small metalic surfaces you can use this
  42.  methode to fill triangle, also this can be aplied on 'far away' objects.
  43.  but 32x16 poly are actually 'huge in lores.
  44.  
  45.  Stephan
  46.