Setaspect: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
added setaspect
 
exact definition
Line 1: Line 1:
'''setaspect <viewingrange> <yxaspect>''' is used to set the field of view in both dimensions in the original BUILD renderer. '''<viewingrange>''' is the horizontal FOV and is set to 65536 by default. '''<yxaspect>''' is (presumably?) the Y to X ratio multiplied by 65536. In the editor, its default value is (65536*ydim*8)/(xdim*5). Note that '''<yxaspect>''' also affects rotatesprite.
'''setaspect <viewingrange> <yxaspect>''' is used to set the field of view in both dimensions in the original BUILD renderer. '''<viewingrange>''' is the tangent of half of the horizontal FOV, multiplied by 65536. (Default value: 65536, corresponding to a FOV of 90 degrees).<br>
'''<yxaspect>''' is the Y to X ratio multiplied by 65536. In the editor, its default value is (65536*ydim*8)/(xdim*5). Note that '''<yxaspect>''' also affects [[rotatesprite]].

Revision as of 08:33, 18 September 2009

setaspect <viewingrange> <yxaspect> is used to set the field of view in both dimensions in the original BUILD renderer. <viewingrange> is the tangent of half of the horizontal FOV, multiplied by 65536. (Default value: 65536, corresponding to a FOV of 90 degrees).
<yxaspect> is the Y to X ratio multiplied by 65536. In the editor, its default value is (65536*ydim*8)/(xdim*5). Note that <yxaspect> also affects rotatesprite.