0
Commit Graph

354 Commits

Author SHA1 Message Date
Andrew Brown
ba87959e31 added caching to chunks in RegionSet() currently disabled
This build is broken due to the mismatch in expected and actual error
condition for get_chunk. The C code still expects it to return None.
2012-01-16 00:48:30 -05:00
Andrew Brown
a48077fe54 removed unused imports in world.py. More docstrings
Also added __getstate__ and __setstate__ for pickling RegionSet
2012-01-15 19:10:14 -05:00
Andrew Brown
5096bff521 Cleaned up world.py and fixed find_true_spawn()
Added docstrings to the top of World and RegionSet
Added docstrings to some other methods
Removed unused methods that aren't part of our API
Changed get_chunk() to raise error on nonexistant chunks
Changed get_region_path() to _get_region_path()

UNTESTED!
2012-01-15 17:02:58 -05:00
Andrew Chin
48da4a6a3c Write/read last_rendertime 2012-01-15 00:22:45 -05:00
Andrew Chin
514e99dcd2 overviewer.js now uses backbone.js for much of it's multiworld handling 2012-01-14 23:33:34 -05:00
Andrew Chin
9f6a4ee698 More updates to overviewer.js 2012-01-08 15:12:40 -05:00
Andrew Brown
9e61407c67 fixed a bug in TileSet. Traversal now works according to tests. 2012-01-08 03:12:06 -05:00
Andrew Brown
3995a06c97 added TileSet tests, fixed several bugs. Still needs work. 2012-01-08 02:51:06 -05:00
Andrew Brown
fb0a7b161e forgot another thing sorry 2012-01-08 00:07:39 -05:00
Andrew Brown
ff418ba7c9 woops 2012-01-08 00:04:40 -05:00
Andrew Brown
df035aa00d changed iteration algorithm for rendercheckmode 1
UNTESTED
2012-01-08 00:03:16 -05:00
Andrew Chin
4255b26fc7 Fixed some crashes in assetManager
Copy in the rest of the web assets
2012-01-07 23:56:08 -05:00
Andrew Chin
0537733bca Merge remote-tracking branch 'origin/rewrite' into rewrite 2012-01-07 23:05:02 -05:00
Andrew Chin
25db39463f The AssetManager will now create a kinda working html output 2012-01-07 23:04:42 -05:00
Aaron Griffith
4d61e41f9f fixed crash when an option isn't recognized 2012-01-07 22:51:09 -05:00
Andrew Chin
9aa3847068 Merge remote-tracking branch 'origin/rewrite' into rewrite 2012-01-07 21:25:19 -05:00
Aaron Griffith
14f68ebeb7 import in __init__.py no longer prevents setup.py from working 2012-01-07 20:29:46 -05:00
Aaron Griffith
992f737984 fixed import loop and incorrect blockdata expansion 2012-01-07 20:23:39 -05:00
Andrew Chin
cb2f0129bc Allow regionsets to be named in a settings.py file 2012-01-07 15:11:19 -05:00
Aaron Griffith
1baf506a59 renders now work with the multiprocessing dispatcher 2012-01-06 21:56:26 -05:00
Andrew Brown
b31c4377ab fixed dependencies for TileSet 2012-01-06 21:28:01 -05:00
Aaron Griffith
1f2c1a281e the rest of the render modes are now working 2012-01-06 20:38:50 -05:00
Aaron Griffith
4eaf103213 fixes to get lighting mode working again 2012-01-06 20:23:15 -05:00
Andrew Chin
f76fd28a82 Use the overworld as the default regionset 2012-01-05 00:27:41 -05:00
Andrew Brown
da18f74338 Fixed some render-tiles not being rendered
If a render-tile is only touched by chunks with blocks at the highest
point near the sky, then the render tile may not be rendered due to the
chunk scan's algorithm. Chunks in rows divisible by 4 were not
considering the tile above them, even though the chunk partially
overlaps. This is only seen for chunks with blocks at the very top of
them by the sky, and only when no other chunks would trigger that tile
for rendering.
2012-01-03 23:42:39 -05:00
Andrew Brown
4d0acc72fd Fix tile range error in chunk scan
The chunk scan should have been checking tile bounds using the treedepth
value, not the world boundary. This was causing some tiles near the edge
to not get rendered. In the old version, the row/col boundaries were set
to the treedepth calculated bounds, so this wasn't a problem there.
2012-01-02 23:41:46 -05:00
Andrew Chin
c14cd1a66f Fixed/added some config parsing tests 2012-01-02 01:13:29 -05:00
Aaron Griffith
a1dc392526 c_overviewer is now auto-initialized, and some other minor fixes 2012-01-02 00:40:56 -05:00
Andrew Brown
3c1c962ed1 got this check backwards 2012-01-02 00:32:52 -05:00
Andrew Brown
948073fb9d Merge remote-tracking branch 'origin/rewrite' into rewrite 2012-01-02 00:30:29 -05:00
Andrew Brown
16df71b060 _render_compositetile() fixed 2012-01-02 00:29:48 -05:00
Andrew Chin
a098e5d01a Merge remote-tracking branch 'overviewer/rewrite' into rewrite 2012-01-02 00:03:31 -05:00
Andrew Chin
287b16fd13 Fixing some settings stuff 2012-01-02 00:03:10 -05:00
Aaron Griffith
c88bfa3adc almost-working full TileSet render 2012-01-01 23:58:18 -05:00
Andrew Brown
42f6b7b6ad forgot to save on my last commit 2012-01-01 23:31:27 -05:00
Andrew Brown
252e8ab33d filled in render call to tileset's render_rendertile() 2012-01-01 23:20:08 -05:00
Aaron Griffith
31f894d4e9 removed: chunk.py, quadtree.py, rendernode.py 2012-01-01 23:12:05 -05:00
Aaron Griffith
a69a78f412 c_overviewer.render_loop now works with normal render mode 2012-01-01 23:02:30 -05:00
Aaron Griffith
55e83e50da chunks are now loaded properly from the regionset 2012-01-01 22:44:11 -05:00
Aaron Griffith
f9b0f8667b initial update of C code to work with textures object 2012-01-01 22:44:08 -05:00
Aaron Griffith
c4a183b9b0 moved most global vars in textures.py into an instantiatable class 2012-01-01 22:43:37 -05:00
Andrew Chin
319d444997 Fixed typos... they're not my fault! 2012-01-01 22:20:43 -05:00
Andrew Chin
6fa86d39bc Removed stupid north_dir, and fixed unpacking 2012-01-01 22:11:52 -05:00
Andrew Chin
92880c7c38 Use the right coordinate system 2012-01-01 22:03:43 -05:00
Andrew Chin
c102211195 Merge remote-tracking branch 'overviewer/rewrite' into rewrite 2012-01-01 21:20:54 -05:00
Andrew Chin
ecceaeeb35 Removed all old code from RegionSet. Added RotatedRegionSet
Nothing has been tested
2012-01-01 21:20:17 -05:00
Andrew Brown
c866f2512b fixed typos, clarified comments in tileset.py 2012-01-01 20:08:25 -05:00
Andrew Brown
b2da6d5b0a TileSet updated for new RegionSet API
Except for a couple outstanding TODOs, TileSet is ready for action. One
of them is necessary: the call to the c renderer is not in yet.
2012-01-01 19:55:08 -05:00
Andrew Chin
b1d5dee84d Remove unused function 2012-01-01 17:56:31 -05:00
Andrew Chin
35f5bc82a4 Fixed a few more typos 2012-01-01 16:52:39 -05:00