Jump to content

Extracting Relative Transforms


Recommended Posts

 

It has been a long while :P

And today I had need of this, and decided to try again. I think I got it working!

 

 

It's barebones and not tested extensively (it's waay past bedtime!), would love to hear if there is something I missed!

 

I got the solution from: http://www.flipcode.com/documents/matrfaq.html#Q40

Q40. How do I use matrices to convert one coordinate system to another?

 

Hi Alvin,

i am a Houdini beginner and just dived into your file in order to learn from it (because this CoordinateSpaceTransformations/Virtual Parenting is something that always hooks me when it comes up).

The only thing that i don´t understand really is the very first node called "non_procedural_geometry", in which you built your source geo from a triangle and use that 3 points to build your Transform Matrix later.

How would i go doing the same from an arbitrary mesh, or even better, from a file-SOP with an imported already animated and baked geo?

can you give me a hint?

thanks in advance

Link to comment
Share on other sites

  • 1 month later...

 

It has been a long while :P

And today I had need of this, and decided to try again. I think I got it working!

 

 

It's barebones and not tested extensively (it's waay past bedtime!), would love to hear if there is something I missed!

 

I got the solution from: http://www.flipcode.com/documents/matrfaq.html#Q40

Q40. How do I use matrices to convert one coordinate system to another?

 

Hi Alvin. I just wanted to thank you for sharing this. It has been really helpful for me lately.

 

@nautiluz: In case you are still wondering: Setup a interface where you can set the three reference points that goes into the local space creation. Make sure they represent a flat triangle on the baked geometry.

Link to comment
Share on other sites

  • 1 month later...

Whew ok this saved my butt. Anyways, using Extract Transform (this is new-er right? There was another node that required you to put in the points to track?) wasn't working for me, I always have the attached object sliding around. I'm probably doing something wrong.

 

Also, you can concatenate multiple transforms into one matrix, which makes it highly convenient.

 

With regards to Align, that's a cool sop! Totally missed it. Sadly, from my tests the aligned geo kept sliding around so I need to figure out where I'm using it wrongly.

 

@nautiluz: Sorry the reply is so late. But if you replace non-procedural geo with any deforming model with a non-changing point count, it should work.

 

@Ole: I'm glad it helped! This just saved my butt 5 minutes ago :P

 

 

Link to comment
Share on other sites

  • 1 year later...
On 10/23/2014 at 5:00 PM, GallenWolf said:

It has been a long while :P

And today I had need of this, and decided to try again. I think I got it working!

 

 

 

It's barebones and not tested extensively (it's waay past bedtime!), would love to hear if there is something I missed!

 

I got the solution from: http://www.flipcode.com/documents/matrfaq.html#Q40


Q40. How do I use matrices to convert one coordinate system to another?

extractTransformMatrix_v001.hipnc

Thank you very much. This helped a lot :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...