POV-Ray : Newsgroups : povray.newusers : Casting sinusoidal shadow on an object ? : Re: Casting sinusoidal shadow on an object ? Server Time
2 Nov 2024 17:17:53 EDT (-0400)
  Re: Casting sinusoidal shadow on an object ?  
From: Omega
Date: 13 Nov 2003 12:10:01
Message: <web.3fb3bab0a347d771ccd526b40@news.povray.org>
Christopher James Huff wrote:
>Forgot about that...the simplest solution would be to replace "gradient
>x" with "function {sin(x)/2 + 0.5}", or you could use cos() if you want
>a symmetrical pattern. Oh, and remove the sine_wave keyword, since it is
>now in the pattern itself. Or you could just translate the pattern far
>enough that the mirroring point is out of your way.

Ok, replacing the gradient x with a function is a far better solution than
what I did.. which was to add the keyword "phase 0.25" so the sin would be
in sync ;)

Thanks for the tip,
O.


Post a reply to this message

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