POV-Ray : Newsgroups : povray.advanced-users : Stochastics expertise needed : Re: Stochastics expertise needed Server Time
2 May 2024 09:11:41 EDT (-0400)
  Re: Stochastics expertise needed  
From: Bald Eagle
Date: 26 Aug 2016 11:45:00
Message: <web.57c063998629941bb488d9aa0@news.povray.org>
I'm busy at the moment, but:

define a sphere with radius 0.5
pow(x,2) + pow(y,2) = 0.5

so pow(y,2) = 0.5 - pow(x,2)

and y = sqrt ( 0.5 - pow(x,2))

translate y*0.5

y = sqrt ( 0.5 - pow(x,2)) +0.5

make your function equal to the sin of that times pi/2 so that the function
smoothly increases from 0 to 1

add the smallest number POV will work with to that (1E-whatever)

Multiply that by a line equation, the slop of which is the tightness

I will give this some more thought


Post a reply to this message

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