Andrew Brown
cd360c3c60
comments adjustment in nbt.py
2011-11-20 10:52:04 -05:00
Andrew Brown
c6b56030ec
dirtytile trees can now iterate at any level
...
Fixed some broken tests too.
2011-11-20 10:50:37 -05:00
Andrew Brown
83663733af
added tile rendering speed output for debug mode
2011-11-19 10:49:31 -05:00
Andrew Brown
0be4e8664b
added bounds checking for tiles during scan
...
fixes the problem where tiles outside the bounds (which can happen with
-z) would cause tiles to be rendered along the border even though they
have no chunks, causing a warning.
2011-11-18 10:01:22 -05:00
Andrew Brown
4c34e413ab
renamed "level" to "depth" in DirtyTilesTree. Also...
...
iterate_dirty() yields tuples, not reverseiterators
added another level to test_iterate_level()
2011-11-16 20:53:52 -05:00
Andrew Brown
95b4ec5922
wrote some unit tests!
2011-11-16 20:39:01 -05:00
Andrew Brown
bd08dbc955
Minor comments adjustments
2011-11-15 13:56:39 -05:00
Andrew Brown
04a2f05d1c
implemented stochhastic check with chunk scanning
...
Also changed uniform(0,1) to random()
2011-11-13 09:39:49 -05:00
Andrew Brown
866b499142
Lots of rearranging and comments touchups
...
fixes progress updates for first level tiles
fixed long-standing typo inntertile -> innertile
2011-11-13 09:22:19 -05:00
Andrew Brown
3cc22bc13c
Two chunkscan optimizations implemented
...
Checks a path in the tree to see if it's already dirty before
calculating its filepath and checking its mtime
Changed Tile.get_filepath() to use str.join instead of os.path.join
2011-11-11 17:44:16 -05:00
Andrew Brown
b9bca19cda
fixed auto-detection for forcerender on empty maps
...
also re-arranged code so scan_chunks() returns the tree object
2011-11-09 23:17:27 -05:00
Andrew Brown
f6b7e1b501
implemented forcerender and auto-detection of empty tiledirs
...
Also added a few debug lines during chunkscanning with timing info
2011-11-08 16:02:15 -05:00
Andrew Brown
14ed48f975
misc cleanup and minor optimizations
2011-11-08 15:31:01 -05:00
Andrew Brown
75070f817f
fixes so the last commit runs on maps that need work
2011-11-07 23:18:38 -05:00
Andrew Brown
13f3ba90ab
preliminary chunk-scan algorithm activated.
...
forcerender and stochastic are currently broken.
2011-11-07 22:18:51 -05:00
Andrew Brown
636913af57
Merge remote-tracking branch 'origin/master' into brownan-chunkscan
...
Conflicts:
overviewer.py
overviewer_core/quadtree.py
2011-11-07 21:04:01 -05:00
Andrew Chin
d59410123d
New table format to list detected worlds
2011-11-07 20:52:30 -05:00
Andrew Brown
d589369ea3
catch-all exceptions and print a more colorful message
2011-11-07 20:36:00 -05:00
Andrew Brown
49f8e1a09f
configure_logger() takes a loglevel and verbose flag now
2011-11-07 20:11:10 -05:00
Aaron Griffith
acbf87db3f
bumped extension version for new smooth-lighting mode
2011-11-07 19:50:55 -05:00
Aaron Griffith
9b39a96fef
Merge branch 'smooth-lighting'
2011-11-07 19:46:10 -05:00
Andrew Brown
b1c38a56f2
scan_chunks() works according to preliminary tests \o/
2011-11-06 23:25:47 -05:00
Andrew Brown
6c0ab7e48c
moved tile filepath calculation to Tile object
2011-11-06 21:12:11 -05:00
Andrew Brown
2e28375786
damn semicolons!
2011-11-06 20:58:50 -05:00
Andrew Brown
33667093a3
added the default value for bgcolor and imgformat in QuadtreeGen constructor
2011-11-06 20:46:05 -05:00
Andrew Brown
6e2d52ceee
This should really raise an error if file not found
2011-11-06 20:35:11 -05:00
Aaron Griffith
4de9ba3b6e
added docs for lighting and smooth-lighting
2011-11-06 20:34:06 -05:00
Andrew Brown
3f54347735
cleaned up some mess, clarified some things in comments
2011-11-06 18:27:37 -05:00
Andrew Brown
30e7083cd0
Tile.compute_path implemented and exhaustively tested
2011-11-06 10:01:44 -05:00
Andrew Brown
13bca41192
docs: illustration of quadtree paths
2011-11-06 09:38:19 -05:00
Aaron Griffith
53dbdc98c6
added special smooth-lighting exception for water
2011-11-05 23:29:51 -04:00
Andrew Brown
c460b0747d
added more docs on tile layout and addressing
2011-11-05 12:04:00 -04:00
Andrew Brown
5d8daabe05
re-named variables for increased accuracy
2011-11-04 18:34:08 -04:00
Andrew Brown
5d26d3e5f6
added repr, eq, neq methods to Tile class
2011-11-04 18:33:27 -04:00
Andrew Brown
c56c39fac7
Added note to -v option in docs
2011-11-03 21:36:38 -04:00
Andrew Chin
42593bab58
Use a terse logging line if --verbose is not specified
2011-11-03 21:29:27 -04:00
Andrew Chin
2dc1496432
Fix typo ._.
2011-11-03 10:40:43 -03:00
Andrew Chin
09303de945
Added note about range accepted by --stochastic
2011-11-02 12:48:02 -04:00
Aaron Griffith
cc4877f149
fixed stochastic_render and regionlists working together
2011-11-01 23:43:05 -04:00
Aaron Griffith
4d5f19b081
Merge branch 'agrif-stochastic'
2011-11-01 23:20:05 -04:00
Aaron Griffith
d8455804e9
added docs for --stochastic-render (woops)
2011-11-01 23:19:27 -04:00
Andrew Brown
665472814b
wrote a bit of docs about quadtrees
2011-11-01 22:52:22 -04:00
Andrew Brown
72681a36cb
re-factored the way tiles are passed from quadtree through rendernode
2011-11-01 22:32:34 -04:00
Andrew Brown
ab53a9bd3e
added a tree class to keep track of dirty tiles
2011-11-01 17:10:41 -04:00
Andrew Brown
96cf62bd14
changed "go" methods in world and quadtree to something more descriptive
2011-11-01 17:10:41 -04:00
Andrew Brown
996b299c79
On map shrink, delete top files to ensure they get regen'd
2011-11-01 17:10:41 -04:00
Andrew Brown
55adc75d31
minor cleanup, comments/docstring adjustment
2011-11-01 17:10:41 -04:00
Aaron Griffith
670a458ec1
made sure smooth-lighting honors the shade_strength option
2011-11-01 15:59:03 -04:00
Andrew Brown
bcec6529d5
Merge pull request #524 from overviewer/fancylogging
...
Fancylogging for all!
2011-11-01 11:23:35 -07:00
Andrew Brown
877b036f1d
Wrote "assembling a chunk" section of the docs
2011-11-01 12:50:43 -04:00