Variate Texture per Mesh primitive in LOP Material Library

   12603   21   1
User Avatar
Member
72 posts
Joined: June 2020
Offline
mtucker
The wrangles are not working because their primitive patterns will not match instanced primitives that cannot be modified. As you say in one of your sticky notes, when we add a VEX function to get descendants you'll be able to have your primitive pattern match the shape xform prims instead.
I'll also say that while working on this file I found that when I added a new inherited primvar to a prim, I often had to restart Karma to make it pick up the new value. But in the end I think I got it working in the left hand branch. New version of your hip file attached.

Hi @mtucker and @brians
Now that in houdini 19.5 there is a function to get the children of a primitive I updated the VEX code as suggested.
It is much simpler now.
However, it seems that there might be something wrong with the inheritance process, as the file crashes in 19.5 when I try to render in Karma after the reference node. In Houdini GL instead the whole mesh becomes black.
This did not happen in 19.0. And I tried using the previous VEX code but the crahs happens regardless.
Has there been any change in between versions that makes the process impossible?
Something related to the reference LOP node maybe?
Here is a
LINK [drive.google.com]
link to the file if you guys have the possibility to take a look.
Edited by PaoloGiandoso - Dec. 10, 2022 13:39:44
User Avatar
Member
72 posts
Joined: June 2020
Offline
PaoloGiandoso
However, it seems that there might be something wrong with the inheritance process, as the file crashes in 19.5 when I try to render in Karma after the reference node. In Houdini GL instead the whole mesh becomes black.
This did not happen in 19.0. And I tried using the previous VEX code but the crahs happens regardless.
Has there been any change in between versions that makes the process impossible?
Something related to the reference LOP node maybe?

Answering myself.
Updating to the newest production build of 19.5 solved the issue and there is no crash.
Now that I can render I can see a new issue though.

I am testing the material variation LOP with VEX shader, the MtrlX and the USD_Preview at the end of my node tree.
The variation seem to be working only for the VEX shader and not for the other two types of shaders.
Weird :/
Here is a
LINK [drive.google.com]
link to the file if you guys want to take a look.
Edited by PaoloGiandoso - Dec. 10, 2022 16:42:00
  • Quick Links