PROPHET/OS

NAME

lux: the engine engine drawing a scene in the screen's real points, over the kernel module lux (the same scene in console cells is cell); without the module, or with the console not shown alone, it plays the scene in cells and says so

SYNOPSIS

lux [scene|file] [-seed n] [-t hh:mm] [-d day] [-x speed] [-y style] [-b depth] [-e seconds] [-F seconds] [-T ms] [-o file.ppm] [-S] [-Q] [-M] [-G] [-R] [-D view] [-off look] [-l]

DESCRIPTION

The engine engine drawing a scene in the screen's real points, over the kernel module lux (the same scene in console cells is cell); without the module, or with the console not shown alone, it plays the scene in cells and says so. The engine chooses the fineness, a window's step of glass among them, by the points it draws. What is there (land, water, town, creatures, the hour, the weather, the look), never how to draw it. The engine puts it in the order of the world and lets what burns of itself shine after the tint of the hour. The same file and the same seed draw the same world. Scenes lie in /engine/scenes; a path names a file of one's own.

-l, --list-scenes   list the scenes
-seed n      the world
-t hh:mm     the hour, -d 0..364 the day of the year
-x n         seconds of the world per second (60)
-y style     simple (as drawn), pixel, flat, outline, minimal, neon, 16bit,
             dark (dark fantasy: black violet shadows, crimson light),
             gothic; above 16 bits a style keeps its colours and no steps
-e n         end after n seconds, a measure: only Escape stops it, other keys are dropped;
             -S frame statistics at the end
             -Q the same statistics with the engine's features free to step (R13-ENG-04); -S holds them
-M           the buildings' meshes on engine's bands instead of ProphetGL
-G           the meshes rastered by ProphetGL's fastest provider as a visibility buffer; the default
-R           the reference: the meshes' coarse steps and the light's cells off, to measure against
-D view      a debug view over each frame, the frame's nodes as bars: nodes, depth, source
             (anew, a keep, the card), light (marched, a cell, the old frame), ids, lod, wire
-T ms        every frame moves the world by ms, whatever it took: what a frame at that rate costs
-F n         the eye flies through the scene's views, n seconds from one to the next
-o file      the last picture into a PPM at the end, for a run without a screen to shoot
-load file   the last loading screen into a PPM before the first picture; load_screen: bar in cell.conf is the first screen
-b depth     the colour depth, 32 (default), 24 or 16 bits; a style steps only at 16
-off look    one look off for a comparison: animals, bloom, fog, cel, post, vignette, skylight

n p          next and previous scene
r            a new seed
d            the speed of time: 60, 600, 3600, 1
s            the next season
w            the weather: clear, rain, snow, storm, mist (a ground bank of the morning)
a b f c      animals, bloom, fog, cel shading
v            a vignette, off at the start (scene: look vignette on)
D            the debug views one after the other, then the picture
g            the G-buffer in false colours: normals, material, moisture,
             sun and shadow, crevice, then the picture again
1 .. 9, 0    the scene's views, when it names them (views: [{at: [x, y, z],
             yaw: d, lens: shift}, ..]); the first is where it opens
y            the next style
space        stop and go on, q the end

A scene is a YAML file, /engine/scenes/<name>.yaml, places in percent of the picture; a layer is one item of layers, its kind the key:

scene: alm
time: "10:00"
day: 170
speed: 60
date: [7, 12]
horizon: 46
sky: {clouds: 16000}
style: pixel
look: {fog: on, vignette: off}
layers:
  - ridge:  {base: 56, height: 36, scale: 20, snow: true, haze: true, tone: rock}
  - ground: {kind: meadow, from: 62}
  - pond:   {at: [78, 70], size: [28, 14]}
  - trees:  {band: [56, 66], density: 12, pines: true}
  - animal: {kind: cow, count: 6, band: [66, 92], span: [0, 60]}

date: [month, day] sets the day on the calendar of thirteen months of 28 days from the spring equinox, by their Hebrew names: 1 Nisan, 2 Iyyar, 3 Sivan, 4 Tammuz, 5 Av, 6 Elul, 7 Tishri, 8 Cheshvan, 9 Kislev, 10 Tevet, 11 Shevat, 12 Adar, 13 Veadar, then the year day (14). The European names lie over them for those who know these: 1 March .. 7 September .. 10 December, 11 January, 12 February. Every month has 28 days, four weeks, every year; the year day (two in a leap year) belongs to no month and no week, so a date falls on the same weekday in every year.

Layers: ridge, hills, skyline, ground, sea, pond, river, houses, trees, flowers, animal (kind: cow ..), flock, field, path, farmhouse, barn, pen, ruin, abbey, deadtree, rubble, fire. Tones: meadow, rock, redrock, hedge, pine, sand, snow, towers, fartowers, houses, leaves.

A ruin carries a coat: finish: bare|lime|render, or built: <year> picks the coat of its time out of /engine/materials.yaml (before 1700 bare stone, lime to 1900, render after); age: <years> and the scene's moisture take it off in patches, most at the foot.

sun: {strength: 70} lets that percent of a clear sun through a haze before it; depth: 16|24|32 the colour depth, 32 unless named.

surfaces: [moss_ledges, lichen] names what grows on the surfaces, rows of /engine/surfaces.yaml; a scene that names none takes moss alone.

Settings: cell.conf, the same as cell's, (<home>/.cell.conf before /system/config/cell.conf) names the scene to start with when none is given, and switches animals, bloom, fog, cel, post and vignette over the scene's own look. model_parts caps the parts of a model, 0 (the default) takes any number; lux.conf wins over engine.conf, which holds it for both.

EXAMPLE

$ lux --help
lux [scene|file] [-seed n] [-t hh:mm] [-d day] [-x speed] [-y style] [-b depth] [-e seconds] [-F seconds] [-T ms] [-o file.ppm] [-S] [-Q] [-M] [-G] [-R] [-D view] [-off look] [-l]
  a scene out of /engine/scenes, or a file of one; lux -l (--list-scenes) lists them
  -seed n the world, -t hh:mm the hour, -d 0..364 the day, -x n seconds of
  the world per second, -y simple|pixel|flat|outline|minimal|neon|16bit|dark|gothic the style,
  -b 32|24|16 the colour depth, 32 by default; a style steps only at 16; -o file.ppm the last picture
  -e n end after n seconds, -S frame statistics, -off animals|bloom|fog|cel|post|vignette|skylight a look off;
  lux --ways the ways here
  keys: n p scene, r new seed, d speed, s season, w weather, a animals,
        b bloom, f fog, c cel shading, v vignette, y style, m map grid, arrows turn the eye,
        g the G-buffer: normals, material, moisture, sun, crevice, 1..9 0 the scene's views
        space pause, q quit

SEE ALSO

cell, rain, re_celltest