Aaron Griffith
be26dc702b
added option to QuadtreeGen to specify tile output directory
2011-03-02 08:29:33 -05:00
Aaron Griffith
5a043ab3d6
fixed -d flag, which now deletes just overviewer.dat
2011-03-02 08:28:55 -05:00
Aaron Griffith
300d4ac53e
added back lighting, night, and spawn support
2011-03-02 08:21:41 -05:00
Aaron Griffith
94c1fbfaa6
fixed typo in quadtree.py
2011-03-01 20:42:58 -05:00
Aaron Griffith
d813053329
removed lingering traces of the hash system
2011-03-01 20:28:31 -05:00
Aaron Griffith
4293851fcc
fixed chunk double-render bug and artifacts at the top of each tile
2011-03-01 20:22:22 -05:00
Aaron Griffith
16bab9be3b
less time between console messages for -p1
2011-03-01 18:40:06 -05:00
Aaron Griffith
33b10f7065
initial (and incorrect) drawing code
2011-03-01 16:45:04 -05:00
Aaron Griffith
83d7a36ef4
moved quadtree.py to mtime-based update checking, and added a stub direct-to-tile renderer
2011-03-01 13:18:25 -05:00
Aaron Griffith
f34d9739e9
removed rendering code from WorldRenderer (now just World)
2011-03-01 12:28:37 -05:00
Aaron Griffith
5485e684b5
gutted gmap.py in preperation for direct-to-tile rendering
2011-03-01 10:34:34 -05:00
Aaron Griffith
5f5bda948e
Merge remote branch 'eminence/mcregion' into mcregion
2011-02-23 18:01:09 -05:00
Aaron Griffith
b40d84f92b
fixed crash on worlds named "World[not int]", and made world list play nice with world names
2011-02-23 13:07:21 -05:00
Aaron Griffith
dd01eae9e0
corrected world loading by name to handle renamed worlds
2011-02-23 12:52:21 -05:00
Aaron Griffith
3ce887162b
support for opening worlds by name
2011-02-23 12:42:00 -05:00
Aaron Griffith
45dee1aa39
added MCRFileReader class to nbt.py, to handle new region files
2011-02-23 00:14:27 -05:00
Aaron Griffith
c43e7c0dbf
alpha_over warning will now only print once per run
2011-01-01 19:00:44 -05:00
Aaron Griffith
0ab56ce1d9
made sure biome color arrays are loaded in each thread
2011-01-01 15:45:36 -08:00
Aaron Griffith
b2d8c415ca
added check to textures.py prepareBiomeData so it will only run once per process
2011-01-01 15:43:45 -08:00
Aaron Griffith
0136cc1eba
changed textures.py to use global declarations instead of sys.modules[__name__]
2010-12-31 17:59:14 -05:00
Aaron Griffith
e4b5a10b9a
some fixes to setup.py for Mac OS X, and .gitignore additions
2010-11-09 21:34:05 -05:00
Aaron Griffith
80b1cab81c
changed new grass/leaf block code to use alpha_over
2010-11-07 17:45:06 -05:00
Aaron Griffith
759a9663af
shuffled around the code a bit to make it C89 compliant
...
On my machine, the code now compiles with "-std=c89 -pedantic -Wall",
with no warnings (except for those emitted by the Python headers,
grr...)
2010-10-28 16:56:10 -04:00
Aaron Griffith
169d553360
added note to README about missing Imaging.h on some platforms
2010-10-26 07:56:07 -04:00
Aaron Griffith
d01244a7d8
added note to README about compiling the extension (marked optional)
2010-10-23 18:30:03 -04:00
Aaron Griffith
395e26ef9c
changed most PIL paste() calls into composite.alpha_over() calls
...
The ones I have not changed are those where paste() is really
preferred, and I've noted why in comments.
Calls to "dest.paste(src, rect, mask)" were converted to calls to
"composite.alpha_over(dest, src, rect, mask)".
2010-10-23 13:42:31 -04:00
Aaron Griffith
8120bcd455
added a wrapper for alpha_over that falls back on PIL paste() if needed
2010-10-23 13:42:15 -04:00
Aaron Griffith
5a19b8b375
Added a PIL alpha_over extension in C, and code to setup.py to build it
...
I needed a way to let py2exe options be provided only when py2exe is
available. My solution (maybe not the best) was to put all the
arguments for the final setup() call into a dictionary, that is filled
in conditionally during the script's execution. This is why the file
is completely changed; however, it still does what it used to do (when
py2exe is available).
2010-10-23 13:17:56 -04:00
Aaron Griffith
35e664a32c
updated README to reflect new lighting options
2010-10-14 21:04:41 -04:00
Aaron Griffith
f8b516b360
Merge branch 'master' into lighting
...
Conflicts:
chunk.py
2010-10-14 15:01:31 -04:00
Aaron Griffith
66e39f8b4d
made sure lava blocks are fully lit
2010-10-14 14:02:04 -04:00
Aaron Griffith
c11e23a18f
added semi-correct lighting for half-blocks
2010-10-14 13:57:48 -04:00
Aaron Griffith
b44cb9c3f8
added proper occlusion tracking to lighting function
2010-10-14 13:36:20 -04:00
Aaron Griffith
e51556f314
moved lighting data into properties, and light logic into a function
2010-10-12 21:11:27 -04:00
Aaron Griffith
e4e52cee0b
moved get_lighting_coefficient into the ChunkRenderer class
2010-10-12 19:05:44 -04:00
Aaron Griffith
a5ae703258
added support for ploylines and polygons on the google map
...
Polygons and polylines are read from the new file "regions.js". Polylines
(entries with "closed" set to false) are just lines drawn on the map.
Polygons (entries with "closed" set to true) are closed loops that are
filled in with a transparent color.
2010-10-09 15:44:48 -04:00
Aaron Griffith
4c58d28854
fixed remaining function renames from merge
2010-10-05 08:55:35 -04:00
Aaron Griffith
51e1721a6d
Merge branch 'master' into lighting
...
Conflicts:
chunk.py
gmap.py
textures.py
world.py
2010-10-05 08:35:23 -04:00
Aaron Griffith
8dccf4162c
added run-time flags to enable lighting or nighttime rendering
2010-09-28 16:57:23 -04:00
Aaron Griffith
d6fc49e1d9
store less data at once, and chunk boundary lighting occlusion checks
...
I also changed the default light level to be based off the light
calculation function, so night renders have a reasonable default light
level now.
2010-09-28 10:47:19 -04:00
Aaron Griffith
27e9b1cb15
added (commented out, for now) night render code
2010-09-27 20:31:31 -04:00
Aaron Griffith
8d145f2b58
added correct chunk boundary lighting
2010-09-27 19:59:41 -04:00
Aaron Griffith
db62ad94ee
correct (though chunk-local only) per-face lighting
2010-09-27 19:04:35 -04:00
Aaron Griffith
a15390cc47
initial stab at lighting support
2010-09-27 14:55:16 -04:00
Aaron Griffith
a5cc2e3ae2
more accurate marker positioning on map, and a reasonable custom projection
2010-09-27 14:54:10 -04:00