![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
I try to find answers by my own, especially by trial and error here, but I
haven't been able to figure this one either. I'm making a sky_sphere, and I
want a single gradient, blue to black, with a median at 0*y. The gradient
now is basically inverted in the lower 'hemisphere' I just need a gradient
of mostly blue in the upper 'hemisphere' to mostly black in the lower one.
Thanks for your help.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Parasonic <par### [at] parasonic par> wrote:
: I try to find answers by my own, especially by trial and error here, but I
: haven't been able to figure this one either. I'm making a sky_sphere, and I
: want a single gradient, blue to black, with a median at 0*y. The gradient
: now is basically inverted in the lower 'hemisphere' I just need a gradient
: of mostly blue in the upper 'hemisphere' to mostly black in the lower one.
sky_sphere
{ pigment
{ gradient y color_map
{ [0 rgb 0][1 rgb z]
}
scale 2 translate -y
}
}
--
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Parasonic" <par### [at] parasonic par> wrote in message
news:3c23817a$1@news.povray.org...
> I try to find answers by my own, especially by trial and error here, but I
> haven't been able to figure this one either. I'm making a sky_sphere, and
I
> want a single gradient, blue to black, with a median at 0*y. The gradient
> now is basically inverted in the lower 'hemisphere' I just need a gradient
> of mostly blue in the upper 'hemisphere' to mostly black in the lower one.
>
> Thanks for your help.
>
>
for sky_sphere:
sky_sphere{
pigment {
gradient y
color_map {
[0.0 rgb <0.0,0.0,0.0>]
[1.0 rgb <0.0,0.0,1.0>]
}
translate -y/2 scale 2
}
}
-tgq
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Thanks, Trevor and Warp!
"Trevor Quayle" <Tin### [at] hotmail com> wrote in message
news:3c2388cc$1@news.povray.org...
> "Parasonic" <par### [at] parasonic par> wrote in message
> news:3c23817a$1@news.povray.org...
> > I try to find answers by my own, especially by trial and error here, but
I
> > haven't been able to figure this one either. I'm making a sky_sphere,
and
> I
> > want a single gradient, blue to black, with a median at 0*y. The
gradient
> > now is basically inverted in the lower 'hemisphere' I just need a
gradient
> > of mostly blue in the upper 'hemisphere' to mostly black in the lower
one.
> >
> > Thanks for your help.
> >
> >
> for sky_sphere:
>
> sky_sphere{
> pigment {
> gradient y
> color_map {
> [0.0 rgb <0.0,0.0,0.0>]
> [1.0 rgb <0.0,0.0,1.0>]
> }
> translate -y/2 scale 2
> }
> }
>
>
> -tgq
>
>
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
That interests me..how did you know how to do that? I've looked in the
manual (I printed all x hundred pages a few years ago)..nihil.
Thanks.
"Parasonic" <par### [at] parasonic par> wrote in message
news:3c23817a$1@news.povray.org...
> I try to find answers by my own, especially by trial and error here, but I
> haven't been able to figure this one either. I'm making a sky_sphere, and
I
> want a single gradient, blue to black, with a median at 0*y. The gradient
> now is basically inverted in the lower 'hemisphere' I just need a gradient
> of mostly blue in the upper 'hemisphere' to mostly black in the lower one.
>
> Thanks for your help.
>
>
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
not only printing, but reading them helps a lot ...
SCNR .... ;)
--
Jan Walzer <jan### [at] lzer net>
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
This is a follow up question that belongs in 'new users' ..
when you code things like
translate -y
is it really the same thing as
translate <0, -1, 0> (as the doc's imply)
or is the value 'y' being evaluated inside the color map somewhere?
The reason I'm asking is that I'm using Moray a lot lately, and I can't code
'-y' although I have no problem intercepting the POVRay output, I'm just
wondering if I can code it the other way.
== John ==
"Warp" <war### [at] tag povray org> wrote in message
news:3c238854@news.povray.org...
> Parasonic <par### [at] parasonic par> wrote:
> : I try to find answers by my own, especially by trial and error here, but
I
> : haven't been able to figure this one either. I'm making a sky_sphere,
and I
> : want a single gradient, blue to black, with a median at 0*y. The
gradient
> : now is basically inverted in the lower 'hemisphere' I just need a
gradient
> : of mostly blue in the upper 'hemisphere' to mostly black in the lower
one.
>
> sky_sphere
> { pigment
> { gradient y color_map
> { [0 rgb 0][1 rgb z]
> }
> scale 2 translate -y
> }
> }
>
> --
> #macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb
x]
> [1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
> -1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// -
Warp -
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"John D. Gwinner" wrote:
>
> This is a follow up question that belongs in 'new users' ..
>
> when you code things like
>
> translate -y
>
> is it really the same thing as
>
> translate <0, -1, 0> (as the doc's imply)
>
> or is the value 'y' being evaluated inside the color map somewhere?
Yes:
translate -y = translate <0,-1,0>
translate x+-y = translate <1,-1,0>
Additionally:
pigment { rgb y } = pigment { rgb <0,1,0> } = Green
pigment { rgb x+y+z } = pigment { rgb <1,1,1> } = White
Questions?
--
Ken Tyler
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |