POV-Ray : Newsgroups : povray.advanced-users : Spherical isosurface : Re: Spherical isosurface Server Time
2 May 2024 17:38:20 EDT (-0400)
  Re: Spherical isosurface  
From: Mike Horvath
Date: 29 Nov 2016 17:12:52
Message: <583dfd64$1@news.povray.org>
On 11/29/2016 3:26 PM, clipka wrote:
> Luminance gets a bit more complicated: You have to use an atan-based
> formula to get an angle, but you must plug in the y coordinate and the
> distance between the y axis; the latter is equal to sqrt(x*x+z*z), so
> this gives you:
>
>     #declare fL = function(x,y,z) { atan2(sqrt(x*x+z*z),y)*CONST }
>
> Choose CONST values as needed; atan2()*CONST may happen to be replacable
> by atan2d() again.
>

Also, don't I need to divide by 180 first before multiplying by the 
constant?

atan2d(sqrt(x*x+z*z),y)/180*100

Mike


Post a reply to this message

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