Jump to content

Orient packed primitives to velocity


Farmfield

Recommended Posts

This is immensely annoying, haha... So I set this up like 3-4 years ago in H14, but I can't for my life seem to recreate it today. I thought it would be as simple as calculating a matrix from the velocity and then using setprimintrinsic to transform to that matrix - but I just can't get it working. Any ideas?

AZY8bmp.gif

Oh, and I'm not at all excluding that I did the above using something way simpler, like using some POP node - that's maybe even more likely than me doing it in a VOP or using VEX...

 

Link to comment
Share on other sites

  • 4 weeks later...
On 12/4/2018 at 2:07 AM, toadstorm said:

wouldn't it be more straightforward to use `maketransform(v@v, v@up)` rather than computing a dihedral that rotates one vector onto the other?

i mean if it works, it works... just seems like an unusual approach.

I do non straightforward stuff using unusual approaches all the time, funny enough. It served me well. ;) 

On 11/30/2018 at 5:17 PM, dyei nightmare said:

diedral?   im interested on how you used diedral for this case. 

The scene file is linked in the video - and Toadstorms code works as well, and it's one line instead of two, haha...

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...