Jump to content
ramirezdu06

Multi Texture | PIP Help

Recommended Posts

hi, i want to add a pip with a texture but i don't know how to do that because i can't add 2 texture for one object. My code :
 

this setObjectTextureGlobal [0, "test.paa"];


this setObjectTexture [0, "#(argb,512,512,1)r2t(uavrtt,1)"];  

camera_1 cameraEffect ["Internal", "Back", "uavrtt"];  
 
camera_1 attachTo [dlaser, [0,0,0], "eye"];  
 
camera_1 camSetFov 0.1;  
 
"uavrtt" setPiPEffect [0];  
 
addMissionEventHandler ["Draw3D", {  
_dir =  
(dlaser selectionPosition "eye")  
vectorFromTo  
(dlaser selectionPosition "look");  
camera_1 setVectorDirAndUp [  
_dir,  
_dir vectorCrossProduct [-(_dir select 1), _dir select 0, 0]  
];  
}];

Share this post


Link to post
Share on other sites

This requires some further explanation, if your object as several hidden selections you can have a pip and a texture at the same time, otherwise it's either one but not both.
 

31 minutes ago, ramirezdu06 said:

addMissionEventHandler ["Draw3D", { 

also (but unrelated) maybe use EachFrame instead of draw3d

Share this post


Link to post
Share on other sites

thx Mr H. for your anwser and my object have only one selection but if both is not possible why bohemia can do it ? because when you see this video

At 1:09 Second you see a pip with drone camera and other draw on screen

 

Share this post


Link to post
Share on other sites

This has already been asked somewhere here and the answer was in short: 

possibility 1: they have added this functionality in the dev branch and it will be available in the contact update (unlikely)

2) it's just a premade video played on that screen not an actual pip feed (more than likely)

At any rate it's not possible at the moment.

  • Like 1

Share this post


Link to post
Share on other sites
15 hours ago, Mr H. said:

it's just a premade video played on that screen not an actual pip feed (more than likely)

I think to remember that a dev said that's how it was done in Arma discord. Not 100% on that tho.

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

×