How to set an attribute within RBDSolver Node

   591   3   1
User Avatar
Member
83 posts
Joined: Feb. 2020
Offline
Im confused about how you can set attributes dynamically within the RBD Bullet Solver. In the help card for geometrywrangle node I see the following:

This is a very powerful, low-level node that lets experts who are familiar with VEX tweak attributes using code.

This node corresponds to the Geometry VOP DOP, but uses a textual VEX snippet instead of a VOP network.
...It can access information from other geometry using attributes and VEX functions.

So I would think that if I set an attribute value like
v@Cd = set(1,0,0)
inside the geowrangle, that the color of my rigid bodies after the sim would be red. But this is not the case:



What's the correct what to update attributes within the bullet solver? For example, changing the color of the rbd based on its speed?

Attachments:
houdini_xIZSSUuNBn.gif (1.8 MB)
geowrangleissue.hip (562.1 KB)

User Avatar
Staff
750 posts
Joined: Oct. 2012
Offline
I think this is hitting a bug in the Vulkan viewport with displaying point Cd on packed fragment prims (bug #140561), but note that to get the Cd attribute transferred to the SOP output you'll need to add Cd to the list/pattern of attributes on the solver's Output -> Attribute Transfer parameter
User Avatar
Member
83 posts
Joined: Feb. 2020
Offline
Aha yes! Did not know about this. I now see the Cd attribute in the output geometry!
And yes looks like some kind of bug bc the color does not display in the viewport.

cwhite
I think this is hitting a bug in the Vulkan viewport with displaying point Cd on packed fragment prims (bug #140561), but note that to get the Cd attribute transferred to the SOP output you'll need to add Cd to the list/pattern of attributes on the solver's Output -> Attribute Transfer parameter
Edited by wyhinton1 - Aug. 28, 2024 17:35:55
User Avatar
Staff
750 posts
Joined: Oct. 2012
Offline
The bug with displaying Cd on packed fragments is fixed for 20.5.348
  • Quick Links