|
|
I am trying to make a gradient going from sky blue from the top to kind of
pink/yellow looking color on the bottom on a sphere object. So it's only
two colors, top is blue, bottom is orange with smooth transition in the
middle. Here is the rendering and code:
http://img231.imageshack.us/img231/3776/skysphereef9.jpg
pigment {
gradient y
color_map {
[0.0 color rgb <0.313, 0.610, 1>]
[1.0 color rgb <1, 0.887, 0.653>]
}
}
What do I do wrong? Why do I get bunch of gradients?
Post a reply to this message
|
|
|
|
motorsep <nomail@nomail> wrote:
> What do I do wrong? Why do I get bunch of gradients?
Because your sphere is larger than 1?
The 'gradient y' pattern goes from 0*y to 1*y and then repeats.
You have to scale it to match the size of the sphere.
For example, if your sphere is centered at the origin and its
radius is 2, you have to "translate -y*.5 scale 4" the pigment.
--
- Warp
Post a reply to this message
|
|