I created a mask on my model in Houdini, and when I export it to Omniverse in USD format, the texture shows incorrectly. It turns out that my mask doesn’t work.
I used this mask to apply different textures, and when I check in Omniverse, I found that the mask was also exported to the USD file.
However, my material in Omniverse can’t read this mask, so the texture doesn’t change.
When I checked this problem, I found something that might help. I used the [mtlxgeompropvalue] node to read ‘mask’, but it failed. However, when I removed this node and just used [mtlxmix] to control the two textures directly, it worked.
To make it easier to observe, I first created two shaders: one red and the other blue. I set the mix parameter to 0.5, and the model turned purple. When exported to Omniverse, the result was correct. You can even find and adjust the mix parameter in the material’s property panel.
Sure, that is very possible. Please do not assume that just because you have a material node in Houdini, it is automatically in Omniverse. But I am glad you have found a solution.
If you can, it would be helpful to attach a zip with your USD and any associated texture data for us to inspect what’s going on. However I can say we do support ND_geomprop_<*type> lookups. I’m not sure how ND_geomcolor_color3 works with your indexing without looking at your scene data.
@Richard3D MaterialX and MDL nodes are not compatible with each other. The new editor will isolate authoring and viewing so that graphs cannot be intermixed.
Another thing the team pointed out is that the mtlmix node you have looks like it’s for mixing floats. Not surface shaders. There’s a different ND_mix_surfaceshader node for that.
Thank you for your reply.
I didn’t use any Kit. I’m just using USD Composer, and the Graph Extension I’m working with is the MDL Material Graph in Composer.
$HIP/tex/gun2/Metallic..png
$HIP/tex/gun2/Metallic..png
This graph displays the same nodes as those in Houdini’s Material Library.
$HIP/tex/gun2/Metallic..png
I’m uploading my USD and tex data here, I made them three bucause the size is over 100MB. geo.zip (52.3 MB) gun2.zip (74.8 MB) rusted_gun.zip (37.2 MB)
In ‘just_mix’, I didn’t use geomvalue and the mix can be adjusted in property panel, however the other one can’t.
Thank you very much.
I think what we were asking it what version of USD Composer. Maybe you are using an old version. Are you using 2023.2.5 from the Launcher? If so that would be old. The new version is 106.5 from our GitHub Page. GitHub - NVIDIA-Omniverse/kit-app-template: Omniverse Kit App Template
I’m sorry when I run “cd kit-app-template” it says the system can’t find specified path.
I downloaded kit-app-template-main.zip and unziped it. I keep these two both in my C drive download folder.
Ok you downloaded it from GitHub, which is “ok”. But better still, forget the download and on number 3) go to the windows command CMD and type in git clone https://github.com/NVIDIA-Omniverse/kit-app-template.git