Skip to content

[Feature] OpenUSD Meshes #971

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

yizhouzhao
Copy link

Add Support for Parsing Geometries from USD format.

This function supports reading geometries from the default prim of the USD stage.

Especially, for NVIDIA's : SimReady USD dataset

Examples

Chair
CornerRail
Fruit

Screenshot 2025-04-02 125025

References:

USD in Action
USD in Action Github

@yizhouzhao yizhouzhao changed the title Yizhou/usd [Feature] OpenUSD Meshes Apr 3, 2025
@YilingQiao
Copy link
Collaborator

Thank you very much! This is very helpful. Could you please add an example file in examples/rigid to demonstrate how to read a USD file?

@duburcqa
Copy link
Collaborator

duburcqa commented Apr 4, 2025

It would be nice to include the full asset and textures on Hugging Face asset repository. I will take care of it asap.

metallic_texture = mu.create_texture(orm_image[:, :, 2], None, "linear")
gs.logger.info(f"Get ORM texture: {orm_texture_path}")

mesh_surface.update_texture(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should be able to merge these 2 branches in one. Too many code duplications here. I mean, share init to None and mesh surface instantiation.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can share init to None but sharing mesh_surface.update_texture is not quite elegant

@duburcqa
Copy link
Collaborator

duburcqa commented Apr 4, 2025

Must add a unit test, and eventually an example script, to make sure it keeps working (based on Hugging Face assets repo, there is an example already).

@duburcqa
Copy link
Collaborator

I added the linked USD example files to Hugging Face genesis assets repository. Have a look to examples/rigid/convex_decomposition.py for an example on how to download them directly in some Python script.

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.

4 participants