Jump to content

Fade volume near object


vrman

Recommended Posts

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 by vrman
Link to comment
Share on other sites

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 by vrman
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...