As I’ve done the image of plankton, now I need to assign it to the particles. I’ve created polygon plane and applied the texture with the plankton to it. I’ve attached it to the particles using instancer. However, I wanted my planes to always face the camera to create effect of sprites. So I’ve added some extra per particle attributes: plankton scale pp, sprite world up, sprite aim pos, sprite aim axis and sprite aim up axis. And then I’ve written short expression:
Plankton.spriteAimAxis = <<0, 1, 0>>;
Plankton.spriteAimUpAxis = <<0, 0, 1>>;
Plankton.spriteAimPos = <<UnderwaterCam.tx, UnderwaterCam.ty, UnderwaterCam.tz>>;
Here is a play blast and render:
No comments:
Post a Comment