Forum

#1 2017-12-05 21:04:01

Nicolas Castelli
New member

Random surfaces on multiple object

Hi,

I can not find a way to randomly assign surfaces to multiple objects under the same tag.

For example :
A hundred objects with the tag "leaf". Two or three surfaces with each their diffuse texture, opacity, specular .. Randomly assign these surfaces to objects under the "leaf" tag.

There is a "TextureSwitch" node but it is limited when we have more object than textures. And I do not think it works if it must randomly associate a diffuse with the specular that corresponds to it...

Any idea ?

Cheers,
Nicolas

Last edited by Nicolas Castelli (2017-12-05 21:35:24)

Offline

 

#2 2017-12-05 22:19:38

Ben
Guerilla dev, the guy to hug

Re: Random surfaces on multiple object

Hi Nicolas,

Guerilla 1.4 can only randomly tweak the material at shader level, just like you mentionned,
Guerilla 2.0 has more features in the RenderGraph to program this kind of things, yes.

In Guerilla 2.0, you have to use a Script node, and make something like a switch based on the path of the object.

Ben


Benjamin 'Ben' Legros
Guerilla developer
http://www.guerillarender.com

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB