POV-Ray : Newsgroups : povray.advanced-users : Turbulence in function Server Time
1 Nov 2024 03:14:29 EDT (-0400)
  Turbulence in function (Message 1 to 2 of 2)  
From: Christian Froeschlin
Subject: Turbulence in function
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

From: ingo
Subject: Re: Turbulence in function
Date: 20 Jun 2008 13:16:54
Message: <Xns9AC3C42125FBDseed7@news.povray.org>
in news:48556d1e$1@news.povray.org Christian Froeschlin wrote:

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

There is a function vturbulence.

Ingo


Post a reply to this message

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