Mtlx Image string inputs connection return error

   824   4   2
User Avatar
Member
162 posts
Joined: Nov. 2016
Offline
Hi!

I noticed that in H20 the MtlxImage node has more inputs available to use, one of the most useful one is the "file" input specially to control the texture paths using primvars. But I noticed if I connect something to any string ports (including the file input of course) it returns an error:



But was caused me more curiosity is, if I load one of the material presets from the Material Linker and "extract" it using the edit material network node, I can see that the material textures also have the error but they work:



So I decided to share this here before submitting as a bug to see if there is a reason behind this or if I should report it.

Let me know what do you think about it,

Thanks!
Edited by cdordelly - April 4, 2024 14:17:20
User Avatar
Member
32 posts
Joined: Aug. 2011
Online
Noticed this aswel with creating assets, havent had time to report it yet so if you can that would be great!

Attachments:
file.png (3.7 MB)

User Avatar
Member
25 posts
Joined: Dec. 2014
Offline
Not currently possible for reasons explained here:

https://www.sidefx.com/forum/topic/82989/ [www.sidefx.com]

As I understand it, materialX shaders / karma don't support it right now. The shaders can only be parametric using numbers, not entire files, because everything has to be loaded from the start ("compiled")
User Avatar
Staff
1454 posts
Joined: July 2005
Offline
Indeed, MaterialX 1.38 does not have a geom prop value shader that would return a uniform string. There is one planned for 1.39.

p.s.
In MaterialX 1.38 is a little bit iffy when it comes to strings they can only be uniform, and yet geom prop value shader returns a varying string.
User Avatar
Member
162 posts
Joined: Nov. 2016
Offline
Thank for your answers guys,

Well, let's hope we can have this with MtlX 1.39, and yes it is curious that basically it should not work but it works right now with MtlX 1.38 but that it returns the texture as float:



Now I understand why the usage on the material libraries are mostly for masks, and also now I understand why @mtucker shared one example using the USD nodes instead of the MtlX nodes here [www.sidefx.com].


Cheers!
  • Quick Links