POV-Ray : Newsgroups : povray.advanced-users : vturbulence in functions? : Re: vturbulence in functions? Server Time
29 Jul 2024 12:27:21 EDT (-0400)
  Re: vturbulence in functions?  
From:
Date: 28 Mar 2002 13:03:37
Message: <eam6aucin1odd97vo136br3orqubat7kk8@4ax.com>

wrote:
> Noise function is wrong ?

At least wrong in posted example. I forgot that turbulence should be added to
coordinates. I also forgot that turbulence shoudn't have only positive values.
Here is corrected version, written in more compact way:

#include "functions"
#local my_function=function{...};
#local my_turbulenced_function=

function{my_function(x+f_snoise3d(x,y,z),y+f_snoise3d(y*2,z*3,x*4),z+f_snoise3d(z/2,x/3,y/4))};

Is this enough for you ?

ABX


Post a reply to this message

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