Pyro Shader Displacement

   13437   8   3
User Avatar
Member
618 posts
Joined: Aug. 2008
Offline
Has any one had time to play with the pyro shader displacement,
i wonder how does it work, does it create noise on the volume, or does displace the voxel to create wispy fealing in the edges,
since the field say N i am assuming Normals.

any ideas?
User Avatar
Member
691 posts
Joined: June 2006
Offline
Mantra dice the voxels in to microvoxels (like other surfaces), then displace along a given vector; In this case you can define a vector from a 3d noise directly in the pyro 2.0 shader or calculate the gradient of the density to use that as a vector field (normal).

Here is an example file, unfortunately if you use any of the raytrace engines, the render gives nans and very odd artifacts.

Attachments:
Pyrofx2.0_displacement_test.hip (917.6 KB)

Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
User Avatar
Member
618 posts
Joined: Aug. 2008
Offline
that's awesome, so the displacement is doing the noise?

how can i apply it to a pyro sim, i did a sphere and put a flames with smoke preset.
the smoke is not a SDF its just density right?
User Avatar
Member
691 posts
Joined: June 2006
Offline
You can calculate the gradient from a fog also, if there is enough density change in the field (high dissipation fields) to determine the gradient, if not, convert to a sdf in sops with a volumesdf node then calculate the gradient.
Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
User Avatar
Member
4 posts
Joined: Sept. 2013
Offline
I'm struggling to get my head around this in H13.

Would you do this with an “iso offset” or with the “vdb analysis” ?
User Avatar
Member
691 posts
Joined: June 2006
Offline
Now you can use all the nice vdb tools to do this!! Its waaayyy faster!!
Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
User Avatar
Member
4 posts
Joined: Sept. 2013
Offline
Perhaps you could shed some light on my workflow, I've attached a file where I've started to calculate the gradient but I'm not sure of my methodology.

Attachments:
PyroDisplacement_v01.hip (1.6 MB)

User Avatar
Member
691 posts
Joined: June 2006
Offline
Here is the correction. Hope that helps!

Attachments:
pyrodisplacement_v01_148.hip (1.6 MB)

Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
User Avatar
Member
4 posts
Joined: Sept. 2013
Offline
You are a master !

Thanks
  • Quick Links