Search - User list
Full Version: Extract transform from rbdcarfollowpath and re-apply it back
Root » Houdini Indie and Apprentice » Extract transform from rbdcarfollowpath and re-apply it back
gmarc
My goal is to extract the transformation (position and rotation) of the car pieces that go into a RBDCARFOLLOWPATH simulation. So I just want 6 points (body, steering wheel and the 4 wheels with a transformation attribute). I will then apply this in LOPs to my fully textured USD car model using a "Transform by SOP Points" node. The second part in LOPs is working fine, but I the extraction part in SOPs makes me some headache: in the attached hip file, I can apply the transformation from the points back to the original car model. The positions and orientations of all pieces are correct, but the wheels spin like crazy around a wrong axis.

As the RBDCARRIG spits out packed geo, I'm using the intrinsic attribute "packedfulltransform" and set P to {0, 0, 0}. This works fine for everything but the rotation axis of the wheels... Please have a look at the little example hip file.
npetit
You need to first apply the inverse of the packed transform of the packed geo coming from the RBD Car Rig in order to account for the offsets.

Here's an updated hipfile with the fix.
gmarc
Many thanks for the help, that's it! I'm glad I was not too far away from the correct solution :-)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB