Randomize_UV XPresso

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  06 June 2011
Randomize_UV XPresso

This is XPresso to randomize colors of each polygons easily.

sample movie

sample scene

1. This XPresso randomize UV coodinates to randomize colors.

2. While randomize, subdivision number is 10*10. So you can use 100 colors totally. This is fixed and not changed if polygon number is more or less than 100, also not changed for triangle porygons.

So you have to make 10*10 tile texture for the object. I used "Gradient" shader to make it in this sample file.

3. While randomize, you can specify "random seed". Changing the random seed shuffles the colors. In this sample file, the random seed is linked to time, so the colors are shuffled time by time.
  06 June 2011
This is another way to change random colors in material.

sample movie

sample file
  06 June 2011

Also this is another way to change colors.

At first time, I tried to flow the colors with standard C4D tools, but could not get answer.
So I have made this XPresso.

sample movie

sample file

This XPresso changes data in UVW tag "UVW", based on data in original UVW tag "UVW_org". So you have to first duplicate the UVW tag, then rename it to "UVW_org".
Also make sure that your "UVW" tag is at just right of the texture tag.
When there are multiple UVW tags in a object, texture tag takes UVW tag which is placed just right from the texture tag.

This XPresso is designed for objects like "plane" or "torus" which has regular UV coodinates. The other hand, some objects like "platonic" which has irregular UV coodinates, or objects including triangles do not work with this XPresso.

In this XPresso, userdatas are added to XPresso tag itself. This is because links to userdata under object are cut while copy/paste the XPresso to other objects.

1. "UVW_org", "UVW"
Here is a strage to store/take links to UVW tags automatically. You do not need to care them.

2. "number of U"
Put number of polygons in U direction into here.

3. "number of V"
Put number of polygons in V direction into here.

4. "wind_U"
Specify speed of flow to U direction. Minus values change flow dirction.

5. "wind_V"
Specify speed of flow to V direction. Minus values change flow dirction.
  06 June 2011
Nice setup you have there tofuji, thanks very much.
An effect which comes near but isn't exactly the same
is to adress the polygons in your torus as clones and
manipulate them with a shader effector and a random effector.
In order to do that you have to seperate the polygons from each other.
A shatter deformer helps with that.
  06 June 2011
Thanks Yader, for your good example with MoGraph.

Actually say, I do not know the MoGraph well. Then, can you do similar things with the MoGraph?

Surface Randomizer
  06 June 2011
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 05:18 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.