Jump to content
Purzel

Sweeping camera from one point to another and back

Recommended Posts

Hi Folks,

 

my scripting abilities are ending here...

Is it possible, to sweep a camera from the right to the left and back to cover a wider range of field of view?
E.g.:
A security camera placed on front of a house is sweeping from on end of the street the other.
 actually I use this code to switch between two pictures:

 

while {true} do {
monitor1 setObjectTexture [0, "#(argb,512,512,1)r2t(seccam1tg,1)"];
_seccam1 = "camera" camCreate [12511,14237,4.6];
_seccam1 cameraEffect ["Internal", "Back", "seccam1tg"];
_seccam1 setDir 270;
_seccam1 camSetFov 0.4;
"seccam1tg" setPiPEffect [0];
sleep 7;
monitor1 setObjectTexture [0, "#(argb,512,512,1)r2t(seccam2tg,1)"];
_seccam2 = "camera" camCreate [12511,14237,4.6];
_seccam2 cameraEffect ["Internal", "Back", "seccam2tg"];
_seccam2 setDir 90;
_seccam2 camSetFov 0.4;
"seccam2tg" setPiPEffect [0];
sleep 7;

};

But I want to have the camera moved from 270° to 90° and back...

And:

Is it possible to get four camera pics on one monitor ?

|_1_|_2_|

|_3_|_4_|

 

(quartered picture)

Every help is appreciated!
Greets Purzel

Share this post


Link to post
Share on other sites

That was quick!
You´re the man!

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

×