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:

committed by
Sergey Sharybin

parent
193871ae7d
commit
4118c1b4e6
@@ -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':
|
||||
|
Reference in New Issue
Block a user