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