695 Commits

Author SHA1 Message Date
IntegratedQuantum
961ae104fb Check structures up to 16 blocks outside the current chunk.
fixes #203
Larger structures than that will need a different way of generating.
2024-06-17 15:47:45 +02:00
IntegratedQuantum
7e6c4385fc Fix data race in chat window.
fixes #407
2024-06-17 15:40:14 +02:00
IntegratedQuantum
e16c286735 Reduce resource usage when the game is minimized.
fixes #294
2024-06-17 15:09:30 +02:00
IntegratedQuantum
5aadd69e70 Fix background image recording.
fixes #471
2024-06-17 14:52:33 +02:00
IntegratedQuantum
d8c2a70ac5 Fix crash when changing anisotropic filtering
fixes #468
2024-06-17 12:40:58 +02:00
IntegratedQuantum
3de8271671 Store biome and height maps, interpolate height map with surrounding terrain on load, store heightmaps for old worlds that didn't have them on load.
fixes #350
2024-06-17 11:46:44 +02:00
OneAvargeCoder193
43f37763ce
Added biome fog (#466)
* Added biome dependent fog

* Fix day cycle length

* Fixed indentation

* Remove world changes

* fixed the world frfr this time

* fixed the world actually i promise this time

* WHYYYYYYYYYYYYYYY

* PLEEEEEEEEEEEAAAAAAAAAAAAAAASEEEEEEEEE BE THE LAST COMIT

* Fixes

* more fixes

* Remove world changes

* Remove biomeChecksum
2024-06-16 14:50:52 +02:00
IntegratedQuantum
582e35a670 Adjust the format_check.py to the new zig cache folder. 2024-06-16 11:49:33 +02:00
careeoki
0bb08097c7 Add magma and lava textures 2024-06-16 11:45:01 +02:00
careeoki
c89a87be78 Add lava and magma 2024-06-16 11:45:01 +02:00
careeoki
076d3e87df Update README.md texture guidelines 2024-06-16 11:27:49 +02:00
careeoki
e83f574481
New soil texture (#463)
* New soil texture

* Tweak soil palette
2024-06-16 11:24:06 +02:00
IntegratedQuantum
df0e809845 Pressing escape now unselects the selected text input.
fixes #436
fixes #404
2024-06-11 15:45:12 +02:00
IntegratedQuantum
129682821f Biomes that weren't found should have a chance of zero. 2024-06-11 12:46:06 +02:00
careeoki
68edf31ea9
Add Brick blocks (#459)
* Add brick textures

* Add brick blocks
2024-06-11 12:36:24 +02:00
IntegratedQuantum
020a811a9a Add a biome palette.
A step towards #350
2024-06-10 14:37:38 +02:00
IntegratedQuantum
5f9d740843 Optimize meshing using bitmasks to reduce the number of blocks that need to be sampled from the chunk.
Improves meshing time from 30s to just 8s at render distance 12
2024-06-09 15:45:00 +02:00
IntegratedQuantum
fffb94046d Add a FOV slider.
fixees #226
2024-06-08 17:58:06 +02:00
IntegratedQuantum
d179868243 Improve anisotropic filtering setting. 2024-06-08 15:34:21 +02:00
IntegratedQuantum
01e4184387 Revert "Optimize canBeSeenThroughOtherBlock" since it caused visual bugs.
This reverts commit c405f336ddc7ecd0ab3bd0821d4dd10fccbcd4de.
2024-06-08 14:58:58 +02:00
Weltspear
1df04351de
Made middle mouse click give player selected block (#458)
* Made middle mouse click give player selected block

* Implement suggested changes

* Removed releaseAcquireSelectedBlock

---------

Co-authored-by: Weltspear <>
2024-06-08 14:16:17 +02:00
IntegratedQuantum
afb16fdc30 Rename colorado stone to ferrock 2024-06-08 10:44:40 +02:00
careeoki
7e437ac868
Glacite and updated Peaks biome (#455)
* Add glacite texture

* Add glacite block

* Update peak biome with glacite

* Tweak peaks meekly

* Brighten Glacite by like 5
2024-06-08 10:13:41 +02:00
IntegratedQuantum
d579262b38 Make some more stone types chiselable. 2024-06-07 21:24:09 +02:00
careeoki
848b3d5526
Redesign Colorado (#454)
* Overhaul colorado_mountains

* Update colorado stone
2024-06-07 21:20:28 +02:00
IntegratedQuantum
6604c9282b Fix block selection when the resolution scale has changed.
Fixes #450
2024-06-07 14:43:00 +02:00
IntegratedQuantum
dfbad3f596 Fix backface culling for negative coordinates.
fixes #451
2024-06-07 13:43:35 +02:00
IntegratedQuantum
9caf51953d Update zig version to 0.13.0 2024-06-07 13:40:22 +02:00
IntegratedQuantum
c225efa1de Implement pre-vertex-shader backface culling on the GPU.
Decreases frametime by ~16% on my hardware.
Not as much as I hoped, but still worth a lot.
2024-06-06 16:44:51 +02:00
careeoki
50076d172d
Brighten stone for less contrast against other blocks (#448)
Only a little bit. I wouldn't do this again for no reason, i swear.
2024-06-06 09:23:38 +02:00
IntegratedQuantum
ab9c52b1b7 Properly initialize the fields of ChunkMeshNode.
Should fix #449
2024-06-06 09:12:48 +02:00
IntegratedQuantum
53730fff25 Store surrounding 3×3×3 chunks on edit.
Should make the world more resilient to terrain generation changes.
fixes #349
2024-06-05 20:14:27 +02:00
Archbirdplus
81112188d9 settings: don't overwrite cpuThreads 2024-06-05 17:20:01 +02:00
Archbirdplus
678a5c1d6c move cpuThreads inference to main.zig 2024-06-05 17:20:01 +02:00
Archbirdplus
11df21d2d2 settings: add cpuThreads option 2024-06-05 17:20:01 +02:00
IntegratedQuantum
503768b791 Draw the air fog when a block doesn't have its own fog.
fixes #403
fixes #335
2024-06-05 17:05:42 +02:00
IntegratedQuantum
cf60599c5f Optimize the chunkRequest protocol.
fixes #417
2024-06-05 16:43:25 +02:00
IntegratedQuantum
35ec0acdf2 Insert missing mutex.unlock();
Fixes #447
2024-06-05 16:20:33 +02:00
OneAvargeCoder193
da5a1c492e
Upgraded the trees and added falling trees (#441)
* Upgraded the trees and added falling trees

* Fix formatting

* Fixing some stuff i guess

* Changes
2024-06-05 15:25:49 +02:00
OneAvargeCoder193
7da56d5a68
Added stalagmite caves (#440)
* Added stalagmite caves

* Updated stalagmite texture

* Rename stalagmite to limestone and get rid of emissions

* Tweaks

* Changes
2024-06-05 15:23:47 +02:00
IntegratedQuantum
b6a69308ba Use one Mutex per node instead of locking a global mutex whenever a mesh is requested.
This reduces contention, causing a speedup in mesh generation and lighting.
2024-06-05 12:33:03 +02:00
IntegratedQuantum
c405f336dd Optimize canBeSeenThroughOtherBlock
It went from 11s down to just 3s at render distance 12.
2024-06-04 17:41:42 +02:00
IntegratedQuantum
cb2c7f07c3 Add a fast-path for sunlight propagation in uniform air chunks.
fixes #320, terrain generation in single-player is now ~30% faster.
2024-06-04 14:20:25 +02:00
IntegratedQuantum
9cacd64c4d Allow downscaling the resolution of the framebuffer.
fixes #99
2024-06-03 21:45:18 +02:00
IntegratedQuantum
6293db0ff8 Add mouse sensitivity setting (Till++ will be happy)
fixes #376
2024-06-03 19:53:06 +02:00
IntegratedQuantum
638de5e1df Regenerate all LODs whenever a biome was changed.
fixes #360
2024-06-03 19:18:50 +02:00
IntegratedQuantum
35f8060fd2 The StructureGenerator now generates structures in LOD2 more precisely and it also now considers structures from the chunk above it. 2024-06-02 20:40:11 +02:00
IntegratedQuantum
3a74300a43 JsonElement.get and .put can now handle Vector attributes.
fixes #430
2024-06-02 20:09:34 +02:00
OneAvargeCoder193
f339db4e69
Add ability to add stripes to biomes in the .json format (#432)
* terrain stripes

* fix

* Fixing up the code
2024-06-02 17:37:38 +02:00
IntegratedQuantum
13340d2956 Only show the invite button on the local client.
fixes #423
2024-06-02 12:24:47 +02:00