Different shader in GL/Vulkan than with Karma (XPU)

   427   3   0
User Avatar
Member
91 posts
Joined: Aug. 2017
Offline
I would like to have different shaders showing when working in the realtime viewport (GL/Vulkan) and with Karma. I tried using a collect node and connecting a usd preview surface and mtlx standard surface to it. but because the mtlx shader can be displayed with GL as well it would pick that instead of the usd preview surface. I also tried to use a configure primitives LOP to set the two shader's purposes, but that didn't work either. Is there a way to tell solaris exactly which shader to use (in the end I would even like to have two mtlx shaders).
User Avatar
Member
72 posts
Joined: June 2015
Offline
We found using both a karmaMaterialBuilder and a usdMaterialXbuilder fed in to a collect node allows for setting up simplified preview materials in 20.5

Something along these lines:
Edited by Ben Toogood Aardman - Sept. 4, 2024 04:41:43

Attachments:
out.gif (544.9 KB)

User Avatar
Member
179 posts
Joined: Jan. 2015
Offline
Could try this.

"HOUDINI_GL_USE_MATERIALX

Enable support for MaterialX and Karma materials in the Houdini GL render delegate in the LOP context. The default value is 1.

0

MaterialX and Karma materials are not supported.

1

Both MaterialX and Karma materials are supported.

2

Only MaterialX is supported."

https://www.sidefx.com/docs/houdini/ref/env.html [www.sidefx.com]
User Avatar
Member
91 posts
Joined: Aug. 2017
Offline
Ben Toogood Aardman
We found using both a karmaMaterialBuilder and a usdMaterialXbuilder fed in to a collect node allows for setting up simplified preview materials in 20.5

Something along these lines:
Image Not Found

Thanks, we will do exactly that!
  • Quick Links