setPiPEffect: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<dl class="command_description"> <dd class="notedate">" to "<dl class="command_description"> <dt></dt> <dd class="notedate">")
m (Text replacement - " <!-- (DIS)?CONTINUE Notes -->" to "")
Line 47: Line 47:
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}


<!-- CONTINUE Notes -->
<dl class="command_description">
<dl class="command_description">
<dt></dt>
<dt></dt>
Line 54: Line 53:
<dd class="note">If Color Corrections effect has been used, going back to Normal will have no effect. In order to unset Color Corrections, set 2nd param in it (enable) to 0.</dd>
<dd class="note">If Color Corrections effect has been used, going back to Normal will have no effect. In order to unset Color Corrections, set 2nd param in it (enable) to 0.</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 01:53, 6 April 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Camera Control

Syntax

Syntax:
Syntax needed
Parameters:
name : String - Render surface reference from Render To Texture
[effect, optionalParam1, ..., optionalParamN] : Array
effect : Number - effect type
optionalParam1: Parameters based on selected effect
Return Value:
Return value needed

Examples

Example 1:
"rendersurface" setPiPEffect [0];
Example 2:
"rendertarget0" setPiPEffect [3, 1.0, 1.0, 1.0, 0.0, [0.0, 1.0, 0.0, 0.25], [1.0, 0.0, 1.0, 1.0], [0.199, 0.587, 0.114, 0.0]];
Example 3:
cam = "camera" camCreate (player modelToWorld [0,-5,2]); cam cameraEffect ["internal","back","rtt"]; "rtt" setPiPEffect [2]; with uiNamespace do { pic = findDisplay 46 ctrlCreate ["RscPicture", -1]; pic ctrlSetPosition [0,0,1,1]; pic ctrlCommit 0; pic ctrlSetText "#(argb,512,512,1)r2t(rtt,1.0)"; };
Example 4:
Black&White:"rtt" setPiPEffect [3,1,1,0.4,0,[0,0,0,0],[1,1,1,0],[1,1,1,1]];

Additional Information

See also:
Procedural TexturescamCreatecameraEffectPost 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
Posted on July 9, 2017 - 20:04 (UTC)
Killzone Kid
If Color Corrections effect has been used, going back to Normal will have no effect. In order to unset Color Corrections, set 2nd param in it (enable) to 0.