0
Commit Graph

1893 Commits

Author SHA1 Message Date
Gregory Short
1b4a775f72 Merged and resolved conflicts. 2010-09-06 22:22:33 -05:00
Andrew Brown
41f5eab067 fixed template.html to use the right path 2010-09-06 22:53:16 -04:00
Andrew Brown
dfc336e46a should still make the tiledir even if destdir exists 2010-09-06 22:17:10 -04:00
Andrew Brown
4bbdf17bd5 Merge commit 'bf07d3d10c2e00eba3371cff700c8f3cb4d8e3e8'
Note: now that the tiles directory has changed, anyone with existing
tiles should be sure to remove or move their old set of tiles

Conflicts:
	template.html
2010-09-06 22:13:21 -04:00
Andrew Brown
92724e2688 updated readme 2010-09-06 22:05:32 -04:00
Gregory Short
9e11071b35 Moved html generation to happen before quadtree generation. This way, you can open up the html file immediately and browse the map as it is being generated! This necessitated pulling the zoom-depth determination out into its own function. 2010-09-06 20:51:06 -05:00
Gregory Short
bf07d3d10c Moved gmap tiles into a tiles/ subdirectory for a cleaner gmap final output (output directory contains just index.html and tiles/) 2010-09-06 19:58:56 -05:00
Gregory Short
040e269331 Updated template.html to use google maps api v3. This also resolves the bug where double-clicking on the right side of the map to zoom in would zoom somewhere else entirely. 2010-09-07 07:19:56 +08:00
Gregory Short
56a8970bdc Updated template.html to use google maps api v3. This also resolves the bug where double-clicking on the right side of the map to zoom in would zoom somewhere else entirely. 2010-09-06 17:44:08 -05:00
Andrew Brown
2d7bd248ed fixed strangeness in tile caching code.
I believe the tile caching and hashing mechanisms are working now.
2010-09-06 12:58:30 -04:00
Andrew Brown
54fb6ace07 fixed typo. Thanks again alexjurkiewicz 2010-09-05 21:39:43 -04:00
Andrew Brown
06006c6202 added tile caching. A tile will only be re-rendered if the underlying
chunks changed.

The next time a set of tiles is generated, a series of has files will be
written along side the image files. These keep track of whether the file
has changed.
2010-09-05 18:11:47 -04:00
Andrew Brown
ed8ea421fc won't render tiles that would otherwise be blank.
This cuts down on the number of files outputted and the total size.
2010-09-05 13:58:50 -04:00
Andrew Brown
e5edfcbac8 readme update 2010-09-05 12:34:47 -04:00
Andrew Brown
956e72dda1 fixed headers in wrong order 2010-09-04 22:57:36 -04:00
Andrew Brown
e15e05ab70 changed readme name so github will format it 2010-09-04 22:54:38 -04:00
Andrew Brown
60ed1e91ea updated readme 2010-09-04 19:38:31 -04:00
Andrew Brown
a31810957f added gmap command line interface file 2010-09-04 19:22:32 -04:00
Andrew Brown
1e08406dff quadtree generation works. Changed scaling algorithm 2010-09-04 19:22:04 -04:00
Andrew Brown
8afeb05cc8 disabled rendering torches and minetracks for now 2010-09-04 19:20:04 -04:00
Andrew Brown
4201889941 added a block totaling function 2010-09-02 23:21:09 -04:00
Andrew Brown
2005976248 I think the quadtree works now. Comments for it are inaccurate though 2010-09-02 23:19:32 -04:00
Andrew Brown
d86f158b9f re-render a chunk if the image is corrupt 2010-09-02 23:19:15 -04:00
Andrew Brown
0b2880de08 should be raising this exception 2010-09-01 23:47:22 -04:00
Andrew Brown
e2b29328c6 Merge remote branch 'origin/tiles' into tiles
Conflicts:
	world.py
2010-09-01 23:44:05 -04:00
Andrew Brown
0cb7df13fb quadtree generation sorta works 2010-09-01 23:42:17 -04:00
Andrew Brown
b198ee9049 Merge branch 'master' into tiles 2010-09-01 10:23:09 -04:00
Andrew Brown
4d0c869725 updated and clarified readme 2010-09-01 10:20:55 -04:00
Andrew Brown
2f94c2c21d ... 2010-09-01 10:18:15 -04:00
Andrew Brown
de95ef827f wrote function prototype and docstring. Now I just need to implement it 2010-08-31 23:35:23 -04:00
Andrew Brown
ee6eaf0206 tile drawing function implemented. Still needs an interface 2010-08-30 21:05:22 -04:00
Andrew Brown
8c162ce890 Checks for terrain.png in CWD first. Thanks alexjurkiewicz! 2010-08-29 11:37:18 -04:00
Andrew Brown
70361f3a6b added proper paths for Macs. Thanks ventolin! 2010-08-28 23:26:31 -04:00
Andrew Brown
6ba9eb903d corrected some numbers in the comments 2010-08-28 23:03:26 -04:00
Andrew Brown
09392fe3b4 prints out a full traceback for exceptions in worker processes 2010-08-28 22:55:17 -04:00
Andrew Brown
427f6fb92d padded block list to 256 length 2010-08-28 20:29:38 -04:00
Andrew Brown
145d271195 files are opened in binary for windows compatibility 2010-08-28 19:02:37 -04:00
Andrew Brown
403815a7dd added proper env var for windows 2010-08-28 18:50:19 -04:00
Andrew Brown
abba5e1b2f added a readme 2010-08-28 18:02:14 -04:00
Andrew Brown
6d7e64a3d1 moved Image.new after the subprocesses are started 2010-08-28 17:42:52 -04:00
Andrew Brown
8817689276 added a command line interface 2010-08-27 23:45:19 -04:00
Andrew
08a86a52ab uses multiprocessing to speed up rendering. Caches chunks 2010-08-24 21:11:57 -04:00
Andrew
2eca1a5fb5 initial comit 2010-08-22 10:16:10 -04:00