Skip to content

GLTFLoader: Node does not support multiple references #14875

@donmccurdy

Description

@donmccurdy

Per KhronosGroup/glTF#1433, a single node can reference up to 1 mesh, 1 camera, AND 1 light, not OR. Our current implementation picks one and ignores the others. So if a node references a camera and a light, we should just turn it into a THREE.Group. Also note from that thread that a node referencing a mesh could also be a joint, in which case we need to output Bone > Mesh.

Example: https://github.com/KhronosGroup/glTF/files/2317078/mesh-camera.zip

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions