-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Description
Given a set of gltf input LODs that have the same materials for each LOD:
- the images get packed multiple times (once per GLTF file), even though they could be packed just once if they're identical
- the merged GLTF json will contain redundant material information
- the exported GLB will as a result embed the same data (textures/images etc) once per LOD level, whereas it should really all share the one set of materials/textures/images
Some possible solutions:
- Add a flag to WindowsMRAssetConverter to specify whether the materials are shared between LODs, and if so, make the merger avoid adding new resources.
- Detect duplicate resources in the merger by binary comparision, and then resolve/remap all necessary places in the resulting GLTF json. Note that this wouldn't fix the issue with doing packing once per GLTF input file. Pack the images/textures after merging, assuming the merge step has eliminated all duplicates.
Metadata
Metadata
Assignees
Labels
No labels