XPU Light Linking

   4599   11   1
User Avatar
Member
40 posts
Joined: 8月 2018
Offline
The release notes for 19.0.423 suggest that light linking should be working on Karma XPU. The attached hip file has two boxes, the left with a glass pane. I have the light linker setup so the glass doesn't cast shadows with the lights. With the CPU, this renders as expected, but with XPU, it appears that none of the light gets past the glass.

Did I misunderstand the release note, or am I otherwise doing something wrong?

Thanks,
David

Attachments:
karma-glass-cpu.png (1.3 MB)
karma-glass-xpu.png (826.7 KB)
glass-lid.hiplc (1.5 MB)

User Avatar
Member
8045 posts
Joined: 9月 2011
Offline
d3zd3z
The release notes for 19.0.423 suggest that light linking should be working on Karma XPU.

Perhaps the release notes meant that light linking, specifically, was working and did not include shadow linking.

Shadow linking does not appear to be implemented in XPU yet.

To let light through the glass, shadow linking isn't necessary. Using 'fake caustics' would achieve the effect of the glass allowing light through. Use the mtlx fake caustics node in line with the mtlx shader and the collect vop of the material x network.
User Avatar
Member
40 posts
Joined: 8月 2018
Offline
I did try the fake caustics as well. It does indeed light the inside, but it also distorts the view through the glass. I guess it is being faked in both directions?

Attachments:
fake-caustics.png (1.0 MB)

User Avatar
Member
8045 posts
Joined: 9月 2011
Offline
d3zd3z
It does indeed light the inside, but it also distorts the view through the glass.

I noticed that about XPU. There appears to be a bug with enabling fake caustics with XPU and refraction.
User Avatar
Member
40 posts
Joined: 8月 2018
Offline
Unfortunately, it looks like this means there isn't any way to properly render this "donut under glass" with XPU. For my current scene, I've kind of worked around it by just disabling the glass entirely, as the object isn't that large in the scene.
User Avatar
Member
8045 posts
Joined: 9月 2011
Offline
d3zd3z
Unfortunately, it looks like this means there isn't any way to properly render this "donut under glass" with XPU. For my current scene, I've kind of worked around it by just disabling the glass entirely, as the object isn't that large in the scene.

It works without distortion using true caustics. It takes more samples to converge, but with XPU samples are cheap.
User Avatar
Member
40 posts
Joined: 8月 2018
Offline
Even with many times the number of samples, 1. it still seems pretty far from converging, and 2. the result is darker. I'm not sure where the darkness is coming from, this glass material should be letting all of the light through.

Attachments:
true-caustics-xpu.png (1.9 MB)

User Avatar
Member
8045 posts
Joined: 9月 2011
Offline
d3zd3z
Even with many times the number of samples, 1. it still seems pretty far from converging, and 2. the result is darker. I'm not sure where the darkness is coming from, this glass material should be letting all of the light through.

It probably won't converge easily with a small light source like that, but it does okay with a more diffuse env type light. The energy loss comes from the color limit, which defaults to 10. raising it to a million seemed to help, but there might be other energy losses still.

Ideally, refraction with with fake caustics will get fixed for XPU.
User Avatar
スタッフ
531 posts
Joined: 5月 2019
Offline
There are still issues to sort out with fake-caustics on XPU.

But in the meantime, to remove the refraction effect from the glass you can set it to "thin-walled"
Alternatively, you could also set the IOR to 1.0, but that might affect the Fresnel reflection a little.

Attachments:
thin_walled.PNG (706.0 KB)

User Avatar
スタッフ
531 posts
Joined: 5月 2019
Offline
Oh and to confirm

In XPU...
- LightLinking is working
- ShadowLinking is not working

https://www.sidefx.com/docs/houdini/solaris/karma_xpu.html#lighting [www.sidefx.com]
User Avatar
Member
66 posts
Joined: 5月 2019
Offline
Just for someone figuring out how to actually link specific light to a specific geometry.

And to create a shadow link: hold Alt + LMB and drag the light in the middle (have a look at the link after last GIF).





You can also drag lights (from the right to the middle) to create a rule specifically for that light.




https://www.sidefx.com/docs/houdini/nodes/lop/lightlinker.html [www.sidefx.com]
Edited by AnimGraphLab - 2023年4月7日 09:59:28

Attachments:
houdini-karma-render-light-linker.gif (8.2 MB)
houdini-karma-render-light-linker1.gif (11.9 MB)

Generalist. Transforming still images to 3D animation 🔮
Socials: https://linktr.ee/AnimGraphLab [linktr.ee]
User Avatar
Member
2 posts
Joined: 3月 2015
Offline
Update.. XPU Shadow Linking does not seem to be working as of right now, still.. double checking with SESI..
Edited by Alex Frenklakh - 2024年3月20日 20:20:52
  • Quick Links