Simple3D
Search Results for

    Show / Hide Table of Contents

    Class GltfReader

    Reads a bounded binary glTF 2.0 / VRM subset without external resources or image codecs.

    Inheritance
    object
    GltfReader
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Simple3D.Core
    Assembly: Simple3D.Core.dll
    Syntax
    public static class GltfReader

    Fields

    | Edit this page View Source

    MaximumFileSize

    Maximum GLB length, including JSON, binary data and padding.

    Declaration
    public const int MaximumFileSize = 67108864
    Field Value
    Type Description
    int
    | Edit this page View Source

    MaximumHierarchyDepth

    Maximum node hierarchy depth, leaving room for scene and primitive groups.

    Declaration
    public const int MaximumHierarchyDepth = 60
    Field Value
    Type Description
    int
    | Edit this page View Source

    MaximumNodes

    Maximum number of nodes in the asset.

    Declaration
    public const int MaximumNodes = 16384
    Field Value
    Type Description
    int

    Methods

    | Edit this page View Source

    Read(Stream)

    Reads a GLB with one JSON and one BIN chunk, leaving the stream open.

    Declaration
    public static GltfModel Read(Stream glb)
    Parameters
    Type Name Description
    Stream glb
    Returns
    Type Description
    GltfModel
    Remarks

    Supports triangles, base color, UV0, vertex colors, normals, node TRS/matrices and skins. Supports skinned morph targets and VRM expressions. Rigid morphs, animations, cameras, lights, PBR, texture transforms, nontriangle modes and influences beyond JOINTS_0/WEIGHTS_0 are ignored. Alpha is opaque. External/data URIs, sparse accessors outside morph targets and required geometry compression are rejected.

    Exceptions
    Type Condition
    InvalidDataException

    Malformed, oversized or unsupported input.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX