Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading GLB - assets pipeline materials mapping is incorrect #1268

Open
Maksims opened this issue Feb 19, 2025 · 1 comment
Open

Uploading GLB - assets pipeline materials mapping is incorrect #1268

Maksims opened this issue Feb 19, 2025 · 1 comment
Labels
area: asset import bug Something isn't working

Comments

@Maksims
Copy link
Collaborator

Maksims commented Feb 19, 2025

There is this specific GBL, which renders correctly in model viewer and other places, but when uploaded in Editor, has wrong material mappings: all meshes refer to the same material.
While correct material assets are still created.

File: https://github.com/Breush/lava-assets/blob/master/models/sponza.glb

Image

Image

@mvaligursky mvaligursky added bug Something isn't working area: asset import labels Feb 24, 2025
@mvaligursky
Copy link

This seems to be happening only when using render components (Import Hierarchy asset import setting is on). With the model component, this works correctly.

We internally generate scene json file based on glb hierarchy, with links to materials - this is then used to construct a template with render components linked and also their materials assigned. I wonder if some search by material name takes place somewhere there - as all materials seem to have the same name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: asset import bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants