3.1. Viewing

To specify viewing parameters one can use the following instructions:

eye point - where the camera is (default is 5 0 0); from can also be used.

look point - where the target of the camera is (default 0 0 0); at can also be used.

up vector - the camera vertical direction (default 0 1 0).

fov real [real] - the horizontal/vertical fields of view (default 22.5 degrees); angle can also be used. If there is just one value, then both fields of view are equal.

Examples:

	eye 5 1 1
	look 0 1 0 ; default up is 0 1 0
	fov rtod(atan(320.0 / 200.0 * tan(dtor(15)))) 15 ; 23.21 15


To Table of Contents
Back to 3. Syntax
Forward To 3.2. Ambient and Background