Expert: video, 3D, the camera and everything out

The last part of the tour in depth: clips and models on the page, the smooth camera path and the numbers behind every effect, your own effect presets, the renderer, music, PowerPoint, every export, presentations that move from one computer to another, and Koliber driven by scripts.

What this guide covers

As in the intermediate guide, everything is shown on examples/tour/tour.koliber; its third part, Expert, holds the objects used here. The guide assumes you know the inspector and the step panel.

Video

Insert → Video... (or the film button on the toolbar, or a clip dropped on the canvas) places a clip. Koliber plays what FFmpeg reads: MP4, MKV, MOV, AVI, WebM and more. The clip plays inside the page during the show; while you edit, it stands still on the frame it will start from.

The inspector's Video section:

SettingWhat it does
Vid Startthe second of the clip it starts from
Vid Speed%100 plays at normal speed, 50 at half, 200 at double
Decode fps0 decodes at the clip's own rate; a lower number saves work on a slow computer
Vid Loopstart again at the end; off, it stops on its last frame

And in the step panel, Video at s: the second of the clip to show when the show arrives at this step, added to Vid Start. Put one film across several steps, give each step its own cue, and every step shows its own scene. Object → Video Loop, Video Start + / - and Video Speed do the same from the menu.

The Big Buck Bunny clip selected, the Video section open in the inspector
Big Buck Bunny in the tour, starting at 2 s and looping. (c) 2008 Blender Foundation, www.bigbuckbunny.org, CC BY 3.0.

On MorphOS video needs the FFmpeg .library files beside Koliber (in Libs/) or in LIBS:; without them Koliber says so before you pick a clip.

3D models

Insert → 3D model... places a COLLADA (.dae) model. It is drawn as a solid in its Colour (Appearance), lit from the front, and the 3D model section turns it: Turn about the vertical axis, Tilt towards or away from you, both in degrees. Size, rotation on the page, shadow and entrances work as on any object. A model is drawn as a picture, so the canvas, the show, the video, the PDF and PowerPoint all show it the same way.

The torus selected, Turn and Tilt in the 3D model section
Turn changed three times, then Tilt.

Models with textures, animation or skeletons are read for their shape only. Free models in COLLADA form are easy to find; Blender exports them too (File → Export → Collada).

The smooth camera path

By default the camera flies from step to step in straight lines. Smooth camera path (Project → Settings..., Presentation) turns the whole route into one curve through all the steps, so the camera never stops dead to change direction. Three numbers shape the curve, each from -100 to 100:

SettingWhat it does
tensionhow tight the curve is at a step: 0 natural, 100 a straight line, negative a looser swing
continuityhow sharply it turns at a step: 0 smooth, negative a corner, positive an overshoot
biaswhich side of a step the bend leans to: negative before it, positive after

Show Prezi path overlay (or Steps → Show Path) draws the route while you edit. The tour uses the smooth path with all three at 0.

The path overlay curving through the tour's pages
The path through the tour, drawn over the canvas: one curve, no corners.
The Settings window
Settings: Smooth camera path and its three numbers under Presentation.

Effect settings

Every effect has numbers behind it. The > button beside a step's Effect in or Effect out (and beside an object's) opens them for that step alone; an empty field keeps the effect's default.

EffectSettings
SpinTurn: degrees the camera turns on the way; Curve %
ArcBend %: how far the path bows off the straight line; Curve %
SwoopPull back %: how far the camera pulls back halfway; Floor %: how close it may get
Push, Slide up, Slide downDistance %: where the page starts; Curve %
Zoom inStart size %; Curve %
TumbleTilt: degrees the page starts turned by; Curve %

Curve % spreads the movement over the change: 100 is even, more saves it for the end, less spends it early. Effect ms is the time, as in the step panel.

The settings of a Swoop: Pull back % and Effect ms
The settings of a step's Swoop.

Effect presets

Project → Effects... lists every effect, for Pages / slides or for Objects (the For list). Select one and Clone it: the copy gets a Name of your own and its own Value and Effect ms, and appears in every effect list of the presentation, beside the built-in ones. A "Gentle swoop" or a "Long fade" made once is then one click away on every step. Delete removes a preset of your own; Reset to default puts a built-in effect's numbers back. Presets are saved with the presentation.

The window also says what each effect needs: most run with the Software renderer, and those marked [GL] (Cross-fade) need OpenGL. An effect the current renderer cannot draw is not offered.

The Effects window
The Effects window: the list, the name, what it is based on and needs, the value and the time.

Renderer, display and defaults

Setting (Settings window)What it does
RendererSoftware draws everywhere; OpenGL (TinyGL on MorphOS) is faster and offers the effects that draw two pages at once. The note under it says when OpenGL is not available
Show atthe screen resolution a full-screen show runs at; Native leaves the display as it is
Transition effectthe effect a step gets when it does not choose its own
Fade between stepsdips through black on every change
Slide mode (deck)a deck instead of a canvas
Default effect ms, Default page shown msthe times every step uses when it is left at 0: change them to retime a whole presentation at once
Grid snapping, Grid sizethe editing grid
Autosavesaves a presentation that has a file every so many minutes; 0 = off

Use applies the settings; Save also keeps the program's own ones (renderer, grid, autosave) for next time. The presentation's own (effects, times, path, background) are saved with the presentation. On the command line, --renderer gl asks for an OpenGL context the canvas can draw in.

Music

A presentation can have a soundtrack: Settings, section Sound, Choose... (or Music in the step panel, the same setting), with its Music volume %. MP3, OGG, WAV, FLAC and whatever else FFmpeg reads. It starts with the show, and the video export puts it into the film. Clear removes it.

PowerPoint in and out

Project → Import PowerPoint... turns a .pptx into a Koliber presentation: every slide becomes a frame with a step that flies to it, with its texts (fonts, sizes, colours, styles), pictures, shapes and fills, videos, background, transitions, object animations and notes. A good start for turning an old deck into a canvas.

Export PowerPoint... writes each step as a slide: texts as real text boxes, pictures, shapes, clips that play on a click, 3D models as pictures, entrances as animations, transitions and notes. What cannot make the trip: a flying camera (PowerPoint has slides, not a canvas), gradients of more than two colours, and fonts the other computer does not have.

Every export

Project menuResult
Export HTML...one web page with the whole show, flying as in Koliber, in the presentation's own fonts, in any browser. Keys: →/Space next, ← back, Home/End, P play/pause, F full screen, N notes, M canvas/slides
Export PNG seq...one picture per step
Export PDF...one page per step; shapes as vectors, text as real text, sharp at any zoom and searchable
Export PowerPoint...a .pptx deck, see above
Export Video...a film of the whole show: every transition and every hold, with the music
Export .koliberx...the presentation packed with everything it uses
The Export video window
Export video: the size, the frame rate and the codec. The file name decides the container.

Automatic chooses H.264 when the FFmpeg libraries have an encoder for it (the Windows package does), which every browser and phone plays; otherwise MPEG-4. And this is the tour exported as HTML, open in a web browser:

The tour's title page in the HTML player, in a web browser
Export HTML: the tour in a web browser.

Files that travel

A .koliber file names its pictures, clips, models and fonts by path. When they sit in the presentation's folder (or below it), the paths are written relative to it, so the whole folder can be copied to another computer or another disk and still opens complete. A font that is missing there is drawn in Koliber's own font instead of disappearing. The tour is built this way:

examples/tour/
  tour.koliber
  pictures/   video/   models/   fonts/
  LICENSES.txt

For one file to hand over, use Export .koliberx...: the presentation and everything it uses in one package, which Koliber opens like a .koliber.

Macros and GREXX

Koliber can be driven by scripts. The desktop editor opens a GREXX port, KOLIBER.1 (GREXX is GLUI's take on ARexx). Scripts in the macros folder appear in the Macros menu, each with its own key; five come with Koliber:

The Macros menu
The Macros menu: an agenda slide, export everything, a new title slide, recolour all text, the notes to a text file.

Open the macros folder shows where to put your own, and Refresh the list picks them up. A macro is a short text file:

/* hello.grx - a title slide, saved and exported */
options results
address KOLIBER
'NEW FORCE'
'ADD TEXT CONTENT "Hello from GREXX" SIZE 72 COLOR #FFCC00'
title = result
'ADDSTEP OBJECT' title
'SAVE FILE hello.koliber'
'EXPORT FILE hello.mp4'

The commands cover the document (NEW, OPEN, SAVE, EXPORT, SHOT, QUERY, UNDO, REDO), objects (ADD, SELECT, MOVE, RESIZE, ROTATE, ALPHA, COLOR, TEXT, FONTSIZE, DELETE, DUPLICATE, FRONT, BACK), steps (ADDSTEP, GOTO, STEP, NOTES, VIEW) and the show (PRESENT, NEXT, PREV, FIRST, LAST, AUTOPLAY, STOP, WAITIDLE); doc/GREXX.md lists them all. The grexx tool sends the same commands from a terminal.

The command line

Koliber [file.koliber] [options]
  -p  --play              start the show at once
  -f  --fullscreen        ...and fill the screen (implies --play)
  -w  --window            windowed, with the controls below it
      --renderer soft|gl  which renderer draws the canvas
      --shot out.png      render one step to a picture and exit
      --step N            which step --shot takes
      --lang CODE         interface language: en pl de es fr it uk zh

Koliber tour.koliber --fullscreen makes a kiosk; --shot opens no window, so a script can make pictures of any step. On MorphOS the same options are given the Amiga way: Koliber tour.koliber PLAY FULLSCREEN.

Where to look next

  • The manual: every menu item, every key, installing, MorphOS, troubleshooting.
  • examples/tour/LICENSES.txt: where every picture, the clip and the fonts of the tour come from.
  • doc/GREXX.md: the scripting reference.