We are currently changing the Bohemia Interactive forum software. This means http://forums.bistudio.com will be 'Read Only' until Thursday 9 AM UTC. Apologies for the inconvenience.

Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24

Thread: Render to Texture Examples

  1. #21

    I'm still wondering how to achieve this? Put a picture in picture scene in a monitor/tv/etc.

    Proud community admin/member of The Tour of Teamrespawn

  2. #22
    Master Sergeant
    Join Date
    Jul 16 2009
    nearestLocation [(getPos player), "nameCity"];
    Author of the Thread
    Hi neo,

    check out the first example mission, it's all there.

    It's pretty easy really. Just create a cam and set the object texture to the rendertarget (cam):

    PHP Code:
    _cam "camera" camCreate (getPosATL player);
    _cam camPrepareFov 0.700;
    _cam camPrepareTarget (vehicle player);
    _cam camCommitPrepared 0;
    _cam cameraEffect ["INTERNAL""BACK""rendertarget0"];

    _screen setObjectTexture [0"#(argb,256,256,1)r2t(rendertarget0,1.0)"]; 
    This is for objects only, and only for objects, which have hidden selections defined. (setObjectTexture compatible)

    For cockpit displays you have to use BIS_fnc_PIP. (Second example mission)

    If you need further assistance, please be more specific, what you are not getting

  3. #23
    Thanks sxp2high,

    Exactly what I meant.
    _screen setObjectTexture [0, "#(argb,256,256,1)r2t(rendertarget0,1.0)"];

  4. #24
    Has anyone managed to use this with Bis_fnc_PlayVideo?

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts