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

Thread: Render to Texture Examples

  1. #21
    Hey,

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

    Thanks,
    _neo_
    Proud community admin/member of The Tour of Teamrespawn

  2. #22
    Master Sergeant sxp2high's Avatar
    Join Date
    Jul 16 2009
    Location
    nearestLocation [(getPos player), "nameCity"];
    Posts
    766
    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.
    Code:
    _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
  •