Class GltfReader
Reads a bounded binary glTF 2.0 / VRM subset without external resources or image codecs.
Inherited Members
Namespace: Simple3D.Core
Assembly: Simple3D.Core.dll
Syntax
public static class GltfReader
Fields
| Edit this page View SourceMaximumFileSize
Maximum GLB length, including JSON, binary data and padding.
Declaration
public const int MaximumFileSize = 67108864
Field Value
| Type | Description |
|---|---|
| int |
MaximumHierarchyDepth
Maximum node hierarchy depth, leaving room for scene and primitive groups.
Declaration
public const int MaximumHierarchyDepth = 60
Field Value
| Type | Description |
|---|---|
| int |
MaximumNodes
Maximum number of nodes in the asset.
Declaration
public const int MaximumNodes = 16384
Field Value
| Type | Description |
|---|---|
| int |
Methods
| Edit this page View SourceRead(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. |