POV-Ray : Newsgroups : povray.general : Improved Perlin noise : Re: Improved Perlin noise Server Time
2 Aug 2024 22:19:24 EDT (-0400)
  Re: Improved Perlin noise  
From: Tor Olav Kristensen
Date: 7 Jul 2004 13:01:03
Message: <40ec2c4f$1@news.povray.org>
Tor Olav Kristensen wrote:
...

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

Hmmm... When I replace "NoiseFn(x, y, z)" in the
code below with "f_noise_generator(x, y, z, 3)" from
"functions.inc" I see the same short "lines".

With "f_noise_generator(x, y, z, 2)" I get no such
lines. - The results seems more random with this
noise generator.


> #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.