POV-Ray : Newsgroups : povray.binaries.utilities : Wood program but still develop : Re: Wood program but still develop Server Time
8 May 2024 10:17:30 EDT (-0400)
  Re: Wood program but still develop  
From: Bald Eagle
Date: 14 Feb 2024 17:05:00
Message: <web.65cd38fc5b6ed241f9dae3025979125@news.povray.org>
"And" <49341109@ntnu.edu.tw> wrote:
> I think I should learn Javafx first to rewrite it. My knowledge of design
> program is not enough.

Here's a dispersion pattern I found that seems to also make a good wood ring
pattern.

https://en.wikipedia.org/wiki/Dispersion_(water_waves)#Dispersion_relation
https://www.desmos.com/calculator/dzrqmexxik

#declare T_wave = 0.5; // -10 to 10 in example
#declare FWave1 = function {sum (k_wave, 0.3, 3, mod ( (sqrt(x*x+y*y) - sqrt
(9.81*k_wave*3)*T_wave)*k_wave*3, 2*pi) <= 1)}
#declare FWave2 = function {sum (k_wave, 0.3, 3, abs ( (sqrt(x*x+y*y) - sqrt
(9.81*k_wave*3)*T_wave)*k_wave*3) <= 0.3)}
#declare Formula201 = function {(FWave1 (x, y, z) + FWave2 (x, y, z))/2}

plane {z, 0 pigment {function {Formula201 (x,y,z)} } }

Add 2 different color maps for light and dark wood, and it should look a lot
better.


Post a reply to this message


Attachments:
Download 'mathpatterns1.png' (334 KB)

Preview of image 'mathpatterns1.png'
mathpatterns1.png


 

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