Eraq
09-29-2010, 11:02 AM
Hi good peoples.
I just need some good inputs on how to get a solution on a little problem Im having.
Im in a need for a smart solution for following:
I would like to control a particlesystems opacity based on the angle between a giving camera and the particles velocity. My conditions are:
Less opacity when the particles-velocity point into the camera between 5, and -5 degree, full opacity at 0 degree.
Less opacity when the particles-velocity point into the camera between 175, and 185 degree, full opacity at 180 degree.
I know the basic vectormath to get the angle between the camera and the partilce-velocity, so its more how to transfer this concept into an expression. Im not that good at scripting, so if I can get some suggestions Ill be very happy.
Much apriciated.
Erik
I just need some good inputs on how to get a solution on a little problem Im having.
Im in a need for a smart solution for following:
I would like to control a particlesystems opacity based on the angle between a giving camera and the particles velocity. My conditions are:
Less opacity when the particles-velocity point into the camera between 5, and -5 degree, full opacity at 0 degree.
Less opacity when the particles-velocity point into the camera between 175, and 185 degree, full opacity at 180 degree.
I know the basic vectormath to get the angle between the camera and the partilce-velocity, so its more how to transfer this concept into an expression. Im not that good at scripting, so if I can get some suggestions Ill be very happy.
Much apriciated.
Erik
