Page 1 of 2

Isolines and isobands

Posted: Wed Jan 20, 2021 9:02 pm
by darkfrei
Hi all!

My try to make a simple marching squares in Lua.

Re: Isolines and isobands

Posted: Thu Jan 21, 2021 11:12 am
by darkfrei
How I can understand that this lines must not crossing?

Re: Isolines and isobands

Posted: Tue Feb 09, 2021 10:42 am
by darkfrei

Re: Isolines and isobands

Posted: Thu Feb 11, 2021 9:41 pm
by darkfrei
Again just isolines lua, not isobands.

Actually, it's not marching-squares, it's marching-triangles.

Re: Isolines and isobands

Posted: Tue May 18, 2021 9:20 pm
by darkfrei
Reworked version of marching squares, based on this tutorial: https://www.youtube.com/watch?v=0ZONMNUKTfU

Re: Isolines and isobands

Posted: Wed May 19, 2021 9:49 am
by Gunroar:Cannon()
Nice, the marching triangle(4th one) really looks like an actual contour map.
What are marching squares used for though?
I only know of using it to align(?) tilesets so that they look natural.

Re: Isolines and isobands

Posted: Wed May 19, 2021 10:15 am
by darkfrei
Gunroar:Cannon() wrote: Wed May 19, 2021 9:49 am Nice, the marching triangle(4th one) really looks like an actual contour map.
What are marching squares used for though?
I only know of using it to align(?) tilesets so that they look natural.
It was a way to make a nice smooth smog for Factorio mod. The old smog was (is) too squarish.

Image

Re: Isolines and isobands

Posted: Thu May 20, 2021 5:06 pm
by Gunroar:Cannon()
Wow, that really is an improvement!

Re: Isolines and isobands

Posted: Fri May 21, 2021 8:43 pm
by Suttebun
Hahaha, you know when colors blend together - you can see the natural blending points?
It's like.. you manually built those instead of writing bumps that have noise.

Re: Isolines and isobands

Posted: Tue May 02, 2023 2:36 pm
by darkfrei
So, isolines and isobands are solved!


Here
isoline is one segment, maybe two segments in tile.
isoband is a polygon for each tile, the list of them (or no polygon in tile).

Press arrows to scale, move noise with mouse or change isoheight with mouse wheel.

:awesome:
:crazy:
isolines-and-isobands-10.png
isolines-and-isobands-10.png (58.36 KiB) Viewed 1888 times
Screenshot 2023-05-02 212616.png
Screenshot 2023-05-02 212616.png (132.52 KiB) Viewed 1861 times