nigelgardiner Posted February 9, 2017 Share Posted February 9, 2017 Hi There I have a velocity volume created using the normals of a circle so that @vel is toward the centre from all points and @v.y = 0. What I want to do is have @vel vary from it's max value at the circumference of the volume to zero at the centre. I have the corresponding density volume with a filled interior which gives me a values of 0 at surface and 1 at the centre so how would i multiply @vel by (1 - fog density value)? Any advice much appreciated, hip attached. thanks Nigel. radial velocity volume.hiplc Quote Link to comment Share on other sites More sharing options...
dchow1992 Posted February 9, 2017 Share Posted February 9, 2017 (edited) v@vel *= fit(length(@P), 0, circumference, 0, 1); length of P gives you distance from position to origin, if your circle isn't origin centered then you need something like length(center - @P) Edited February 9, 2017 by dchow1992 Quote Link to comment Share on other sites More sharing options...
nigelgardiner Posted February 9, 2017 Author Share Posted February 9, 2017 Hi David Thanks for that, makes sense. cheers Nigel. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.