Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/camera.cpp
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | Camera::Camera() | ||||
| use_motion = false; | use_motion = false; | ||||
| aperture_ratio = 1.0f; | aperture_ratio = 1.0f; | ||||
| type = CAMERA_PERSPECTIVE; | type = CAMERA_PERSPECTIVE; | ||||
| panorama_type = PANORAMA_EQUIRECTANGULAR; | panorama_type = PANORAMA_EQUIRECTANGULAR; | ||||
| fisheye_fov = M_PI_F; | fisheye_fov = M_PI_F; | ||||
| fisheye_lens = 10.5f; | fisheye_lens = 10.5f; | ||||
| latitude_min = -M_PI_2_F; | |||||
| latitude_max = M_PI_2_F; | |||||
| longitude_min = -M_PI_F; | |||||
| longitude_max = M_PI_F; | |||||
| fov = M_PI_4_F; | fov = M_PI_4_F; | ||||
| sensorwidth = 0.036f; | sensorwidth = 0.036f; | ||||
| sensorheight = 0.024f; | sensorheight = 0.024f; | ||||
| nearclip = 1e-5f; | nearclip = 1e-5f; | ||||
| farclip = 1e5f; | farclip = 1e5f; | ||||
| ▲ Show 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | #endif | ||||
| /* anamorphic lens bokeh */ | /* anamorphic lens bokeh */ | ||||
| kcam->inv_aperture_ratio = 1.0f / aperture_ratio; | kcam->inv_aperture_ratio = 1.0f / aperture_ratio; | ||||
| /* panorama */ | /* panorama */ | ||||
| kcam->panorama_type = panorama_type; | kcam->panorama_type = panorama_type; | ||||
| kcam->fisheye_fov = fisheye_fov; | kcam->fisheye_fov = fisheye_fov; | ||||
| kcam->fisheye_lens = fisheye_lens; | kcam->fisheye_lens = fisheye_lens; | ||||
| kcam->equirectangular_range = make_float4(longitude_min - longitude_max, -longitude_min, | |||||
| latitude_min - latitude_max, -latitude_min + M_PI_2_F); | |||||
| /* sensor size */ | /* sensor size */ | ||||
| kcam->sensorwidth = sensorwidth; | kcam->sensorwidth = sensorwidth; | ||||
| kcam->sensorheight = sensorheight; | kcam->sensorheight = sensorheight; | ||||
| /* render size */ | /* render size */ | ||||
| kcam->width = width; | kcam->width = width; | ||||
| kcam->height = height; | kcam->height = height; | ||||
| ▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | return !((shuttertime == cam.shuttertime) && | ||||
| // (width == cam.width) && | // (width == cam.width) && | ||||
| // (height == cam.height) && | // (height == cam.height) && | ||||
| (viewplane == cam.viewplane) && | (viewplane == cam.viewplane) && | ||||
| (border == cam.border) && | (border == cam.border) && | ||||
| (matrix == cam.matrix) && | (matrix == cam.matrix) && | ||||
| (aperture_ratio == cam.aperture_ratio) && | (aperture_ratio == cam.aperture_ratio) && | ||||
| (panorama_type == cam.panorama_type) && | (panorama_type == cam.panorama_type) && | ||||
| (fisheye_fov == cam.fisheye_fov) && | (fisheye_fov == cam.fisheye_fov) && | ||||
| (fisheye_lens == cam.fisheye_lens)); | (fisheye_lens == cam.fisheye_lens) && | ||||
| (latitude_min == cam.latitude_min) && | |||||
| (latitude_max == cam.latitude_max) && | |||||
| (longitude_min == cam.longitude_min) && | |||||
| (longitude_max == cam.longitude_max)); | |||||
| } | } | ||||
| bool Camera::motion_modified(const Camera& cam) | bool Camera::motion_modified(const Camera& cam) | ||||
| { | { | ||||
| return !((motion == cam.motion) && | return !((motion == cam.motion) && | ||||
| (use_motion == cam.use_motion)); | (use_motion == cam.use_motion)); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines | |||||