0
Commit Graph

211 Commits

Author SHA1 Message Date
Andrew Chin
81be4bc6e8 Bump mc version in travis and textures.py error msg. also force rebuild 2016-03-01 21:29:51 -05: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
Nicolas F
a8c71d089d Fix mingw-w64 build
On Windows with mingw-w64, Pillow includes windows.h, and thus
including Imaging.h would result in a name conflict of "TRANSPARENT",
which windows.h #defines but overviewer.h wants to use as enum.

For the record, this used to not be broken back when I initially
fixed Pillow for mingw-w64, so the change got somewhere introduced
between then and now.
2015-08-15 23:50:40 +02:00
Aaron Griffith
9ec0a75eaa fix lighting for flowing water and ice
fix for issue #1205
2015-02-23 10:27:08 -05:00
Aaron Griffith
bad4261cb5 Merge remote-tracking branch 'enaut/structure_overlay' 2015-02-01 12:15:56 -05:00
Franz Dietrich
086820ac72 Adding StructureOverlay an overlay to color the map according to structures.
A usecase to demonstrate a possible application of the extended functionality:

**"Rails Overlay that draws only the rails that are on Cobblestone for a subway map."**

With this patch it is very easy to achive that:

```python
MineralOverlay(minerals=[(((0, 0, 0, 66), (0, -1, 0, 4)), (255, 0, 0, 255)),
                         (((0, 0, 0, 27), (0, -1, 0, 4)), (0, 255, 0, 255))])
```

In this case the overlay will be red for rails on cobblestone and green for powerrails on cobblestone.
The syntax is `(<tuple of conditions>, <target color>)`
 * where `<target color>` is a 4 tuple with a `(r, g, b, a)` color
 * and `<tuple of conditions>` is a tuple with an arbitrary number of conditions with the following syntax:
`((relx, rely, relz, blkid), ...)` where the `rel<>` parameters specify the relative coordinates to the block that is checked if it matches bklid.

In the example the fist tuple `(0,0,0,66)` checks if at the current position is a
rail while `(0,-1,0,4)` checks if at one below the current position is a cobblestone.
If both are true then the color `(255, 0, 0, 255)` is used.

A Sample Config file exploiting the capabilities:

``` python
worlds['My World'] = "~/.minecraft/saves/test/"
outputdir = "/tmp/test_render"
rendermode = "lighting"

renders["render1"] = {
    'world': 'My World',
    'title': 'A regular render',
}
renders["render_overlay_dafault_rails"] = {
    'world': 'My World',
    'title': 'Default Rails',
    'rendermode': [ClearBase(), StructureOverlay()],
    'overlay': ['render1'],
}
renders["render_overlay_cust_rails"] = {
    'world': 'My World',
    'title': 'Custom Rails',
    #relative coordinates [[(relx, rely, relz, mineral)], (red, green, blue, alpha)]
    'rendermode': [ClearBase(), StructureOverlay(structures=[(((0, 0, 0, 66), (0, -1, 0, 4)), (255, 0, 0, 255)),
                                                            (((0, 0, 0, 27), (0, -1, 0, 4)), (0, 255, 0, 255))])],
    'overlay': ['render1'],
}
```

The "Default Rails" overlay uses default coloring of the structures overlay. "Custom Rails" uses some custom coloring.

fixes overviewer/Minecraft-Overviewer#556 and fixes overviewer/Minecraft-Overviewer#787
2014-09-03 12:05:11 +02:00
Ean McLaughlin
8f909f99de Added missing comma in function call for fence gate material definition. 2014-09-03 02:06:51 -06:00
Ean McLaughlin
f5b610e81c Update C extension version number. 2014-09-03 01:50:49 -06:00
Ean McLaughlin
a3b7ac12b8 Added definitions for the new fence gates. Hopefully I got the C side right. Close #1148 2014-09-03 01:36:44 -06:00
Andrew Chin
af47000079 Lighting fixes for red sandstone stairs and slabs
Closes #1150
Closes #1149
2014-09-02 22:23:33 -04:00
Ean McLaughlin
ed09c5c965 Added definitions and support for all the various red sandstone blocks. 2014-09-02 20:55:57 -04:00
Andrew Chin
5d13030834 Bump versions and docs for 1.8 support! 2014-09-02 10:54:13 -04:00
Andrew Chin
e82e7bf0b2 added support for different door types 2014-08-26 15:48:05 -04:00
Andrew Chin
df920e60de Added support for the difference fence colors 2014-08-26 14:17:40 -04:00
Aaron Griffith
2967032ecc added smooth-lighting exception for ice (see issue #1032) 2013-12-01 16:54:01 -05:00
aib
ed75d82588 Fix double trapped chests rendering as two singles 2013-11-17 17:57:56 +02: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
Andrew Chin
9d76e48481 Fix link errors on OSX 10.9? I think?
Fix for #1008
2013-10-31 23:02:18 -04:00
Andrew Chin
97ace8fa67 Bump header version to force rebuild (on account of biome code change) 2013-10-28 22:25:28 -04:00
Andrew Chin
b997c3b1d7 Merge PR #1005 : Add new Biomes, guessing on correct color schemes 2013-10-28 21:21:20 -04:00
Andrew Chin
63311fbd92 Fix missing dark-oak leaves 2013-10-26 14:18:17 -04:00
Andrew Chin
46bda131f9 Add stained glass and stained glass panels
Note that this commit changes the pseudo-ancil-data type from unsigned
int to an unsigned short.  Our pseudoancil code creates 5 bits of data
to store adjacency information for glass.  Glass also has 4 bits for
color info.  This means we need a total of 9 bits to render these (thus
int --> short)
2013-10-26 01:47:07 -04:00
Andrew Chin
c9571553e6 Bump extension version 2013-10-25 23:42:11 -04:00
Andrew Chin
63e9226415 Merge branch 'snapshot'
Conflicts:
	overviewer_core/src/iterate.c
2013-10-25 23:35:22 -04:00
Andrew Chin
0ab5fe0d90 Merge PR #989 -- Refactored stairs rendering to support corners 2013-10-19 12:08:57 -04:00
Andrew Brown
ca63ccb4f5 Merge pull request #1006 from maruohon/blockid-range-fix
Fix transparency check for block IDs > 255
2013-10-14 09:08:19 -07:00
Matti Ruohonen
51e5f3f2b6 Fix transparent check for block ids > 255. (getArrayByte3D -> getArrayShort3D) 2013-10-14 16:48:41 +03:00
Gavin M. Roy
b4be151c80 Add new Biomes, guessing on correct color schemes 2013-10-11 22:34:22 -04:00
Andrew Chin
1a587e783b Merge Pull Request #987 2013-09-17 19:28:37 -04:00
Jer Wilson
c86698650d Refactored stairs rendering to support corners 2013-09-16 00:31:39 -07:00
Nicolas Frattaroli
89fc9b01b6 Fixed cave render for solid unknown blocks.
is_transparent returns 1 for every unknown block because that's an easy way to
make them ignore lighting, however, this makes cave render useless with a map
containing unknown ores.

The definition is_known_transparent checks whether a block is transparent and is known.

This is a workaround, a proper fix would be to have unknown blocks be neither transparent nor
solid. Or make them both. But don't prefer one of the two.
2013-09-13 23:54:58 +02:00
Jer Wilson
3050f4099e Adding blocks for new flowers and doublePlants 2013-09-13 14:25:24 -07:00
Alejandro Aguilera
0f017f6b51 Lilypads are now properly oriented. 2013-04-07 01:33:10 +02:00
Andrew Chin
d8a70f2d9a Improve nether rendering with minecraft 1.5
The new nether quartz ore block was not recognized and was causing "pillars"
of netherrock to be rendered (with a quartz ore on top).  the same
seemed to be happened with Lava, so included taht as well
2013-03-15 19:53:01 -04:00
Alejandro Aguilera
4febc51fd8 Merge branch 'snapshot' 2013-03-13 15:53:36 +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
Alejandro Aguilera
42debd6c9d Redstone now connects to trapped chests. 2013-02-08 11:06:14 +01:00
Andrew Chin
2377b3cd52 Fixed nether rendering crash
The nether rendering mode was not properly handling x and z values
outside of the range 0 to 15.  This was causing an out-of-bounds
segfault when accessing the remove_block array.

Fixes #881
Fixes #851
Fixes #852
2013-02-07 19:53:37 -05:00
Andrew Chin
dc345ba75d Renamed the current nether to netherold, and made the new nether2 the default 2012-11-28 22:03:17 -05:00
Andrew Chin
a92f368a0d Merge commit 'refs/pull/815/head' of github.com:overviewer/Minecraft-Overviewer into merge_815 2012-11-28 21:17:06 -05:00
Alejandro Aguilera
efd2a56516 Add wooden button, command block, beacon block and cobblestone (and mossy) wall. 2012-10-23 11:26:46 +02:00
Socolin
3a04bfd336 Update overviewer_core/src/iterate.c
Support id > 255 for check_adjacent_blocks
2012-10-13 18:20:40 +03:00
Aaron Griffith
58b5c12172 c_overviewer is now slightly more binary-compatible across numpy versions 2012-09-19 12:25:36 -04:00
Mark Crichton
4ced35e9e5 Add new nether render mode. 2012-09-18 22:05:15 -04:00
Aaron Griffith
2b5de2f2de Merge remote-tracking branches 'tswsl1989/biomesoverlay', 'socolin/patch-2', 'tswsl1989/upstream', 'counterpillow/ffscalefix' and 'maruohon/log-rotation-fix' 2012-09-14 22:36:34 -04:00
Socolin
4c29cf453d Support blockid > 255 2012-09-01 15:44:09 +03:00
Thomas Lake
06a7f6ebdc Add support for 'alpha' option and change default 2012-08-25 09:26:13 +01:00
Thomas Lake
c5a0687701 Improve default colours for BiomeOverlay 2012-08-23 18:30:57 +01:00