home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3631 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 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: <38232459@kone.fipnet.fi> <4gbb5a$104@sunsystem5.informatik.tu-muenchen.de>
  5. From: "Jyrki Saarinen" <jsaarinen@kone.fipnet.fi>
  6. Date: Thu, 22 Feb 96 16:00:33 UT
  7. Comments: Illegal date header - new date added by quicknews
  8. X-Original-Date: Thu, 22 Feb 96 10:49:49 
  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: <38232577@kone.fipnet.fi>
  15.  
  16.  
  17. > well, is it maybe that the lin-interpol-trick works only on triangles ?
  18. > Then I'd understand the "use triangles" thingy :)
  19.  
  20. The horizontal adders are constant on triangles when using linear
  21. interpolation. That is why triangles are good. If flat
  22. is used, n-sided convex polys are the way to go ofcourse.
  23.  
  24. > The "descent divide each 16 horiz pix" only works on triangles ?
  25.  
  26. Perspective mapping is done by interpolating linearly
  27. u/z, v/z and 1/z over the polygon. Then at each pixel u/z and
  28. v/z are divided by 1/z to get u,v-coordinates. Now this
  29. is done at each 16 pixels, but again the reason for
  30. triangles could be the constant horizontal adders.
  31.  
  32. On the other hand, with two divides two at each 16 pixels,
  33. it could be better to use n-sided convex polygons and
  34. use 3 extra divides per scanline. (u,v,gouraud)
  35.  
  36. --                               _
  37. a Stellar programmer          _ //
  38. "Amiga - back for the future" \X/
  39.