GINO wrote:Parece que no tiene corrección de perspectiva el texture mapping. Y si te alejas en el ejemplo de erkos de las cajas hace cosas raras también en el texture mapping.
erkosone wrote:Deberías buscar la documentación que redactó hiperbou, la lib la hizo el.
SET CAMERA FOV: Field-Of-View Angle
SET CAMERA RANGE: Near Value, Far Value
SET CAMERA ASPECT: Aspect Ratio
SET CAMERA FOV
This command will set field of view for the camera given an Angle value.
Syntax
SET CAMERA FOV Field-Of-View Angle
SET CAMERA FOV Camera Number, Field-Of-View Angle
Parameters
Camera Number
Integer
The camera number
Field-Of-View Angle
Float
The default angle is 61.9621391296
Returns
This command does not return a value.
Description
The default angle is 61.9621391296 if you wish to restore the FOV back to defaults after changing it.
SET CAMERA ASPECT
This command will adjust the aspect ratio at which the camera renders to the screen.
Syntax
SET CAMERA ASPECT Aspect Ratio
SET CAMERA ASPECT Camera Number, Aspect Ratio
Parameters
Camera Number
Integer
The camera number
Aspect Ratio
Float
By default this aspect ratio is calculated by dividing the screen width by the screen height, normally resulting in an aspect ratio of 0.75
Returns
This command does not return a value.
Description
By default this aspect ratio is calculated by dividing the screen width by the screen height, normally resulting in an aspect ratio of 0.75. You can change this aspect ratio using this command in situations where you would like to render a perfect square to the screen or if you are writing for hardware that spans a single surface over multiple display devices.
SET CAMERA RANGE
This command will set the viewing range of the camera.
Syntax
SET CAMERA RANGE Near Value, Far Value
SET CAMERA RANGE Camera Number, Near Value, Far Value
Parameters
Camera Number
Integer
The camera number
Near Value
Float
The front value specifies the closest point beyond which the camera starts to draw the 3D scene
Far Value
Float
The back value specifies the furthest point beyond which the camera stops drawing the 3D scene
Returns
This command does not return a value.
Description
The Front Value specifies the closest point beyond which the camera starts to draw the 3D scene. The Back Value specifies the furthest point beyond which the camera stops drawing the 3D scene. The parameters must be specified using real numbers greater than zero. The default range starts drawing the 3D scene with a front value of 1 and a back value of 3000.
Users browsing this forum: No registered users and 3 guests