Skip to main content
Microsoft Silverlight
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit A *real* fish-eye control
5 replies. Latest Post by fwaris on August 14, 2008.
(0)
PeterMorris
Member
2 points
18 Posts
08-14-2008 5:55 AM |
I have been looking for SL fisheye controls but all I seem able to find are controls that show a collection of images which scale as the mouse moves closer to them.
What I am after is a real fish-eye control. The kind where you bind multiple images together (taken from the same spot but at different angles) and then it lets the user rotate their point of view over 360 degrees and even to look at the ceiling and floor. I want to use it on a website to show off rooms when I revamp a small site for some friends.
Thanks
Pete
texmex5
Contributor
2239 points
382 Posts
08-14-2008 5:59 AM |
I think you need something like this :P
http://labs.live.com/photosynth/
fwaris
10 points
9 Posts
08-14-2008 3:26 PM |
Also try http://codeplex.com/fisheyegrid
08-14-2008 5:01 PM |
Hi Fwaris
That's a perfect example of what people these days are calling a fish-eye effect that is in fact nothing like a fish-eye view. I have no idea why the term fish-eye has been used to describe this effect.
Take a look at this image
http://www.nearfield.com/~dan/photo/wide/fish/ftest5.jpg
See how the image is distorted? Apparently this is how a fish sees the world. Now imagine slicing the circle from the top down to the centre and then some how in raveling the image so that it is one very wide image. You could then scroll the image left/right and loop at the edges and it would look as though you are looking through a camera that is pivoting on a fixed point. That's the kind of SilverLight control I am after, where you can take a fish-eye photo and then the control will manipulate the pixels in such a way that the user feels they can point the camera at any point in the room (but not move the position of the camera).
Does anyone know of such a control for silverlight? I've found a Java one here http://www.all-in-one.ee/~dersch/ but I want SilverLight :-)
08-14-2008 5:28 PM |
Found one!
http://www.amercom.nl/showcase/silverlight/panoramacube2/PanoramaCubeTestPage.html
08-14-2008 7:22 PM |
Interesting but I would not classify this as a fisheye lens effect either. However, if this is what you were looking for then that's great.
Agreed that the control I submitted does not render content with a real fisheye lens effect. It only applies a fisheye-like effect to a set of discrete areas within a grid.
To obtain a real fisheye lens effect, you would need a variable scale transform which WPF/Sliverlight does not currently support. Probably need native directx or opengl.