- #1
abeall
- 21
- 0
I am looking to create a fisheye effect, similar to what can be found in computer vector drawing apps like Macromedia FreeHand or Adobe Illustrator:
http://www.vecpix.com/tutorials/freehand/images/fh004/3d_soccer09.gif
Note that this effect is not exactly the same as a fisheye lens. Here's a good example of what I want (screen captured from Freehand):
http://abeall.com/files/temp/fisheye.gif
1) Distortion area has a range of 1 to -1, where 1 pushes points that fall in the distortion area towards the edge, and -1 pulls points towards the center
2) The distortion area can be a circle or ellipse, though not a rotated ellipse.
3) Points outside the distortion area are not affected.
These values are known:
Each point x and y
Circle/ellipse center
Circle/ellipse width
Circle/ellipse height
Any help would be appreciated.
http://www.vecpix.com/tutorials/freehand/images/fh004/3d_soccer09.gif
Note that this effect is not exactly the same as a fisheye lens. Here's a good example of what I want (screen captured from Freehand):
http://abeall.com/files/temp/fisheye.gif
1) Distortion area has a range of 1 to -1, where 1 pushes points that fall in the distortion area towards the edge, and -1 pulls points towards the center
2) The distortion area can be a circle or ellipse, though not a rotated ellipse.
3) Points outside the distortion area are not affected.
These values are known:
Each point x and y
Circle/ellipse center
Circle/ellipse width
Circle/ellipse height
Any help would be appreciated.
Last edited by a moderator: