1245 Commits

Author SHA1 Message Date
IntegratedQuantum
d4e9fa2c44 Add block selection. 2022-10-25 18:24:08 +02:00
IntegratedQuantum
2b561a0154 Update to new zig version 2022-10-19 15:20:09 +02:00
IntegratedQuantum
7d70bca35c Add bloom. 2022-10-18 18:56:02 +02:00
IntegratedQuantum
a04fc3369d Get block updates from the server and update the mesh. 2022-10-17 20:30:57 +02:00
IntegratedQuantum
cd5c466bc8 Remove unnecessary framebuffer binding. 2022-10-14 22:33:16 +02:00
IntegratedQuantum
55fa0064b9 Create the logs folder. 2022-10-14 20:36:24 +02:00
IntegratedQuantum
0c32d76a4a Make it compile on windows and remove -gdwarf-4 (a workaround to an old zig compiler issue). 2022-10-14 20:08:00 +02:00
IntegratedQuantum
3aed075a88 Refactor: Use @truncate 2022-10-13 19:04:56 +02:00
IntegratedQuantum
90a77ebf17 Add the genericUpdate Protocol. 2022-10-11 11:15:32 +02:00
IntegratedQuantum
1c76c5a174 Refactor network.Protocols so it works with auto-complete from zls. 2022-10-10 18:57:02 +02:00
IntegratedQuantum
cb5135da6e Add temporary entity rendering(it's a green rect) and receive entity data from the network. 2022-10-10 10:44:26 +02:00
IntegratedQuantum
d0d4b624c1 Start working on the client-side entity code. 2022-10-09 10:29:18 +02:00
IntegratedQuantum
6a5ea7f1d9 Make tsan happy. 2022-10-06 17:52:17 +02:00
IntegratedQuantum
bb2786c36f Better chunk load order, and better loading priority. 2022-10-04 16:40:42 +02:00
IntegratedQuantum
aa3a769dbe Fix directional bias when determining what chunks are within renderdistance. 2022-10-04 14:07:37 +02:00
IntegratedQuantum
3734aa60af Display blocks behind transparent blocks. 2022-10-02 19:12:21 +02:00
IntegratedQuantum
4af1cfdc4a Remove some leftover code from before merging ReducedChunks and NormalChunks. 2022-10-01 17:10:22 +02:00
IntegratedQuantum
9a2085f0da Fix wrong textures at chunk borders. 2022-10-01 17:00:46 +02:00
IntegratedQuantum
26f4dd2ff2 Fix chunk meshes at lod borders. 2022-10-01 16:46:58 +02:00
IntegratedQuantum
219957681d Change the way how faces are handled (they are now stored in the chunk they are facing towards, instead of the chunk where the actual block is in). 2022-10-01 11:41:23 +02:00
IntegratedQuantum
e8e1fb401c Forgot to commit shader changes. 2022-09-29 13:10:11 +02:00
IntegratedQuantum
dbc416332a Add Mesh creation for voxelSize=1 chunks. My goal is to combine all meshes in one algorithm to simplify things from the java version. 2022-09-29 12:15:47 +02:00
IntegratedQuantum
76b9b118a1 Store chunks in an array instead of an octree. 2022-09-24 17:41:26 +02:00
IntegratedQuantum
95eb578719 Work on daylight and directional light. 2022-09-20 13:58:13 +02:00
IntegratedQuantum
acceb26a36 Update to newest zig version. 2022-09-19 12:29:33 +02:00
IntegratedQuantum
0883f75f95 Send the player position to the server. 2022-09-18 10:23:27 +02:00
IntegratedQuantum
c742b5ed74 Add movement and camera rotation. 2022-09-17 10:50:24 +02:00
IntegratedQuantum
d532848262 Fix some bugs, remove some debug output. 2022-09-15 20:30:55 +02:00
IntegratedQuantum
faa018093f Add Frustum Culling. 2022-09-15 13:04:13 +02:00
IntegratedQuantum
e6659675b2 Add the chunk data structure for rendering and render chunks received from the network. 2022-09-14 22:09:26 +02:00
IntegratedQuantum
307044a4ed Add the ThreadPool. 2022-09-12 10:25:04 +02:00
IntegratedQuantum
0e90e2b4e6 Add some more protocols and fix some stuff. 2022-09-11 19:36:48 +02:00
IntegratedQuantum
055ccf88d3 Add the client-side of the handshake. 2022-09-11 16:45:34 +02:00
IntegratedQuantum
af54187d4b Add the STUN stuff. 2022-09-09 16:54:47 +02:00
IntegratedQuantum
d542c21c86 Finish the ConnectionManager and implement the socket in a cross-platform way. 2022-09-09 10:16:45 +02:00
IntegratedQuantum
bebc007d74 Add some networking code (namely the UDPConnection.java) and create a threadlocal allocator, to make simple allocations easier(without creating/passing around a new allocator every time). 2022-09-05 21:41:54 +02:00
IntegratedQuantum
b7889a554d Add the random algorithm from the old cubyz. 2022-09-02 20:22:22 +02:00
IntegratedQuantum
b12e61260c image loading, chunks/chunk meshes, starting a bit on rendering. 2022-09-02 19:48:16 +02:00
IntegratedQuantum
0a3311ee56 Block loading. 2022-08-29 23:15:33 +02:00
IntegratedQuantum
4af97d93c6 Add json parsing. 2022-08-28 23:14:32 +02:00
IntegratedQuantum
a852725a9f Add all the 2d drawing commands from the Cubyz-java (except from text). 2022-08-28 13:27:43 +02:00
IntegratedQuantum
1be03cf5f8 Add simple vectors. 2022-08-28 11:02:30 +02:00
IntegratedQuantum
5e766ab9c6 Add shader compilation and use reflection to assign uniform locations. 2022-08-28 09:54:00 +02:00
IntegratedQuantum
786b65d556 Add glfw and glad and make a window. 2022-08-24 22:08:07 +02:00
IntegratedQuantum
5ad35f4955 Init project and overwrite logging, so it logs to a file. 2022-08-23 23:06:35 +02:00