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

[USD] Integrate "tinyusdz" project branch "rendermesh-refactor" #5551

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

Conversation

tellypresence
Copy link
Contributor

@tellypresence tellypresence commented Apr 21, 2024

Closes #5547

Currently set for rendermesh-refactor branch commit 2140153 (26 Apr 2024)

Support loading

  • usd
  • usda
  • usdc
  • usdz
    models via 3rd party "tinyusdz" project branch rendermesh-refactor

@GitHubDragonFly
Copy link

@tellypresence if you could eventually create an exporter as well then I would be able to test this in my ASSIMP Viewer.

This viewer is relying on ASSIMPJS to use the ASSIMP library and convert models to glb2 format.

Even though I could create wasm file, loading of any USD format just cannot work properly.

@tellypresence
Copy link
Contributor Author

@GitHubDragonFly I'm not sure I understand. This PR adds importer for USD (.usd/.usda/.usdc/.usdz) format, which will be converted directly to assimp's internal format. It seems like ASSIMPJS should be agnostic about whatever format the original model file was, and rely solely on the assimp internal format, for export to glb(2)? i.e. shouldn't matter whether original model was .fbx, .dae, .gltf, .lwo, .3ds, .usd[a,c,z] etc

@GitHubDragonFly
Copy link

@tellypresence thank you for the explanation.

I thought that an exporter should be present for any format but that's just my ignorance.

From what you have stated, it appears that for as long as any model is imported into the assimp all that is required to export that model to GLB format is the assimp's GLTF Exporter.

ASSIMPJS is declared as an interface for the assimp library and it appears to be properly working for approximately 90% of the formats supported by the assimp library, which makes it agnostic about what model format is imported. The formats that never really worked for me are: BSP, JT, M3, WRL and now USD.

It could be either the ASSIMPJS or the ASSIMP that faults for these few formats, but this is not really an issue for me.

Since this USD support is still fresh, I am not sure if anyone has yet tried to export the imported USD model to GLTF and be successful at doing so.

I will not be looking to bother you any further about this.

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.

[USD] Support load .usd/.usda/.usdc/.usdz models via "tinyusdz" project (prototyping branch)
2 participants