POV-Ray : Newsgroups : povray.general : Stepped function offset (attempt #2) : Re: Stepped function offset (attempt #2) Server Time
8 May 2024 08:18:53 EDT (-0400)
  Re: Stepped function offset (attempt #2)  
From: Bald Eagle
Date: 25 Jan 2020 08:20:00
Message: <web.5e2c4072da4801834eec112d0@news.povray.org>
just guessing, just woke up, but have you tried moving your nudge _inside_ the
floor function?

#declare Start = 6+(1/12);

 #declare CSolid_HSLSphere_Lightness_stepped = function { floor(Start *
 f_ph(x,y,z)/pi)/6};

When it gets complicated, break the calculations up into parts, and graph them
all.
I always use spreadsheets to help me out with things like this.

Another thing to try is adding or subtracting pi/12 from your f_ph funtion to
actually rotate the results


Post a reply to this message

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