home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / graphics / 9283 < prev    next >
Encoding:
Text File  |  1992-08-30  |  1.5 KB  |  34 lines

  1. Newsgroups: comp.graphics
  2. Path: sparky!uunet!wupost!gumby!destroyer!ubc-cs!unixg.ubc.ca!kakwa.ucs.ualberta.ca!ee.ualberta.ca!jpenne
  3. From: jpenne@ee.ualberta.ca (Jerry Penner)
  4. Subject: Re: Algorithm wanted: bitmap skewing in 3D surface
  5. Message-ID: <jpenne.715235302@ee.ualberta.ca>
  6. Sender: news@kakwa.ucs.ualberta.ca
  7. Nntp-Posting-Host: eigen.ee.ualberta.ca
  8. Organization: University Of Alberta, Edmonton Canada
  9. References: <1992Aug31.014519.15930@sparc4.ncu.edu.tw>
  10. Date: Mon, 31 Aug 1992 04:28:22 GMT
  11. Lines: 21
  12.  
  13. cs8023@ee21.ncu.edu.tw (ee76536 [Anthony]) writes:
  14.  
  15. [...]
  16. >I have a planar bitmap picture, and I want to paste this bitmap onto a
  17. >3d planar surface, and as you can see, I need a transform to skew bitmap
  18. >so that it can fit the angle of viewpoint.
  19. >I knew that if I use transform from 2D map to 3D, it may leave some
  20. >holes, so I need a transform from 3D surface to 2D.
  21. >any idea about this, or you can give a greatly hand if you know where I
  22. >can find the releated books/documents/software?
  23.  
  24. Well, it seems to me that if, as you say above, you are going from a
  25. planar 2D bitmap to a _planar_ 3D surface, you can just transform the
  26. corners of the 2D bitmap to 3D, and then project the 3D coordinates
  27. corresponding to the corners of the bitmap back to 2D screen
  28. coordinates.  Then you can just use a 2D polygon skewing algorithm
  29. which maps from destination back to source for each pixel.  That's the
  30. first thing that comes to my mind.  Any holes in it?  (pun not
  31. intended)
  32. -- 
  33. Jerry Penner   jpenne@ee.ualberta.ca   Try a 1-line .sig today.
  34.