Structures/RenderCamData
Robotboy655 (Talk  contribs) 
Robotboy655 (Talk  contribs) (Default value of "subrect" differs in some cases) 

Line 6:  Line 6:  
* "2D"  No additional arguments are required  * "2D"  No additional arguments are required  
* "3D"  Only origin and angles are needed, all other parameters are optional."3D"  * "3D"  Only origin and angles are needed, all other parameters are optional."3D"  
−  }}{{StructureFieldVectororiginThe position to render from}}{{StructureFieldAngleanglesThe angles to render from}}{{StructureFieldnumberfovThe field of view}}{{StructureFieldnumberaspectThe aspect ratio of the view port (Note that this is NOT set to w/h by default)}}{{StructureFieldnumberzfarThe distance to the far clipping plane}}{{StructureFieldnumberznearThe distance to the near clipping plane}}{{StructureFieldbooleansubrectm_bRenderToSubrectOfLargerScreen  +  }}{{StructureFieldVectororiginThe position to render from}}{{StructureFieldAngleanglesThe angles to render from}}{{StructureFieldnumberfovThe field of view}}{{StructureFieldnumberaspectThe aspect ratio of the view port (Note that this is NOT set to w/h by default)}}{{StructureFieldnumberzfarThe distance to the far clipping plane}}{{StructureFieldnumberznearThe distance to the near clipping plane}}{{StructureFieldbooleansubrectm_bRenderToSubrectOfLargerScreen}}{{StructureFieldbooleanbloomtonem_bDoBloomAndToneMappingfalse}}{{StructureFieldtableoffcenterA table having these keys: ( all floats ) 
* left  * left  
* right  * right 
Revision as of 12:20, 8 January 2018
Used for cam.Start.Unless stated otherwise, the default values for all these keys would be inherited from the engine's current CViewSetup and do not have static representations.
Type  Name  Description 

number  x 
The x position of the view port 
number  y 
The y position of the view port 
number  w 
The width of the view port 
number  h 
The height of the view port 
string  type 
The type of cam. Valid types are:
Default: "3D" 
Vector  origin 
The position to render from 
Angle  angles 
The angles to render from 
number  fov 
The field of view 
number  aspect 
The aspect ratio of the view port (Note that this is NOT set to w/h by default) 
number  zfar 
The distance to the far clipping plane 
number  znear 
The distance to the near clipping plane 
boolean  subrect 
m_bRenderToSubrectOfLargerScreen 
boolean  bloomtone 
m_bDoBloomAndToneMapping Default: false 
table  offcenter 
A table having these keys: ( all floats )

table  ortho 
If set, makes the view/camera orthogonal. A table having these keys: ( all floats )
