POV-Ray : Newsgroups : povray.advanced-users : vturbulence in functions? : Re: vturbulence in functions? Server Time
29 Jul 2024 12:27:02 EDT (-0400)
  Re: vturbulence in functions?  
From:
Date: 28 Mar 2002 12:32:38
Message: <ahk6au8bcquigiasedibqqast2chjm3u8r@4ax.com>
On Thu, 28 Mar 2002 18:23:00 +0100, "Rune" <run### [at] mobilixnetdk>
wrote:
> I need something equivalent to vturbulence() which I can use in a function.
> I would then have used it with the .x, .y, and .z operators, just like with
> pigment functions. Any idea what I can do?

Noise function is wrong ?
Just use it with some factors, mirrors, etc.
For example:

#include "functions"
#local f_turb_x=function{f_noise(x,y,z)};
#local f_turb_y=function{f_noise(y*2,z*3,x*4)};
#local f_turb_z=function{f_noise(z/2,x/3,y*4)};
#local my_function=function{...};
#local my_turbulenced_function=function{my_function(
  f_turb_x(x,y,z),
  f_turb_y(x,y,z),
  f_turb_z(x,y,z)
)};

ABX


Post a reply to this message

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