Random shader

Hi there,

I thought this was mentioned before, but searching didn’t bring up any results, anyhow - just requesting a sort of node that would be able to randomize shaders on different objects. Kind of like mr in maya via mentalcore:

The best example for usage would be assigning this shader to proxies and each, say tree, had a slightly different hue to it every time it was instanced.

+1 for me.

+1 as well

And random in proxy will be great also.

Good one, +1.

(Btw, what I do to from time to time (works for leaves, grass,…) is, that I make a second UV map (just automap) and use this to map some noise via a ramps U coord to my grass/tree leaves through a layered texture.)

Yep, but i am not sur if we can have 2 UV set in a proxy (?).

I think it works, but you have to relink the textures through the uv sets in the relationship editor, after you’ve imported the proxy. But of course it works only in ONE proxy, not for randomizing several proxy objects in one scene on an object level.

Hi,

I’ve added this request to our TODO, so we won’t forget about it and it will be implemented in the future.

Until then you can use some scripting to assign vray user attributes to your geometry and then you can use vrayusercolor textures to achieve the same/similar effect.

/Teodor

Thank you Teodor.
I use user attributes a lot (with custom attributes) and it works very well. The problem is user attributes doesn’t work with proxy.
It will be great if proxy can keep all “custom user attributes” added by the user.
But it is an another request.

bigbossfr: As far as I can see we have this feature (user attributes in proxy) in the TODO, too. :wink:

Great !
Thank you Teodor.

Hello, is the later (via scripting and usercolor) still the best way to do this?

I saw this new product for Max (see the randomize colour feature per face/object/element);

http://www.vizpark.com/shop/color-extract-le/

And made me realise how useful this feature would still be in 2015 and beyond. I think Random colours is such a help to improve realism with many objects, trees etc..

any news on this?

how would you randomize a shader

hi,
try this here…
It is´nt so powerfull and handy like the nice max-tool, but for humanize trees and grasses and so on, an absolute wonderfull thing.
…perhaps an idea for the first!?

Is the random output from the samplerInfo already available in recent builds?

Not yet. Will post here when it is.

Best regards,
Vlado

Ohhh it’s GOOOOD, and works perfectly. Thank you ! Now, if only it worked on CUDA RT

We’ll get to that…

Best regards,
Vlado

Vlado + the rest of the Chaos Group devs - THANK you very much for this in 3.3. It’s been a dream to work with Maya now to add in random colours and effects to our renders, the effect this has on realism is really important. I’m practically using it on every shader now! :slight_smile:

Just wondering too are there any plans, or is it technically possible to add in “random by face id” as well?

Internally the faces are triangulated, which I guess will be an issue. Technically, the polygon index can be restored, but it will be more complicated. Will any of these indices help for something?