7.21.3  screen.inc

Screen.inc will enable you to place objects and textures right in front of the camera. When you move the camera, the objects placed with screen.inc will follow the movement and stay in the same position on the screen. One use of this is to place your signature or a logo in the corner of the image.

You can only use screen.inc with the perspective camera. Screen.inc will automatically create a default camera definition for you when it is included. All aspects of the camera can than be changed, by invoking the appropriate 'Set_Camera_...' macros in your scene. After calling these setup macros you can use the macros Screen_Object and Screen_Plane.

Note: even though objects aligned using screen.inc follow the camera, they are still part of the scene. That means that they will be affected by perspective, lighting, the surroundings etc.

For an example of use, see the screen.pov demo file.

Set_Camera_Location(Loc) Changes the position of the default camera to a new location as specifiec by the Loc vector.

Set_Camera_Look_At(LookAt) Changes the position the default camera looks at to a new location as specifiec by the LookAt vector.

Set_Camera_Aspect_Ratio(Aspect) Changes the default aspect ratio, Aspect is a float value, usually width devided by the height of the image.

Set_Camera_Aspect(Width,Height) Changes the default aspect ratio of the camera.

Set_Camera_Sky(Sky) Sets a new Sky-vector for the camera.

Set_Camera_Zoom(Zoom) The amount to zoom in or out, Zoom is a float.

Set_Camera_Angle(Angle) Sets a new camera angle.

Set_Camera(Location, LookAt, Angle) Set location, look_at and angle in one go.

Reset_Camera() Resets the camera to its default values.

Screen_Object (Object, Position, Spacing, Confine, Scaling) Puts an object in front of the camera.
Parameters:

Screen_Plane (Texture, Scaling, BLCorner, TRCorner) Screen_Plane is a macro that will place a texture of your choice on a plane right in front of the camera.
Parameters: