setToneMappingParams: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix example comment)
 
(42 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2oa |= Game name
|game1= arma2oa
|version1= 1.62


|1.62|= Game version
|game2= tkoh
____________________________________________________________________________________________
|version2= 1.00


| Edits tone mapping parameters |= Description
|eff= local
____________________________________________________________________________________________


| toneName '''setToneMapping''' params |= Syntax
|gr1= System


|p1= toneName: [[String]] - where string is effect name - defaults are ''Arma'', ''Filmic'' and ''Reinhard''. |= PARAMETER1
|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}}.}}


|p2= params: [[Array]] - (''please populate'') |= PARAMETER2
|s1= toneName [[setToneMappingParams]] params


| Nothing |= RETURNVALUE
|p1= toneName: [[String]] - can be one of:
* "Arma"
* "Filmic"
* "Reinhard"


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


|x1= <code>"Filmic" setToneMappingParams [0.2, 0.30, 0.20, 0.30, 0.01, 3.750, 6, 4]</code>|= EXAMPLE1
|r1= [[Nothing]]
|x2= <code>"Reinhard" setToneMappingParams [0.9, -0.003]</code>|= EXAMPLE2


____________________________________________________________________________________________
|x1= <sqf>"Filmic" setToneMappingParams [0.2, 0.3, 0.2, 0.3, 0.01, 3.750, 6, 4];</sqf>


| [[setToneMapping]], [[ppEffectAdjust]], [[ppEffectCommit]], [[ppEffectCommitted]], [[ppEffectCreate]], [[ppEffectDestroy]], [[Post process effects]] |= SEEALSO
|x2= <sqf>"Reinhard" setToneMappingParams [0.9, -0.003];</sqf>


| |= MPBEHAVIOUR
|x3= <sqf>
____________________________________________________________________________________________
// default values
// "Arma" setToneMappingParams []; // no params for "Arma" tone mapping
"Filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.75, 6, 4]; // {{arma3}} uses [0.22, 0.3, 0.1, 0.2, 0.01, 0.3, 11.2, 2] for terrains
"Reinhard" setToneMappingParams [0.9, 0];
</sqf>
 
|seealso= [[setToneMapping]] [[ppEffectAdjust]] [[ppEffectCommit]] [[ppEffectCommitted]] [[ppEffectCreate]] [[ppEffectDestroy]] [[Post Process Effects]]
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 14:55, 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.3, 0.2, 0.3, 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.153, 0.357, 0.231, 0.1573, 0.011, 3.75, 6, 4]; // Arma 3 uses [0.22, 0.3, 0.1, 0.2, 0.01, 0.3, 11.2, 2] for terrains "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