POV-Ray : Newsgroups : povray.binaries.utilities : Wood program but still develop Server Time
31 Oct 2024 14:09:37 EDT (-0400)
  Wood program but still develop (Message 21 to 30 of 68)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: And
Subject: Re: Wood program but still develop
Date: 14 May 2022 02:35:00
Message: <web.627f4c975b6ed24a7adfb56aa81652d@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "And" <49341109@ntnu.edu.tw> wrote:
>
> > Thanks. I'm trying to generate small speckles.
> >
> > It is an emphasis, too.
> >
> > And I'm thinking how composite this to the base color. I use "average" in this
> > picture. But this method is fail to more requirements. Sometimes speckles should
> > darker than the base color. the method cannot control it well.
>
> I think that this is going to be another advanced-granite texture odyssey.
>
> You will probably need to use functions, and some way to introduce noise, in
> order to randomize those color variations in the growth rings.
>

I always use functions, till the pigment composite.


> If you're going to tackle that, I'd probably start by making a list of common
> features of real wood, and think about how to implement each of those, and where
> they need to be in a hierarchy.

Yes, I'm dealing with it.

>
> Different growth ring thicknesses. (one ring vs another)

It has done, notice the program manipulate video 0:12 ~ 0:29, it control the
radial growth speed vs year.
Than program output the year_vs_r function using select(r - r0, , ...),
than composite them to time_function(x, y, z) with angular distortion.

> Variable growth ring thickness (change in thickness along any given ring)

This is a good idea, I think I should add it.

> Asymmetric growth ring thickness. (a bent or curved branch will be thick on one
> side and thin on the other)

Not uniform ring thickness I wonder how to implement. Basically, if it can
implement in POV-Ray, than it can do in principle. My Java program can output
some data and it can be numerous like the attachment.


Post a reply to this message


Attachments:
Download 'style.png' (87 KB)

Preview of image 'style.png'
style.png


 

From: And
Subject: Re: Wood program but still develop
Date: 14 May 2022 03:15:00
Message: <web.627f566b5b6ed24a7adfb56aa81652d@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:

> Alternating light-dark / thick-thin growth rings

I'm not sure. Is this the previous item I reply but I interpret your meaning
wrong?



> Darkening along a localized group of rings due to mold/fungus, etc.

I think it shoud contain this, too. But wait until I solve every situation I
encounter.



> Holes due to boring insects
> "checking" (cracks) due to splitting when cut wood is rapidly dried

Are you a professional person? Maybe we can discuss it. I don't know so much
about it.



> a more granular texture for the rings to represent the fibrous nature of the
> wood.

It will be competent, I'm thinking how to do this, too.



> SSLT

I'm not make efforts for the POV-Ray render. I only do the texture in POV-Ray
than I want to output the (maybe UV-map) image to another program. It can form
the pigment, ... at least.


>
> Diagrams or photos of wood would likely help you envision the types of functions
> that would control each of those attributes, and suggest ways to combine them
> into a final overall texture/material.


> There are all of the different ways to cut wood to get different grain patterns
> and expansion/contraction behaviour.

I need realize this, too.



>
> Then there's the fun of formulating pigment/texture maps for all of the
> different species...  ;)

My living country don't have much ... oak, pine ..., which species I see in the
book. (Not the same)
I'm not very familiar with these.


Post a reply to this message

From: Bald Eagle
Subject: Re: Wood program but still develop
Date: 14 May 2022 18:20:00
Message: <web.62802a4e5b6ed241f9dae3025979125@news.povray.org>
"And" <49341109@ntnu.edu.tw> wrote:

> > Asymmetric growth ring thickness. (a bent or curved branch will be thick on one
> > side and thin on the other)
>
> Not uniform ring thickness I wonder how to implement. Basically, if it can
> implement in POV-Ray, than it can do in principle. My Java program can output
> some data and it can be numerous like the attachment.

You could just an angle value to multiply the radius or thickness by.
use atan2, and make sure the output of the function varies from 0 to 1 from one
side of the unit circle to the other.  then multioply by some amount of bend and
then add 1, to get a range from 1 to N.

If you know how to do things like geometric inversion, you could use that to
distort the cylinder like a torus is distorted into a Dupin cylide.

There may be other ways as well.


Post a reply to this message

From: Bald Eagle
Subject: Re: Wood program but still develop
Date: 14 May 2022 18:30:00
Message: <web.62802c7d5b6ed241f9dae3025979125@news.povray.org>
"And" <49341109@ntnu.edu.tw> wrote:
> "Bald Eagle" <cre### [at] netscapenet> wrote:
>
> > Alternating light-dark / thick-thin growth rings
>
> I'm not sure. Is this the previous item I reply but I interpret your meaning
> wrong?

I think there are several aspects of tree rings that are all sort of
interrelated.

https://www.theforestacademy.com/tree-knowledge/annual-growth-rings/

When you abrade wood, erode it - like with driftwood, or stain it, you get an
enhancement of the grain.  This is due to the alternating hard/soft regions, and
usually the soft regions are light, and the harder regions are more brown.
Maybe xylem and phloem?


> > Holes due to boring insects
> > "checking" (cracks) due to splitting when cut wood is rapidly dried
>
> Are you a professional person? Maybe we can discuss it. I don't know so much
> about it.

I don't do anything with wood for a living, but I've felled, sawn, and worked
with lots of different wood.  And made plenty of mistakes.

https://blog.spib.org/shakes-checks-and-splits-in-dimension-lumber/

https://thetoolscout.com/how-to-dry-wood-fast-for-woodworking/



> > Then there's the fun of formulating pigment/texture maps for all of the
> > different species...  ;)
>
> My living country don't have much ... oak, pine ..., which species I see in the
> book. (Not the same)
> I'm not very familiar with these.

Thankfully there are now millions of images that you can search to see what any
types of wood look like, and all of the variations and defects, some of whick
are highly sought after - liked spalted wood.


Post a reply to this message

From: And
Subject: Re: Wood program but still develop
Date: 15 May 2022 10:20:00
Message: <web.62810b265b6ed24a7adfb56aa81652d@news.povray.org>
Browse your links roughly. Thank you.
Careless reading because I still effort on existed plane.


This one I cancelled the vertical pattern because it looks artifact.
And I try using several pattern (vs different age) superposition , because I
would like maintain the fiber length at different position.

This one about 0.1m.


Post a reply to this message


Attachments:
Download 'show tree function test several f with bumps l0.10.png' (813 KB)

Preview of image 'show tree function test several f with bumps l0.10.png'
show tree function test several f with bumps l0.10.png


 

From: And
Subject: Re: Wood program but still develop
Date: 15 May 2022 10:25:00
Message: <web.62810c255b6ed24a7adfb56aa81652d@news.povray.org>
And this one about 0.01m.

With some artifact during the position it shows staggered.
I should think a better method.


Post a reply to this message


Attachments:
Download 'show tree function test several f with bumps l0.01.png' (863 KB)

Preview of image 'show tree function test several f with bumps l0.01.png'
show tree function test several f with bumps l0.01.png


 

From: And
Subject: Re: Wood program but still develop
Date: 15 May 2022 11:00:00
Message: <web.6281144d5b6ed24a7adfb56aa81652d@news.povray.org>
I'm satisfied with this one, but with heavier coverage it is not so natural.
And variety for the height is a problem (I cancelled the original form, the new
one is list-to-do).

I found pigment_map should be a better method to composite the base color with
the thin fiber. Thus the fiber can be a darker color than the base. I still use
the 'average', but I will rewrite it.


If the output pigment want to maintain the fiber length, wood heart is another
challenge, I have tried some method, but no perfect one.


Post a reply to this message


Attachments:
Download 'show tree function test bumps l0.01 thickness0.07year near.png' (1759 KB)

Preview of image 'show tree function test bumps l0.01 thickness0.07year near.png'
show tree function test bumps l0.01 thickness0.07year near.png


 

From: And
Subject: Re: Wood program but still develop
Date: 16 May 2022 09:20:00
Message: <web.62824ec25b6ed24d2153b25aa81652d@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "And" <49341109@ntnu.edu.tw> wrote:
> > "Bald Eagle" <cre### [at] netscapenet> wrote:
> When you abrade wood, erode it - like with driftwood, or stain it, you get an
> enhancement of the grain.  This is due to the alternating hard/soft regions, and
> usually the soft regions are light, and the harder regions are more brown.

Thanks for this knowledge.




>
> > > Holes due to boring insects
> > > "checking" (cracks) due to splitting when cut wood is rapidly dried
> >
> > Are you a professional person? Maybe we can discuss it. I don't know so much
> > about it.
>
> I don't do anything with wood for a living, but I've felled, sawn, and worked
> with lots of different wood.  And made plenty of mistakes.

Here is no chance to fell a tree, not to mention I'm living in a city. Such a
thing is secluded to me, so I have respect to the people who can do these
things.



> > > Then there's the fun of formulating pigment/texture maps for all of the
> > > different species...  ;)


That's right, I will use pigment_map, but this is a picture I rendered, improved
the defect yesterday, and this is a two layered(in fact average of two) pattern
with different fiber length, eliminate some artifact about the coherence.


Post a reply to this message


Attachments:
Download 'show tree function two fiber length 0.017m 0.048m.png' (1763 KB)

Preview of image 'show tree function two fiber length 0.017m 0.048m.png'
show tree function two fiber length 0.017m 0.048m.png


 

From: And
Subject: Re: Wood program but still develop
Date: 17 May 2022 09:20:00
Message: <web.6283a0ca5b6ed24d2153b25aa81652d@news.povray.org>
Before continue the pigment_map and color, I tried a incredible detail idea
yesterday that I thought recently. Can be a new target to complete in the
future.

It is the knot.
But I'm willing to develop this feature with not so accurate shape only, I'd
like to implement it with (as much as possible) simple mathematical formula.


https://www.researchgate.net/figure/Longitudinal-section-through-a-tree-trunk-and-branch-Mueller-et-al-2006_fig1_274618
751


Post a reply to this message


Attachments:
Download '2d tree knot test.png' (1405 KB)

Preview of image '2d tree knot test.png'
2d tree knot test.png


 

From: And
Subject: Re: Wood program but still develop
Date: 24 May 2022 05:05:00
Message: <web.628c9ec65b6ed24213813f7aa81652d@news.povray.org>
Composite pigment_map and functions is more cumbersome than I think. I only
treat preconceived it easy.

The earlywood color and merge effect is not bad, but maybe strange at latewood.
Not know, should look the side cross section,  but for the purpose of trying the
pigment/color_map as quickly, I don't fix that varying function (vs height) yet.

This picture take 18m47s render time, It will slow down when combine more
(layer, concept)s.
And my main method is distinguish the heartwood, inner-sapwood, mid-sapwood,
outer-sapwood..., this one I only detail the mid-sapwood.


Post a reply to this message


Attachments:
Download 'show tree function.png' (830 KB)

Preview of image 'show tree function.png'
show tree function.png


 

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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