|
![](/i/fill.gif) |
ALPHA1 wrote:
> been trying to getting onions and radials on a vase, but haven't had any
> luck.
>
AVERAGED:
cylinder { 0*y, 1.1*y .4
pigment {
average
pigment_map {
[1, onion scale .1
pigment_map { [0 rgb 0]
[.5 rgb 1]
[1 rgb 0]
}
]
[1, radial frequency 9
pigment_map { [0 rgb 0]
[.5 rgb 1]
[1 rgb 0]
}
]
}
}
}
NESTED:
cylinder { 0*y, 1.1*y .4
pigment {
onion scale .1
pigment_map {
[0 rgb 0]
[.5 radial frequency 9
pigment_map { [0 rgb 0]
[.5 rgb 1]
[1 rgb 0]
}
]
[1 rgb 0]
}
}
}
COMBINED AS FUNCTIONS (one variant of many):
#declare pO =
function { pigment { onion scale .1
pigment_map { [0 rgb 0]
[.5 rgb 1]
[1 rgb 0]
}
}
}
#declare pR =
function { pigment { radial frequency 9
pigment_map { [0 rgb 0]
[.5 rgb 1]
[1 rgb 0]
}
}
}
cylinder { 0*y, 1.1*y .4
pigment {
function { pR(x,y,z).grey + pO(x,y,z).grey }
}
}
Post a reply to this message
|
![](/i/fill.gif) |