0
Commit Graph

371 Commits

Author SHA1 Message Date
Andrew Chin
0d23adb237 Avoid digging into the tileset when writing out config.js 2012-01-16 22:54:35 -05:00
Andrew Brown
bbe105ead7 Fixes segfaults in the C extension
This should have been part of 70ef0af0 but I didn't catch these.
2012-01-16 22:00:44 -05:00
Andrew Brown
66295aabd9 Find the map size even in child processes
Rendering needs to know self.treedepth, so this must be in child
processes and not just computed in do_preprocessing()
2012-01-16 21:58:48 -05:00
Andrew Chin
aa34853664 Only pass to TileSet the options it required 2012-01-16 20:35:13 -05:00
Andrew Chin
728351f9a3 Display the coord box on index.html 2012-01-16 19:50:50 -05:00
Andrew Brown
dafb659315 added __getstate__ and __setstate__ to TileSet to fix pickling 2012-01-16 02:19:34 -05:00
Andrew Brown
70ef0af00c modified C extension for get_chunk() raising exception on not found 2012-01-16 01:59:16 -05:00
Andrew Brown
f9c24df769 Merge remote-tracking branch 'origin/rewrite-rendermodes' into rewrite 2012-01-16 00:50:57 -05:00
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
Aaron Griffith
624d6ba351 updated and cleaned up overviewer.py
- moved c_overviewer version checks into __init__.py
 - bare_console support (mostly) moved into util, slightly more sane
 - removed and updated a ton of old code
2012-01-14 01:11:05 -05:00
Aaron Griffith
16fec5085e converted smooth-lighting into a primitive
for the first time ever, smooth-lit cave mode is now possible \o/
2012-01-08 22:49:20 -05:00
Aaron Griffith
ae88b6e27b converted lighting mode into a primitive 2012-01-08 22:31:41 -05:00
Aaron Griffith
c93715ebfa migrated cave mode into cave and depth-tinting primitives 2012-01-08 18:29:32 -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
Aaron Griffith
30c4bb26c3 default values for options are now specified alongside their definitions 2012-01-08 01:09:43 -05:00
Aaron Griffith
7cacc59428 setup.py now auto-discovers available render primitives 2012-01-08 00:52:30 -05:00
Aaron Griffith
a682b8a689 broke out nether, heightfading, depth, and edgelines from base primitive 2012-01-08 00:08:16 -05:00
Aaron Griffith
e3610f8ac5 moved to a layer-based rendermode system, moved normal mode to base primitive
options are now handled partially in the python side, in rendermodes.py
2012-01-08 00:08:16 -05:00
Aaron Griffith
6f66a31738 ripped out all the rendermode option stuff, preparing to move it to python 2012-01-08 00:08:16 -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