Jump to content

Particles Density based on Volume


Recommended Posts

I have a sphere which I converted to VDB from Polygons, within a VolumeVOP I'm getting the volume gradient and binding that out to an attribute. 

How do I see volume attributes in the geo spreadsheet and how do I use the attribute within a POPNet so there is less particles where the volume is 1 and more particles where the volume is 0.  I tried inheriting the attribute but it doesn't give me the result which I want ?

 

Link to comment
Share on other sites

Hi there, 

I don't think you can directly bind out or create an attribute from a volumeVop, and the attribute you created in this way won't show in the spreadsheet as a "volume attributes".

I would suggest do a volume gradient sample with scattered points in a point wrangle or vop.

Something like:

v@grad = volumegradient(1,"density",@P);

Hope this would help.

Link to comment
Share on other sites

 

 manipulating the volume for scatter the points to spread in particles?

So you need to work on volume, volume vop, or volume wrangle ... or who know...

Otherwise why you need the gradient if  N do the same?  

 

If you use the gradient value to fit value for modify the shape of you source particles use volume if you choice that trick.

 

 

 

Link to comment
Share on other sites

Hi there,

First you don't need to connect the primnum to your volumegradientfile vop, that is for which primitive volume you wanna sample, let's say you have two volumes named density and heat, 0 will be density and 1 will be the heat.

Second, you should connect your volume to your second input, cause you want to sample the gradient from the volume right? You can't sample the gradient from the points.

Third, you can't just bind in the density in a point/prim/vertex/detail vop, you need to do that in a volumevop or you can sample the density from the second input volume using volumesample vop. 

Volume doesn't work like points and primitive, we can't directly grab the density/gradient/surface or any other fields we created in volume and assume it's gonna work, so we need to use the volumesample to sample the density, surface etc and use volumegradient to sample the gradient from a volume. I know it's a bit hard to understand so I found more information here:

 

Also cgwiki has a great topic for understanding volumes, how to modify and sample, how to create field etc.

http://www.tokeru.com/cgwiki/index.php?title=HoudiniVolumes

 

Hope this would help.

  • 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...