Camera definitions are simply a position, view direction, and FOV which can be defined and obtained over a set amount of time. A camera definition is made up of a camera path and at least one target path. Paths can be one of three different types.
1.Fixed – Does not move.
2.Interpolated – The position is interpolated between two points over a given amount of time.
3.Spline – The position is interpolated between the two nearest pre-computed time segments along the derived spline path.
Camera definitions are stored in “.camera” files which can be loaded anywhere from the base path.
A ".camera" file looks like this:
Code: Select all
cameraPathDef {
time <time_in_seconds>
camera_Interpolated {
time <time_in_milliseconds>
type <some_number>
name <some_name>
baseVelocity <some_velocity>
startPos ( x y z )
endPos ( x y z )
}
target_Interpolated {
time <time_in_milliseconds>
type <some_number>
name <some_name>
baseVelocity <some_velocity>
startPos ( x y z )
endPos ( x y z )
}
event {
// dunno - I need to check this
type 4
param ""
time 0
}
fov {
fov <some_fov>
startFOV <some_fov>
endFOV <some_fov>
time <time_in_milliseconds ?>
}
}
Code: Select all
_Fixed {
time <time_in_milliseconds>
type <some_number>
name <some_name>
pos ( x y z )
}
or camera_Spline, I recommend building spline paths with GTKRadiant.
target_ is the place where the camera is looking at, if you use a moving target, the angle of your camera will slightly move
in the moving direction of the target.
You can retrieve your current position in a map with /getpos (bleh I need to check the name of this cmd).