gonza 8 Posted April 7, 2013 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
cobra4v320 27 Posted April 8, 2013 This might be what you are looking for. http://www.armaholic.com/page.php?id=19614 Share this post Link to post Share on other sites
marker 1 Posted April 8, 2013 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
gonza 8 Posted April 8, 2013 (edited) 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 April 8, 2013 by gonza Share this post Link to post Share on other sites
kremator 1064 Posted April 8, 2013 This sounds really interesting :) if ya ken what I mean like ;) Share this post Link to post Share on other sites
Grezvany13 64 Posted April 8, 2013 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
Jynx 10 Posted April 9, 2013 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
Tajin 348 Posted April 9, 2013 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
Alo Keen 7 Posted April 9, 2013 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
Tajin 348 Posted April 9, 2013 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
Alo Keen 7 Posted April 9, 2013 (edited) 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 April 9, 2013 by Ceh Share this post Link to post Share on other sites
Jynx 10 Posted April 9, 2013 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
kremator 1064 Posted April 9, 2013 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
Tajin 348 Posted April 10, 2013 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