POV-Ray : Newsgroups : povray.general : gravity well : Re: gravity well Server Time
18 May 2024 07:10:05 EDT (-0400)
  Re: gravity well  
From: alphaQuad
Date: 12 Oct 2007 01:25:01
Message: <web.470f03e250ab97d789ae70600@news.povray.org>
3.7.7.1.6  Invert Isosurface
Sometimes, when you render a surface, you may find that you get only the
shape of the container. This could be caused by the fact that some of the
build in functions are defined inside out.
We can invert the isosurface by negating the whole function:
  -(function) - threshold



well I am close now, but using "open" opens to an inside that does not
render,
other wise without "open" the surface is flat.
need to use open but invert (i think).

how to impliment "-(function) - threshold" correctly?

render this to see so far:

isosurface {
    function { (x*x) - (0.01/(y*y)) + (z*z) }

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


Post a reply to this message

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