![]() |
||
Changing Sprites OrientationAugust,2003![]() The sprites can map a texture image or image sequence on each particle. Here is a number of particles emitted from an Omni. Notice the arrows do not point at where it is flying to. So this is a doc about how to orient sprites to their on-screen velocity direction. ![]() First of all, we need a vector product utility created in the hypershade. It will transform the UP vector from "Camera" spase to "World" space. Rename it to "camera_to_world". ![]() Set "input1" to <<0,1,0>>,and choose "Vector Matrix Product" as the operation. ![]() Connect the "Xform Matrix" of the rendering camera to the "Matrix" of the vector product. ![]() Now add atribute "spriteTwistPP" to the particle.
![]() This approach only works when the camera is looking down, or you will have to edit the expression and use the negative velue of the twist angle. ![]() Download a test scene here. |