Commit Graph

416 Commits

Author SHA1 Message Date
Sascha L. Teichmann
8c29975d27 Fixed tile offset. 2014-09-20 21:57:01 +02:00
Sascha L. Teichmann
ba301372f1 mtseeder: Make base level generator use the BaseTileCreator, too. 2014-09-20 15:50:07 +02:00
Sascha L. Teichmann
216f641fa3 mtwebmapper: Move BaseTileCreator to common. TODO: Make mtseeder use it, too. 2014-09-20 15:21:01 +02:00
Sascha L. Teichmann
b3ce895294 mtwebmapper: renamed yRanges to tileDepths in preparation of moving the BaseTileCreator to common. 2014-09-20 14:39:51 +02:00
Sascha L. Teichmann
3e4c1aa2d9 mtwebmapper: To avoid possible races when serving tiles the same time as re-generating them the re-generation write them to temp files and rename them afterwards. 2014-09-20 12:28:38 +02:00
Sascha L. Teichmann
e899b13889 Regenerate base tiles when db signals changes. TODO remove duplicate code from mtseeder. 2014-09-19 13:06:04 +02:00
Sascha L. Teichmann
3f13738d41 Initial decoding from incoming block changes. 2014-09-18 15:21:40 +02:00
Sascha L. Teichmann
02593a22d1 mtredisalze: made quantification a constant (default 1). Increase value if the _really_ produces too much data. 2014-09-18 11:43:12 +02:00
Sascha L. Teichmann
617a3081b2 mtwebmapper: Some code cleanup in sub baseline rendering. 2014-09-18 11:32:55 +02:00
Sascha L. Teichmann
ed9e37e892 mtwebmapper: Cleaned up gorilla mux usage a bit. Added stub for post target to get changes from mtredisalize server. 2014-09-18 07:52:37 +02:00
Sascha L. Teichmann
e81051a84c Simplified json encoding 2014-09-18 06:49:50 +02:00
Sascha L. Teichmann
51626a1371 Do nort send notifications if nothing changed. 2014-09-17 17:34:03 +02:00
Sascha L. Teichmann
29845a259d Moved sub baseline tile generation into separate file. 2014-09-17 17:20:07 +02:00
Sascha L. Teichmann
cf0aec6fa5 mtredisalize: Implemented the http POST of the tracked changes to configured URL. 2014-09-17 10:45:44 +02:00
Sascha L. Teichmann
f4c188a87a mtredisalize: Do the actual change tracking, store them in a map and serialize them to JSON when flushing is triggered.
TODO: Implement the POST request to the remote host with this JSON document.
2014-09-17 10:16:51 +02:00
Sascha L. Teichmann
400a65f563 mtredisalize: Add infrastructure to send backend store changes to separate daemons. 2014-09-17 09:51:34 +02:00
Sascha L. Teichmann
ef541f18f6 removed unnesseary redirection in storing blocks in transactions. 2014-09-17 08:41:10 +02:00
Sascha L. Teichmann
44a0d097c0 If we can't stat a base tile we can't deliver a sub tile -> 404. 2014-09-16 22:17:55 +02:00
Sascha L. Teichmann
c42be33ba9 Generate ETags and encode PNG directly to response stream. 2014-09-16 18:52:50 +02:00
Sascha L. Teichmann
3943c7cc5d Go fmt'ed. 2014-09-16 16:10:18 +02:00
Sascha L. Teichmann
48819a42a9 Used fix point arithmetic in scaler. 2014-09-16 15:49:14 +02:00
Sascha L. Teichmann
c67739fd77 Replace false rounding scaler with self written one. 2014-09-16 15:30:08 +02:00
Sascha L. Teichmann
25c189351c Added TODO 2014-09-16 11:24:00 +02:00
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