Jump to content

how to randomize materials using material stylesheets


Recommended Posts

i have little problem with randomizing material with instancing , i have a tree that has 2 materials 1 for bark and 1 for leaf the problem is to randomize a material with instancing is to apply the material after instancing and if i have multiple materials for each group or if i have multi geo with different materials and sub materials it will be a huge complex to randomize the materials and assigning them , i already tried material stylesheets but i failed to make it work , my main goal is to assign the materials for objects before instancing them.

in 3ds max vray there is a node called vray multisub tex and there is forest color i can apply them materials and sub materials to make sure to have different color per element per instance so i dont have to assign the materials after instancing i need only to assign the materials for objects before instancing  . im trying to achieve the same thing in houdini 

image.png.4b86e8f354aa6189d480e77aa00889ee.pngin

in this pic i have select_attribute i want to randomize it to have random number per instance if anyone can help me using material stylesheets and thank you.

 

 

 

image.thumb.png.38bca4a0901393ed1e6b71e925542f68.png

 

random tree leaf before instancing.hipnc

 

 

EDIT: my idea is to have random value per element and per instance and most importantly to apply the materials before instancing and packing in case i have multi objects (buildings ,trees ) or in case i have multi material per object (tree: leaves and bark, or building : windows , walls, roof), i dont think this is possible to do without material stylesheets

Edited by marwan131
to explain my problem more clearly
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...