VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Static Public Member Functions | Public Attributes
makVrv::DtVisibilitySoundConfig Struct Reference

Full configuration for DtVisibilitySoundBehavior.

Static Public Member Functions

static DtVisibilitySoundConfig makeDefault ()
 
static DtVisibilitySoundConfig fromParams (const std::map< std::string, std::string > &params)
 

Public Attributes

float clearVisibilityMeters = 10000.0f
 
float onsetRampMeters = 500.0f
 
float crossfadeWidthMeters = 1500.0f
 
std::vector
< DtVisibilitySoundTier > 
tiers
 
float maxRangeMeters = 0.0f
 

Member Function Documentation

static DtVisibilitySoundConfig makVrv::DtVisibilitySoundConfig::makeDefault ( )
static

Build and return the default hardcoded config.

Tier paths use tokens; call DtDePathConfiguration::resolvePath() before passing to DtVisibilitySoundBehavior.

static DtVisibilitySoundConfig makVrv::DtVisibilitySoundConfig::fromParams ( const std::map< std::string, std::string > &  params)
static

Build a config from a key-value parameter map.

Recognised keys: "clearVisibilityMeters", "onsetRampMeters", "crossfadeWidthMeters", "maxRangeMeters", "tierN.source", "tierN.peakFrom", "tierN.peakTo", "tierN.gain" (N = 0, 1, 2, ...). Any absent key falls back to the corresponding makeDefault() value.

Parameters
paramsMap produced by DtProceduralSoundscapeChannel::visibilityBehaviorParams.

Member Data Documentation

float makVrv::DtVisibilitySoundConfig::clearVisibilityMeters = 10000.0f

Visibility in metres at or above which the behavior is completely silent.

float makVrv::DtVisibilitySoundConfig::onsetRampMeters = 500.0f

Width in metres of the linear onset ramp for the first tier.

float makVrv::DtVisibilitySoundConfig::crossfadeWidthMeters = 1500.0f

Total crossfade zone width in metres at each tier boundary.

std::vector<DtVisibilitySoundTier> makVrv::DtVisibilitySoundConfig::tiers

Ordered tiers, lightest first (clearest visibility first).

float makVrv::DtVisibilitySoundConfig::maxRangeMeters = 0.0f

Maximum distance in metres from the listener at which this behavior can activate. When greater than zero, isActive() returns false for any entity whose scene-object position is farther than this distance from the current audio listener. Set to 0 (default) to disable the proximity gate and use global visibility only.


The documentation for this struct was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)