-
Notifications
You must be signed in to change notification settings - Fork 202
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
Allow recursive compute with proxy accessor #926
Allow recursive compute with proxy accessor #926
Conversation
|
||
namespace MAYAUSD_NS_DEF { | ||
|
||
/*! \class Id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have been starting to use "version" numbers in base proxy shape and VP2RenderDelegate. Tracking what different int's and long's mean can be tricky, so we are bringing this little class to solve it.
@@ -50,6 +51,94 @@ | |||
|
|||
namespace MAYAUSD_NS_DEF { | |||
|
|||
/*! /brief Scoped object setting up compute context for accessor | |||
|
|||
Proxy accessor supports nested compute that allows injecting DG dependencies to USD. More |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an extra space before "Proxy"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the other lines have only 3 spaces.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
lib/mayaUsd/nodes/proxyAccessor.cpp
Outdated
} | ||
} | ||
|
||
//! \brief Construct compute context for both inputs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment cut off?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
…ve_compute_with_proxy_accessor
The proxy accessor is allowing DG dependencies between Maya's data model and USD. This means we can connect input from a DG node to proxy shape to drive USD attributes AND we can connect the proxy shape outputs to make USD attributes drive other DG nodes.
This also allows injecting DG dependencies between two USD attributes, like for example creating parent constraint between two prims. In order to compute such a setup correctly, we need to allow nested / recursive compute with the proxy accessor.
This PR is doing exactly that and an example of such DG setup is provided as a regression test.