POV-Ray : Newsgroups : povray.general : Pattern function errors : Re: Pattern function errors Server Time
30 Jul 2024 20:23:49 EDT (-0400)
  Re: Pattern function errors  
From: SharkD
Date: 7 Jul 2008 10:55:04
Message: <web.48722d2383e204bd4d862de40@news.povray.org>
Mike Williams <nos### [at] econymdemoncouk> wrote:
> If you want to use it on an object that doesn't lie within that region,
> then you need to consider what colour you want to have for points
> outside that region and code it accordingly.

Thanks for the answer!

What's odd is that you can't scale the pigment either. For instance, the
following produces errors.

sphere {0,1
  pigment{
   function {sqrt(pow(x,2) + pow(z,2)) / cos(asin(abs(y)))}
   pigment_map
   {
    [0 color rgb 0]
    [1 color rgb <0,1,0,>]
   }
 scale y/2
 translate y
  }
}

Shouldn't the function be evaluated to completion before the pigment gets
scaled?

-Mike


Post a reply to this message

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