TodePond / CellPond

surreal cellular automata
https://cellpond.cool
MIT License
296 stars 36 forks source link

Rule with 3x3 multi-squares gets applied rotated, merged and stretched #354

Closed Paalui closed 3 months ago

Paalui commented 3 months ago

image

Also when you try to erase it with the brush it stary around partially. (right is after you move/zoom) image

Also also when you try to regenerate the grid after it doesn't work.

File: bug2.json

With the simpler case i tried it only merged some cells incorrectly: It displays it correct at first but after you move/zoom shows it broken.

image image

File: bug3.json

TodePond commented 3 months ago

I'm wondering if this (and maybe #353) are due to float inaccuracies. Could probably (maybe) scale everything up to give it a bigger window of accuracy.

Paalui commented 3 months ago

If its because of float inaccuracies i would expect it to be different when trying it with different world sizes

TodePond commented 3 months ago

its quite possible that its my shitty code instead :)

Paalui commented 3 months ago

I think #353 is because of inaccuracies and perhaps some of this too. But i don't see how the 2nd example wtih the 2way split cells can be due to it. Because it only divides by 2.

TodePond commented 3 months ago

fixed by @Paalui