home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 833 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.3 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: 11 Jan 1996 22:19:30 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Distribution: world
  8. Message-ID: <4d42di$9e9@maureen.teleport.com>
  9. References: <4d0ou6$835@astfgl.idb.hist.no> <Z31Wx*zA0@mkmk.in-chemnitz.de>
  10. NNTP-Posting-Host: kelly.teleport.com
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Andre Weissflog (floh@mkmk.in-chemnitz.de) wrote:
  14. : In article <4d0ou6$835@astfgl.idb.hist.no>, Lasse Staff Jensen writes:
  15.  
  16. : > I have been following the discussion on fast tmapping
  17. : > innerloops, and have a question conserning those 
  18. : > very fast loops (i.e two instructions per pixel).
  19. : > 
  20. : 2 instructions per pixel for free texture mapping? How
  21. : do you define 'instruction' ?
  22.  
  23.  I think he was mentiontioning this map code:
  24.  
  25.     REPEAT    32
  26. 1)    move.b    (a0,d0.w),(a1)+
  27. 2)    addx.l    d1,d0
  28.     ENDR
  29.  
  30. : > What do you guys do when the delta values are negative?
  31. : > Clearly an addx.l will not work! Do you use some kind of
  32.  
  33. : This trick should also work with a negative adder, since the
  34. : bit that once defined the adders sign is now somewhere in
  35. : the middle of the longword and doesn't hurt. The real MSB
  36. : is now only important for producing overflows (or underflows,
  37. : just as you like it) of the fractional part. It wouldn't
  38. : work that well if over/underflows of the integer part would 
  39. : happen but since [u,v] have a limited range of [0..txt size]
  40. : this is unlikely anyway.
  41.  
  42.  In the example above I dont think it will work with neg number.
  43.  Because the msbit of X if neg will have an effect on Y.
  44.  
  45.  On the 'regular' addx methode it does work wihtout problem...
  46.  
  47. : > symetric tmap, or does the tmap repates outside the frame,
  48. : > or what? Do you have several innerloops? 
  49.  
  50. : Personally, I have 8 inner loops at the moment.
  51.  
  52. : But they handle linear, perspective corrected, non-shaded, 
  53. : gouraud-shaded, transparent mapping and all combinations
  54. : thereof that make sense. I don't use the X-Flag trick however,
  55. : and the more optimized versions live on the x86 anyway ;-/
  56.  
  57.  the xflag 'trick' is not a bad methode... it enable you
  58.  to preshift value. It would fly on a 150mhz 030 ;)
  59.  people compare to quickly a tmap program on a 66mhz 486 and a
  60.  a1200... to see x86 true code speed they should run it on a
  61.  12mhz 286.
  62.  
  63.  Stephan
  64.