setToneMappingParams: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Post process effects" to "Post Process Effects")
(Add tonemapping info and default values)
Line 11: Line 11:
|gr1= System
|gr1= System


|descr= Edits tone mapping parameters.
|descr= Edits tone mapping parameters. Settings are stored even if the concerned tone is not the one currently in use.
{{Feature|arma3|This command is not present in {{arma3}}.}}
{{Feature|arma3|This command is not present in {{arma3}}.}}


Line 21: Line 21:
* "Reinhard"
* "Reinhard"


|p2= params: [[Array]] - (''please populate'')
|p2= params: [[Array]] of [[Number]]s
* "Arma" - no parameters
* "Filmic" - format [shoulderStrength, linearStrength, linearAngle, toeStrength, toeNumerator, toeDenominator, linearWhite, exposureBias]
* "Reinhard" - format [linearWhite, saturation]


|r1= [[Nothing]]
|r1= [[Nothing]]
Line 28: Line 31:


|x2= <sqf>"Reinhard" setToneMappingParams [0.9, -0.003];</sqf>
|x2= <sqf>"Reinhard" setToneMappingParams [0.9, -0.003];</sqf>
|x3= <sqf>
// default values
// "Arma" setToneMappingParams []; // no params for "Arma" tone mapping
"Filmic" setToneMappingParams [0.22, 0.3, 0.1, 0.2, 0.01, 0.3, 11.2, 2];
"Reinhard" setToneMappingParams [0.9, 0];
</sqf>


|seealso= [[setToneMapping]] [[ppEffectAdjust]] [[ppEffectCommit]] [[ppEffectCommitted]] [[ppEffectCreate]] [[ppEffectDestroy]] [[Post Process Effects]]
|seealso= [[setToneMapping]] [[ppEffectAdjust]] [[ppEffectCommit]] [[ppEffectCommitted]] [[ppEffectCreate]] [[ppEffectDestroy]] [[Post Process Effects]]
}}
}}

Revision as of 00:34, 7 December 2023

Hover & click on the images for description

Description

Description:
Edits tone mapping parameters. Settings are stored even if the concerned tone is not the one currently in use.
Arma 3
This command is not present in Arma 3.
Groups:
System

Syntax

Syntax:
toneName setToneMappingParams params
Parameters:
toneName: String - can be one of:
  • "Arma"
  • "Filmic"
  • "Reinhard"
params: Array of Numbers
  • "Arma" - no parameters
  • "Filmic" - format [shoulderStrength, linearStrength, linearAngle, toeStrength, toeNumerator, toeDenominator, linearWhite, exposureBias]
  • "Reinhard" - format [linearWhite, saturation]
Return Value:
Nothing

Examples

Example 1:
"Filmic" setToneMappingParams [0.2, 0.30, 0.20, 0.30, 0.01, 3.750, 6, 4];
Example 2:
"Reinhard" setToneMappingParams [0.9, -0.003];
Example 3:
// default values // "Arma" setToneMappingParams []; // no params for "Arma" tone mapping "Filmic" setToneMappingParams [0.22, 0.3, 0.1, 0.2, 0.01, 0.3, 11.2, 2]; "Reinhard" setToneMappingParams [0.9, 0];

Additional Information

See also:
setToneMapping ppEffectAdjust ppEffectCommit ppEffectCommitted ppEffectCreate ppEffectDestroy Post Process Effects

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note