Jump to content

Randomizing Shader Parameters with Instance node


Recommended Posts

here is a very fast example

look at the material tab of the sphere object

trere is material parameter override used on base color of the clay material

and it uses pointinstance expression to get the random color for each point

you can use this expression directly on material parameters, but I chose the override way here

material_instance_example.hipnc

Link to comment
Share on other sites

here is a very fast example

look at the material tab of the sphere object

trere is material parameter override used on base color of the clay material

and it uses pointinstance expression to get the random color for each point

you can use this expression directly on material parameters, but I chose the override way here

Thanks,

I was trying to use instancepoint in SOP level Which was wrong !

:)

Link to comment
Share on other sites

Thanks,

I was trying to use instancepoint in SOP level Which was wrong !

:)

according to instancepoint() help:

"You can not use this function at the surface level, because instancing only works at the object level."

this is kind of logical, because SOPs change geometry and instancing is based on the idea that there is only one geometry held in memory and is used for every instance with some variations(transforms, materials) applied on top. So any sop change based on instancepoint would necessairly create a geometry copy in memory which will ruin the whole effectivity of instancing and will be the same as copystamping technique.

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...