Karma XPU Color for Volume

   1909   6   1
User Avatar
Member
168 posts
Joined: Nov. 2015
Offline
I am trying to achieve something like this in Karma XPU.

volume displacement in arnold [leegriggs.com]


Is there a way to do colored volumes with materialx and karma xpu yet?
Edited by chf - March 2, 2023 12:27:56
User Avatar
Member
7992 posts
Joined: Sept. 2011
Offline
I think you're stuck with Mantra for volume displacement
User Avatar
Member
10 posts
Joined:
Offline
If you are looking for how to render a color volume in Karma, there is a "color with Cd volume" check box on the pyro shader. It's a little confusing; if you are using "Pyro Bake volume" to set up your shader, and have the "Diffuse Volume" set to Cd in the bindings, the pyro shader it creates doesn't have "color with Cd volume" turned on by default.
User Avatar
Member
1 posts
Joined: Dec. 2020
Online
Hmm, for me in h20 checking that box still wouldn't color my volume.
A workaround was using "Karma Pyro Shader" instead of the "Pyro Shader" created by "Pyro Bake Volume". The checkbox there works.
Thanks for the tip still.
User Avatar
Member
33 posts
Joined: Oct. 2021
Offline
yayitsyasuo
Hmm, for me in h20 checking that box still wouldn't color my volume.
A workaround was using "Karma Pyro Shader" instead of the "Pyro Shader" created by "Pyro Bake Volume". The checkbox there works.
Thanks for the tip still.


But the Pyro_Shader that comes with the "Pyro Bake Volumes SOP" does not work with XPU since its VEX based...
www.rehimi.de
User Avatar
Member
33 posts
Joined: Oct. 2021
Offline
You can find a working XPU shader that reads Cd volumes here:

https://www.sidefx.com/forum/topic/93012/ [www.sidefx.com]
www.rehimi.de
User Avatar
Member
33 posts
Joined: Oct. 2021
Offline
Sorry for spamming but actually this is much simpler now, then the shader I posted above. These materials read all in the Cd volume and to my surprise it doesn't even matter if they are 3 single float Houdini volumes or if they are VDBs!





Attachments:
karma_volume_custom.png (95.8 KB)
karma_pyro_smoke_material.png (142.0 KB)
karma_unform_volume.png (162.2 KB)

www.rehimi.de
  • Quick Links