Hi,
I'm trying to achieve the following task:
Imagine having a 2:1 aspect ratio drawing canvas. I want to place rectangular images on this canvas (..x,y Cartesian coordinates) and as I move the image around further away from the canvas center (0,0) I want to get the distortion to the image as if it was sliding over the imaginary sphere's normals.
The logic I believe is to convert the (x,y) 2D Cartesian coordinates of the image to the corresponding latitude, longitude spherical coordinates, and then apply the equirectangular projection to the sphere and return the image with the corresponding distortion (as if it's uvs where unwrapped in a 3D modeling package).
There is an application doing exactly that called "HDR Light Studio" which generates equirectangular (lat/long) HDR images for 3D scene lighting purposes.
If you check out their videos you will understand exactly what kind of image distortion I'm trying to achieve.
Please give me some help over the subject if you can.
I have searched all around the net for info but no luck.
Thanks in advance
--Edit-----------------
I have found an interesting article here at CodeProject:
http://www.codeproject.com/KB/graphics/PolarView.aspx[
^]
The logic is very close to what I'm trying to achieve but not exactly.
Again, if someone can take a look at "HDR Light Studio" videos from their site will understand exactly what kind of real-time image distortion I'm trying to achieve.