Commit Graph

99 Commits

Author SHA1 Message Date
Sascha L. Teichmann
b59f849d73 Make go vet happy. 2016-05-08 18:03:13 +02:00
Sascha L. Teichmann
fad16a58e8 Write tile coord if it is unchanged not the file path to the base tile. 2016-05-08 17:43:48 +02:00
Sascha L. Teichmann
398c52f8a5 Removed unnecessary general code. 2016-05-08 17:33:51 +02:00
Sascha L. Teichmann
792aae99d7 Simplified tile hash. 2016-05-08 17:22:04 +02:00
Sascha L. Teichmann
0900bd16ce Finished logic to supress pyramid regeneration in mtwebmapper. Untested. 2016-05-08 15:38:50 +02:00
Sascha L. Teichmann
5ee3731a27 Started with experimental hashing of base tiles to avoid redundant write operations and pyramid updates. 2016-05-08 12:33:17 +02:00
Sascha L. Teichmann
67a16e2d3e Unexport render internal methods. 2016-04-24 13:31:13 +02:00
Sascha L. Teichmann
8c459d05de Removed dead code. 2016-04-24 12:55:17 +02:00
Sascha L. Teichmann
ea57c7c35f Silence all warnings of golint not related to missing comments. 2016-04-24 12:41:58 +02:00
Sascha L. Teichmann
607b4de9ec Dedup code. 2016-04-23 21:09:23 +02:00
Sascha L. Teichmann
0db9b519a6 Implement fetaure request issue #17
mtseeder and mtwebmapper got an option to set the background color where no nodes are generated, yet.
2016-04-23 16:45:33 +02:00
Sascha L. Teichmann
b5f531b0ba Before Go 1.7 there is an extra offset needed to decode blocks correctly
after the embedded compressed data. In post 1.7 this bug was fixed.
We use build tags here to support both cases.
2016-04-08 23:40:36 +02:00
Sascha L. Teichmann
384c11659e version 0.6 2015-12-26 18:19:03 +01:00
Sascha L. Teichmann
f658d12641 Use github.com/bamiaux/rez instead of github.com/nfnt/resize for resampling the pyramid tiles. It is much faster but needs some testing. 2015-12-25 22:07:54 +01:00
Sascha L. Teichmann
6ae5936de9 Be more verbose if image decoding failed. 2015-08-24 10:58:46 +02:00
Sascha L. Teichmann
08031f1dcd Do more boundary checks in block decoding. 2015-08-24 10:45:28 +02:00
Sascha L. Teichmann
011cd0e4f4 Be more defensive in decoding node id table in blocks. 2015-08-23 22:48:54 +02:00
Sascha L. Teichmann
c4c35dc10d Use a sync.Pool to recycle the zlib readers. Speeds up the decoding of database blocks significantly. 2015-08-08 16:01:23 +02:00
Sascha L. Teichmann
ab1a86384b Reset zlib reader instead of re-opening it before reading meta data from block. Speeds up decoding of blocks significantly. Using a sync.Pool will seed it up even more. 2015-08-08 13:00:12 +02:00
Sascha L. Teichmann
e606e2700f Fixes #14. mtseeder and mtwebmapper now have command line flags -ymin=block and -ymax=block to limit the y range of mapping. Defaults to full range. 2015-07-27 19:03:47 +02:00
Sascha L. Teichmann
62a53dc26b Unified handling of printing versions of programs (--version). Setting version to 0.5 2015-07-26 22:04:16 +02:00
Sascha L. Teichmann
7f82d482f5 More header updates. 2015-07-26 16:44:51 +02:00
Sascha L. Teichmann
f6e5eb8510 Moved ordering of two int64 to common/math. 2015-07-26 16:40:50 +02:00
Sascha L. Teichmann
becf017edc Small cleanup. Moved min to common/math. 2015-07-26 12:32:59 +02:00
Sascha L. Teichmann
e1eb03813f Add a -transparent-dim=percent flag to set the extra dimming of transparent materials each depth meter. 2015-07-26 11:55:38 +02:00
Sascha L. Teichmann
93d4aedffa Fixed non-interleaved sqlite support. 2015-07-23 16:20:42 +02:00
Sascha L. Teichmann
e8e4d6afeb Cache empty tiles to speed up seeding. Enforce Go 1.4 for the ability to compress better. 2015-07-22 01:11:14 +02:00
Sascha L. Teichmann
8b4f4b1401 Merged. 2015-07-21 23:38:18 +02:00
Sascha L. Teichmann
39df42b675 Removed another use of fmt.Printf. 2015-07-21 23:35:10 +02:00
Sascha L. Teichmann
fb2b03a14a Fix reciever naming in coverage 3d. 2015-07-21 22:09:28 +02:00
Sascha L. Teichmann
1921b8211b Some little experiment with a coverage index to speed up spatial queries if backend has no Z order support. 2015-07-21 22:01:10 +02:00
Sascha L. Teichmann
80113b885f Fix for issue #10. Set transparency level of pixels based on the alpha channel of colors.txt. 2015-07-20 14:56:41 +02:00
Sascha L. Teichmann
ecd599e44d Terminate all log.Printf with a new line. 2015-07-20 14:19:41 +02:00
Sascha L. Teichmann
91a50a4622 Log missing colors only once to make log output less spammy. 2015-07-20 14:01:01 +02:00
Sascha L. Teichmann
232feaa435 Dont store air only information in decoded block. This can be found out pretty easy by analysing the other fields if needed. 2015-07-20 13:27:46 +02:00
Sascha L. Teichmann
b66c7fdff3 Redis client: Pulled micro optimisation over from server when constructing bulk strings. 2015-06-28 14:41:07 +02:00
Sascha L. Teichmann
2d00eb9567 Simplifications when decoding blocks from database to save some memory allocations. 2015-06-21 22:47:06 +02:00
Sascha L. Teichmann
1baf9f9dee Silence a few golint warnings. 2015-05-27 18:13:39 +02:00
Sascha L. Teichmann
787fc959d0 Removed some dead code. 2015-05-01 14:04:23 +02:00
Sascha L. Teichmann
cf9cbe7087 Fixed hill shading for transparent structures a bit. Still not optimal. 2014-10-28 11:53:18 +01:00
Sascha L. Teichmann
121a046eee Increase base transparency from 45% to 50%. 2014-10-27 21:42:09 +01:00
Sascha L. Teichmann
f3ed470d57 Set transparency attenuation to %45 + 2%/m. 2014-10-26 23:53:58 +01:00
Sascha L. Teichmann
f5d84f0b7b Only use the transparent image generation if there where any transparent blocks. 2014-10-26 22:36:57 +01:00
Sascha L. Teichmann
b8bae923ec Prevent stopping depth scanning too early when handling transparent nodes. 2014-10-26 20:39:53 +01:00
Sascha L. Teichmann
8452a26fcd Render transparent tiles if command line flag is set. 2014-10-26 18:36:47 +01:00
Sascha L. Teichmann
2aa9ee0e24 Collect more statistics about number of solid and transparent blocks and print them in mttilemapper. 2014-10-26 17:09:23 +01:00
Sascha L. Teichmann
99ff99a8f4 Added cascading transparent annuation algorithm based on spans. 2014-10-26 11:01:36 +01:00
Sascha L. Teichmann
eaa3949b10 Added a flag to decoded block to check if it contains any transparent colors. Useful to establish a fast path in transparent rendering if it does not. 2014-10-25 11:20:51 +02:00
Sascha L. Teichmann
4f49d114c6 span buffers: Simplified code by throwing away cases that cannot happen. Extended unit tests with more pattern to check. 2014-10-21 18:03:27 +02:00
Sascha L. Teichmann
269e63ea59 span buffer test now passes. Code ist still too complicated. 2014-10-21 17:41:19 +02:00