Is it possible to trigger snapshots by string from game engine, but make them trigger not imidiate, but controlled by parameter wich will controll the merging/xfade ammount between snapshots?

  • You must to post comments
Best Answer

You can expose the snapshot intensity as a parameter, then set it from your game. E.g:

  1. Select the snapshot in the tool.
  2. Right click the Intensity dial in the deck, and select “Expose as Parameter”.
  3. From game code, create the snapshot instance and set its intensity as required (percent should be from 0 to 100):

    FMOD::Studio::EventDescription* snapshotDescription = NULL;
    system->getEvent("snapshot:/my_snapshot_name", &snapshotDescription); // can get path from tool
    FMOD::Studio::EventInstance* snapshotInstance = NULL;
    snapshotInstance->start(); // begin the snapshot
    snapshotInstance->setParameterValue("Intensity", 50.0f); // e.g. set to blend 50%
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.