vrman Posted September 6, 2016 Share Posted September 6, 2016 i want fade my volume when its near to other objects , anyone know how can i do this with volume vop or other solutions ? thanks Quote Link to comment Share on other sites More sharing options...
Juraj Posted September 6, 2016 Share Posted September 6, 2016 Hi, in your volume VOP / volume wrangle you can compute distance to closest point in geometry and based on that multiply your density value. You can use xyzdist() or nearpoint() functions. Quote Link to comment Share on other sites More sharing options...
Shinjipierre Posted September 6, 2016 Share Posted September 6, 2016 another way is to create a volume from your object, blur it and substract it using a volume wrangle or volume mix, whatever is faster on computation time (as xyzdist can get slow) Quote Link to comment Share on other sites More sharing options...
vrman Posted September 6, 2016 Author Share Posted September 6, 2016 (edited) 6 hours ago, Juraj said: Hi, in your volume VOP / volume wrangle you can compute distance to closest point in geometry and based on that multiply your density value. You can use xyzdist() or nearpoint() functions. Thanks , Could you please give me a hip file for volume vop example ? Edited September 6, 2016 by vrman Quote Link to comment Share on other sites More sharing options...
vrman Posted September 6, 2016 Author Share Posted September 6, 2016 (edited) 6 hours ago, Shinjipierre said: another way is to create a volume from your object, blur it and substract it using a volume wrangle or volume mix, whatever is faster on computation time (as xyzdist can get slow) thanx great idea , could you tell me how can i do this via VEX ? i cant get volume density from input 1 or 2 with this code prim(1,"density",0). another question , when i try to blur my volume , it will goes into my objects, is this possible to pushing out my volume ? something similar to what peak sop do ? Edited September 6, 2016 by vrman Quote Link to comment Share on other sites More sharing options...
Juraj Posted September 7, 2016 Share Posted September 7, 2016 Hi, sure, check attached file. jt_density.hiplc 2 Quote Link to comment Share on other sites More sharing options...
vrman Posted September 7, 2016 Author Share Posted September 7, 2016 2 hours ago, Juraj said: Hi, sure, check attached file. jt_density.hiplc thanks alot Juraj 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.