POV-Ray : Newsgroups : povray.pov4.discussion.general : Ideas. Updated f_wood(). povr branch. : Re: Ideas. Updated f_wood(). povr branch. Server Time
24 Feb 2024 10:28:17 EST (-0500)
  Re: Ideas. Updated f_wood(). povr branch.  
From: William F Pokorny
Date: 14 Sep 2021 09:37:00
Message: <6140a57c$1@news.povray.org>
On 9/13/21 11:47 AM, Alain Martel wrote:
> Very interesting. Mostly useful for wooden objects that are viewed from 
> a relatively short distance.

Thanks. Mostly, Yes. :-)

> Is there any way to have undisturbed rings in the centre with the 
> disturbance increasing as you get farther ?

First, to be clear, the turbulence in the previously posted image was 
accomplished with two 'external' to f_wood() turbulence warps. One for 
fuzz in the rings and another for the log level. The f_wood() function 
doesn't have any inbuilt turbulence - unlike the traditional wood pattern.

In povr certainly a fade is possible, as the Turbulence(1) and vector 
turbulence (DTurbulence) functionality of POV-Ray is brought out as 
inbuilt functions.

If not using that sort of functionality... I think one could probably do 
something like an inward black hole warp(2), apply turbulence, then an 
outward black hole warp. Similar to scaling patterns up (or down) prior 
to applying turbulence and then reversing it.

While, the fade used is the opposite you asked about, attached is a test 
isosurface image based upon f_wood() where I'm using the ring count 
value to fade the rings to nothing in height while moving out from the 

FWIW, the, povr only, core SDL for the isosurface is:

#declare Fn00 = function (x,y,z) {
#declare Fn01 = function (v) {
      f_distribution(7,// A triangle distribution. Wikipedia version.
      )* ((f_dec2x_f32(v,1)*-0.0035)+0.059) // The fade to nothing.
#declare Iso99 = isosurface {
      function { abs(y)-Fn01(Fn00(x,y,z)) }

Bill P.

(1) - The povr branch has fixed the forever standing Turbulence() 
octaves distribution mean drift issue.

(2) - The povr branch has a black hole type 1 without the clamping 
and/or reaching outside the black hole radius issues of POV-Ray's 
black_hole. The povr type 1 forms would likely be needed for other than 
linear fading / strength 1.

Post a reply to this message

Download 'iso00_f_wood.jpg' (286 KB)

Preview of image 'iso00_f_wood.jpg'


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