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

Add support for assigning materials to a tileset #394

Merged
merged 2 commits into from
Jul 13, 2023
Merged

Conversation

lilleyse
Copy link
Contributor

@lilleyse lilleyse commented Jul 12, 2023

Fixes #297

Merge #389 first

Adds support for assigning materials to a tileset. The assigned material overrides the existing glTF material and imagery layers.

CesiumTilesetPrim now inherits from UsdGeomGprim in order for materials to be assigned to it.

In a future PR we may create our own mdl shader nodes that allow people to use the tileset's textures, material properties, and imagery layers in their own materials. This would be needed for more complex materials like texture-based clipping.

There seems to be a Fabric population bug where assigning a material doesn't work unless you enable fabric scene delegate after load. So in order to test this with cesium.omniverse.dev you'll need to set app.useFabricSceneDelegate = false.

material-assignment.mp4

Base automatically changed from imagery-refactor-part-2 to main July 12, 2023 22:25
@lilleyse lilleyse merged commit 286362c into main Jul 13, 2023
3 checks passed
@lilleyse lilleyse deleted the tileset-materials branch July 13, 2023 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Editable / Customisable tileset materials
2 participants