FISHEYE FROM PANARAMA
Blitz3D Forums/Blitz3D Beginners Area/FISHEYE FROM PANARAMA
| ||
Ok. Time to admit to my maths not being the greatest, how would you approach...turning a panoramic image into a fisheye. I am guessing it's either very simple or highly complex. Rectangle to polar (I guess) |
| ||
what exactly is "fisheye" could someone explain it please? |
| ||
Google is your amigo. |
| ||
Grrrrrr! I spelt the title wrong? Is there a way to correct? Nate: Fisheye. As Khomy says, google is your friend. Dont make me type it. :) Anyway, I need some direction; want to turn a rectagular image (2048 * 256) into a sphere, for skydome gerenation. |
| ||
I would sphere map the image as a texture and apply it to a sphere mesh than render what's on screen. |
| ||
Yeah, rather let Direct3D do the work for you. Albeit not as well as you would with Shaders. You'll need to have a special dome-like object. You can use CopyRect to copy the contents of the screen to a texture (that texture being applied to that dome) and have a real-time fish eye. The most important things are the shape of the dome and it's mapping coordinates. |
| ||
Ok....time to clarify I dont want to map anything....I want to... Create a bunch of sprites, place them on a wide image (pano) in a fashion that simulates clouds. Take my new image (pano full of clouds) and do a 'rectangle to polar' operation, thus producing a cloud map useful for many applications. |
| ||
Do you mean you want to "squeeze" the original image to a form so that when you apply it to a sphere or cube skybox then it will look normal? Like this example? Skymap Photo or round like this Photoshop tutorial? Crystal Ball |
| ||
Ok...the first link (Skymap Photo) is basically what I want to create as my image to process. And yes, the Crystal Ball tutorial if the result of 'rect. to polar' As I stated at the begining of this thread, my Maths isnt great. There must be an Algorithm to use in B3D that takes a rectangle and curves it so that both ends meet, but probably too complex....not sure Anyone know? |