Lightweight FBX Importer
Search Results for

    Show / Hide Table of Contents

    Struct ufbx.ufbx_camera

    Camera attached to a ufbx_node

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: ufbxWrapper
    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
    Type Description
    ufbx.ufbx_camera._anonymous_1_struct

    aperture_format

    Declaration
    public ufbx.ufbx_aperture_format aperture_format
    Field Value
    Type Description
    ufbx.ufbx_aperture_format

    aperture_mode

    Declaration
    public ufbx.ufbx_aperture_mode aperture_mode
    Field Value
    Type Description
    ufbx.ufbx_aperture_mode

    aperture_size_inch

    Aperture/film gate size in inches

    Declaration
    public ufbx.ufbx_vec2 aperture_size_inch
    Field Value
    Type Description
    ufbx.ufbx_vec2

    aspect_mode

    Advanced properties used to compute the above

    Declaration
    public ufbx.ufbx_aspect_mode aspect_mode
    Field Value
    Type Description
    ufbx.ufbx_aspect_mode

    aspect_ratio

    Aspect ratio of the camera.

    Declaration
    public float aspect_ratio
    Field Value
    Type Description
    float

    far_plane

    Far plane of the frustum in units from the camera.

    Declaration
    public float far_plane
    Field Value
    Type Description
    float

    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
    Type Description
    ufbx.ufbx_vec2

    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
    Type Description
    ufbx.ufbx_vec2

    film_size_inch

    Film size in inches

    Declaration
    public ufbx.ufbx_vec2 film_size_inch
    Field Value
    Type Description
    ufbx.ufbx_vec2

    focal_length_mm

    Focal length in millimeters

    Declaration
    public float focal_length_mm
    Field Value
    Type Description
    float

    gate_fit

    Declaration
    public ufbx.ufbx_gate_fit gate_fit
    Field Value
    Type Description
    ufbx.ufbx_gate_fit

    near_plane

    Near plane of the frustum in units from the camera.

    Declaration
    public float near_plane
    Field Value
    Type Description
    float

    orthographic_extent

    Orthographic camera extents. Valid if projection_mode == UFBX_PROJECTION_MODE_ORTHOGRAPHIC.

    Declaration
    public float orthographic_extent
    Field Value
    Type Description
    float

    orthographic_size

    Orthographic camera size. Valid if projection_mode == UFBX_PROJECTION_MODE_ORTHOGRAPHIC.

    Declaration
    public ufbx.ufbx_vec2 orthographic_size
    Field Value
    Type Description
    ufbx.ufbx_vec2

    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
    Type Description
    ufbx.ufbx_coordinate_axes

    projection_mode

    Projection mode (perspective/orthographic).

    Declaration
    public ufbx.ufbx_projection_mode projection_mode
    Field Value
    Type Description
    ufbx.ufbx_projection_mode

    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
    Type Description
    ufbx.ufbx_vec2

    resolution

    Render resolution, either in pixels or arbitrary units, depending on above

    Declaration
    public ufbx.ufbx_vec2 resolution
    Field Value
    Type Description
    ufbx.ufbx_vec2

    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
    Type Description
    bool

    squeeze_ratio

    Anamoprhic stretch ratio

    Declaration
    public float squeeze_ratio
    Field Value
    Type Description
    float

    Properties

    element

    Declaration
    public ufbx.ufbx_element element { get; }
    Property Value
    Type Description
    ufbx.ufbx_element

    element_id

    Declaration
    public uint element_id { get; }
    Property Value
    Type Description
    uint

    instances

    Declaration
    public ufbx.ufbx_node_list instances { get; }
    Property Value
    Type Description
    ufbx.ufbx_node_list

    name

    Declaration
    public ufbx.ufbx_string name { get; }
    Property Value
    Type Description
    ufbx.ufbx_string

    props

    Declaration
    public ufbx.ufbx_props props { get; }
    Property Value
    Type Description
    ufbx.ufbx_props

    typed_id

    Declaration
    public uint typed_id { get; }
    Property Value
    Type Description
    uint
    In this article
    Back to top Generated by DocFX