Jump to content

How to isolate the intersection/highest values of already combined vol


magneto

Recommended Posts

Hi,

 

If you already have a geometry that has multiple pieces and it's already converted to points, how can I isolate the certain parts with max values?

 

It looks like this:

 

fKlGQQB.png

 

So I want to get the parts where the geometries would be intersected (they are spheres).

 

Is this possible? I know with volume merge but that requires the volumes/geometries to be separate.

 

 

Thanks :)

Link to comment
Share on other sites

depends on how you combined them

if you combined using max/maximum method, there is no way how you can separate it afterwards with no other hint, as it is now single density volume where intersected parts were copied from voxels with maximum value

if you combined using  add method and the volume spheres had (in best case scenario) constant density of 1, then you can use f@density = f@density > 1 ; to get intersected parts

  • Like 1
Link to comment
Share on other sites

Thanks anim. I had the spheres as spheres copied onto points and then simulated (RBD), then the result of that DOP import is converted into a fog volume. So I guess in this case the parts where these geometries intersect won't have increasing values, right?

 

Do you use the code you just posted, in a new volume by sampling the second input so that I can create a new volume where I only have density in those intersections? Basically can I purge the rest of the volumes outside the intersected regions?

 

I am trying to do this but using the packed prims, there is no volumes built for the objects:

 

 

Is there a better way to do this than shown in the video?

 

 

Thanks again.

Link to comment
Share on other sites

for intersection with the ground you can keep them together, however you probably want intersections among each other

 

in case there is constant amount of pieces during the sim, the fastest way would be to:

1. generate VDB fog volumes from initial pose of your packed RBDs within foreach ( = evaluates just once)

2. move resulting VDB volumes according to imported RBD points from sim

3. since they are individual VDBs you can do the VDB combine with Add mode

4. append Volume Wrangle with mentioned: f@density = f@density > 1;

 

the slower way of course would be doing foreach for unpacking/generating VDB fog volumes on every frame on geometry coming from sim

I can post file later if you need one, can't from work

Edited by anim
  • Like 1
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...