-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
How to access material:binding relation from GeomSubset object? #50
Comments
If you are looking for materialBind info from GeomSubset, not GeomMesh, currently handy API is not provided. You may find it through generic Property field |
@syoyo |
You can contribute implementing similar API as done in GeomMesh to GeomSubset! FYI, there are two places you need to look
|
I'd like to contribute but I still can't understand how
And some indices from both |
👍
Yeah! Even me :-) It'd be first look at this: PixarAnimationStudios/OpenUSD#542 In basic GeomSuset configuration, |
I found out that
Then you want to access indices at In other words to access
I made a helper structure that firstly builds an array of polygon data in O(N) in my user code, then I can easily triangulate them into my custom mesh format If you first build a faces array then |
MaterialBinding API is finally supported in You can look into https://github.com/syoyo/tinyusdz/blob/dev/src/tydra/render-data.cc for how to use it. |
I didn't find an API to get material binding relation like from
GeomMesh
object withmaterialBinding
fieldThe text was updated successfully, but these errors were encountered: