POV-Ray : Newsgroups : povray.newusers : Gradients : Re: Gradients Server Time
4 Nov 2024 17:42:37 EST (-0500)
  Re: Gradients  
From: John D  Gwinner
Date: 2 Jan 2002 19:38:46
Message: <3c33a816$1@news.povray.org>
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] tagpovrayorg> wrote in message
news:3c238854@news.povray.org...
> Parasonic <par### [at] parasonicpar> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.