POV-Ray : Newsgroups : povray.general : Gradient over a sphere : Re: Gradient over a sphere Server Time
31 Jul 2024 20:17:35 EDT (-0400)
  Re: Gradient over a sphere  
From: Warp
Date: 20 Sep 2006 11:51:49
Message: <45116395@news.povray.org>
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

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