Random color on polygon Island

Links and discussions concerning tutorials
Post Reply
User avatar
Mathaeus
Posts: 1778
Joined: 08 Jun 2009, 21:11
Location: Zagreb, Croatia
Contact:

Random color on polygon Island

Post by Mathaeus » 29 Jun 2012, 23:39

Image


Hi all,

just want to share a little trick that I've occasionally discovered. Usually these discovers appear to me on rainy days :) That is, how to set some random color on polygon islands, even they aren't 'organized' in advance. Let's say, leaves on imported models of trees, bricks, so on. Method is based on Guillaume Laforge tutorial, I won't explain again how it works.

How to use it:
1: create vertex color support, or weight map on mesh
2: create ICE tree
3: set output ( end of last row) to vertex color
4: slowly increase input of "repeat" node, until all islands gets the same color
5: freeze ICE operator if you're satisfied
6: drive your material with vertex color

Same method works with weight maps too, in this case you don't need the last row, just set the weight map "weight" directly from random value.

Method likes more the huge count of smaller islands, instead of opposite. Leaves are OK, that is it.

ICE tree

Cheers

Helli
Posts: 211
Joined: 04 Jun 2009, 11:21

Re: Random color on polygon Island

Post by Helli » 14 Nov 2012, 13:23

Cause I used this example to distribute different textures on leaves I would say its even better not to set a vertex color map or a color but an integer instead.
You can use that integer attribute then later on in the render tree as input for a color_multi_switch.

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests