setPiPEffect: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
(Add TI imaging 3..64)
Line 19: Line 19:
* 7: Thermal Inverted [7]
* 7: Thermal Inverted [7]
* 8: Green Thermal [8]
* 8: Green Thermal [8]
* 9..70: Thermal Imaging 3..64 [n]


|s1= name [[setPiPEffect]] [effect, optionalParam1, ..., optionalParamN]
|s1= name [[setPiPEffect]] [effect, optionalParam1, ..., optionalParamN]
Line 34: Line 35:
|x2= <sqf>"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]];</sqf>
|x2= <sqf>"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]];</sqf>


|x3= <sqf>cam = "camera" camCreate (player modelToWorld [0,-5,2]);
|x3= <sqf>
cam cameraEffect ["internal","back","rtt"];
private _cam = "camera" camCreate (player modelToWorld [0,-5,2]);
_cam cameraEffect ["internal", "back", "rtt"];
"rtt" setPiPEffect [2];
"rtt" setPiPEffect [2];
with uiNamespace do {
with uiNamespace do {
pic = findDisplay 46 ctrlCreate ["RscPicture", -1];
private _pic = findDisplay 46 ctrlCreate ["RscPicture", -1];
pic ctrlSetPosition [0,0,1,1];
_pic ctrlSetPosition [0,0,1,1];
pic ctrlCommit 0;
_pic ctrlCommit 0;
pic ctrlSetText "#(argb,512,512,1)r2t(rtt,1.0)";
_pic ctrlSetText "#(argb,512,512,1)r2t(rtt,1.0)";
};</sqf>
};
</sqf>


|x4= Black & White:
|x4= Black & White:

Revision as of 10:09, 21 September 2022

Hover & click on the images for description

Description

Description:
Sets Render Target's visual effect (Picture-in-Picture).
  • 0: Normal - [0]
  • 1: Night Vision - [1]
  • 2: Thermal - [2]
  • 3: Color Correction - [3, enabled, brightness, contrast, offset, blend [r,g,b,a], lerp [r,g,b,a], rgb [r,g,b,a]]
  • 4: Mirror - [4] <currently not working>
  • 5: Chromatic Aberration - [5, enabled, powerx, powery, (bool) aspectCorrection] <currently not working>
  • 6: Film Grain - [6, enabled, intensity, sharpness, grainsize, intensityx1, intensityx2, (bool) monochromatic] <currently not working>
  • 7: Thermal Inverted [7]
  • 8: Green Thermal [8]
  • 9..70: Thermal Imaging 3..64 [n]
Groups:
Camera Control

Syntax

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

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:
private _cam = "camera" camCreate (player modelToWorld [0,-5,2]); _cam cameraEffect ["internal", "back", "rtt"]; "rtt" setPiPEffect [2]; with uiNamespace do { private _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 Textures camCreate cameraEffect 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
Killzone_Kid - c
Posted on Jul 09, 2017 - 20:04 (UTC)
If Color Corrections effect has been used, going back to Normal will have no effect. In order to unset Color Corrections, set the 2nd param in it (enable) to 0.