Jump to content

@w?


rich_lord

Recommended Posts

In these files i'm setting the @w parameter of alot of DOPS cubes so they rotate around the X axis.

 

If the cubes start at 0 on Z they animate as expected. However, if I set them to -5, they fly up into the air in the first frame. 

 

Any ideas why this is? Am I misunderstanding something

 

Ive attached the expected result, with the cubes at 0 Z pos at start as the tumble_correct.hip. The tumble_incorrect hip file is when the cubes start at -5 Z. This is the only difference in the files!

 

Thank you!

 

 

 

tumble_correct.hip

tumble_incorrect.hip

Link to comment
Share on other sites

I have only looked at the "incorrect" hip, but I'd guess the other one is incorrect as well  although it might look better. The reason is because they are pivoting from origin, ie 0, 0, 0. The packed prims doesnt have the pivot attribute on the first frame, and then they are already in motion so they fuck up.

 

You can solve this in a number of ways, one of them would be to create the pivot attribute manually before feeding them into dops. The easier way would be to just delay your SOP Solver there, ie plug in an Enable Solver under it with the expression $F>2. 

 

I marked the nodes I added in blue, however only one of them is needed at a time as I explained. Disable one of them and try both of them out.

 

tumble_incorrect_fixed.hip

  • Like 1
Link to comment
Share on other sites

This is a great explaination David, and thanks for the hip, I havent used the enable solver yet, and it seems really useful.

 

The method I like best is creating the orient attribute manually, then I can just fire it all off from the first frame.

 

Thank you very much!

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