Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2819)

Issue 6111052: Fisheye Panorama for Cycles (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by dfelinto
Modified:
11 years, 12 months ago
Reviewers:
brechtvl, bf-codereview
Base URL:
https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Visibility:
Public.

Description

- created a new camera type (panorama) - implemented the fisheye panorama ... and opened the room for the cylindrical panorama. I didn't implement cylindrical yet because I'm still thinking whether or not we need it. It's easy to rebuild a cylindrical panorama from a equirectangular (although you will be rendering more than you need in the final image). Apart from the open hooks for the cylinder panorama (and the lack of description for the rna props), the patch should be good to go (2.64). And in the near future we may want to have properties to set the angles for the equirectangular too. So I'm not so sure panorama_fov is a good name for the fisheye fov. Anyhoo, I look forward for the review. There are probably a few things done in a non efficient-cycles way. (fisheye_to_direction could likely be optimized as well, I first wanted to make sure my math was correct though). For the UI I set 10 to 360 as soft values and 10 to 3600 as hard values. edit: commited on rev. 46287

Patch Set 1 #

Total comments: 2

Patch Set 2 : removing cylinder, fix ortographic and fix differential check #

Patch Set 3 : all the issues addressed now. good to go? #

Total comments: 1

Patch Set 4 : last issues addressed (+ fix in readfile from last patch). planning to commit tmw after trunk is ope #

Patch Set 5 : photographic fisheye (equisolid) implemented too. probably need to rename some defines/tooltip/ui #

Total comments: 7

Patch Set 6 : addressing issues pointed by brecht (code cleanup will come later, no meld atm) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -44 lines) Patch
intern/cycles/app/cycles_xml.cpp View 1 2 3 4 5 1 chunk +16 lines, -2 lines 0 comments Download
intern/cycles/blender/addon/enums.py View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
intern/cycles/blender/addon/properties.py View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
intern/cycles/blender/blender_camera.cpp View 1 2 3 4 5 6 chunks +45 lines, -5 lines 0 comments Download
intern/cycles/kernel/kernel_camera.h View 1 2 3 4 5 3 chunks +31 lines, -13 lines 0 comments Download
intern/cycles/kernel/kernel_montecarlo.h View 1 2 3 4 5 1 chunk +52 lines, -0 lines 0 comments Download
intern/cycles/kernel/kernel_path.h View 1 2 3 4 5 1 chunk +6 lines, -1 line 0 comments Download
intern/cycles/kernel/kernel_types.h View 1 2 3 4 5 3 chunks +19 lines, -2 lines 0 comments Download
intern/cycles/render/camera.h View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
intern/cycles/render/camera.cpp View 1 2 3 4 5 4 chunks +21 lines, -1 line 0 comments Download
release/scripts/startup/bl_ui/properties_data_camera.py View 1 2 3 4 5 1 chunk +10 lines, -4 lines 0 comments Download
source/blender/blenkernel/intern/camera.c View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
source/blender/blenlib/intern/uvproject.c View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
source/blender/blenloader/intern/readfile.c View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
source/blender/collada/CameraExporter.cpp View 1 2 3 4 5 3 chunks +11 lines, -5 lines 0 comments Download
source/blender/makesdna/DNA_camera_types.h View 1 2 3 4 5 3 chunks +3 lines, -2 lines 0 comments Download
source/blender/makesrna/intern/rna_camera.c View 1 2 3 4 5 2 chunks +1 line, -6 lines 0 comments Download
source/blender/modifiers/intern/MOD_uvproject.c View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15
dfelinto
12 years ago (2012-04-25 05:11:20 UTC) #1
brechtvl
Looks good, but there's still a bunch of code missing for adding panorama as a ...
12 years ago (2012-04-25 08:38:39 UTC) #2
dfelinto
"It needs a version patch, changes in blender internal, maybe 3d view drawing and any ...
12 years ago (2012-04-25 18:26:16 UTC) #3
dfelinto
removing cylinder, fix ortographic and fix differential check
12 years ago (2012-04-25 18:26:57 UTC) #4
brechtvl
Hi, On 2012/04/25 18:26:16, dfelinto wrote: > (1) get rid of 'use_panorama' leaving the panorama ...
12 years ago (2012-04-25 18:31:51 UTC) #5
dfelinto
all the issues addressed now. good to go?
12 years ago (2012-04-27 04:25:09 UTC) #6
brechtvl
Looks good to commit, with these two small tweaks: In collada/CameraExporter.cpp, it makes a bit ...
12 years ago (2012-04-27 10:29:53 UTC) #7
dfelinto
last issues addressed (+ fix in readfile from last patch). planning to commit tmw after ...
12 years ago (2012-04-27 14:38:30 UTC) #8
brechtvl
LGTM. :)
12 years ago (2012-04-27 14:42:56 UTC) #9
dfelinto
photographic fisheye (equisolid) implemented too. probably need to rename some defines/tooltip/ui
11 years, 12 months ago (2012-05-03 15:17:35 UTC) #10
dfelinto
additional notes. the main issues I have are: 1) how to name the modes 2) ...
11 years, 12 months ago (2012-05-03 15:34:30 UTC) #11
brechtvl
Some quick comments on the code, don't have an opinion on the FOV/sensor yet. http://codereview.appspot.com/6111052/diff/25001/intern/cycles/kernel/kernel_camera.h ...
11 years, 12 months ago (2012-05-03 15:46:12 UTC) #12
dfelinto
addressing issues pointed by brecht (code cleanup will come later, no meld atm)
11 years, 12 months ago (2012-05-04 07:04:13 UTC) #13
dfelinto
http://codereview.appspot.com/6111052/diff/25001/intern/cycles/kernel/kernel_montecarlo.h File intern/cycles/kernel/kernel_montecarlo.h (right): http://codereview.appspot.com/6111052/diff/25001/intern/cycles/kernel/kernel_montecarlo.h#newcode256 intern/cycles/kernel/kernel_montecarlo.h:256: return make_float3(0.f); It's actually not white, but the background ...
11 years, 12 months ago (2012-05-04 07:05:20 UTC) #14
dfelinto
11 years, 12 months ago (2012-05-04 16:24:15 UTC) #15
committed on rev. 46287. I introduced a small regression issue though.

I don't know to access cycles data in readfile.c and I decided to change the
default value for the panorama type enum to Fisheye Equisolid. So a file that
had 'use_panorama' will now have a panorama camera BUT not the equirectangular
one. Should that be a concern?

Brecht thanks for all the help with the review.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b