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 can expose the snapshot intensity as a parameter, then set it from your game. E.g:
-
Select the snapshot in the tool.
-
Right click the Intensity dial in the deck, and select “Expose as Parameter”.
-
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; snapshotDescription->createInstance(&snapshotInstance); snapshotInstance->start(); // begin the snapshot snapshotInstance->setParameterValue("Intensity", 50.0f); // e.g. set to blend 50%
2 Likes