niels747 / 2D-Weather-Sandbox

Two-dimensional, realtime, interactive simulation of earth's troposphere.
https://niels747.github.io/2D-Weather-Sandbox/
GNU General Public License v3.0
86 stars 31 forks source link

Weird lines on terrain #6

Closed Aerosoft8 closed 2 years ago

Aerosoft8 commented 2 years ago

These lines appear on terrain randomly while I zoom Screenshot 2022-06-22 000904

niels747 commented 2 years ago

I am aware of it, I will try to fix it.

KajlaKajla commented 2 years ago

I like the new update, but the rainfall is too light, almost non-existent, even though the threshold is zero

niels747 commented 2 years ago

I like the new update, but the rainfall is too light, almost non-existent, even though the threshold is zero

You can simply increase the growth rates and spawn rate in the precipitation menu. I am trying to finetune all the parameters to make it as realistic as possible, but I made them all user adjustable so anyone can experiment with it.

niels747 commented 2 years ago

These lines appear on terrain randomly while I zoom Screenshot 2022-06-22 000904

I fixed it. The problem was in realDispShader.vert on line 20: const float Xmult = 100.5; This high multiplier was causing precision issues in the horizontal coordinate, resulting in those ugly vertical lines. Replaced it by const float Xmult = 4.;
Now a new problem arose wich is that you can quicly scroll out of the rendered area and see black. To fix this I added some code in the camera controlls to make the viewXpos seamlesly jump using modulo.

Aerosoft8 commented 2 years ago

Screenshot 2022-06-24 194838

Hey. I noticed these rendering bug which appear only during fires.