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

  1. Path: news.eunet.fi!fipnet!kone!jsaarinen
  2. Newsgroups: comp.sys.amiga.programmer
  3. X-NewsReader: IntuiNews 1.2b (31.7.94)
  4. References: <38232442@kone.fipnet.fi> <xJSEnMD0aez4@point86.people-s.people.de>
  5. From: "Jyrki Saarinen" <jsaarinen@kone.fipnet.fi>
  6. Date: Thu, 22 Feb 96 08:00:14 UT
  7. Comments: Illegal date header - new date added by quicknews
  8. X-Original-Date: Wed, 21 Feb 96 20:38:32 
  9. MIME-Version: 1.0
  10. Content-Type: text/plain; charset=iso-8859-1
  11. Content-Transfer-Encoding: binary
  12. Distribution: world
  13. Subject: Re: TMapping again!
  14. Message-ID: <38232567@kone.fipnet.fi>
  15.  
  16.  
  17. >     A time ago I did an approach to this problem using a similar trick
  18. >     than my two-command mapper.
  19. >     (btw. actually this one WORKS .. I have tried it out)
  20. >         move.l  d3,d2           ;d3=d4=0000000000000XXXXXXXxxxxxxYYYYYY
  21. >         move    d0,d5           ;d0=a6=yyyyyyyy000000000000BBBBBBbbbbbb
  22. >         and.l   d6,d2           ;d6=   00000000000001111111000000111111
  23. >         and.b   d7,d5           ;d7=   xxxxxxxxxxxxxxxxxxxxxxxx11000000
  24. >         or      d5,d2
  25. >         move.b  (a4,d2.l),(a2)+ ;d2=   00000000000000xxxxxxbbbbbbyyyyyy
  26. >         add.l   a6,d0
  27. >         addx.l  d4,d3
  28. >      This one is doing Texturemapping + gouraud shading with
  29. >      shadetable. (!!)
  30. >      The Texture is 64x64 (6 bit) and the shading is 6 bit two. You
  31. >      will need a 256k combined Texture/Shading table.
  32.  
  33. Hmm. Not nice in a game for example where several textures
  34. are needed. But a nice idea anyway!
  35.  
  36. >      The Routine byself was a bit slower than ordenary Texturemapping.
  37. >      But should be a lot fast than to memery-accesses. And it uses only
  38. >      two adds..
  39.  
  40. Yep .. well, normal optimized Texture/Gouraud with a shading table
  41. is ~76% slower than the fastest normal mapper .. I can live
  42. with it, no other restrictions execpt the 64k alignment.
  43.  
  44. >      Speed could still be improved by aligned the table to a 256k
  45. >      border.
  46.  
  47. Yep, like using 64k aligned texture, to eliminate the indexed
  48. addressing.
  49.  
  50. --                               _
  51. a Stellar programmer          _ //
  52. "Amiga - back for the future" \X/
  53.