POV-Ray : Newsgroups : povray.binaries.images : Stumbled upon a turbulence pattern detail. : Re: Stumbled upon a turbulence pattern detail. Server Time
25 Apr 2024 19:59:19 EDT (-0400)
  Re: Stumbled upon a turbulence pattern detail.  
From: BayashiPascal
Date: 5 May 2020 05:40:00
Message: <web.5eb1346148feffbf61449da70@news.povray.org>
It looks like the sole of my shoes :-)


William F Pokorny <ano### [at] anonymousorg> wrote:
> Looking at creating an inbuilt f_agate() rather than the limited macro
> wrapper. Happened to see some code in the parser for handling octaves,
> omega and lambda - stand alone. Meaning used in this way they modify the
> last turbulence in the pattern warp list. If no turbulence defined. any
> of keywords would create a new one.
>
> Perhaps some know, but it's new to me - this allows you to do the
> following with patterns like agate, which have an internal turbulence
> defined. Those keywords standalone are modifying the turbulence going
> into the 'agate' pattern creation code.
>
> #declare Fn00 = function { pattern {
>      agate
>      octaves 2   // 6
>      omega   0.5 // 0.5
>      lambda  1.0 // 2.0
>      agate_turb 19.0
>      noise_generator 2
>      phase 0.5
>      cubic_wave
>      scale 1/3
>      rotate x*90
> }}
>
> Attached isosurface image is using the feature along with povr's updated
> cubic_wave (bump/selection) function.
>
> Bill P.


Post a reply to this message

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