CodeBase - Set Camera FOV using x and y values
Return to the CodeBase listing
Category: Camera
Version: 1.0
Information
Uploaded: 23rd Sep 2007 21:15
Modified: 23rd Sep 2007 21:23
Author: Plystire
Summary
Using this function you can set the FOV of any camera using two angles for x and y.
Full Description
It is important to understand the parameters passed into this function:<br /> <br /> Camnum - Number of the camera you wish to alter the FOV for<br /> XAngle# - The X Angle (Horizontal) that you want the FOV to be changed to<br /> YAngle# - The Y Angle (Vertical) that you want the FOV to be changed to<br /> DX# - The Width of the camera's resolution (Or width of a plane that the camera's image is being textured on to)<br /> DY# - The Height of the camera's resolution (Or height of a plane that the camera's image is being textured on to)<br /> D# - This is the "Near" value of the camera's range, defaulted at 1 or changed by the function "Set Camera Range"<br /> <br /> Using the parameters, the "Set Camera FOV" and "Set Camera Aspect" functions are used together to provide the appearance of a new FOV that is based upon two different (or same, even though it would be pointless, since the "Set Camera FOV" function will do that anyway) angles.<br /> <br /> <br /> ~PlystirE~
Comments
No comments yet.