Jump to content
Sign in to follow this  
Heraklit

Transform RBD by Transform Matrix

Recommended Posts

Hey there, 

 

I attached a simple file hoping someone of you has a quick idea on how to fix that. So basically I`m trying to run some RBD on a transformed collision object and then transform the RBD part pack to a non-transformed version of the collision geo. ATM I have to do some extra manual stuff to fit it but that shouldnt be necessary I guess. The point here is that I wanna avoid workflows involving the point deform on purpose. 

Thanks guys

 

 

transform.hipnc

Share this post


Link to post
Share on other sites

Hey,

if i understood you correctly you can just use a transform Sop. i.e. if you rotate a collision geo 30 degrees around Z axis before simulation, then after simulation just rotate all simulated geos back -30 degrees around the same axis.

Share this post


Link to post
Share on other sites

Much simpler, good direction :) I used a transform sop, placed a reference copy of it under the sim and ticked on "invert transform". Works for my scenario but still would like to know how to get it working procedural with transform matrixes. 

 

Lets say I have a couple of shots and a lot of geometry. I dont wanna place a tranform every time, do a -centroid, adjust the rotation manually, do a reference copy undo the -centroid expression to avoid jiggling etc. 

 

Edited by Heraklit

Share this post


Link to post
Share on other sites
2 hours ago, Heraklit said:

Lets say I have a couple of shots and a lot of geometry. I dont wanna place a tranform every time, do a -centroid, adjust the rotation manually, do a reference copy undo the -centroid expression to avoid jiggling etc. 

 

If you have a non-transformed version of collision geo from the very beginning you can make a pack primitive from it and then transform. You get transform matrix for free from primitive intrinsic "packedfulltransform".

transform_01.hipnc

Share this post


Link to post
Share on other sites

It's transformed Geo and it's also animated. That's why I want it back to origin first, do some stuff on it and get everything back. I totally forgot about I trinsics to be honest 

Edited by Heraklit

Share this post


Link to post
Share on other sites

What he does in that video is more or less what I`m doing ATM. Just his aproach isn`t too procedural since he is choosing points for vectors manually. So I tried the primintrinsics but get pretty much the same result as with creating the matrix from polygons. I can push the geo back to 0. Its just not negating the rotation as well.

 

So, added this file again. ran the sim on the inverted transform version of the collision geometry. then I`m trying to apply the stored matrix value on the RBD. This is doing something but defenitely its not getting the rotations right. 

 

 

 

 

transform.hipnc

Edited by Heraklit

Share this post


Link to post
Share on other sites

Take a look at this file. I didn't understand your logic with neighbor vop but anyway in green Attribute VOP i fixed some things.

transform_v2_01.hipnc

Share this post


Link to post
Share on other sites

Okay, you hardcoded the ptnum. Alright, that'll do too. thanks for your help :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×