Jump to content
Sign in to follow this  
gonza

Pip in dialog --> possible ?

Recommended Posts

Hello,

Is it possible to add a Picture in picture screen in a dialog ?

Anyone have a sample script ?

Thanks

Share this post


Link to post
Share on other sites

It is mate....

Although the script is very much a work in progress right now...

Once I have finished it, I'll hand it out..

Share this post


Link to post
Share on other sites

Hello

It's a dialog or it's an object in the inventory ?

I want to add a pip in a dialog to see in realtime a little preview of the selected object in a dialog combo.

Thanks

Edited by gonza

Share this post


Link to post
Share on other sites

This sounds really interesting :) if ya ken what I mean like ;)

Share this post


Link to post
Share on other sites

Actually it's very simple ;)

- Create your dialog as usual

- make sure the viewarea is a RscPicture with:

text = "#(argb,256,256,1)r2t(rendertarget0,1.0);"

- handle the PiP feed and send it to the display

- result: feed in display :D

Some reading about the subject: http://forums.bistudio.com/showthread.php?129961-Render-to-Texture-Examples/page3 (from TOH forums, but applies to ArmA3 too)

Share this post


Link to post
Share on other sites

Is it possible to have multiple pip feeds showing in a dialog at the same time?

Share this post


Link to post
Share on other sites

It is, you'll just have to use different rendertargets or they'll all display the same feed.

Also, try to avoid "rendertarget0" as that is frequently used in vehicles.

Share this post


Link to post
Share on other sites

I was trying to get a camera feed projected on an object (like here) but with no success. I managed to change a texture of an object using a .paa file, but not with procedural r2t option. I only get a black object. Any hints for me?

I have this code, activated by a radio trigger:

showcam = {
   _pos = getMarkerPos "camarker";
   _pos set [2, 5];
   _pos2 = getMarkerPos "ctgt";
   _pos2 set [2, 1];

   _kam = "camera" camCreate _pos;
   _kam camPrepareTarget _pos2;
   _kam camCommitPrepared 0;



   //this works: - I can see the camera feed when I use the radio menu
   //_kam cameraEffect ["INTERNAL", "BACK"];

   //this makes the object black:
   _kam cameraEffect ["INTERNAL", "BACK", "rendertarget5"];
   obejctOnMap setObjectTexture [1, "#(argb,256,128,1)r2t(rendertarget5,1.0)"];  



        this was just a test:
   //obejctOnMap setobjecttexture [1,"logo.paa"];


};

Share this post


Link to post
Share on other sites

Maybe that is the issue:

obejctOnMap ---> objectOnMap

Unless you made the same typo when you named that object.

Also, the texture has to be square.

Use 256x256

Share this post


Link to post
Share on other sites

I've translated the varnames from Serbian, hence the typo :) Tried with square textures, same result.

EDIT>

Retarded. Had PiP off in the video settings. Spent days trying to figure this out.

Now, do we have any object in A3 that I could use as a screen?

Edited by Ceh

Share this post


Link to post
Share on other sites
It is, you'll just have to use different rendertargets or they'll all display the same feed.

Also, try to avoid "rendertarget0" as that is frequently used in vehicles.

yeah, "rendertarget0" is the gunner and "rendertarget1" is the back up cam for the driver

Share this post


Link to post
Share on other sites

Shows it can be done.... Shay_Gman uses Tajin's great scripts to help out.

Share this post


Link to post
Share on other sites
Shows it can be done.... Shay_Gman uses Tajin's great scripts to help out.

I've had nothing to do with that chasecam he uses in the MCC-dialog. Merely the script for the helmetcamera (not shown in that vid) was made by me.

MCC is a wonderful tool.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×