Toggle Menu

2. Let’s try 0.5 to 1.5

rocket example

rocket to demo diagram

Sections

Overview

To see this working, download and compile the Rocket Editor.

It is used to edit a file format which allows scheduling how variable values changes over time. These values then can become uniform values for shaders or the demo can use them in other ways to animate objects.

The variable values don’t come from Rocket, the editor only edits the data. The editor tells the demo tool over localhost:1338 what the user has changed (for example adding a key value to a track) and the demo tool makes the same changes in its own data structures.

The variable values are calculated by the demo (using the sync library), but the since the sync lib implements the same interpolations, the values will correspond to the values shown in Rocket.

The values don’t come from Rocket because when the final demo executable is running, it will be standalone, and the editor instance will not be there. Instead, the demo loads the data (the tracks and keys) and calculates the interpolated variable values at a given time.