#[non_exhaustive]pub struct FbxCamera {Show 17 fields
pub position: Option<[f32; 3]>,
pub interest_position: Option<[f32; 3]>,
pub up_vector: Option<[f32; 3]>,
pub projection_type: Option<i32>,
pub field_of_view: Option<f32>,
pub field_of_view_x: Option<f32>,
pub field_of_view_y: Option<f32>,
pub focal_length: Option<f32>,
pub near_plane: Option<f32>,
pub far_plane: Option<f32>,
pub aspect_width: Option<f32>,
pub aspect_height: Option<f32>,
pub film_width: Option<f32>,
pub film_height: Option<f32>,
pub film_aspect_ratio: Option<f32>,
pub aperture_mode: Option<i32>,
pub ortho_zoom: Option<f32>,
}fbx-reader or fbx-writer only.Expand description
An FBX Camera node attribute.
Every field is optional because FBX omits any property left at its class
default. Fields are limited to those that actually occur across the ufbx
corpus; angles are in degrees and distances in the document’s own units.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.position: Option<[f32; 3]>Eye position, in world space rather than relative to the node.
interest_position: Option<[f32; 3]>Point the camera looks at, in the same space as Self::position.
up_vector: Option<[f32; 3]>Up vector.
projection_type: Option<i32>CameraProjectionType: 0 perspective, 1 orthographic.
field_of_view: Option<f32>Diagonal field of view, in degrees.
field_of_view_x: Option<f32>Horizontal field of view, in degrees.
field_of_view_y: Option<f32>Vertical field of view, in degrees.
focal_length: Option<f32>Focal length in millimetres.
near_plane: Option<f32>Near clip distance.
far_plane: Option<f32>Far clip distance.
aspect_width: Option<f32>Render aperture width in pixels.
aspect_height: Option<f32>Render aperture height in pixels.
film_width: Option<f32>Film-back width in inches, not millimetres.
This is the sensor size, and a consumer needs it with
Self::focal_length to reach a field of view: Blender computes
sensor_width = film_width * 25.4 and falls back to its own 32 mm
default when the property is absent, which silently changes the framing
of every camera in the document.
film_height: Option<f32>Film-back height in inches.
film_aspect_ratio: Option<f32>Film-back aspect ratio, film_width / film_height.
aperture_mode: Option<i32>ApertureMode: which of the aperture and field-of-view properties the
authoring tool treats as authoritative when they disagree.
ortho_zoom: Option<f32>Orthographic zoom, meaningful when Self::projection_type is 1.