# Random Colored Tiles In Mental Ray?--noise Function?

**URL:** https://forum.highend3d.com/t/random-colored-tiles-in-mental-ray-noise-function/45521
**Category:** Maya
**Tags:** mental-ray
**Created:** [September 27, 2007, 7:31am UTC](https://forum.highend3d.com/t/random-colored-tiles-in-mental-ray-noise-function/45521 "2007-09-27T07:31:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![georgep1](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/g/f1d935/32.png) [@georgep1](https://forum.highend3d.com/u/georgep1)
#### Post date: [September 27, 2007, 7:31am UTC](https://forum.highend3d.com/t/random-colored-tiles-in-mental-ray-noise-function/45521/1 "2007-09-27T07:31:38Z")

</div>

I found a tutorial on how to create randomly colored tiles in maya ( [http://www.digitalartform.com/archives/200…rete\_tiled.html](http://www.digitalartform.com/archives/2004/12/discrete_tiled.html) ) but it doesnt work in mental ray because it uses an expression.

Basically what I need is something that generates a random color that is to be used in a ramp shader. I installed the JS\_Expression shader found on [www.pixero.com](http://www.pixero.com) but I cant figure out how to use it for what im trying to do. What is the best way to do this?

---

<div class="post-metadata">

### Author: ![georgep1](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/g/f1d935/32.png) [@georgep1](https://forum.highend3d.com/u/georgep1)
#### Post date: [September 28, 2007, 9:41am UTC](https://forum.highend3d.com/t/random-colored-tiles-in-mental-ray-noise-function/45521/2 "2007-09-28T09:41:58Z")

</div>

let me rephrase this, I think my last post may have been confusing.

Basically what I need is some way of making a checker pattern where each checker is a ramp between 2 random colors.  
I would like to do this using only mental ray textures so that I can make it into a phenomenon.  
How can I do this?

I know this is possible because I saw Joojaa do something like this in a previous post where a displacement was applied to a sphere that displaced a bunch of tiles with random values. The problem is I cant figure out how to assign a noise function to a color value? how do I do this?

---

<div class="post-metadata">

### Author: ![wat2k](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/w/a5b964/32.png) [@wat2k](https://forum.highend3d.com/u/wat2k)
#### Post date: [February 25, 2008, 4:21pm UTC](https://forum.highend3d.com/t/random-colored-tiles-in-mental-ray-noise-function/45521/3 "2008-02-25T16:21:18Z")

</div>

use none interpolate ramp instead of expression.  
[wat2k@hotmail.com](mailto:wat2k@hotmail.com)

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [February 25, 2008, 8:29pm UTC](https://forum.highend3d.com/t/random-colored-tiles-in-mental-ray-noise-function/45521/4 "2008-02-25T20:29:52Z")

</div>

Yeah make 2 of them with bands and multiply them togehether output this to the uv of a noise node.

But that dont filter Wich is bad.
