Jump to content
Sign in to follow this  
Gigan

Free tracking camera

Recommended Posts

Hello,

This Addon adds camera function that can be freely moved. Operation like camera.sqs is achieved.

Download ver1.5 (178KB)

cam01-medium.jpg

fulll view

Usage

Argument is initial position of camera. [X-Pos, Y-Pos, Z-Pos]

Camera can be used by writing following description in places where script can be executed.

[ 2500, 3000, 1.7 ] exec "\gig_camera\freecamera.sqs"

It is also possible to specify more arguments of initial value.

[ 2500, 3000, 1.7, 90, -10, 1.8, 80, 50, 2, 2, 1, 1 ] exec "\gig_camera\freecamera.sqs"

Each argument is

[ X-Pos, Y-Pos, Z-Pos, Direction, TiltAngle, Zoom, MovingSpeed, TrackingSpeed, TrackingMode, ReferringAboveLevel, ShowNotificationText, ShowDetectingBall ]

X-Pos : Initial camera X Coordinate.

Y-Pos : Initial camera Y Coordinate.

Z-Pos : Initial camera Z Coordinate.

Direction : Initial camera direction. 0 to 360. 0 is north. default is 90.

TiltAngle : Initial camera tilt angle. -90 to 90 (min tilt angle to max tilt angle). default is 0.

Zoom : Initial camera zoom. 0.01 to 2.0 (max zoom to min zoom). default is 0.7.

MovingSpeed : Camera moving speed. 0 to 100 (min moving speed to max moving speed). default is 100.

TrackingSpeed : Camera tracking speed. 0 to 100 (min tracking speed to max tracking speed). default is 100.

TrackingMode : Initial camera tracking mode. 1 or 2 (by screen edge or by immediate mouse moving). default is 1.

ReferringAboveLevel : Initial camera referring above level. 1 or 2 (Above Ground Level or Above Sea Level). default is 1.

ShowNotificationText, : Displaying notification text. 0 or 1 ( non-display or display ). default is 1.

ShowDetectingBall  : Displaying detecting ball. 0 or 1 ( non-display or display ). default is 1.

At least, it is necessary to specify three arguments of X-Pos, Y-Pos, Z-Pos.

[ 2500, 3000, 1.7 ]

It is possible to specify it one by one after that. To the following,

[ 2500, 3000, 1.7, 90 ]

[ 2500, 3000, 1.7, 90, -10 ]

Moreover, A unit can be specified for argument. Camera follows and aims at the unit.

Foxone exec "\gig_camera\freecamera.sqs"

or

[ Foxone ] exec "\gig_camera\freecamera.sqs"

"this" can be specified when describing it in Unit Initialization column.

this exec "\gig_camera\freecamera.sqs"

or

[ this ] exec "\gig_camera\freecamera.sqs"

Each argument when unit is specified for first argument is

[ UnitName, Direction, TiltAngle, Zoom, MovingSpeed, TrackingSpeed, TrackingMode, ReferringAboveLevel, ShowNotificationText, ShowDetectingBall ]

UnitName : Initial followed Unit Name by Camera.

Camera uses following global variables.

GIGCamUsing : 1 enters to the variable when camera starts. 0 enters to the variable when camera quits. Judgment whether to be using camera.

GIGCamLastTchdUnit : Unit Name followed when camera quits enters to the variable.

GIGCamLastPosX : Camera X Coordinate when Camera quits enters to the variable.

GIGCamLastPosY : Camera Y Coordinate when Camera quits enters to the variable.

GIGCamLastPosZ : Camera Z Coordinate when Camera quits enters to the variable.

GIGCamLastDir : Camera Direction when Camera quits enters to the variable.

GIGCamLastDive : Camera Tilt Angle when Camera quits enters to the variable.

GIGCamLastZoom : Camera Zoom when Camera quits enters to the variable.

GIGCamLastMovSpd : Camera Moving Speed when Camera quits enters to the variable.

GIGCamLastTrkSpd : Camera Tracking Speed when Camera quits enters to the variable.

GIGCamLastMode : Camera Tracking Mode when Camera quits enters to the variable.

GIGCamLastRefAlt : Camera referring Above Level when Camera quits enters to the variable.

GIGCamLastShowNtfyText : Camera displaying Notification Text when Camera quits enters to the variable.

GIGCamLastShowDtctBall : Camera displaying Detecting Ball when Camera quits enters to the variable.

GIGCamKill : If 1 is enter to the variable, Camera is immediately quit.

GIGCamMovLmt : When 1 enters to the variable before Camera begins, camera movements is limited. Limited keys are following.

 W,A,S,D : Move horizontal

 2,X : Move straight

 Q,Z : Up/Down

 1,2,3,4,6,7,8,9(Num) : Accelerate moving horizontal

 .,0(Num) : Accelerate Up/Down

 /,*(Num) : Accelerate moving straight

GIGCamActLmt : When 1 enters to the variable before Camera begins, some keys are limited. Limited keys are following.

 R : Change rain

 O : Change overcast

 F : Change fog

 T : Skip time per 5 minutes

 K : Change tracking speed 0%-100%

 M : Change moving speed 0%-100%

 L : Toggle referring Above Ground Level / Above Sea Level

 Right click : Toggle tracking mode by Screen edge / by Immediate mouse moving

GIGCamZomLmt : When 1 enters to the variable before Camera begins, camera zooming is limited. Limited keys are following.

 Mouse wheel : Zoom in/out

 +,-(Num) : Zoom in/out

Recycling camera parameters becomes possible by referring to above-mentioned variables.

Controls

FREE TRACKING MODE (W,A,S,D Key)

Mouse move : Freely tracking

Shift + Mouse move : Around viewing (Only unit following)

Left click : To center of screen (Processing is vague)

Right click : Toggle tracking mode by Screen edge / by Immediate mouse moving

Mouse wheel : Zoom in/out

Esc : Quit

W,A,S,D : Move horizontal

2,X : Move straight

Q,Z : Up/Down

E,C : Tilt upward/downward

1,3 : Rotate left/right

R : Change rain

O : Change overcast

F : Change fog

T : Skip time per 5 minutes

N : Toggle NVG

K : Change tracking speed 0%-100%

M : Change moving speed 0%-100%

P : Toggle mouse operation enable/disable

J : Toggle map click to jump mode

L : Toggle referring Above Ground Level / Above Sea Level

Space : Shoot Detecting Ball

Cursor key : Tilt upward/downward, Rotate left/right

+,-(Num) : Zoom in/out

AUTO MOVING MODE (Num Key)

Mouse move : Accelerate camera rotation

Left click : Decelerate camera rotation

Right click : Decelerate zooming in/out

Mouse wheel : Accelerate zooming in/out

1,2,3,4,6,7,8,9(Num) : Accelerate moving horizontal

5(Num) : Decelerate moving

.,0(Num) : Accelerate Up/Down

/,*(Num) : Accelerate moving straight

+,-(Num) : Accelerate zooming in/out

Cursor key : Accelerate tilt upward/downward, rotate left/right

Esc : Quit

R : Change rain

O : Change overcast

F : Change fog

T : Skip time per 5 minutes

N : Toggle NVG

K : Change tracking speed 0%-100%

M : Change moving speed 0%-100%

P : Toggle mouse operation enable/disable

L : Toggle referring Above Ground Level / Above Sea Level

Space : Shoot Detecting Ball

Detecting Ball shot by Space Key detects units. Unit near Detecting Ball is caught by camera, and camera follow the unit. Units that can be detected with Detecting Ball are Car, Motorcycle, Tank, Ship, Helicoptor, Plane, and Man classes. Camera Following can be released by shooting Detecting Ball at place where units doesn't exist.

Have fun. smile_o.gif

Share this post


Link to post
Share on other sites

OMG !! Perfect for movie making !

Its possible to adjust the speed of Tilt upward ? Its a bit too fast for me, "Move straight" too... use "maj" for slower movement maybe ?

Very very verrry good job !  notworthy.gif

One of the best arma's tools

Share this post


Link to post
Share on other sites

Now that's neat, but not fair on people like us who had to learn camera work the hard way whistle.gif

Share this post


Link to post
Share on other sites

LOVE IT!  The only thing that would be good would be to remove the cursor unless you right click.  Perhaps it's just me but the cursor stays in the middle of the screen.  For making movies we kinda need it invisible wink_o.gif

Apart from that (he says knowing NOTHING about scripting!wink_o.gif it's perfect.

BRAVO!

[TAO] Kremator

Share this post


Link to post
Share on other sites
Frontpaged at the Armaholic.com homepage.

The Armaholic.com download page can be found here:

http://www.armaholic.com/page.php?id=3822

Thanks for mirroring. smile_o.gif

OMG !! Perfect for movie making !

Its possible to adjust the speed of Tilt upward ? Its a bit too fast for me, "Move straight" too... use "maj" for slower movement maybe ?

Very very verrry good job !

One of the best arma's tools

Thanks for playing. I consented to slower movement. I will take them by next update. smile_o.gif

Now that's neat, but not fair on people like us who had to learn camera work the hard way

I give a reward to the predecessors' hardships. notworthy.gif

It passes for a while after Arma is put on the market. I thought that it is a time when I may make function of camera enhancement.

And, I think that addon of this can play role of entrance for people who will make good use of camera working in the future. smile_o.gif

Gnat @ Sep. 08 2008,00:22)]Very cool !

Thank you, Sir! biggrin_o.gif

LOVE IT!  The only thing that would be good would be to remove the cursor unless you right click.  Perhaps it's just me but the cursor stays in the middle of the screen.  For making movies we kinda need it invisible

Apart from that (he says knowing NOTHING about scripting! it's perfect.

BRAVO!

[TAO] Kremator

Yes, If I am possible too, I want also to conceal mouse cursor at center of screen. But attempt has not gone well yet. It might be unsuitable under present situation in Movie taking. confused_o.gif

To Screenshot taking by Prtsc key in mouse cursor's not being displayed, suitable for it. smile_o.gif

Share this post


Link to post
Share on other sites

It updated to ver1.1.

Download ver1.1

What's new

- Added change tracking speed 0%-100% (K key)

- Added change moving speed 0%-100% (M key)

- Added toggle mouse operation enable/disable (P key)

- Changed skip time per 15 minutes to 5 minutes

Tracking and moving spped became possible change.

Though mouse cannot be operated by mouse operation disable, mouse cursor can became concealed on screen edge. smile_o.gif

Share this post


Link to post
Share on other sites

Bit of a shame about the mouse cursor .....

Can we change it to something tiny?

Also, is there any way you can make the mouse movement speed progressive? i.e Moving it slightly to the left (off center of screen) means a very slow turn to the left, move it further and the rate of turn changes ....... for much smoother camera movement.

Share this post


Link to post
Share on other sites

I was not able to find method of not showing mouse cursor. confused_o.gif When it want to take movie without showing mouse cursor, there are only disable mouse operation with P key and moving to screen corner. Camera is operated only with keyboard. Zooming is possible also by mouse wheel.

Every unit time (0.01 seconds), mouse cursor position is measured by distance from screen center position. Distance is used as an movement acceleration of camera rotation. Afterwards, Mouse cursor is returned to screen center. It is repetition.

Because amount of mouse cursor movement of 0.01 seconds is measured, amount of acceleration increases if mouse is moved early.

Share this post


Link to post
Share on other sites

There you go, you get fed too much (do not feed the noob) .. Therefore you don't know how to turn the crosshair off, when one know's how to turn the crosshair off  rofl.gif

Share this post


Link to post
Share on other sites
There you go, you get fed too much (do not feed the noob) .. Therefore you don't know how to turn the crosshair off, when one know's how to turn the crosshair off  rofl.gif

The Crosshair is not the Mouse Cursor.. To see what he means ingame or on a server with crosshairs off Press P/Esc and it is this what he means.

Share this post


Link to post
Share on other sites
The Crosshair is not the Mouse Cursor..

Did i say that though?.. mad_o.gif

Share this post


Link to post
Share on other sites

Yes you did!

Come on then Mr Smarty Pants .... tell us how to turn off the mouse cursor then. Or would you rather not feed the noobs ?

[TAO] Kremator

Share this post


Link to post
Share on other sites
Yes you did!  

Come on then Mr Smarty Pants .... tell us how to turn off the mouse cursor then.  Or would you rather not feed the noobs ?

[TAO] Kremator

Search! Ye Shall Find whistle.gifbiggrin_o.gif

Share this post


Link to post
Share on other sites
Yes you did!  

Come on then Mr Smarty Pants .... tell us how to turn off the mouse cursor then.  Or would you rather not feed the noobs ?

[TAO] Kremator

Search! Ye Shall Find  whistle.gif    biggrin_o.gif

If you know the information, share it. If you don't, don't say that you do. If you want to horde the information, don't even mention that you have it. If you want to taunt people, it makes you look snobby.

Share this post


Link to post
Share on other sites
What about a mini map to jump easier on the island, like in here:

http://hx3.de/attachm....100.zip

Teleport by map clicking? It is interesting. I will try it. biggrin_o.gif

Please tell it to me if anyone know way to erase mouse cursor. I will immediately correct it.

This camera uses Dialog control. Dialog Control

It is necessary to erase mouse cursor while displaying dialog.

Share this post


Link to post
Share on other sites

It updated to ver1.2

cam01-medium.jpg

fulll view

What's new

- Added map click to jump mode (J key)

Download (5KB)

Camera moves immediately to map click point. smile_o.gif

Share this post


Link to post
Share on other sites

Super Gigan smile_o.gif

Do you want more ideas? wink_o.gif

Share this post


Link to post
Share on other sites

Nice job Gigan!

finaly i can make some nice fraps vids whiout to much hazzle smile_o.gif

just want to say,, dont wast time on trying to get the mouse away.. its not possible without modding ui.pbo Afik.

belive me.. i tried alot!

edit:

one workaround with the mouse might be to check if the mouse has been moved. if it has not been moved set it to pos x -1 y -1 pherhaps.. not sure it that will work. but you could give it a try

edit:

the mouse cursor is not a problem if you use fraps to record with. in fraps there is an option to not show mouse cursor. smile_o.gif

Share this post


Link to post
Share on other sites
the mouse cursor is not a problem if you use fraps to record with. in fraps there is an option to not show mouse cursor. smile_o.gif

Arh! Yes .... thanks, forgot about that. Nice.

Very nice again Gigan notworthy.gif

Now can you convert it to sqf so the frame rate doesnt suffer so much wink_o.gif

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  

×