blender/intern
Dalai Felinto d7fbe03a8a Fisheye Camera for Cycles
For sample images see:
http://www.dalaifelinto.com/?p=399 (equisolid)
http://www.dalaifelinto.com/?p=389 (equidistant)

The 'use_panorama' option is now part of a new Camera type: 'Panorama'.
Created two other panorama cameras:

- Equisolid: most of lens in the market simulate this lens - e.g. Nikon, Canon, ...)
             this works as a real lens up to an extent. The final result takes the
             sensor dimensions into account also.
             .:. to simulate a Nikon DX2S with a 10.5mm lens do:
                 sensor: 23.7 x 15.7
                 fisheye lens: 10.5
                 fisheye fov: 180
                 render dimensions: 4288 x 2848

- Equidistant: this is not a real lens model. Although the old equidistant lens simulate
               this lens. The result is always as a circular fisheye that takes the whole sensor
               (in other words, it doesn't take the sensor into consideration).
               This is perfect for fulldomes ;)

               For the UI we have 10 to 360 as soft values and 10 to 3600 as hard values (because we can).


Reference material:
http://www.hdrlabs.com/tutorials/downloads_files/HDRI%20for%20CGI.pdf
http://www.bobatkins.com/photography/technical/field_of_view.html

Note, this is not a real simulation of the light path through the lens.
The ideal solution would be this:
https://graphics.stanford.edu/wikis/cs348b-11/Assignment3
http://www.graphics.stanford.edu/papers/camera/


Thanks Brecht for the fix, suggestions and code review.
Kudos for the dome community for keeping me stimulated on the topic since 2009 ;)

Patch partly implemented during lab time at VisGraf, IMPA - Rio de Janeiro.
2012-05-04 16:20:51 +00:00
..
audaspace Hopefully a fix for [#31097] glibc error when playing sound using BGE 2012-04-28 13:37:44 +00:00
boolop Add libMV and Scons support for MinGW-w64, patches by Caleb Joseph with slight modifications. 2012-04-24 12:57:58 +00:00
bsp style cleanup (mostly whitespace) 2012-02-27 10:35:39 +00:00
container style cleanup: changes to brace placement / newlines - for/while/if/switch 2012-04-28 06:31:57 +00:00
cycles Fisheye Camera for Cycles 2012-05-04 16:20:51 +00:00
decimation code cleanup: no functional changes 2012-04-07 12:37:15 +00:00
dualcon And another fix for r45669 to have dualcon compile on windows... 2012-04-16 10:22:28 +00:00
elbeem revert 45924, not a very clean solution, especially for external libraries and looks like -fpermissive is used in linux too 2012-04-24 16:14:23 +00:00
ffmpeg Blender should now compile fine with older FFmpeg libraries used. 2012-02-24 15:34:57 +00:00
ghost Renamed "fake" OpenGL identifiers. 2012-05-04 11:50:11 +00:00
guardedalloc style cleanup: changes to brace placement / newlines - for/while/if/switch 2012-04-28 06:31:57 +00:00
iksolver unify include guard defines, __$FILENAME__ 2012-02-17 18:59:41 +00:00
itasc OSX: buildfix for itask on 10.5.sdk 2011-11-15 21:55:07 +00:00
memutil unify include guard defines, __$FILENAME__ 2012-02-17 18:59:41 +00:00
mikktspace style cleanup: changes to brace placement / newlines - for/while/if/switch 2012-04-28 06:31:57 +00:00
moto Cycles: svn merge -r41225:41232 ^/trunk/blender 2011-10-24 22:32:00 +00:00
opennl Add libMV and Scons support for MinGW-w64, patches by Caleb Joseph with slight modifications. 2012-04-24 12:57:58 +00:00
smoke Fix compile error with msvc 2012-04-30 11:27:06 +00:00
string code cleanup: dont set the namespace in STR_String.h - 'using namespace std', since this is included in many places. 2012-02-23 02:36:30 +00:00
utfconv style cleanup: changes to brace placement / newlines - for/while/if/switch 2012-04-28 06:31:57 +00:00
CMakeLists.txt code cleanup: utfconv library had some quite confusing formatting, also cleared som warnings. 2012-04-12 02:15:33 +00:00
SConscript Add libMV and Scons support for MinGW-w64, patches by Caleb Joseph with slight modifications. 2012-04-24 12:57:58 +00:00