Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Camera question

Page: 1 of 1
 Ferc Kast
09-23-2008, 9:17 PM
#1
I'm setting up a few (ok, seven :xp:) cameras for a WIP mod. I was wondering, when adjusting the orientation, is there an easy way to tell which way I'm adjusting it? (i.e: left or right) I would be glad if someone could give me a few pointers. :)
 Silveredge9
09-23-2008, 11:44 PM
#2
It's pushing 4am here, so if my post doesn't make much sense it's because my tiredness is showing. :P

Anyways, as far as I'm aware of the only way you can get the coordinates which govern the orientation of a static camera is through applying a formula to the angle at which you wish the camera to face.

In the orientation field in the .git file, there are 4 value boxes. The 1st and 4th contain the coordinates which govern orientation, whilst the 2nd and 3rd are generally blank (No idea what they govern).

Decide on which way you want the camera to face towards, then convert that to an angle (North: 90, East: 0, South: 270, West: 180), grab a scientific calculator and apply the angle to the following formula;

1st value box = cos (angle/2)
4th value box = sin (angle/2)

So for example, if I wanted my camera to face North, my chosen angle would be 90. The 2 calculations that I would have to perform to get the coordinates for the 1st and 4th value boxes would be.

1st = cos 45
4th = sin 45

Which according to my scientific calculator gives me;

1st = 0.707106781
4th = 0.707106781

That's the way I determine the orientation coordinates for my static cameras, so it should work for you.
 Ferc Kast
09-24-2008, 9:26 AM
#3
Thanks; Though, I just needed to figure out which angle was which direction. (I already knew about the rest.) :D This should help me get done quicker with my mod.
 Silveredge9
09-24-2008, 1:27 PM
#4
Assuming the player is standing still, facing down a corridor or something; 0 degrees would be to the right of them, 90 degrees would be directly in front, 180 degrees would be to the left whilst 270 degrees would be behind.

You can use this tool (http://www.interactive-resources.co.uk/mathspack1/angle/angle.html) to get a specific angle.
Page: 1 of 1