Graphics.RecordDataAndPlayItBackInDOUG - lordmundi/wikidoctest GitHub Wiki

Record ANTARES TRICK data and play it back in EDGE

NOTE!!!

This article is specific to the internal development of the ANTARES sim, so many paths and elements may not apply to you. Some of the generic information may be helpful however to other users. To see the generic EDGE instructions, try the Simdata page. —frankie May 21, 2007, at 05:11 PM

DOUG has the capability to playback pre-recorded data. This is very useful for making movies, or for showing off static demonstrations, since it requires only running the DOUG environment, and none of the sim. You avoid any processor and network lag and show a smooth simulation. Using the playback feature is fairly simple.

Recording the Data

To record the data, set Trick up to log the data. The data that you need to record is in /vobs/cev/sims/Log_data/log_graphics.d . You get Trick to log it as you would get Trick to log any data. If you don't know how to do that, follow these steps:

  1. Edit the input file you'll be using.

  2. In the input file, add a line to setup the DOUG configuration properly. There are four choices: DOUG_ASCENT_CONFIG, DOUG_ORBIT_CONFIG, DOUG_COCKPIT_CONFIG, and DOUG_ENTRY_CONFIG. If your sim is in SIM_cockpit, inside the input file you would add a line:
    #define DOUG_COCKPIT_CONFIG

  3. Immediately beneath the #define, include the log_graphics.d, i.e.
    #include Log_data/log_graphics.d

When you run your sim, this will record the data you need for playback. Note that you must run your sim compiled with graphics, otherwise the data you need will not be pushed through the sim.

Using the data

To use the data, start DOUG without starting up the sim. Ideally, you should still use the run_CEV_doug script, since it sets some environment variables that you want to maintain. I find the easiest way to do this is to copy the script and comment out or delete the parts that start the sim.
(You could simply start DOUG by typing the following commands:
cd /vobs/doug<br />bin_Linux_FC3/doug -double
but as mentioned, this is not advisable, because you miss out on environment variables that need to be set.)

Once DOUG is started, choose the sim_data_dlg menu choice on the options menu. This will bring up a dialog box.

I find it easiest to enter the API file first. The API file is /vobs/cev/doug/sim_data/cev_graphics.api . Select this.

Then select the header and data files. These should be in your run directory, and are called log_graphics.header and log_graphics.trk respectively.

Once you select the third file, you'll likely see a lot of debug messages in the window where you started DOUG. If everything worked as it should, your playback is ready. Use the controls in the dialog box to play, fast forward, rewind or stop the playback.

⚠️ **GitHub.com Fallback** ⚠️