[How do I] : sample a cloud / volume density to drive parameters in SHOP

   1639   1   0
User Avatar
Member
48 posts
Joined: Aug. 2013
Offline
Hello, it's me again!

Ok, so quick question: how can I sample the density of a volume (a cloud) and have the low density values exhibit more of a texture or an effect in a SHOP network?! In other words: can I use the density to mask certain mix nodes, or use it as a weight for a multiply etc?

I've tried a multitude of things, but I'm afraid I lack a deeper understanding of volumes in houdini (and in general). I'm not even sure how the density is stored, or what are the exact differences between ‘density’ and ‘cloud density’ and where to begin learning about these. So if anything, I would greatly appreciate if someone would at least point me in the right direction.

Thank you,
User Avatar
Member
2537 posts
Joined: June 2008
Offline
Dive inside the UniformVolume shader inside of SHOP. You will see how to reference in the density attribute. In this screenshot I routed the density to the bias of a color mix. Basically you can use the color of the connectors to determine what can connect to what.
Edited by Enivob - May 20, 2016 15:03:44

Attachments:
Screen Shot 2016-05-20 at 2.59.59 PM.png (94.2 KB)

Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
  • Quick Links