Jump to content

Particle rotation driven by chops


Lukich

Recommended Posts

Hi. I am trying to control the particle rotation using chops, by exporting the rotx, roty, rotz, and rotangle to chops and adding to them a Ramp wave. It works, but for some reason instead of a uniform motion that I'd expect from a Ramp, I get a faster movement at the beginning, which drastically slows down towards the end. I have no idea why it'd behave like that, maybe you guys can point me in the right direction?

I'm attaching an example file.

Thanks,

Luka

chopRotation.hip.zip

Link to comment
Share on other sites

The 'rot' attribute is a quaternion, and the 4 numbers don't correspond directly to $rotx, $roty, $rotz and $rota. The actual equations are:

rot[0] = rotx * sin(rota/2)

rot[1] = roty * sin(rota/2)

rot[2] = rotz * sin(rota/2)

rot[3] = cos(rota/2)

(this is assuming your axis is already normalized)

Hi. I am trying to control the particle rotation using chops, by exporting the rotx, roty, rotz, and rotangle to chops and adding to them a Ramp wave. It works, but for some reason instead of a uniform motion that I'd expect from a Ramp, I get a faster movement at the beginning, which drastically slows down towards the end. I have no idea why it'd behave like that, maybe you guys can point me in the right direction?

I'm attaching an example file.

Thanks,

Luka

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