Difference between revisions of "Reference:Marble Pattern"
Jholsenback (talk | contribs) m (1 revision: Reference Migration Initial Load) |
Le Forgeron (talk | contribs) |
||
Line 39: | Line 39: | ||
<p>The <code>marble</code> pattern has a default color_map built in that results | <p>The <code>marble</code> pattern has a default color_map built in that results | ||
in a red, black and white pattern with smooth and sharp transitions.</p> | in a red, black and white pattern with smooth and sharp transitions.</p> | ||
+ | |||
+ | |||
+ | <table class="centered" width="420px" cellpadding="0" cellspacing="10"> | ||
+ | <tr> | ||
+ | <td>[[Image:RefImgMarblePigment.png|center|200px<!--centered--->]]</td> | ||
+ | <td>[[Image:RefImgMarbleNormal.png|center|200px<!--centered--->]]</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"><p class="caption">marble pattern used as pigment and normal respectively</p></td> | ||
+ | </tr> | ||
+ | </table> |
Latest revision as of 09:20, 1 March 2014
The marble
pattern is very similar to the gradient
x
pattern. The gradient pattern uses a default ramp_wave
wave type which means it uses colors from the color map from 0.0 up to 1.0 at
location x=1 but then jumps back to the first color for x > 1 and repeats
the pattern again and again. However the marble
pattern uses
the triangle_wave
wave type in which it uses the color map from
0 to 1 but then it reverses the map and blends from 1 back to zero. For
example:
pigment { gradient x color_map { [0.0 color Yellow] [1.0 color Cyan] } }
This blends from yellow to cyan and then it abruptly changes back to
yellow and repeats. However replacing gradient x
with
marble
smoothly blends from yellow to cyan as the x coordinate goes
from 0.0 to 0.5 and then smoothly blends back from cyan to yellow by
x=1.0.
Earlier versions of POV-Ray did not allow you to change wave types. Now that
wave types can be changed for most any pattern, the distinction between
marble
and gradient x
is only a matter of default
wave types.
When used with turbulence and an appropriate color map, this pattern looks like veins of color of real marble, jade or other types of stone. By default, marble has no turbulence.
The marble
pattern has a default color_map built in that results
in a red, black and white pattern with smooth and sharp transitions.