Cycles: Adding field-of-view options to the equirectangular panorama camera

This patch adds the option to set minimum/maximum latitude/longitude values for
the equirectangular panorama camera in Cycles, as discussed in T34400.

The separate functions in kernel_projection.h are needed because the regular
ones are also used as helper functions for environment map sampling.

Reviewers: #cycles, sergey

Reviewed By: #cycles, sergey

Subscribers: dingto, sergey, brecht

Differential Revision: https://developer.blender.org/D960
This commit is contained in:
Lukas Stockner
2015-01-14 23:14:45 +05:00
committed by Sergey Sharybin
parent 193871ae7d
commit 4118c1b4e6
7 changed files with 83 additions and 9 deletions

View File

@@ -98,6 +98,14 @@ class DATA_PT_lens(CameraButtonsPanel, Panel):
row = layout.row()
row.prop(ccam, "fisheye_lens", text="Lens")
row.prop(ccam, "fisheye_fov")
elif ccam.panorama_type == 'EQUIRECTANGULAR':
row = layout.row()
sub = row.column(align=True)
sub.prop(ccam, "latitude_min");
sub.prop(ccam, "latitude_max");
sub = row.column(align=True)
sub.prop(ccam, "longitude_min");
sub.prop(ccam, "longitude_max");
elif engine == 'BLENDER_RENDER':
row = col.row()
if cam.lens_unit == 'MILLIMETERS':