Commit Graph
99 Commits
Author SHA1 Message Date
Piotrek 65bacd745e not loading already loaded chunks 2021-05-17 15:12:15 +02:00
Piotrek 5266b32823 writing chunks instead of blocks 2021-05-17 14:53:59 +02:00
Piotrek 7359b6549c freeing methods in renderer 2021-05-16 22:50:25 +02:00
Piotrek 00d1fa427a loading chunks in one axis at a time 2021-05-16 21:34:11 +02:00
Piotrek 0487f4acf3 waiting for previous chunk loading before doing next 2021-05-16 21:00:15 +02:00
Piotrek eecedbf4f4 fixed node texture shifting bugs 2021-05-16 19:08:47 +02:00
Piotrek 67bb4fddd0 cleaning 2021-05-16 17:19:23 +02:00
Piotrek 76e952995d preparing for node buffer shifting in a separate thread 2021-05-16 15:01:37 +02:00
Piotrek 57e1a9134e Moved node buffer logic to Nodes struct 2021-05-16 14:25:03 +02:00
Piotrek 77c74be02f ChunkLoader 2021-05-16 14:04:45 +02:00
Piotrek f8760e876c Loading and generating chunks in a separate threads 2021-05-15 20:48:59 +02:00
Piotrek e6a8712de0 preloading stats 2021-05-15 17:16:32 +02:00
Piotrek fa72ea7da4 bug with +z was my stupid mistake :] 2021-05-15 17:10:14 +02:00
Piotrek 16edbfea42 bug fixes, faster node texture shift, loading +z not working (0,0,2 chunk loading only one line) 2021-05-15 17:07:20 +02:00
Piotrek 00c518b9c1 Endless world, still some bugs to figure out 2021-05-14 19:54:46 +02:00
Piotrek e6329d568c World 0,0 is now at the center of the node texture 2021-05-14 14:25:12 +02:00
Piotrek 05b62d4b90 Changed chunk size from 32x32x32 to 16x16x16 2021-05-14 13:04:46 +02:00
Piotrek c1f3d0f398 Threaded loading chunks 2021-05-14 12:10:44 +02:00
Piotrek 120049d9f7 world shifting almost working 2021-05-13 16:18:01 +02:00
Piotrek 98736c39a0 Method for shifting world nodes texture 2021-05-13 11:59:22 +02:00
Piotrek 57782a88ab Dynamic loading, saving, generating chunks works 2021-05-13 09:13:43 +02:00
Piotrek ab9f4c83d0 WIP generating chunks at player position 2021-05-12 16:17:38 +02:00
Piotrek 4acf8ea816 preparing or auto loading chunks around player 2021-05-11 14:46:11 +02:00
Piotrek 6acdd51b05 Some toying with shader 2021-05-11 13:35:47 +02:00
Piotrek 0c7f07bc7b Made blocks texture have equal size, this created problems with memory usage 2021-05-11 13:22:09 +02:00
Piotrek 71e30abb62 Added fog 2021-05-11 10:57:54 +02:00
Piotrek e110e99053 larger block buffer 2021-05-10 22:07:07 +02:00
Piotrek a09f446ecd Pausing rendering, warnings cleanup, more statistics 2021-05-10 15:36:11 +02:00
Piotrek 4eaa0fab56 Compressing with lz4 2021-05-10 13:30:15 +02:00
Piotrek 3bd9fa942e Changed project name (placeholder), some renames 2021-05-10 10:43:14 +02:00
Piotrek 3a45d4e0de minor name changes 2021-05-09 18:48:06 +02:00
Piotrek 0e53810fbd writing node buffer in chunks to allow >48 size 2021-05-09 18:25:44 +02:00
Piotrek 466f98a42c updating node buffer max once per frame 2021-05-09 18:15:30 +02:00
Piotrek bf14d7c578 slightly faster copying blocks data 2021-05-09 18:09:03 +02:00
Piotrek 23d702ad6c Fixed loading world, added saving meta data 2021-05-09 16:27:04 +02:00
Piotrek d0b7a781b4 Loading world, not working yet 2021-05-08 22:55:25 +02:00
Piotrek 547f66d214 Saving world to file 2021-05-08 18:42:32 +02:00
Piotrek 989b75f54d Fonts, glyphs, displaying fps 2021-05-07 15:41:08 +02:00
Piotrek c089afbcbe samplers not required? 2021-05-06 15:53:45 +02:00
Piotrek c16ad4f4a0 bug fixes 2021-05-06 15:49:21 +02:00
Piotrek 45362afbf4 works 2021-05-06 15:38:51 +02:00
Piotrek 5b1ca38d75 ready for testing 2021-05-06 14:49:15 +02:00
Piotrek cb2379786c Combined node and block buffer into one struct: content. 2021-05-06 14:40:47 +02:00
Piotrek d34196a6bd World, WorldChunk, WorldBlock structure working 2021-05-06 12:43:03 +02:00
Piotrek c04a1aea11 World structs 2021-05-05 14:38:12 +02:00
Piotrek 89934ba97c cleanup 2021-05-04 20:26:15 +02:00
Piotrek 78d3a43deb small fixes 2021-04-29 16:40:53 +02:00
Piotrek ddf0c42784 working generating terrain 2021-04-28 23:17:16 +02:00
Piotrek 719b6f8f26 NOT WORKING ATM. something with block ids. 2021-04-28 21:21:29 +02:00
Piotrek 600fe689b7 Block struct 2021-04-28 20:08:21 +02:00