Home   Help Search Login Register  

Author Topic: Simple Full Screen Cinematic Camera Script  (Read 2561 times)

0 Members and 1 Guest are viewing this topic.

Offline norrin

  • Tutorial Writer
  • **
Simple Full Screen Cinematic Camera Script
« on: 21 Jul 2009, 13:34:21 »
Simple Full Screen Cinematic Camera Script
JULY 2009 - norrin

With thanks to OFPEC (http://www.ofpec.com/index.php) for providing me with the code for the free camera.

Description
A simple full screen camera script that provides a range of camera modes and allows switching to any unit on the map that maybe useful for the budding film or machinima maker.

Download
http://norrin.org/downloads/ArmA2/spectate/NORRN_cam_02.utes.rar

Movie
http://www.youtube.com/watch?v=7uLzSaK-m9s

Implementation
1. Copy NORRN_cam into your mission directory
2. Copy the description.ext into your mission directory or modify your existing

description.ext by adding the following code:
Code: [Select]
#include "NORRN_cam\NORRN_cam_dialog.hpp"
3. Add the init.sqf or modify your existing init.sqf by adding the following code:
Code: [Select]
[]execVM "NORRN_cam\start_cam.sqf";
4. When the mission starts your unit should get an action to start the camera

How the camera works

W/S keys - toggle between different camera modes

* 3rd person
* Top down - use mouse scroll wheel to increase/decrease distance away from the camera
* Front side
* 1st person
* Free cam - right click to the left or right of the target to rotate the camera, note the near the target you are on the screen the slower it will rotate. Mouse wheel increases decreases distance away from camera
* Static cam that follows target - for this cam set your view in the free cam then when you swap to this cam it will remain stationary while following the target - can be used for flybys etc.

A/D keys switch between targets
N key toggles night vision mode for Top down, front side, Free and static cameras
H - key swicthes off the camera and allows you to regain control of your unit.

You can then restart the camera using the action.

And remember once you've got your camera angle set just move your mouse cursor off the screen when you start recording with FRAPS.
« Last Edit: 21 Jul 2009, 13:44:38 by norrin »

Offline DeanosBeano

  • Addons Depot Staff
  • *****
  • SirDeanosbeano bstowed on me by sui ;)
    • Fraghaus
Re: Simple Full Screen Cinematic Camera Script
« Reply #1 on: 21 Jul 2009, 19:50:11 »
nice one mate,
 I have replied to your pm on that other site about the fast rope and this will come in handy during the dev to get some nice shots.
Cheers
DB
I love ofp

Offline Kremator

  • Members
  • *
Re: Simple Full Screen Cinematic Camera Script
« Reply #2 on: 29 Jul 2009, 15:26:03 »
norrin,

Getting this error in the RPT

File missions\NORRN_cam_02.utes\NORRN_cam\NORRN_cam.sqf, line 106
Error in expression <lbCurSel 10005;

_unit = _alive_friends select NORRN_FOCUS_CAM_ON;
_target = ve>
  Error position: <select NORRN_FOCUS_CAM_ON;
_target = ve>
  Error Zero divisor


Hope this helps.

Regards

Kremator