Jump to content

Houdini Karma USD MaterialX Texture Variations


4n7

Recommended Posts

 

I'm trying to create a deck of cards in USD, Assuming the correct method would be to create a single card and it have 52 variants of texture maps. I can get this in SOPS, and using a Principled Shader, but not with MaterialX

So far I can almost get to what I want to do, what I don’t understand is how to change the texture path for MaterialX variants

image.png.4dc11b759950b72209f6c6a04664b0b9.png

https://www.sidefx.com/docs/houdini/nodes/lop/materialvariation.html

If I set up a variant for a basic Principled Shader it works ok as it just changes the texture map path and replaces the basecolor_texture so I get the next card face in sequence

image.png.6af5d1225f4729560538452fd6343ab4.png

The Material Variation node looks like this (it updates the texture on the back of the card too but that's another issue)

image.png.08631c6390a2b05b5f6085503b9b31ca.png

 but MaterialX it doesn't work, I guess because it's another node connecting to that input, how do I reference this?

If I hover over the MtlX Standard Surface it gives me base_colorr, base_colorg, base_colorb, hovering over the image node gives me 'file'

image.png.44391138b7abb8e268f8a36d2565dfdb.png

Thanks for any help, I'm assuming this is some basic part of the way Houdini references the nodes that I don't understand.

 

 

image.png

Edited by 4n7
remove duplicate images
Link to comment
Share on other sites

 

I've been searching a heap of videos and it looks like the 'Magic Market' video includes a similar project, where there is a for each loop for the textures (and objs) I just need to figure out how to work this without the PDG / obj import process and just create texture variants for a single object.

Magic Market | Procedural Rocks 6 | LOP Variant Generation (Moeen Sayed)

https://www.youtube.com/watch?v=GYAjmVA6hy4

Quote


Cupcake Project | Part 5 | Solaris: USD Variants  (Rohan Dalvi)

https://www.youtube.com/watch?v=n2xFAaE5AX4

Houdini 18 - Configuring a USD Asset with Variants in Solaris (Hristo)

https://www.youtube.com/watch?v=xZJwS4-CVQg

Quickly Create LookDev Variants Using Solaris in Houdini (Rebelway)

https://www.youtube.com/watch?v=djrt69OIRFk

Karma XPU and MaterialX | Adam Swaab | Houdini 19 HIVE

https://www.youtube.com/watch?v=ABF7op2W8pM

Karma 04 | MaterialX and VEX Shaders

https://www.youtube.com/watch?v=h8b5B_M1_9w

Understanding Solaris Materials | Yolanda Charlo | Solaris Workshop

https://www.youtube.com/watch?v=n0-oSubrggA

Creating USD Assets with Component Builder | Chris Rydalch | Solaris Workshop

https://www.youtube.com/watch?v=EgTqz6y_oAs

PART 2 | Shaders & Textures in LOPS (Jeff Wagner)

https://www.youtube.com/watch?v=Ku4nEp_rkzM

cgwiki

https://www.tokeru.com/cgwiki/index.php?title=HoudiniLops#Variants

Sidefx LOPs reference

https://www.sidefx.com/docs/houdini/solaris/about_lops.html#layers-and-references

 

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...