Blender V5.3
blender::CameraParams Struct Reference

#include <BKE_camera.h>

Public Attributes

bool is_ortho = false
bool is_flipped_x = false
float lens = 0.0f
float ortho_scale = 1.0f
float zoom = 1.0f
float roll = 0.0f
float shiftx = 0.0f
float shifty = 0.0f
float offsetx = 0.0f
float offsety = 0.0f
float sensor_x = 0.0f
float sensor_y = 0.0f
int sensor_fit = 0
bool use_aspect_override = false
float aspect_override = 0.0f
float clip_start = 0.1f
float clip_end = 100.0f
float ycor = 0.0f
float viewdx = 0.0f
float viewdy = 0.0f
rctf viewplane
float winmat [4][4] = {}

Detailed Description

Camera Parameters:

Intermediate struct for storing camera parameters from various sources, to unify computation of view-plane, window matrix, ... etc.

Definition at line 53 of file BKE_camera.h.

Member Data Documentation

◆ aspect_override

float blender::CameraParams::aspect_override = 0.0f

◆ clip_end

◆ clip_start

◆ is_flipped_x

◆ is_ortho

◆ lens

◆ offsetx

float blender::CameraParams::offsetx = 0.0f

◆ offsety

float blender::CameraParams::offsety = 0.0f

◆ ortho_scale

◆ roll

◆ sensor_fit

◆ sensor_x

◆ sensor_y

◆ shiftx

◆ shifty

◆ use_aspect_override

bool blender::CameraParams::use_aspect_override = false

Aspect override: the aspect (y-over-x) of the camera frame, used to resolve the sensor fit and framing in place of the view rect.

Only set when the frame is drawn inside the view rect instead of filling it, e.g. BKE_camera_params_from_view3d for the camera view.

Warning
Never set this for rendering, it would change the render output.

Definition at line 81 of file BKE_camera.h.

Referenced by blender::BKE_camera_params_compute_viewplane(), blender::BKE_camera_params_from_view3d(), and blender::render::hydra::gf_camera().

◆ viewdx

float blender::CameraParams::viewdx = 0.0f

◆ viewdy

float blender::CameraParams::viewdy = 0.0f

Definition at line 91 of file BKE_camera.h.

Referenced by blender::BKE_camera_params_compute_viewplane().

◆ viewplane

◆ winmat

◆ ycor

float blender::CameraParams::ycor = 0.0f

Definition at line 89 of file BKE_camera.h.

Referenced by blender::BKE_camera_params_compute_viewplane().

◆ zoom


The documentation for this struct was generated from the following file: