setPiPEffect: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
Line 20: Line 20:
| name '''setPiPEffect''' [effect, optionalParam1, ..., optionalParamN]|= Syntax
| name '''setPiPEffect''' [effect, optionalParam1, ..., optionalParamN]|= Syntax


|p1= name : [[String]] - Render Target name |= Parameter 1
|p1= name : [[String]] - Render surface reference from [http://community.bistudio.com/wiki/Procedural_Textures#Render_To_Texture Render To Texture] |= Parameter 1
|p2= effect : [[Number]] - effect type |= Parameter 2
|p2= [effect, optionalParam1, ..., optionalParamN] : [[Array]] |= Parameter 2
|p3= optionalParam1: Parameters based on selected effect |= Parameter 3
|p3= effect : [[Number]] - effect type |= Parameter 3
|p4= optionalParam1: Parameters based on selected effect |= Parameter 4


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>"rendertarget0" 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> |=


| |= See also
| [[Procedural Textures]], [[camCreate]], [[cameraEffect]] |= See also


}}
}}

Revision as of 18:33, 31 August 2014


Hover & click on the images for description

Description

Description:
Set a Render Target's visual effect (Picture-in-Picture).
  • 0: normal (HDR)
  • 1: NV
  • 2: TI
  • 3: Color correction
  • 4: Mirror
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]];

Additional Information

See also:
Procedural TexturescamCreatecameraEffect

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