0
Commit Graph

19 Commits

Author SHA1 Message Date
Nicolas F
e348a548b6 Initial Python 3 port
Many things work, some don't. Notably, genPOI doesn't work, and
there's some signedness comparison stuff going on in the C extension.

This also completely drops support for Python 2, as maintaining a C
extension for both Python 2 and 3 is a pain and not worth it for the
9 months that Python 2 is still going to be supported upstream.

The documentation needs to be adjusted as well.

All of the few tests we have pass, and rendering a map works, both
with a configuration file and without. We can also use optimizeimages.

Concerns #1528.
2019-03-17 17:57:07 +01:00
Nicolas F
b70f1a012f Fix C extension build warnings the painful way
Some bad distributions (Debian) apparently are not good enough to
have a Pillow version from this decade packaged.

Therefore, we need to do it the painful way of prefixing our
symbols and refactoring everything to use them.

A new header file called "utils.h" has been added for this purpose,
and it is included in "overviewer.h".

The following macros have been prefixed with "OV_":
- MIN
- MAX
- CLAMP
- BLEND
- MULDIV255

Additionally, the C extension version was bumped to 56 because 55
was reverted back to 54.
2019-02-22 12:53:47 +01:00
Andrew Chin
bc9a097957 Add some new blocks for Minecraft 1.9
* Purpur blocks, pillars, stairs, and slabs
* End brick
2016-03-01 21:25:15 -05:00
Stefan Floeren
3d3ef0c82e Remove inline for estimate_blocklevel
Inlining the function allows the compiler to optimize away the
function completely. Clang 3.7.1 does exactly that.

This leads to an error, if the library is used with python:

    % ./overviewer.py
    Traceback (most recent call last):
      File "/tmp/minecraft/Minecraft-Overviewer/overviewer_core/__init__.py", line 20, in check_c_overviewer
        import c_overviewer
    ImportError: /tmp/minecraft/Minecraft-Overviewer/overviewer_core/c_overviewer.so: undefined symbol: estimate_blocklevel

    Something has gone wrong importing the c_overviewer extension.  Please
    make sure it is up-to-date (clean and rebuild)
2016-02-13 15:46:04 +01:00
Aaron Griffith
9ec0a75eaa fix lighting for flowing water and ice
fix for issue #1205
2015-02-23 10:27:08 -05:00
Andrew Chin
af47000079 Lighting fixes for red sandstone stairs and slabs
Closes #1150
Closes #1149
2014-09-02 22:23:33 -04:00
Nicolas Frattaroli
2346c26f37 Added dark wood and acacia wood blocks
Includes stairs, slabs, planks and saplings.
2013-11-02 15:12:44 +01:00
Alejandro Aguilera
5bba5dab75 - Fixed lighting for anvils.
- Added vertical orientations for dispensers and droppers
- Added special cases of stone and sandstone double slabs
2013-03-11 14:02:36 +01:00
skeight
f40049a79c 1.5 Pre-Release updates/fixes
Fix for Ender Portal Frame, w/eye of ender, in all orientations
Minor fix for Comparator back torches
Update to lighting on Quartz stairs
Added Quartz Half Slabs
2013-03-08 07:48:25 -08:00
Andrew Chin
e86084e0ca Merge remote branch 'origin/snapshot' 2012-08-01 09:52:53 -04:00
Alejandro Aguilera
5d32e722ff Add all the new stairs in 1.3. 2012-07-26 17:25:53 +02:00
Aaron Griffith
c17e33a810 skip_sides in lighting_is_face_occluded is now correctly named
switched a conditional, but should still be fixed as per 75f80dae95
2012-06-07 20:17:49 -04:00
Aaron Griffith
4ac7c1222a lighting and smooth lighting updated for anvil 2012-02-21 15:51:34 -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