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 USD mesh loader to MaterialX tools #2012

Open
ld-kerley opened this issue Sep 12, 2024 · 2 comments
Open

Add USD mesh loader to MaterialX tools #2012

ld-kerley opened this issue Sep 12, 2024 · 2 comments

Comments

@ld-kerley
Copy link
Contributor

It would be super handy to be able to load in USD Meshes in to MaterialXGraphEditor and MaterialXViewer.

I am imagining this to be an optional build time dependency, as we don't want to require all users of MaterialX to provide OpenUSD.

The OpenUSD file format is complex, and I would propose restricting this to just loading a meshes initially, this could potentially be expanded in the future.

Adding support for loading OpenUSD meshes, would potentially provide a route to loadin ga wide number of file formats, if those are loadable by the OpenUSD.

@jstone-lucasfilm
Copy link
Member

This is a great suggestion, @ld-kerley, and for completeness I'll note that there are two potential paths forward:

  1. Adding geometric USD support through an optional dependency on OpenUSD.
  2. Adding geometric USD support through an optional dependency on TinyUSDZ.

The author of TinyUSDZ has already begun an implementation of option (2) in a fork of MaterialX, and we can try out this option here:

https://github.com/lighttransport/materialx

@jo-chemla
Copy link

jo-chemla commented Oct 17, 2024

After loading meshes, could these USD loaders also be used to import materials defined within a usd scene file to MaterialXGraphEditor and MaterialXViewer?

To my understanding this is supported via the UsdMtlx plugin/library. Also interesting slides detailing MaterialX support in USD Hydra from the MaterialX Virtual Town Hall at ASWF Open Source Days 2023 listed in the official materialx third-party support section.

Or should these materialx definitions be extracted from the usd file in order to be imported to the materialx tools suite for the moment?

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

No branches or pull requests

3 participants