• Welcome to Freedom Reborn Archive.
 

Cameras and making CSs

Started by Lunarman, May 21, 2007, 01:46:24 AM

Previous topic - Next topic

Lunarman

Some time ago I asked here how people got the camera coords for their CSs. The answer I got was mixed but it was suggested that I use
lookAtPos((-1399, -710, 5), heading = 30, zoom = -240, pitch=-10) and fiddle with the values until I got a sutible viewpoint. This however is a very inconvinient way to find the perfect angle you want.

So, here is what I've just found:

There are two commands for getting camera coords

print Camera_GetLookAtInfo()
which returns (-1399.0, -710.0, 5.0, 127.934906006, 0.29111379385, -240.0). The long numbers are seemingly useless, although they represent distance and yaw there doesn't appear to be a way to put these back into the game. The first three numbers, however, form a tuple which is the correct camera position and the last one is the zoom. Useful, but not much

and

print Camera_Dump()
This prints everything you need except pitch (which never seems to do much anyway, and you can guess it roughly) and is therefore very useful to use. Simply open up the mission, move your camera into the position you want (I suggest you have edited localinit first) and type this into the console. Note down the values and watch your CS pull together.

Anyway, this may be common knowledge but encase it isn't, here you go.

Lunarman

GogglesPizanno

In the documentation for level editing, they indicate that hitting the "P" key will get you cam coordinates.

"P - Dumps current camera coordinates to the screen (useful when scripting cut-scenes)"

I have been using EZScript for all my experiments, so I haven't really delved into using actual Coordinates and camera control, but this may be easier than having to call up and use the console.

Lunarman

is this in the level editor? if so, great!

Previsionary

yes it's part of level editor and has been there since ff1. :P. 

That's why reading the scripting docs is so useful...so many tips and tricks hidden in it.

Lunarman

bah, I read those script docs. Of course I did... :s

Ok, thankyou