lfnetwork.com mark read register faq members calendar

Thread: [TSL] Camera Tweaking (cutscenes and such)
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 06-09-2006, 10:44 AM   #1
Tupac Amaru
@Tupac Amaru
Junior Member
Tupac Amaru's Avatar
Join Date: Mar 2005
Location: Tahuantinsuyu
Posts: 273
[TSL] Camera Tweaking

Original Thread

First person view in cutscenes isn't possible, I'm afraid.

In the .dlg there is the CameraAngle field that allows some control over cameras in a cutscene:
  • CameraAngle = 1 will show a close-up of the current speaker,
  • 2 will show the current speaker and place the camera behind the player,
  • 3 will show speaker and player from the side,
  • 4 is used for animated cameras,
  • 5 focuses on the player according to this thread. I have never seen this work, though.
  • 6 is used for placeable cameras.

I would try out CameraAngles 2, 3 and 5. Depending on how the player and speaker are positioned these may or may not look good. If those don't work well most modules already have some built-in placeable cameras you can try out. To use one of them you need to set CameraAngle to 6 and specify the CameraId in the corresponding dialogue node. Valid CameraIds can be found in the module .git, under CameraList.

If there is no good existing camera for the cutscene you can create your camera, either a placeable or an animated camera. This is not so easy, though. The tool AniCam by Jd allows you to make your own animated cameras. You specify several locations and angles that should be part of the animation.

A placeable camera shows a static view. Such cameras can be added with KT's module editor. Just right-click on the map to place a camera at that spot. If the map is not available for KT you have to edit the module .git file with K-Gff yourself. Don't use Bioware's GFFEditor for this as it can't handle the camera fields. Copy&paste an existing camera structure and change its CameraId to something unique.

Then you have to edit the postion, pitch and orientation for the camera.

The position consists of three values: x, y and z. You can get those with the whereami armband.

Pitch allows to tilt the camera up and down and is measured in degrees. 0 will make it look down on the floor, 90 is a horizontal view.

Panning the camera to the left or right (rotating around the z-axis) is done in the orientation field. The game doesn't use an angle, but quaternions for this. With KT all you have to do is specify the yaw angle and it will do the conversion to quaternions. Otherwise you have to calculate the four orientation values yourself:
  • Field 1 = cos(angle / 2)
  • Field 2 and 3: always leave at 0
  • Field 4 = sin(angle / 2)

angle = 0 points the camera in the direction of the y-axis. The angle is measured counter-clockwise in degrees from that point. At least it's been that way in the modules I have modded. The formula does not work if you want to rotate the camera around more than one axis.

Other fields for a camera:
  • Height: is added to the z-value.
  • FieldOfView: works like a zoom. Standard values seem to be 50-60.
  • MicRange: no idea. Best left at 0 I guess.

Since the .git file is modified it needs to be repackaged together with the .ifo and .are into a .rim file and the .rim placed into the Modules folder. The camera won't work if you have already entered that module before either.

Last edited by Tupac Amaru; 07-25-2006 at 11:03 AM.
Tupac Amaru is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Star Wars Gamer > Community > The Star Forge > Knights of the Old Republic series > Holowan Laboratories > Tutorials > Tutorials: General Tutorials + Tools > [TSL] Camera Tweaking (cutscenes and such)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 05:14 AM.

Powered by vBulletin®
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.