POV-Ray : Newsgroups : povray.general : Semiregular pattern doodles : Re: Semiregular pattern doodles Server Time22 Feb 2024 00:23:17 EST (-0500)
 Re: Semiregular pattern doodles
 From: Bald Eagle Date: 18 Jun 2023 18:00:00 Message:
```
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"@id": "#web.648f7e5df1e842301f9dae3025979125%40news.povray.org",
"dateCreated": "2023-06-18T22:00:00+00:00",
"datePublished": "2023-06-18T22:00:00+00:00",
"author": {
"@type": "Person",
"name": "Bald Eagle"
}
}
"Droj" <803### [at] drojde> wrote:

> that's what L-Systems is all about, at least what P. Prusinkiewicz has published
> about the growth of plants and trees
> (http://algorithmicbotany.org/papers/#abop).

I came across a thread a while back where someone was getting a tree to "grow"
towards the light from inside a gazebo-type structure.  Pretty interesting work.

> The syntax of L-Systems is 'alien' - to put it mildly - but to create patterns
> or simple branched trees or plants in 2D - that's the easy part of the game.
> The tough part and where I'm stuck now is to persuade Povray to produce
> something in 3D. That makes my tiny brain burn.

So don't think in Cartesian coordinates, think in polar.  Rather than "move
right by 4 units", think "rotate a 4-unit x vector around the z axis by N
degrees"
And then do another rotation around the y axis.
Remember "the surface of a sphere is 2D".
Latitude, longitude.  2 dimensions.

> @BE Sorry for misusing your threat to keep the L-Systems banners high.

Hah.  No worries.  We all try to build upon other foundations. Plus, some of my
best threads are hijacked ones.  :D

> Love your semiregular pattern doodles.

You have to check out shadertoy - they have mind-blowing stuff.

Also, I was just putzing around with the existing scene for a few minutes, and
changed the size control of the shape from a stepwise floor() function to direct
control by a scaled noise function.

Kinda looks like cubic raindrops fell and splashed - or something.

- BE
```

Attachments:

Preview of image 'random sized pattern 1.png'