2. Let’s try 0.5 to 1.5
- 2.1 rocket_client lib - Connecting to a Rocket Editor
- 2.2 rocket_sync lib - Variable values at a given time
- 2.3 rocket_example - An example project
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.