Friday, 21 October 2011

Day 35

Day 35 Fading sprites & Sprites Rotation

Today Mr.Ron came in and taught me couple of things. Firstly he taught me how to fade of the spries according to its life with a ramp to control the timing.

alpha ramp


And also I asked him about the rotation of the sprites. As normally in other scene files they show the sprites rotation in a direction, clock-wise or anti-clockwise. What I wanted was, as the explosion comes from a source the rotation have to be away the blast.

So, he taught me the how to rotate the sprites in 2 opposite directions. By having a $F * sign($TX)*10, the rotation will be along TX but in opposite sides and the rotation velocity will be constant and not increase.

simple illustration

adding expression to rotation

I notice there are some problems though, as the rotation is only to X axis the rotation does not look good from sideways. The rotation will be inverted if the view is from behind where the X-axis is pointing to the other direction.



He he later then taught me on adding motion blur to the particles. Blurring the hard lines when rotating as well as giving the effect of where the particles are coming from.

Add velocity on point node.

After tweaking

No comments:

Post a Comment