0
Commit Graph

246 Commits

Author SHA1 Message Date
Aaron Griffith
187b2690f4 added get_data for getting data across chunk boundaries, fixed PAD 2012-02-21 03:49:19 -05:00
Aaron Griffith
a0d584bba6 Base render primitive now draws correctly (no biomes yet though) 2012-02-21 02:42:42 -05:00
Aaron Griffith
e33241a973 fixed leaking block data for each rendered chunk 2012-02-15 21:38:45 -05:00
Aaron Griffith
09c4e4cbf8 removed really old composite.py stub wrapper 2012-02-09 10:12:12 -05:00
Aaron Griffith
a1dacfa994 added back biome colors, and misc. cleanup in world.py 2012-02-08 15:25:22 -05:00
Aaron Griffith
302e1d592a Merge branch 'master' into rewrite 2012-02-06 21:41:11 -05:00
Andrew Brown
ff3bfceef7 more C code fixes. Activated caching.
Also removed some code that I accidentially left in.
Also added a traceback printing decorator around get_chunk() because the
C code can potentially swallow those exceptions.
2012-01-17 21:52:01 -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
70ef0af00c modified C extension for get_chunk() raising exception on not found 2012-01-16 01:59:16 -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
Aaron Griffith
f1758a51a7 added netherbrick stairs to lighting estimator
Reported in Issue #581.
2012-01-08 16:22: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
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
Aaron Griffith
a1dc392526 c_overviewer is now auto-initialized, and some other minor fixes 2012-01-02 00:40:56 -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
f9b0f8667b initial update of C code to work with textures object 2012-01-01 22:44:08 -05:00
Aaron Griffith
e6ccd79b1b blocks with invalid or unsupported data will now still draw *something*
it looks weird to just draw nothing, especially if the block is
opaque, since you can then see through the world.

fixes issue reported in Issue #563
2011-12-24 15:42:28 -05:00
Aaron Griffith
debb14c48b overviewer no longer trusts ancillary data from blocks that should have none 2011-12-18 04:51:53 -05:00
Aaron Griffith
8b55203d41 initial version of 'nether' option for normal render modes
based on eminence's gist https://gist.github.com/92b6dac4c2ed3cdcff10
2011-12-04 10:21:48 -05:00
Aaron Griffith
bca7867b86 pushed exception setting into the relevant function, removed redundant exceptions
The following functions set exceptions automatically:
PyImport_ImportModule, PyObject_GetAttrString, PyArg_ParseTuple. All
the exception setting functions in c_overviewer should act the same
way and set their own exceptions before returning.

Notably, PyDict_GetItemString does *not* set exceptions, so it is
handled specially in render_mode_find_interface.
2011-11-22 17:32:47 -05:00
Andrew Chin
4739f4af93 More specific rendermode error messages 2011-11-22 12:25:02 -05:00
Andrew Chin
9b36dfc237 Fix reference leak 2011-11-22 11:33:11 -05:00
Andrew Chin
1a96b89e78 Properly set exceptions, instead of simply returning NULL 2011-11-22 11:30:48 -05:00
Aaron Griffith
e500a1ab26 Merge branch '19prep'
Conflicts:
	overviewer_core/src/overviewer.h
	overviewer_core/textures.py
2011-11-18 17:25:01 -05:00
Aaron Griffith
f6651cd759 bumped extension number to prepare for likely merge tomorrow 2011-11-17 09:33:22 -05:00
Aaron Griffith
944edf4ef8 changed material property lookups to use a bit table, not python sets 2011-11-11 20:05:29 -05:00
Aaron Griffith
afd3ad639b textures are now stored in a continuous array in memory, instead of a dict 2011-11-11 15:49:08 -05:00
Aaron Griffith
dc0110ee73 unknown blocks are no longer assumed to be transparent 2011-11-10 09:51:25 -05:00
Aaron Griffith
acbf87db3f bumped extension version for new smooth-lighting mode 2011-11-07 19:50:55 -05:00
Alejandro Aguilera
e2dde5e6e0 Add lily pads to biome tinting. Fix pumpkin and melon stem. 2011-11-07 16:21:03 +01:00
Alejandro Aguilera
29bc7fa0ba Update iterate.c for nether brick fences and update the way glass panes and iron bars stick. 2011-11-07 15:41:55 +01:00
Aaron Griffith
53dbdc98c6 added special smooth-lighting exception for water 2011-11-05 23:29:51 -04:00
Aaron Griffith
670a458ec1 made sure smooth-lighting honors the shade_strength option 2011-11-01 15:59:03 -04:00
Aaron Griffith
4b905685eb major textures.py restructuring, not all textures implemented (Issue #516)
Be careful -- the build_* and transform_* functions no longer have a
blockID argument, because that made no sense.
2011-10-31 20:57:05 -04:00
Aaron Griffith
8e0a82ba62 unified blockmap and specialblockmap (Issue #516) 2011-10-31 13:58:25 -04:00
Aaron Griffith
75858f2df8 removed historical, seperate mask from texture tuples (Issue #516) 2011-10-31 13:40:38 -04:00
Aaron Griffith
69c109fc05 moved trasparent_blocks, etc. into textures.py (Issue #516) 2011-10-31 13:28:28 -04:00
Aaron Griffith
92b8cd33ed Merge branch 'master' into smooth-lighting 2011-10-28 13:07:01 -04:00
Aaron Griffith
85da19b1a0 turned night into a lighting mode option, added 'night' builtin custom mode 2011-10-26 22:19:27 -04:00
Aaron Griffith
00f06e0499 last of the obvious smooth-lighting render issues fixed 2011-10-26 21:50:23 -04:00
Aaron Griffith
aa7a837043 fixed segfault involving redstone on the edge of the map (Issue #519) 2011-10-26 15:14:48 -04:00
Aaron Griffith
4bddf2c78a fixed top smooth lighting tesselation error 2011-10-18 09:56:01 -04:00
Aaron Griffith
0fa734d0c5 fixed smooth lighting errors on chunk boundaries 2011-10-17 10:09:59 -04:00