Struct ufbx.ufbx_camera
Camera attached to a ufbx_node
Assembly: ufbxWrapper.dll
Syntax
public struct ufbx.ufbx_camera
Fields
_anonymous_1
Camera attached to a ufbx_node
Declaration
public ufbx.ufbx_camera._anonymous_1_struct _anonymous_1
Field Value
Declaration
public ufbx.ufbx_aperture_format aperture_format
Field Value
aperture_mode
Declaration
public ufbx.ufbx_aperture_mode aperture_mode
Field Value
aperture_size_inch
Aperture/film gate size in inches
Declaration
public ufbx.ufbx_vec2 aperture_size_inch
Field Value
aspect_mode
Advanced properties used to compute the above
Declaration
public ufbx.ufbx_aspect_mode aspect_mode
Field Value
aspect_ratio
Aspect ratio of the camera.
Declaration
public float aspect_ratio
Field Value
far_plane
Far plane of the frustum in units from the camera.
Declaration
Field Value
field_of_view_deg
Horizontal/vertical field of view in degrees
Valid if projection_mode == UFBX_PROJECTION_MODE_PERSPECTIVE
.
Declaration
public ufbx.ufbx_vec2 field_of_view_deg
Field Value
field_of_view_tan
Component-wise tan(field_of_view_deg)
, also represents the size of the
proection frustum slice at distance of 1.
Valid if projection_mode == UFBX_PROJECTION_MODE_PERSPECTIVE
.
Declaration
public ufbx.ufbx_vec2 field_of_view_tan
Field Value
film_size_inch
Declaration
public ufbx.ufbx_vec2 film_size_inch
Field Value
focal_length_mm
Focal length in millimeters
Declaration
public float focal_length_mm
Field Value
gate_fit
Declaration
public ufbx.ufbx_gate_fit gate_fit
Field Value
near_plane
Near plane of the frustum in units from the camera.
Declaration
Field Value
orthographic_extent
Orthographic camera extents.
Valid if projection_mode == UFBX_PROJECTION_MODE_ORTHOGRAPHIC
.
Declaration
public float orthographic_extent
Field Value
orthographic_size
Orthographic camera size.
Valid if projection_mode == UFBX_PROJECTION_MODE_ORTHOGRAPHIC
.
Declaration
public ufbx.ufbx_vec2 orthographic_size
Field Value
projection_axes
Coordinate system that the projection uses.
FBX saves cameras with +X forward and +Y up, but you can override this using
ufbx_load_opts.target_camera_axes
and it will be reflected here.
Declaration
public ufbx.ufbx_coordinate_axes projection_axes
Field Value
projection_mode
Projection mode (perspective/orthographic).
Declaration
public ufbx.ufbx_projection_mode projection_mode
Field Value
projection_plane
Size of the projection plane at distance 1.
Equal to field_of_view_tan
if perspective, orthographic_size
if orthographic.
Declaration
public ufbx.ufbx_vec2 projection_plane
Field Value
resolution
Render resolution, either in pixels or arbitrary units, depending on above
Declaration
public ufbx.ufbx_vec2 resolution
Field Value
resolution_is_pixels
If set to true
, resolution
represents actual pixel values, otherwise
it's only useful for its aspect ratio.
Declaration
public bool resolution_is_pixels
Field Value
squeeze_ratio
Declaration
public float squeeze_ratio
Field Value
Properties
element
Declaration
public ufbx.ufbx_element element { get; }
Property Value
element_id
Declaration
public uint element_id { get; }
Property Value
instances
Declaration
public ufbx.ufbx_node_list instances { get; }
Property Value
name
Declaration
public ufbx.ufbx_string name { get; }
Property Value
props
Declaration
public ufbx.ufbx_props props { get; }
Property Value
typed_id
Declaration
public uint typed_id { get; }
Property Value