Page MenuHomeFeedback Tracker

CameraEffect "terminate" is broken for Render To Texture
Closed, ResolvedPublic

Description

It seems not to be possible to terminate rtt with:
cameraeffect ["terminate", "back", "rtt"];

Instead you need to use it like this, that terminates all current rtt's:
cameraeffect ["terminate", "back"];

That forces to reset all current PiPs if wanting to close one PiP. Still works nice but the limitation is giving much extra trouble as seen in this vid:
https://www.youtube.com/watch?v=KVQJqWdviYk

Using "rendertarget4" to "rendertarget8"

Details

Legacy ID
4034606507
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

cam = "camera" camCreate (player modelToWorld [0,-5, 2]);
cam cameraEffect ["internal","back","rtt"];
with uiNamespace do {
disableserialization;

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)";

};
sleep 1;
cam cameraeffect ["terminate", "back", "rtt"];
camdestroy cam;

Additional Information

Sample code credit to Killzone_kid

Event Timeline

SaOk edited Steps To Reproduce. (Show Details)Apr 3 2015, 12:27 PM
SaOk edited Additional Information. (Show Details)
SaOk set Category to Scripting.
SaOk set Reproducibility to Always.
SaOk set Severity to None.
SaOk set Resolution to Open.
SaOk set Legacy ID to 4034606507.May 8 2016, 11:49 AM
SaOk edited a custom field.
DrSova added a subscriber: DrSova.Jun 25 2017, 8:47 PM
BIS_fnc_KK closed this task as Resolved.Jun 26 2017, 7:44 PM
BIS_fnc_KK added a subscriber: BIS_fnc_KK.

Should be fixed in tomorrow's DEV. Please check

Works perfectly