setPiPEffect: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
(description, example, seealso)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Set a Render Target's visual effect (Picture-in-Picture).  
| Sets Render Target's visual effect (Picture-in-Picture).  
* 0: normal (HDR)
* 0: Normal
* 1: NV
* 1: Night Vision
* 2: TI
* 2: Thermal
* 3: Color correction
* 3: [http://community.bistudio.com/wiki/Post_process_effects#ColorCorrections Color Correction] (8 additional params)
* 4: Mirror  
* 4: Mirror  
* 5: [http://community.bistudio.com/wiki/Post_process_effects#ChromAberration Chromatic Aberration] (5 additional params)
* 6: [http://community.bistudio.com/wiki/Post_process_effects#FilmGrain  Film Grain]  (8 additional params)
* 7: Thermal Inverted
|= Description
|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 29: Line 32:


|x1= <code>"rendersurface" [[setPiPEffect]] [0];</code> |=
|x1= <code>"rendersurface" [[setPiPEffect]] [0];</code> |=
|x2= <code>"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]];</code> |=
|x2= <code>"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]];</code> |=
|x3= <code>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)";
};</code>|=


| [[Procedural Textures]], [[camCreate]], [[cameraEffect]] |= See also
| [[Procedural Textures]], [[camCreate]], [[cameraEffect]], [[Post process effects]] |= See also


}}
}}

Revision as of 14:01, 8 September 2014


Hover & click on the images for description

Description

Description:
Sets Render Target's visual effect (Picture-in-Picture).
Groups:
Uncategorised

Syntax

Syntax:
name setPiPEffect [effect, optionalParam1, ..., optionalParamN]
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:
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:
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)"; };

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

Notes

Bottom Section