VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtProceduralSoundscapeChannel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <boost/optional.hpp>
13 
14 #include <map>
15 #include <string>
16 #include <vector>
17 
18 namespace makVrv
19 {
22  constexpr char kProceduralSoundPrefix[] = "ProceduralSound:";
23 
27  constexpr char kModelDefinitionPrefix[] = "ModelDefinition:";
28 
38  {
40  std::string name;
41 
44  std::vector<std::string> values;
45  };
46 
64  {
67 
69  std::string layerName;
70 
73 
76  double sdfMaxDistanceMeters = 500.0;
77 
82  std::vector<std::string> classValues;
83  };
84 
91  {
94 
97 
100  double thresholdMeters = 0.0;
101  };
102 
115  {
118  std::string name;
119 
130  std::string soundFile;
131 
134  std::string featureLayerName;
135 
139  std::vector<DtAttributeFilter> attributeFilters;
140 
146  std::vector<DtElevationCondition> elevationConditions;
147 
152  boost::optional<DtRasterSource> rasterSource;
153 
160  float densityScale = 1.0f;
161 
165  double fadeDistanceMeters = 500.0;
166 
172  double queryRadiusMeters = 5000.0;
173 
182  std::string behaviorKey;
183 
188 
192 
197  std::map<std::string, std::string> precipitationBehaviorParams;
198 
200  bool windBehaviorEnabled = false;
201 
206  std::map<std::string, std::string> windBehaviorParams;
207 
211 
215 
219 
225 
231 
235 
240  std::map<std::string, std::string> visibilityBehaviorParams;
241 
247 
264 
274  };
275 
276 } // namespace makVrv
double thresholdMeters
Threshold in metres above MSL. Use negative values for below sea level. Example: { Op::Less...
Definition: DtProceduralSoundscapeChannel.h:100
bool modelSet3dModelsEnabled
When true, this channel plays when the 3D Models model set is active. Defaults to true so existing ch...
Definition: DtProceduralSoundscapeChannel.h:210
bool modelSet3dColorizedEnabled
When true, this channel plays when the 3D Colorized model set is active. Defaults to true so existing...
Definition: DtProceduralSoundscapeChannel.h:214
std::vector< std::string > values
Accepted values. The filter passes when the feature&#39;s attribute matches any one of these strings (OR ...
Definition: DtProceduralSoundscapeChannel.h:44
Op op
Operator to apply.
Definition: DtProceduralSoundscapeChannel.h:96
double weatherAudibleAltitudeMeters
Observer height-above-terrain (m) at which weather-driven channels start fading out.
Definition: DtProceduralSoundscapeChannel.h:263
double sdfMaxDistanceMeters
SDF mode only. Physical distance in metres encoded at pixel 0.0. Must be &gt;= fadeDistanceMeters on the...
Definition: DtProceduralSoundscapeChannel.h:76
std::string behaviorKey
Optional behavior key registered with DtProceduralSoundBehaviorFactory.
Definition: DtProceduralSoundscapeChannel.h:182
constexpr char kModelDefinitionPrefix[]
Prefix token in DtProceduralSoundscapeChannel::soundFile that identifies a Sound-schema model-definit...
Definition: DtProceduralSoundscapeChannel.h:27
std::string featureLayerName
Name of the osgEarth FeatureSource layer to query, e.g. &quot;data:osm-water&quot;. If the layer is not found o...
Definition: DtProceduralSoundscapeChannel.h:134
boost::optional< DtRasterSource > rasterSource
Optional raster image layer used as a spatial trigger. Evaluated after elevation conditions and befor...
Definition: DtProceduralSoundscapeChannel.h:152
double fadeDistanceMeters
Distance in meters over which the sound fades in/out as the observer approaches or leaves the boundar...
Definition: DtProceduralSoundscapeChannel.h:165
std::map< std::string, std::string > visibilityBehaviorParams
Key/value params forwarded to DtVisibilitySoundBehaviorCreator::create(). Empty map -&gt; DtVisibilitySo...
Definition: DtProceduralSoundscapeChannel.h:240
std::string name
Feature attribute key, e.g. &quot;waterway&quot; or &quot;discrete_classification&quot;.
Definition: DtProceduralSoundscapeChannel.h:40
std::string layerName
Name of the osgEarth ImageLayer, e.g. &quot;forest-sdf&quot; or &quot;data:landcover-composite&quot;. ...
Definition: DtProceduralSoundscapeChannel.h:69
bool featureProximityEnabled
When false, featureLayerName/rasterSource are retained but the proximity gate always passes (gain = 1...
Definition: DtProceduralSoundscapeChannel.h:187
bool visibilityBehaviorEnabled
When true, the Visibility behavior is attached to this channel. soundFile is set automatically to kPr...
Definition: DtProceduralSoundscapeChannel.h:234
Op
Comparison direction applied as: sampledElevation &lt;op&gt; thresholdMeters.
Definition: DtProceduralSoundscapeChannel.h:93
A single attribute condition used to filter features.
Definition: DtProceduralSoundscapeChannel.h:37
std::vector< DtAttributeFilter > attributeFilters
Zero or more attribute conditions that must ALL match for a feature to be considered (AND logic)...
Definition: DtProceduralSoundscapeChannel.h:139
double queryRadiusMeters
Radius in meters around the observer&#39;s position used to build the spatial bounds query sent to the Fe...
Definition: DtProceduralSoundscapeChannel.h:172
constexpr char kProceduralSoundPrefix[]
Prefix token in DtProceduralSoundscapeChannel::soundFile that identifies a procedural soundscape chan...
Definition: DtProceduralSoundscapeChannel.h:22
bool modelSet2dIconsEnabled
When true, this channel plays when the 2D Icons model set is active. Defaults to true so existing cha...
Definition: DtProceduralSoundscapeChannel.h:218
bool visibilityLocalWeatherAreaEnabled
When true, the Visibility behavior reads visibility from the nearest DtWeatherAreaObject at the obser...
Definition: DtProceduralSoundscapeChannel.h:246
std::map< std::string, std::string > windBehaviorParams
Key/value params forwarded to DtWindSoundBehaviorCreator::create(). Empty map -&gt; DtWindSoundConfig::m...
Definition: DtProceduralSoundscapeChannel.h:206
float densityScale
Runtime density multiplier applied on top of each DtProceduralSoundLayer&#39;s own density. Only meaningful for procedural soundscape channels (soundFile = &quot;ProceduralSound:&lt;key&gt;&quot;). 1.0 = normal density; 0.0 = silent; 2.0 = twice as many events per second. Ignored for regular looping-file channels.
Definition: DtProceduralSoundscapeChannel.h:160
Configuration for an osgEarth ImageLayer used as a spatial sound trigger.
Definition: DtProceduralSoundscapeChannel.h:63
A terrain elevation condition compared against the observer&#39;s MSL elevation.
Definition: DtProceduralSoundscapeChannel.h:90
std::vector< DtElevationCondition > elevationConditions
Zero or more elevation conditions that must ALL hold (AND logic). The terrain elevation at the observ...
Definition: DtProceduralSoundscapeChannel.h:146
bool precipitationLocalWeatherAreaEnabled
When true, the Rain behavior reads precipitation type and intensity from the nearest DtWeatherAreaObj...
Definition: DtProceduralSoundscapeChannel.h:224
Mode
Sampling mode.
Definition: DtProceduralSoundscapeChannel.h:66
const char int mode
Definition: ioapi.h:38
std::vector< std::string > classValues
Classification and PolygonizedRaster modes. Accepted red-channel values (mapped to integer 0-255 as s...
Definition: DtProceduralSoundscapeChannel.h:82
Configuration for one ambient sound channel.
Definition: DtProceduralSoundscapeChannel.h:114
double weatherAltitudeFadeWidthMeters
Fade-zone width (m) above weatherAudibleAltitudeMeters over which the weather-channel volume tapers t...
Definition: DtProceduralSoundscapeChannel.h:273
bool windBehaviorEnabled
When true, the Wind behavior is attached to this channel.
Definition: DtProceduralSoundscapeChannel.h:200
std::string name
Caller-defined identifier, e.g. &quot;ocean&quot;, &quot;river&quot;, &quot;forest&quot;. Used as the key for removeAmbientChannel(...
Definition: DtProceduralSoundscapeChannel.h:118
bool windLocalWeatherAreaEnabled
When true, the Wind behavior reads wind speed from the nearest DtWeatherAreaObject at the observer&#39;s ...
Definition: DtProceduralSoundscapeChannel.h:230
bool precipitationBehaviorEnabled
When true, the Rain behavior is attached to this channel. soundFile is set automatically to kProcedur...
Definition: DtProceduralSoundscapeChannel.h:191
std::string soundFile
Prefixed reference to the source of this channel&#39;s audio. Two forms are supported (raw file paths are...
Definition: DtProceduralSoundscapeChannel.h:130
std::map< std::string, std::string > precipitationBehaviorParams
Key/value params forwarded to DtRainSoundBehaviorCreator::create(). Empty map -&gt; DtRainSoundConfig::m...
Definition: DtProceduralSoundscapeChannel.h:197

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)