setPiPEffect: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (description, example, seealso) |
Killzone Kid (talk | contribs) (params length) |
||
Line 10: | Line 10: | ||
| Sets Render Target's visual effect (Picture-in-Picture). | | Sets Render Target's visual effect (Picture-in-Picture). | ||
* 0: Normal | * 0: Normal (1 param array) | ||
* 1: Night Vision | * 1: Night Vision (1 param array) | ||
* 2: Thermal | * 2: Thermal (1 param array) | ||
* 3: [http://community.bistudio.com/wiki/Post_process_effects#ColorCorrections Color Correction] (8 | * 3: [http://community.bistudio.com/wiki/Post_process_effects#ColorCorrections Color Correction] (8 params array) | ||
* 4: Mirror | * 4: Mirror (1 param array) | ||
* 5: [http://community.bistudio.com/wiki/Post_process_effects#ChromAberration Chromatic Aberration] (5 | * 5: [http://community.bistudio.com/wiki/Post_process_effects#ChromAberration Chromatic Aberration] (5 params array) | ||
* 6: [http://community.bistudio.com/wiki/Post_process_effects#FilmGrain Film Grain] (8 | * 6: [http://community.bistudio.com/wiki/Post_process_effects#FilmGrain Film Grain] (8 params array) | ||
* 7: Thermal Inverted | * 7: Thermal Inverted (1 param array) | ||
|= Description | |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ |
Revision as of 15:33, 8 September 2014
Description
- Description:
- Sets Render Target's visual effect (Picture-in-Picture).
- 0: Normal (1 param array)
- 1: Night Vision (1 param array)
- 2: Thermal (1 param array)
- 3: Color Correction (8 params array)
- 4: Mirror (1 param array)
- 5: Chromatic Aberration (5 params array)
- 6: Film Grain (8 params array)
- 7: Thermal Inverted (1 param array)
- 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
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
Categories:
- Scripting Commands
- Introduced with Take On Helicopters version 1.00
- Take On Helicopters: New Scripting Commands
- Take On Helicopters: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands Take On Helicopters
- Take On Helicopters: New Scripting Commands List
- Arma 3: New Scripting Commands List
- Scripting Commands Arma 3