Commit Graph

393 Commits

Author SHA1 Message Date
Sascha L. Teichmann
e46968bbfd Added first version of the web server to drive the online mapping. 2014-09-16 03:29:28 +02:00
Sascha L. Teichmann
a468741a24 Moved PNG loading to common. 2014-09-16 01:13:12 +02:00
Sascha L. Teichmann
90bfc225b8 When generating shaded tiles draw to pix buffer directly instead of calling Set() for each pixel. Set resize filter for generating pyramid tiles to Lanczos3 because of better visual results. 2014-09-16 00:08:31 +02:00
Sascha L. Teichmann
0850b69028 Fixed tile fusing. 2014-09-14 23:10:54 +02:00
Sascha L. Teichmann
db8c5bd8e0 Change draw call to match API. Hope that helps. 2014-09-14 22:13:31 +02:00
Sascha L. Teichmann
a6bbf4a8bd Added som broken pyramid generation code. 2014-09-14 21:56:41 +02:00
Sascha L. Teichmann
bbd96172a3 Moved generation of base level tiles to separate file and made the base level generation optional. 2014-09-14 17:12:28 +02:00
Sascha L. Teichmann
dddb9c0a6b Added seeder for leaflet conform tiling. TODO: Generate pyramid. 2014-09-14 15:28:03 +02:00
Sascha L. Teichmann
f762154b05 Made tile renderer resetable to reduce the memory for render more than one tile. 2014-09-14 14:57:49 +02:00
Sascha L. Teichmann
3a0b922a9e Implemented a greedy search algorithm to figure out the block regions with are not fully covered after a rendering step. 2014-09-14 11:41:25 +02:00
Sascha L. Teichmann
9106d71363 Moved image saving to common. 2014-09-14 00:31:28 +02:00
Sascha L. Teichmann
5319e113bf Moved color parsing to common. 2014-09-14 00:02:04 +02:00
Sascha L. Teichmann
560afae6c4 Moved redis client from tilemapper to common. 2014-09-13 19:18:12 +02:00
Sascha L. Teichmann
fd64d20b76 Moved sub programs into folder cmd to clean up project structure. 2014-09-13 19:07:20 +02:00
Sascha L. Teichmann
b445cfb33a Moved bloch decoding and rendering from tilemapper to common. 2014-09-12 20:22:34 +02:00
Sascha L. Teichmann
a73e9b35c5 Reverted accidentally commited s/512/1024/ in size of y order buffer. 2014-09-12 17:54:06 +02:00
Sascha L. Teichmann
afca241c12 Cut off border blocks when in shaded output mode. 2014-09-12 17:10:05 +02:00
Sascha L. Teichmann
223d11df0b Render blocks through a ring buffer which is a binary heap ordered by descending y coords. This establisches a stream of partial y ordered blocks to reduce the the over all overdraw. Speeds up rendering about 25%. 2014-09-12 12:37:27 +02:00
Sascha L. Teichmann
f6f5aa0dd1 Little code cleanups. 2014-09-12 10:45:36 +02:00
Sascha L. Teichmann
6306a9acb7 Fixed tilerenderer. 2014-09-11 22:38:01 +02:00
Sascha L. Teichmann
09b321de02 Cache the min y value of an 16x16 area in tilemapper instead of calculating it over and over again. 2014-09-11 22:20:04 +02:00
Sascha L. Teichmann
9fdf06d671 Added shaded renderer. 2014-09-11 17:35:03 +02:00
Sascha L. Teichmann
458fc5d1da Do some early stopping when scanning for min y of a 16x16 region. 2014-09-11 11:03:35 +02:00
Sascha L. Teichmann
6588bef04a Changed background color to white. 2014-09-11 03:27:37 +02:00
Sascha L. Teichmann
9890b8b8c7 Added color for mummy spawner. 2014-09-11 02:37:48 +02:00
Sascha L. Teichmann
d08fcbbe9e Removed obsolete out commended code. 2014-09-11 02:29:34 +02:00
Sascha L. Teichmann
072eba3e5a Better early stopping when the tile is filled. 2014-09-11 02:28:09 +02:00
Sascha L. Teichmann
e2070c8b94 Do multiple queries in descending y order to make better use of the block rejection. 2014-09-11 00:22:36 +02:00
Sascha L. Teichmann
ab767a97bb Made tilerender finally work. Needs performance tweaks. 2014-09-10 23:49:27 +02:00
Sascha L. Teichmann
4fd0722ade Write image tile to PNG file. 2014-09-10 18:58:12 +02:00
Sascha L. Teichmann
26aabeb6d5 Fixed closing zlib decompressor in error case. Added missing header. 2014-09-10 17:33:13 +02:00
Sascha L. Teichmann
0ff87c1d22 Added a comment about the zlib compressed content and meta data in the blocks. 2014-09-10 08:35:20 +02:00
Sascha L. Teichmann
cb5b6461a3 Map content in DecodedBlock.Content() thru the index map to pull this logic out of the renderer. 2014-09-10 08:21:51 +02:00
Sascha L. Teichmann
e145779ca0 Added incomplete renderer. 2014-09-10 01:21:55 +02:00
Sascha L. Teichmann
baee56b27b More colors. Store indices of colors in decoded blocks instead of strings. 2014-09-09 23:33:53 +02:00
Sascha L. Teichmann
73b6fa4fb9 Added simple block decoder for tilemapper. 2014-09-09 17:48:39 +02:00
Sascha L. Teichmann
b04bb20fe4 Added copyright header. 2014-09-09 15:22:29 +02:00
Sascha L. Teichmann
0da0761b44 Added color table for tilemapper. 2014-09-09 15:01:14 +02:00
Sascha L. Teichmann
01626f0d22 Removed dev artifact. 2014-09-07 21:58:03 +02:00
Sascha L. Teichmann
58a553f0da Added right files of the tilemapper. 2014-09-07 21:46:55 +02:00
Sascha L. Teichmann
36df69a6cb Removed accidentally checked in tilemapper binary. 2014-09-07 21:44:52 +02:00
Sascha L. Teichmann
eb9cfb9959 Clip coordinates in interleaved spatial queries to world boundaries. 2014-09-07 21:36:59 +02:00
Sascha L. Teichmann
6b717e41fb Added frame for tile mapper. Not working, yet. 2014-09-07 19:59:29 +02:00
Sascha L. Teichmann
4bd6a7d69b Small string cosmetics 2014-09-07 17:29:42 +02:00
Sascha L. Teichmann
13bb251f35 Moved all the block producer/consumer interfaces to common. 2014-09-07 16:12:18 +02:00
Sascha L. Teichmann
d75fe4f102 Moved Block as type to common structures. 2014-09-07 15:57:25 +02:00
Sascha L. Teichmann
70e8d5a548 Better usage message for mtredisalize 2014-09-07 15:02:39 +02:00
Sascha L. Teichmann
cbc5ed0c6c Small cosmetics. 2014-09-07 11:15:14 +02:00
Sascha L. Teichmann
f83efba3cf Temporarly converting components to uint16 in interleving is not needed because we are only interested in the bit patterns which are the same as in the signed representation. 2014-09-07 11:07:49 +02:00
Sascha L. Teichmann
b40eb0021c Use BigMin instead of NaiveBigMin in spatial queries of SQLite and LevelDB backend. 2014-09-07 10:51:57 +02:00