POV-Ray : Newsgroups : povray.general : Gravity Well simulation? : Re: Gravity Well simulation? Server Time
7 Aug 2024 21:26:21 EDT (-0400)
  Re: Gravity Well simulation?  
From: Bill DeWitt
Date: 28 May 2001 12:39:49
Message: <3b127f55@news.povray.org>
I've made a start using isosurfaces. Here's the relevant portion...

#declare POSX = sin(clock*(pi*2))*5;
#declare POSZ = cos(clock*(pi*2))*5;

#declare Well1=function{sqr(-y)*(x^2+z^2)-5 }
#declare Well2=function{sqr(-y)*((x+POSX)^2+(z+POSZ)^2)-0.5 }

  isosurface{
      function { -y&Well1&Well2 }


Post a reply to this message

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