POV-Ray : Newsgroups : povray.general : Absolutely nothing? : Absolutely nothing? Server Time
10 Aug 2024 13:24:49 EDT (-0400)
  Absolutely nothing?  
From: Greg M  Johnson
Date: 11 Dec 1999 07:10:49
Message: <38523f49@news.povray.org>
I want to set up a texture map across the cross section of an object. I
want "something" in the center, and absolutely nothing at the surface.

(The context is that I want to use the noise3d function, but want
something skinnier than my current surface: a tree trunk for the trees
in my garden!)

Using the following code, I can distinctly see where the surface of the
"Clear" areas are.  How do I fix?


#declare trunk=
//union{
isosurface {
         function {noise3d(1/fact*x,1/fact*y,1/fact*z)}//dustspecs
                accuracy 0.01
               threshold 0.10 //.08 and 0.09 looked cool. keep 0.15
                bounded_by {
                           box{<-boun,-3,-boun>,<boun,10,boun>}
                           }
        //pigment{Red}

        texture {
                function {noise3d(1/fact*x,1/fact*y,1/fact*z)}
                texture_map {
                             [ 0.00 pigment {Brown}]
                             [ 0.010 pigment {Brown}]
                             [ 0.011 pigment {Clear}]
                             [ 0.940 pigment {Clear}]
                            }
                }

    }


Post a reply to this message

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