Re: Warping an image with a Bezier Path
Re: Warping an image with a Bezier Path
- Subject: Re: Warping an image with a Bezier Path
- From: Seth Willits <email@hidden>
- Date: Sat, 18 Jan 2003 19:43:40 -0800
On Saturday, January 18, 2003, at 04:54 PM, Marcel Weiher wrote:
Is it possible to warp an image to fit into fully enclosed bezier
path?
For example, if you can imagine the shape of a typical trophy where
the top and bottom are perfectly flat and the sides curve out and
then back in as they go from the base to the top of the trophy, how
can I take an image and warp it to fit inside that space? I don't
want the trophy shape to mask the image but I want to contain the
entire image in the trophy.
This sounds like the trophy is a 3D object. Why not make it that and
then map the image onto this surface as a texture, all with OpenGL?
I'd have to be able to change the shape of the trophy somewhere between
80 and 160 times a second (I think) and be able to draw the picture
into a window in real time on pretty much any computer that can run OS
X. Think it's possible?
Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software -
http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine -
http://www.rbdeveloper.com
"Read the book! Be patient! All success comes from acquiring knowledge
and experience."
-- Seth Willits
------------------------------------------------------------------------
---
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.