I would like to create randomized Perlin textures for randomizing the appearance of my objects of interest in my dataset.
Is there an easy way of creating randomized Perlin textures from within python/replicator code?
All I could find in the documentation was this page: Perlin Noise Texture — Omniverse Materials and Rendering documentation
Which I am not sure how to incorporate into a python scripting workflow.
Any help would be appreciated :)
You can do this with the standard Material Graph capabilities, some custom primvars and replicator.
- Make a material like in the image below
- Add Custom primvars of the type needed
- Create a script that can change the attribute primvars in a rep script. There’s an example here on our github repo
The relevant code to alter the primvars in the repo above is:
rep.distribution.uniform((0.0, 0.0, 0.0), (1.0, 1.0, 1.0)),
Let me know if you run into any issues and I can help out further.