Commit Graph

534 Commits

Author SHA1 Message Date
b5dcc5646d Update GNU make build script 2024-06-03 11:53:53 +02:00
5c168d342b Merge branch 'sunlight' 2024-06-03 11:25:52 +02:00
8ee0aa6ec9 Some fixes with chunk meshes not updating properly 2024-06-03 11:23:03 +02:00
Looki2000
ee1002da3a improve demos 2024-06-02 15:39:10 +02:00
Looki2000
085f2fba27 add development test demos for different features 2024-06-02 15:20:04 +02:00
5ee833c315 Only update node column after changing node 2024-06-01 21:56:00 +02:00
999db35a85 Make client ChunkManager thread safe 2024-06-01 21:47:44 +02:00
Looki2000
7adca12c8f fix set_perspective so the near plane works properly and look_at which turned out to be wrong AGAIN after fixing projection LOL 2024-05-30 01:10:23 +02:00
db5fa9ca21 Generate chunk mesh and sun lightmap on separate thread 2024-05-29 13:26:47 +02:00
17e078f743 Initial and naive sun lightmap generation 2024-05-28 20:17:59 +02:00
dde86bb8b1 Win32Window: Only register raw mouse move event when mouse is actually grabbed
Mouse grab on Windows also happens when window is moved with mouse. This
caused dragged window to move in unexpected way.
2024-05-27 13:32:46 +02:00
59f4d769b6 Show message box when local server fails to start 2024-05-27 11:51:14 +02:00
ce02c8dc2a Store chunk sun lightmap as RGBColor per node 2024-05-25 13:25:11 +02:00
ffd1d57cba Store neighbours in ClientChunk 2024-05-23 22:13:14 +02:00
c24e5e6fdd Extract client specific Chunk code to ClientChunk 2024-05-22 19:24:55 +02:00
b484b742bc Add NodeSide enum 2024-05-21 20:54:26 +02:00
b7fdb4edc2 Only define NOMINMAX when it's needed on Windows 2024-05-20 20:11:43 +02:00
ad63c5d2c5 Fix variable naming in Matrix4::set_perspective 2024-05-19 14:15:28 +02:00
a267c9d3a0 Update docs/NETWORK_PROTOCOL.MD 2024-05-17 21:53:40 +02:00
c90e20b288 Update docs/MAP_FILE_FORMAT.MD 2024-05-17 20:51:07 +02:00
2b40543425 Implement fake lightning so terrain looks a little bit better 2024-05-17 12:51:30 +02:00
756c2e98fe Reset R/W mode during map file operations in server ChunkManager 2024-05-17 11:33:11 +02:00
d347b1b74f Some minor fixes 2024-05-16 19:57:04 +02:00
dc3faff91d Fix missing #include <cstring> in normal_meshing.cpp
Thanks MSVC
2024-05-16 14:32:57 +02:00
8d93ed6f64 Use NodeDef to check if node is transparent while generating chunk mesh 2024-05-16 10:42:39 +02:00
5a6816e70e Introduce base for lightning implementation 2024-05-15 22:14:47 +02:00
d94bf97a47 Make OpenGL headers include order correct depending on compiler 2024-05-15 16:31:10 +02:00
ed9c124286 Implement changing map during gameplay 2024-05-15 14:17:09 +02:00
652ee90fc1 Make it possible to change default map on server 2024-05-15 13:49:16 +02:00
04bfc1a8a2 Win32Window: Implement raw mouse input 2024-05-15 13:35:15 +02:00
b68415be42 Fix compilation with MSVC 2024-05-15 10:55:10 +02:00
f182c84c93 Don't push chunk without mesh to m_unloaded_chunks 2024-05-09 20:52:26 +02:00
bd221ceb02 Show PolyGun ASCII art at the start of program 2024-05-09 15:54:05 +02:00
Looki2000
fd092d3a2d major changes to light_cast 2024-05-07 14:09:24 +02:00
Looki2000
9dcff14b68 reduced ray casting code duplication 2024-05-06 23:57:35 +02:00
accdee9549 Use std::recursive_mutex as guard in ThreadSafe 2024-05-06 17:10:31 +02:00
97ca39457d Fix compilation with Clang 2024-05-06 17:02:22 +02:00
49e7e8053a Remove accidentally added "media" submodule 2024-05-05 20:12:59 +02:00
Looki2000
c68de9caa6 added shortening of path printed by logger 2024-05-05 17:44:18 +02:00
Looki2000
caca8bcf79 added angelscript download and unpack tool 2024-05-05 16:47:20 +02:00
Looki2000
dc746ae82a Merge branch 'master' of https://git.cubesoftware.xyz/PolyGun/PolyGun 2024-05-05 15:13:56 +02:00
Looki2000
a15cdccb78 fixed and simplified look_at, added ray casting with target position for lighting 2024-05-05 15:13:48 +02:00
061e60b839 Fix array out of bounds access in ChunkManager 2024-05-04 22:35:12 +02:00
06109c7fd3 Only update one chunk per frame 2024-05-04 11:42:10 +02:00
0a66799c47 Implement animated chunk loading and unloading 2024-05-04 11:07:33 +02:00
3b4f29f53f Improve random Chunk lookup in client 2024-05-03 16:38:57 +02:00
5b25027e51 Change anchor point of Rect3D 2024-05-03 14:31:42 +02:00
d85b340398 Remove LoadedChunk and move it's members to Chunk 2024-05-02 10:46:43 +02:00
b35ae45ae7 Some patches in NetworkManager 2024-04-30 11:16:12 +02:00
Looki2000
67baab5035 fixed missing include in item_gallery.hpp 2024-04-28 21:59:37 +02:00