matthiasvegh / Chunkymator

A json generator for Chunky
GNU General Public License v2.0
5 stars 2 forks source link

Chunkymator Build Status Code Health Coverage Status Stories in Ready

A json generator for Chunky

Requirements: python 2.x, numpy, scipy, and a batch of jsons from Chunky. A demonstration video is available here

Usage

Create a couple of scenes in chunky that are of the same map, with same resolution, chunk lists etc. Most attributes of the scene are interpolated, including camera position, orientation, clouds, sun, colours, intensity and so on. Once that's done, fire up morph.py, enter the number of scenes, and drag/drop or type the (absolute) file paths of each scene. If all went well, morph.py should start spewing out coordinate data for the interpolated frames, once that's done, it will start saving the generated .jsons as interpolated.json.

Then use chunkys command-line render tool to render all of the files.

Command Line Options

Camera options

Sun movement control

Consider the following example:

Sun position 0 1 2 3
90° x
60°
30°
x x x

Using the sun override switch will alter this to become:

Sun position 0 1 2 3
90° x
60° x
30° x
x

This works as expected for monotonous sequences, but also works for non monotonous ones:

Sun position 0 1 2 3 4 5 6
90° x x
45°
x x x x x
Sun position 0 1 2 3 4 5 6
90° x x
45° x x
x x x

In the latter case, monotonous sections are discovered and then linearized.

Rendering

Use render_all.py to iterate over all the scenes and invoke chunky.

./render_all.py -c /path/to/Chunky-Launcher.jar -t 10 /path/to/scene1 /path/to/scene2 ...