Alejandro Aguilera
e0a3f0c4ce
Make seas more like in-game (draw only the top surface).
2011-05-28 01:08:55 +02:00
Alejandro Aguilera
a58f23d128
Fix bad looking waterfalls.
2011-05-28 01:02:33 +02:00
Aaron Griffith
93424c296d
textures are now only generated when actual *rendering* is done
2011-05-13 12:30:13 -04:00
CounterPillow
027419fa5f
Moved the blockid check further up in the for-loop to increase performance while rendering empty chunks.
2011-05-12 13:46:19 -04:00
Alejandro Aguilera
3c8d7e6442
Add portals to textures.py, needed changes in chunk.py and iterate.c and added beds to transparent blocks.
2011-05-08 02:10:19 +02:00
Aaron Griffith
c1e71f0fda
grass now has snowy sides when covered in snow
2011-05-01 19:42:27 -04:00
Alejandro Aguilera
24c1e0dfd5
Add single and double chests with orientation to the textures.
...
Add some comments about textures using pseudo data.
2011-05-02 00:10:54 +02:00
Aaron Griffith
fc176206ff
initial C biome code
2011-03-27 05:49:57 -04:00
Aaron Griffith
310cb8a1f6
Merge commit 'fenixin/dtt-c-render-water-redstone' into dtt-c-render
...
Changed 0b0000 constants into 0x00 equivalents.
2011-03-26 23:34:42 -04:00
Alejandro Aguilera
afb05098f9
Add support for redstone and improve the looking of waterfalls.
...
Changes in textures.py and iterate.c
2011-03-27 03:51:45 +02:00
Andrew Chin
71a2a024cc
Print tracebacks on error
2011-03-26 00:06:24 -04:00
Xon
6c9bbc25da
Better error messages, removed import which triggered a failure
2011-03-25 21:42:18 +08:00
Xon
1d5b338d56
Check PyImport_ImportModule return result
2011-03-25 21:34:06 +08:00
Aaron Griffith
2d64d2d84d
changed 0b(...) constants into (1 << n) equivalents
...
0b(...) isn't supported by GCC :(
2011-03-24 19:41:08 -04:00
Alejandro Aguilera
4f5bf93b49
Fix "that NULL should be Py_None"
2011-03-24 23:54:58 +01:00
Alejandro Aguilera
d04bea2b66
Add functions generate_pseudo_data and check_adjacent_blocks to iterate.c
...
Fences working.
2011-03-24 23:43:11 +01:00
Alejandro Aguilera
4da53b4f9c
Load the 4 adjacent blocks in iterate.c
2011-03-24 23:40:01 +01:00
Andrew Chin
977bf09a12
Bunch of changes to make VS happy
...
Mostly variable declarations moved to the top of blocks.
is_transparent can't be inline, since it's needed in several places
2011-03-23 20:34:49 -04:00
Andrew Chin
97d708106a
Fixed typo preventing build
2011-03-21 23:18:34 -04:00
Aaron Griffith
0e85f87fa7
removed NULL checks on render mode interface
...
all the functions are required to exist, now
2011-03-21 20:46:30 -04:00
Aaron Griffith
e9b30cf780
changed PyArray_GETPTR3 to getByteArray3D
2011-03-21 20:34:48 -04:00
Aaron Griffith
4a01a5fb7b
separated normal and lighting render modes
2011-03-21 19:53:20 -04:00
Aaron Griffith
b908c6e07c
separated iterate and rendermode code, rendermodes are now defined by interface structs
2011-03-21 07:41:10 -04:00
Aaron Griffith
7b7f97d6c5
moved important render state into a struct, to prepare for modular render modes
...
(making the code look worse, so it can look better!)
2011-03-21 06:40:37 -04:00
Aaron Griffith
da58be569f
C code style fixes for lighting/normal code merge (woops...)
2011-03-21 06:21:55 -04:00
Aaron Griffith
cd34d6052b
renamed is_transparent (more like other function names), and exposed it to other C files
2011-03-21 06:18:51 -04:00
Aaron Griffith
88d5f15131
fixed blockid memory leak
2011-03-21 06:05:06 -04:00
Aaron Griffith
2881324084
merged lighting and non-lighting render code
2011-03-21 06:02:47 -04:00
Andrew Chin
61819a7f30
Merged in dtt-c-render
...
Conflicts:
src/overviewer.h
2011-03-20 21:29:05 -04:00
Andrew Chin
329c7557f6
Move some code out of the render_loop function and into a 1-time init
...
routine
2011-03-20 21:13:17 -04:00
Andrew Chin
e096eb45ff
Initial version of C lighting code
...
Needs *lots* of performance work
2011-03-19 22:55:59 -04:00
Andrew Chin
26d781f249
declaration tweak to make some compilers happy
2011-03-19 14:37:48 -04:00
Andrew Chin
1ac922983f
Use the list of transparent_blocks from chunk.py.
...
This fix is part 2 (of 2) of the graphical rendering glitch fix.
2011-03-19 00:38:30 -04:00
Aaron Griffith
28b750b694
changed block lookup to use numpy macros
...
this fixes (probably all of) the errors we saw before, but not because
we're using the official numpy macro; it's because the old macro
messed up on coordinates like (x, y+1, z) due to operator precedence.
2011-03-19 00:15:29 -04:00
Andrew Chin
f9ae158457
removed log message in iterate.c
2011-03-18 16:37:47 -04:00
Aaron Griffith
6941bc3378
fixed up new C code to be (mostly) C89-compliant
...
*mostly*, because the "inline" keyword isn't C standard until C99, but
I'm leaving it in because most compilers support it and it's really
handy. If it becomes an issue, we can deal with it later.
2011-03-17 23:04:41 -04:00
Alejandro Aguilera
c79b0b9b20
changed imgy calculation and moved "imgy -= 12" to start of loop
...
from discussion in
<https://github.com/agrif/Minecraft-Overviewer/commit/4e63e6#iterate.c-P282 >
2011-03-11 17:54:12 -05:00
Aaron Griffith
5852c17ec8
changed my code style to be more in line with eminence's (and PEP 7), added GPL notice
2011-03-08 20:04:23 -05:00
Aaron Griffith
07dd219d20
refactored c extensions into one
2011-03-08 17:43:50 -05:00
Aaron Griffith
7555bcf1af
moved c extensions into src/
2011-03-08 16:54:20 -05:00