Visualizing MaterialX VOP's
2132 10 1- frame_48
- Member
- 15 posts
- Joined: 2月 2019
- Offline
Has anyone had consistent luck with using the Visualize (X) feature when building MaterialX shader networks? Some nodes it visualizes, some it does not, sometimes it works on CPU and not XPU etc. Not being able to debug and view components of shaders consistently makes building shaders very tedious. For instance plug a unified noise into a ramp constant and plug it into the shader, I can't get this to visualize on XPU.
- jsmack
- Member
- 8038 posts
- Joined: 9月 2011
- Offline
- goldleaf
- スタッフ
- 4195 posts
- Joined: 9月 2007
- Offline
- rafal
- スタッフ
- 1454 posts
- Joined: 7月 2005
- Offline
jsmackThat's essentially what the shader translator authors when it sees the Visualize VOP. It's just does it in the Viewport Override layer, so there are less chances of the debugging making its way to the final rendering by mistake.
My workflow is to use the Surface Unlit shader
(In H20 it actually uses EDF+Surface shader, but in the next version it's simplified to use the Unlit surface shader).
- tomteller
- Member
- 10 posts
- Joined: 3月 2020
- Offline
- jsmack
- Member
- 8038 posts
- Joined: 9月 2011
- Offline
tomteller
Hey guys, it does look like a bug with XPU. I attached a quick sample scene. If you render with XPU and visualize the unified noise (inside materiallibrary1) you will notice it is broken / the frequency is not properly visualized. Switching to CPU seems to fix it. I'll submit a bug report too.
Best,
The error says the shader contains a node not handled by XPU, which makes sense since rafal said it uses EDF+Surface shader which XPU doesn't support. So I would take it that this feature is not implemented in XPU.
KarmaXPU: ShaderGraph _sg_s_85510A9F14EF37B1 has rootnode-type not handled by XPU, skipped
The visualize node also doesn't work with graphs that aren't part of the main shader graph, for example if you want to visualize three different values by packing them into a color3, the last node combine3 is not part of the material so the visualize node won't do anything.
Edited by jsmack - 2023年11月21日 15:06:44
- jsmack
- Member
- 8038 posts
- Joined: 9月 2011
- Offline
- ChristopherRutledge
- Member
- 433 posts
- Joined: 2月 2017
- Online
im still confused about this, it seems to work differently than the unlit shader. would be great if this worked consistently. anyone know whats going on here?
is there documentation on this feature? having a hard time finding it, seems like this should be easier to understand...
is there documentation on this feature? having a hard time finding it, seems like this should be easier to understand...
Edited by ChristopherRutledge - 2024年7月22日 15:26:15
- ChristopherRutledge
- Member
- 433 posts
- Joined: 2月 2017
- Online
- asteraffect
- Member
- 3 posts
- Joined: 7月 2022
- Offline
- wanglifu
- Member
- 185 posts
- Joined: 2月 2017
- Online
-
- Quick Links