Particles rotation

   4928   1   2
User Avatar
Member
73 posts
Joined: Dec. 2013
Offline
How can i make the particles rotate and add that rotation info to the digital asset to import it to maya?
CG Generalist / FX Artist
http://www.jleandrovfx.com [www.jleandrovfx.com]
Jason Leandro.
User Avatar
Member
818 posts
Joined: Sept. 2013
Offline
You can add torque force to particles, which will cause them start spinning. The resulting rotation is stored in the “orient” attribute in quaternion. But in Maya, the rotationPP per-particle attribute needs to be angles in the XYZ axis. So you need to convert the quaternion into angles. This can be done in VOPs by: converting the quaternion into matrix, extracting the transform, and store it into rotationPP attribute. See the attached OTL for an example.

In order to have the rotationPP attribute accessible in Maya (e.g. for use in instancer), you need to manually add the rotationPP per-particle attribute onto the nParticle node.

Attachments:
particle_rotationPP.otl (34.7 KB)

Andrew / アンドリュー
  • Quick Links