Latest Additions: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 5: | Line 5: | ||
Script commands to control this are: | Script commands to control this are: | ||
//if filename starts with # then defaults to standard unit loading paths. | <nowiki>//if filename starts with # then defaults to standard unit loading paths. | ||
UIObject3DLoad(objectName, filename, [texturePath]) | UIObject3DLoad(objectName, filename, [texturePath]) | ||
Line 15: | Line 15: | ||
//set the options for the view. 0 for off, nonzero for on. | //set the options for the view. 0 for off, nonzero for on. | ||
SetUIObject3DOptions(objectName, allowZoom, allowHorizontalRotate, allowVerticalRotate) | SetUIObject3DOptions(objectName, allowZoom, allowHorizontalRotate, allowVerticalRotate)</nowiki> |
Revision as of 23:43, 20 January 2016
3DVIEW UI Control
Creates a 3D viewport into which you can load 3D models for viewing. The COLOUR tag for this control sets the background clear colour (use zero for a transparent background, FF000000 for black).
Script commands to control this are:
//if filename starts with # then defaults to standard unit loading paths. UIObject3DLoad(objectName, filename, [texturePath]) //automatically set the zoom and camera origin to the size of the currently loaded object UIObject3DAuto(objectName) //set the origin position and vertical angle of the camera. SetUIObject3DCamera(objectName, x,y,z,angle,[zoom]) //set the options for the view. 0 for off, nonzero for on. SetUIObject3DOptions(objectName, allowZoom, allowHorizontalRotate, allowVerticalRotate)