Welcome to Fractal Forums

Fractal Software => Mandelbulber => Topic started by: domejunky on February 05, 2011, 04:04:53 PM




Title: 'Fish eye'
Post by: domejunky on February 05, 2011, 04:04:53 PM
Hello All,

Loving the software! I am interested in rendering for Fulldome (Planetarium). I got particularly excited about the 'fish eye' option - I have been playing with it for a couple of days, and looking at the source, trying to work out what projection it actually is. It is referred to as a 'spherical', which I think is what I would call 'equirectangular' - I have tried various combinations of FOV and image size, trying to create a 2:1 aspect equirectangular - since these can be correctly manipulated to derive the fisheye projection we need for our dome.

Any pointers gratefully received...


Pete


Title: Re: 'Fish eye'
Post by: FractalFoundation on February 08, 2011, 09:54:06 PM
Hi Pete - glad you're enjoying Mandelbulber! It's an amazing program, for sure. I've rendered several pieces for our planetarium fractal shows, some of which you can check out here: http://vimeo.com/fractalfound/videos
In general I don't use the 'fisheye' option, but just adjust the Filed of View (FOV) to a value that I determine looks best, which depends on the particular fractal type. Using a cube shape, like a mandelbox or menger sponge is a good reference to check in the dome, but individual fractals will look best with different FOV values, so I encourage you to play with that. I didn't like the effect of the native fisheye option, but I'd love to see any results you come up with if you manage to adjust the source code to render better on a dome. I will say, it's much harder to navigate in fisheye mode, and you have to generate your flight paths in fisheye, as it won't work to create an animation and then switch over to fisheye.
Anyway, best of luck, and I'd love to see what you come up with.

-Jonathan


Title: Re: 'Fish eye'
Post by: domejunky on February 09, 2011, 02:32:59 AM
Johnathan,

I believe I have seen some of your fractals in Albuquerque - I still tell people the 'scalping tickets at fractal fridays' story that Beining told....

I can't work out the projection - not equirectangular, nor cylindrical from what I can make out - These are conversions to 'fisheye' projection assuming first equi, then cylindrical mappings:


(http://1.bp.blogspot.com/_e0RYRjZ4XP4/TVHWUXuIdLI/AAAAAAAAAQU/PnzqDjLKNAE/s320/mandelbulber-fishey.png)
(http://3.bp.blogspot.com/_e0RYRjZ4XP4/TVHUq1Z4IxI/AAAAAAAAAQM/0z2ktXtIBLE/s320/mandel-cyl-fisheye.png)


But it's tantalising.

I've been trying to hack the source, since it's a Raytracer I thought I could compare formulas with Yafaray, which has a working fisheye camera. I'm not really familiar with the Mandelbulber source, so I'm working blind really. I keep looking for "if (sphericalPersp)" in Render3D.cpp - but it's hard to know how much of the code is due to the fact that we're rendering fractals - something I have no experience with.

Pete

 



Title: Re: 'Fish eye'
Post by: Buddhi on February 13, 2011, 05:07:29 PM
Loving the software! I am interested in rendering for Fulldome (Planetarium). I got particularly excited about the 'fish eye' option - I have been playing with it for a couple of days, and looking at the source, trying to work out what projection it actually is. It is referred to as a 'spherical', which I think is what I would call 'equirectangular' - I have tried various combinations of FOV and image size, trying to create a 2:1 aspect equirectangular - since these can be correctly manipulated to derive the fisheye projection we need for our dome.

Hi

I would like to help you in this topic. I'm not sure what type of projection I have implemented (it not fit to any formal definition). My target was to do "fish eye" effect. Please define projection what you need using formulas, then I will try to implement it in Mandelbulber.

Now if you set 'fish eye' mode, FOV to 1.0 and image aspect 2:1, you have 360 degree horizontal view and 180 degree vertical, like on picture above:
(http://nocache-nocookies.digitalgott.com/gallery/5/640_13_02_11_4_59_04.jpeg)
 



Title: Re: 'Fish eye'
Post by: domejunky on February 13, 2011, 08:09:45 PM
Hello,

Selfishly, I would like to render to a 180 degree circular fisheye projection, but could use equirectangular (spherical) just as easily...Content for domes often needs to be rendered to match the tilt of the dome screen, so without that control, equirectangular might be preferable to enable re-tilting in post...

Probably the most succinct source on the topic is Paul Bourke:

http://local.wasp.uwa.edu.au/~pbourke/miscellaneous/lenscorrection/

Pete



Title: Re: 'Fish eye'
Post by: olihar on February 17, 2011, 12:55:35 PM
I wonder and am really interested in the spherical view.

I ran a test on how the left and right side would join up together in a spherical viewer...

(https://img.skitch.com/20110217-ti62n8xy9x12d7bad9y6ahumgu.jpg)

Wonder what could be done to get it seamless...


Title: Re: 'Fish eye'
Post by: Buddhi on February 17, 2011, 06:00:03 PM
I wonder and am really interested in the spherical view.

I ran a test on how the left and right side would join up together in a spherical viewer...

Wonder what could be done to get it seamless...

I think that your image is not seamless because:
- you used Screen Space Ambient Occlusion, which depends on image data. Near image borders this effect is less accurate. You should use Shaders/Shading effects/Ambient occlusion and switch off Post effects/Screen Space Ambient Occlusion.
- background should be a solid color or as a textured background (also seamless)


Title: Re: 'Fish eye'
Post by: Buddhi on February 17, 2011, 07:12:32 PM
Selfishly, I would like to render to a 180 degree circular fisheye projection, but could use equirectangular (spherical) just as easily...Content for domes often needs to be rendered to match the tilt of the dome screen, so without that control, equirectangular might be preferable to enable re-tilting in post...

I have made some changes in spherical transform formula. Now it should work when you wrap this image into sphere. Please test this image.
(http://nocache-nocookies.digitalgott.com/gallery/5/640_17_02_11_7_07_23.jpeg)


Title: Re: 'Fish eye'
Post by: domejunky on February 18, 2011, 07:33:55 PM
Spot on! That works like a charm....


(http://3.bp.blogspot.com/-LVknoX7Hzrg/TV67G69LIlI/AAAAAAAAAQc/LN9Lm-tqiBQ/s320/mandelbulber-equi-mod-mask.png)

Are the modifications in the subversion repository?


Pete




Title: Re: 'Fish eye'
Post by: Buddhi on February 18, 2011, 07:51:31 PM
Are the modifications in the subversion repository?

Not yet. I will do it tomorrow.


Title: Re: 'Fish eye'
Post by: domejunky on February 18, 2011, 11:05:45 PM
That's an infinite amount of time to wait in the world of fractals,  :o any chance of posting the modifications you made...? I'm assuming they were modifications to Render3D.cpp...


Pete

 


Title: Re: 'Fish eye'
Post by: Buddhi on February 19, 2011, 08:54:04 AM
That's an infinite amount of time to wait in the world of fractals,  :o any chance of posting the modifications you made...? I'm assuming they were modifications to Render3D.cpp...

I will short your waiting. I have just uploaded changes into subversion repository. This spherical projection is temporary replacing 'fish eye' option. If you want to see changes please go to: http://code.google.com/p/mandelbulber/source/diff?spec=svn94&r=94&format=side&path=/trunk/src/Render3D.cpp&old_path=/trunk/src/Render3D.cpp&old=93


Title: Re: 'Fish eye'
Post by: domejunky on February 19, 2011, 03:49:11 PM
Thanks for that Buddhi,

I may be gone some time....


Pete




Title: Re: 'Fish eye'
Post by: olihar on February 20, 2011, 03:13:09 PM
Here yes, this seems to work like a charm now...

I tested your image..
http://olihar.com/fractal/ (http://olihar.com/fractal/)


Title: Re: 'Fish eye'
Post by: Buddhi on February 21, 2011, 09:33:50 PM
I will add this option permanently to the Mandelbulber, because it is very interesting possibility to show fractals.

New example (using panorama viewer):
http://www.dermandar.com/p/cyFCvT/mandelbox

Thank you domejunky for inspiration


Title: Re: 'Fish eye'
Post by: olihar on February 23, 2011, 06:03:54 PM
Any timeframe on the binary?


Title: Re: 'Fish eye'
Post by: Buddhi on February 23, 2011, 06:13:49 PM
I will try at next weekend. Please be patient because it is a lot of work to prepare packages for release. I would like to add some other new features in the same time.


Title: Re: 'Fish eye'
Post by: olihar on February 23, 2011, 06:35:49 PM
No worries, just curious if I should go at it myself for a Windows port, using the Linux version myself... I think I will wait for now...

Thanks again...