Jump to content

Randomize texture loading from disk by seed from SOP (Redshift)


Recommended Posts

Hi

I have 100 different textures in a folder (tex_00.jpg to tex_99.jpg). I would like to create a Redshift material where the diffuse channel is controlled by a texture (RS_Texture) where the texture path is randomized to choose between the 100 textures on disk so that I can have 100 objects with random textures.

Is it possible to send some data from SOP to the Redshift material, like ptnum, that can be used as a seed for a rand function to choose the texture?

Any ideas how this could be done?

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