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

Sourcing Instancer primvars #250

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

Conversation

dedoardo
Copy link
Contributor

Description
This patch forward primvars authored on a point instancer to a additional set of attributes which takes precedence over the geometry's attribute set and can be indexed by each object.
So far we are only forwarding attributes with per-instance interpolation as HdInterpolationInstance seems to be the only one available. Since the core patch supports any interpolation, is it possible to extract primvars with different interpolation from the instancer in Hydra? If I am reading correctly, the USD documentation for point instancer mentions that it's possible for primvars to have different interpolation.

It is the glue code for this coreBlackbird PR

Changes

  • Registering attribute sources for the instanced mesh attribute set
  • Registering the instanced attribute sets in the scene

Todo
Doing the same thing for volumes is straightforward, but I am investigating primvar overrides to figure out if they should go through an InstanceGroup.

@dedoardo dedoardo changed the title Instancer primvar Sourcing Instancer primvars Jul 20, 2021
@dedoardo
Copy link
Contributor Author

I think we should skip creating an instance group if there are no primvars to be sourced.
Maybe if the instance group has size one we should merge the attributes with the geometry attribute set?

@bareya
Copy link
Collaborator

bareya commented Aug 6, 2021

@dedoardo after I am done with building houdini artifacts I am going to have a look into this PR :)

@dedoardo dedoardo added the enhancement New feature or request label Aug 6, 2021
@dedoardo dedoardo self-assigned this Aug 6, 2021
@dedoardo dedoardo added this to In Progress in HdBlackbird Development via automation Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants