hdBlackbird
hdBlackbird copied to clipboard
Sourcing Instancer primvars
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.
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?
@dedoardo after I am done with building houdini artifacts I am going to have a look into this PR :)