CinnamonMetal Posted December 1, 2019 Share Posted December 1, 2019 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 ? Quote Link to comment Share on other sites More sharing options...
jimeng20 Posted December 3, 2019 Share Posted December 3, 2019 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. Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted December 3, 2019 Author Share Posted December 3, 2019 (edited) @jimeng20 The the particles are not dense based on the volume gradient ? Edited December 3, 2019 by CinnamonMetal Quote Link to comment Share on other sites More sharing options...
supertwiki Posted December 3, 2019 Share Posted December 3, 2019 (edited) Hi i do not know if you are not accquated with vex solution. In sop world you can use " attribute from volume" in houdini you can do the same thing in diferent ways or who know. Cheers Edited December 3, 2019 by supertwiki Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted December 4, 2019 Author Share Posted December 4, 2019 I have values on the attribute but I'm not seeing the results on the scattered points; those results should be, whereas where the volume gradient is 0 the particles are dense and as it goes out to 1 the particles become less ? Quote Link to comment Share on other sites More sharing options...
supertwiki Posted December 4, 2019 Share Posted December 4, 2019 (edited) In volume vop. Use volume sample gradient convert that vector to float .... then multiply by density, scatter the points. Hope that help Edited December 4, 2019 by supertwiki Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted December 4, 2019 Author Share Posted December 4, 2019 The way it sounds is as such; but it isn't working ? Quote Link to comment Share on other sites More sharing options...
supertwiki Posted December 4, 2019 Share Posted December 4, 2019 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. Quote Link to comment Share on other sites More sharing options...
jimeng20 Posted December 5, 2019 Share Posted December 5, 2019 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. 1 Quote Link to comment Share on other sites More sharing options...
Ultraman Posted December 6, 2019 Share Posted December 6, 2019 hi ./ Is useful ? you can bind volume gradient to vector field to see something .... volume trail gradient.hip 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.