POV-Ray : Newsgroups : povray.advanced-users : Turbulence in function : Turbulence in function Server Time
3 Jul 2024 05:11:45 EDT (-0400)
  Turbulence in function  
From: Christian Froeschlin
Date: 15 Jun 2008 15:27:26
Message: <48556d1e$1@news.povray.org>
Can I use turbulence inside a function declaration? I know of
the vector function vturbulence but I don't think I can use
that inside a regular function.

What I'm looking for is something like

function {f_spherical(x+f_turb_x(lambda,omega,octaves,x,y,z),
                       y+f_turb_y(lambda,omega,octaves,x,y,z),
                       z+f_turb_z(lambda,omega,octaves,x,y,z))}


which should in effect yield the same function as

function {pattern {spherical turbulence 1}}

but would allow to make turbulence strength dependent on
location, e.g., for a media with non-uniform turbulence.


Post a reply to this message

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