POV-Ray : Newsgroups : povray.newusers : lathe gradient : Re: lathe gradient Server Time
28 Apr 2024 07:27:44 EDT (-0400)
  Re: lathe gradient  
From: LanuHum
Date: 27 Apr 2014 03:55:00
Message: <web.535cb6a55b0a48477a3e03fe0@news.povray.org>
"aelgoa" <nomail@nomail> wrote:
> "aelgoa" <nomail@nomail> wrote:
> > I want to colour a lathe object with a gradient going around the surface, so at
> > a particular point, start and end colors clash along a vertical line. How do I
> > do this?
>
> To clarify, right now my gradient cy cles twice, no mater how I scale it.
>
>
>  lathe {
>     linear_spline
>
>     2,
>
>     <5.7, .1>,
>     <6.3, -.1>
>
>
>     pigment {
>        gradient x
>     color_map {
>       [0.00 color Black]
>       [1.00 color rgb <1.0, 0.5, 0.2>
> ]
>     }
>     scale 12
>     }

In documentation:
lathe, sor : modified spherical mapping... the u coordinate (0..1) wraps around
the y axis, while the v coordinate is linked to the object's control points
(also ranging 0..1). Surface of Revolution also has special disc mapping on the
end caps if the object is not 'open'.


Post a reply to this message

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