POV-Ray : Newsgroups : povray.newusers : Sponge : Re: Sponge Server Time
29 Jul 2024 00:33:42 EDT (-0400)
  Re: Sponge  
From: Trevor G Quayle
Date: 24 Dec 2007 10:05:00
Message: <web.476fc9ded68f7f9fc150d4c10@news.povray.org>
Your best bet is the crackle pattern.  Try the following function:

//START
#declare PP=
function{pattern{
  crackle
  form <-1.5,0.9,0.3>
    scale 1/10
    warp{
      turbulence 0.2
    }
    scale 1/10
    warp{
      turbulence 0.1
    }
    scale 100

    scale 1/20
    scale <1,0.75,1>
}
}

isosurface {
  function {PP(x,y,z)}
  contained_by { box { -1.2, 1.2 } }
  threshold 0.1
  accuracy 0.001
  evaluate 100,1.5,0.7
  pigment{rgb <1,0,0>}
  scale 1/2
}
//END

You can twickle the values a bit.  The form values tend to be very sensitive.
Also play with threshold and the warps (feel free to add more or less warps if
required.  As it can render quite slow, try using it as a pigment first to get
a quick feel for the overall look before running the isosurface.

-tgq


Post a reply to this message

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