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