POV-Ray : Newsgroups : povray.general : Improved Perlin noise : Re: Improved Perlin noise Server Time
2 Aug 2024 22:16:36 EDT (-0400)
  Re: Improved Perlin noise  
From: Tor Olav Kristensen
Date: 6 Jul 2004 08:52:47
Message: <40eaa09f$1@news.povray.org>
Tor Olav Kristensen wrote:

...
> I have now had a look at his code and have made a macro
> that can produce noise functions that don't have the
> "defects" of earlier Perlin noise functions. (I haven't
> really verified this, but the results seems ok so far.)
...

- But now the results doesn't seem ok any longer.

When I render this scene, I can see vertical and
horizontal "lines" in the noise.

#declare NoiseFn = PerlinNoise3DFunction(478696, 300, 0, 1)

box {
   <-0.5, -0.5, 0>, <0.5, 0.5, 0>
   texture {
     pigment {
       function { NoiseFn(x, y, z) }
       color_map {
         [0.0 color rgb 0.0 ]
         [1.0 color rgb 1.0 ]
       }
       scale 0.01
     }
     finish {
       ambient 1.0
       diffuse 0.0
     }
   }
}

camera {
   orthographic
   location <0,0,1>
   look_at  <0,0,0>
   right 1*x
   up 1*y
}

If make the macro not use the POV-Ray's rand() function,
the noise improves a bit.

-- 
Tor Olav
http://subcube.net
http://subcube.com


Post a reply to this message

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