 |
 |
|
 |
|
 |
|  |
|  |
|
 |
From: Josh English
Subject: Progress on the Townscaper ripoff - organic relaxed grids
Date: 5 Aug 2025 00:23:59
Message: <6891875f$1@news.povray.org>
|
|
 |
|  |
|  |
|
 |
The Townscaper in POV-Ray progresses.
Phase one was to create a working wave-function collapse.
Phase two is to generate the relaxed grid. I have no need to handle an
infinite field of points, so this works for my needs.
Phase three is to re-write the wave-function collapse algorithm to get
off the grid and onto a node graph, as this grid cannot be mapped to a
regular grid.
Phase four is to start modeling things a little more interesting than
the five basic tiles.
Many miles of code to go.
Josh
Post a reply to this message
Attachments:
Download 'grid7.png' (105 KB)
Preview of image 'grid7.png'

|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Josh English <Jos### [at] joshuarenglish com> wrote:
> Phase two is to generate the relaxed grid. I have no need to handle an
> infinite field of points, so this works for my needs.
> Phase three is to re-write the wave-function collapse algorithm to get
> off the grid and onto a node graph, as this grid cannot be mapped to a
> regular grid.
I find this super interesting, and can see lots of creative uses for it.
Hoping to get some free time to learn more about it and follow along.
I am well familiar with the "miles of code" projects.
Seems like we need a Robert Frost Parody.
- BW
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Josh English
Subject: Re: Progress on the Townscaper ripoff - organic relaxed grids
Date: 5 Aug 2025 11:10:23
Message: <68921edf$1@news.povray.org>
|
|
 |
|  |
|  |
|
 |
On 8/5/2025 5:08 AM, Bald Eagle wrote:
> Josh English <Jos### [at] joshuarenglish com> wrote:
>
>
> Seems like we need a Robert Frost Parody.
>
> - BW
>
I have been trying to write up not just the documentation, but the
decision making process. I have lots of code I wrote to solve problems
that had to be scrapped because they didn't work or they didn't fit.
- Using the shoelace method to determine chirality of a quadrilateral
- Daniel Anderson's quadrilateral relaxation method crushed
quadrilaterals and turned some of them into darts
So yeah, a lot of code diverging into the woods.
Josh
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Josh English <Jos### [at] joshuarenglish com> wrote:
> - Using the shoelace method to determine chirality of a quadrilateral
> - Daniel Anderson's quadrilateral relaxation method crushed
> quadrilaterals and turned some of them into darts
Well don't throw away any of that code - it may yet be useful if you later see
where things went wrong.
IIRC, I needed to determine handedness to orient face normals, and use a vector
cross product to do that.
Or maybe it was the convex hull thing.
or both.
As we used to say when I was working on my PhD,
"A month in the lab can save you an hour in the library."
Always ask and see if anyone has any working code for a task.
You can always modify it, or use something different if it's not suitable for
your needs.
- BW
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Josh English
Subject: Re: Progress on the Townscaper ripoff - organic relaxed grids
Date: 5 Aug 2025 15:14:59
Message: <68925833$1@news.povray.org>
|
|
 |
|  |
|  |
|
 |
On 8/5/2025 8:40 AM, Bald Eagle wrote:
> Well don't throw away any of that code - it may yet be useful if you later see
> where things went wrong.
It's all being saved...
... somewhere
... whelp.
Josh
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |