Skip to content

Extra Nodes get Created per object in a glb #9

Description

@johanos

image

When models are getting imported their hierarchy is getting created like above.
where the water bottle only defines one submesh called water bottle
image
So instead of loading the gltf like we do know.

WaterBottle
    -WaterBottleEmptyNode
        -WaterBottleMesh

we should do this

WaterBottle
    -WaterBottleMesh

because to access the materials of these nodes, we right now have to do something like

node.childNodes[0].childNodes[0].geometry?.firstMaterial

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions