POV-Ray : Newsgroups : povray.binaries.utilities : Wood program but still develop : Re: Wood program but still develop Server Time15 Apr 2024 11:50:06 EDT (-0400)
 Re: Wood program but still develop
 From: Bald Eagle Date: 14 Feb 2024 17:05:00 Message:
```
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"@id": "#web.65cd38fc5b6ed241f9dae3025979125%40news.povray.org",
"headline": "Re: Wood program but still develop",
"dateCreated": "2024-02-14T22:05:00+00:00",
"datePublished": "2024-02-14T22:05:00+00:00",
"author": {
"@type": "Person",
"name": "Bald Eagle"
}
}
"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.
```

Attachments: