tkasota
Nov. 30, 2023 03:11:15
Hi, I am very impressed with the Houdini20+KarmaXPU update.
However, when using opacity maps, the rendering speed is much slower than without them.
Is there a feature like "OpacityMode-Clip" in V-ray or "Clip mask" in Clarisse?
I hope there is some workaround or update to this.
Thank you.
jsmack
Nov. 30, 2023 12:29:08
the gltf surface material has an alpha clip mode but I'm not sure if it works with XPU
Heileif
Nov. 30, 2023 19:17:13
Curious about this as well.
brians
Nov. 30, 2023 19:56:28
Its more that opaque shadows in XPU are very fast, rather than semi-trans shadows being slow. Its because there is a very fast hardware path we can take for shadows when we know geometry is opaque. When it is anything else (eg semi-trans, cutout-alpha, etc...) then we need to execute a shader for each hit, which slows down traversal a lot.
I'm curious if you get any speed benefit from emulating your own "clip" opacity mode.
It can be done easily with materialX (see attached scene)
Also, the USDPreviewSurface does "clip" opacity by default, so you could try use that instead.