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

  1. Path: nntp.teleport.com!sschaem
  2. From: sschaem@teleport.com (Stephan Schaem)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: TMapping again!
  5. Date: 22 Jan 1996 21:49:09 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Message-ID: <4e10ol$ck3@maureen.teleport.com>
  8. References: <4d6v0t$3dt@maureen.teleport.com> <4dg4jk$km@news.cs.tu-berlin.de> <4dhvd5$5r2@maureen.teleport.com> <38232113@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. : >  Acuracy of 6bit for Y. 1/64 is not that bad, it
  15. : >  basicly mean you will repeat 1 pixel from the source upto 64time.
  16. : >  64x64 pixels are pretty huge, and for a 32x32 texture map 1/64
  17. : >  should be enought for reduction.
  18. : > 
  19. : >  I never tryed myself,I use 256x256 tmap. and 16/16bit fixed point
  20.  
  21. : How is your loop? I though a fast way to use two addx
  22. : to get 16 bits of precision for V, too.
  23.  
  24.         repeat  8
  25.         mw      D1,D2
  26.         mb      D0,D2
  27.         addx.l  d7,D0
  28.         movea.l d2,a0
  29.         addx.l  d6,D1
  30.         mw      (A0),d3
  31.         mw      D1,D2
  32.         mb      D0,D2
  33.         movea.l d2,a0
  34.         mb      (A0),d3
  35.         addx.l  d7,D0
  36.         addx.l  d6,D1
  37.         mw      d3,(a1)+
  38.         endr
  39.  
  40.  the above map 2 pixels from a 256x256 tmap buffer...
  41.  You should be able to use 24bit precission .
  42.  
  43.  Stephan
  44.  
  45.