Documents

Technical documentation

Pixa Draft Spec

2012-02-21 20:03

Pixa

Test code here: http://dev.openttdcoop.org/projects/bandit/repository/show/misc/pixel_generator
Needs moving to this project at some point (or rebuilding).

Scanline Render Module
Scans an image from 0,0 (top left). For each 'magic colour' pixel found in the scan, the renderer draws a sequence of n new pixels at x,y offsets, the sequence also specifying the colour of each pixel drawn.
...

Draft spec 2

2012-02-22 21:29

http://paste.openttdcoop.org/raw/1144/

PixaColouring
PixaSequence
PixaSequenceCollection
PixaMixer
PixaRenderer (maybe also PixaCompositor - unproven)

----------------

Image to sequence
> (Unwritten)
> Utility to load a PNG and turn it into a pixa sequence.
...

Example variation hierarchy

2012-02-28 08:36


Variations
    |- company colour 1
    |    |- ...
    |- company colour 2
    |    |- ...
    |- real colours
        |- coal cargo
        |    |- ...
        |- iron ore cargo 
        |   |- show trailer front wheels 
        |   |   |- ...
...