POV-Ray : Newsgroups : povray.binaries.images : Gravity Well : Re: Gravity Well Server Time
18 Aug 2024 06:15:52 EDT (-0400)
  Re: Gravity Well  
From: Bill DeWitt
Date: 31 May 2001 09:08:47
Message: <3b16425f@news.povray.org>
"Gail Shaw" <gsh### [at] monotixcoza> wrote in message
news:3b15ecda@news.povray.org...
> Cool.
>
> Two points. The wells for the planets look a little too deep (compaired to
> the
> sun) and the falloff for the planets is too fast.
>
> Now do a black hole <grin>
>
> What's the isofunction you've used?

    Well that's the problem isn't it... I need a function that doesn't go
vertical... I would like it to go as deep as the mass is large.

    What I am using now is (for instance)...

#declare MarsMass = 15;
#declare MarsPosx = sin(clock*(2*pi))*39;
#declare MarsPosz = (cos(clock*(2*pi))*35)+4;
#declare MarsHole = sqrt(MarsMass)/5;

#local Mars = function(MarsMass/(max(
                                         (x-MarsPosx)*(x-MarsPosx)
                                        +(z-MarsPosz)*(z-MarsPosz)
                                           ,MarsHole)
                                      )
                                  ) /// end function


  isosurface{
      function { y+Sun+Earth+Moon+Mars }


Post a reply to this message

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