POV-Ray : Newsgroups : povray.general : gravity well : gravity well Server Time
4 May 2024 23:26:14 EDT (-0400)
  gravity well  
From: alphaQuad
Date: 10 Oct 2007 17:35:00
Message: <web.470d4493331ad95812df23310@news.povray.org>
Why does Mike say this is the function for a gravity well?
x*x - 0.002/y*y + z*z

Or more importantly what must be done that I am not doing to render a
surface as Mike has here:
http://www.econym.demon.co.uk/isotut/more.htm



What doesn't work:
isosurface {
    function {
     //y - (x*x + z*z)*0.5   // curved

     //x*x - y*y + z*z  // twin cones
     //sqrt(x*x + z*z) - abs(y)

     x*x - z*z + abs(y) // more curved, somewhat boob-shaped cones
     //x*x - 0.002/y*y +z*z // cylinder not a grav-well
     // http://www.econym.demon.co.uk/isotut/more.htm
     //Gravity_Well(x, y, z, 0.002)
     }

   threshold 0
 max_gradient 3
 contained_by {box {<-1,-1,-1>, < 1, 1, 1>}}
 //contained_by {sphere {< 0, 0, 0>, 1}}
 open
    texture {
    pigment{ CadetBlue }
    finish { ambient .4 }
    }
    scale 2
    translate <0,0, 0>
}


Post a reply to this message

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