|
TNTmips Downloads Menu

|
setInitialView.sml
### startup
#####################################################################################
### For a script to run under TNTsim3D, it must include an instance of
### class TNTSIM3D named "TNTsim3D". The script must also be saved as an RVC
### object in the TNTsim3D Landscape File you want to run it with.
#####################################################################################
# declare class instance for TNTsim3D interface class
class TNTSIM3D TNTsim3D;
class POINT3D viewer, orientation;
numeric elev;
## set viewer position parameters
viewer.x = 392702;
viewer.y = 4106321;
TNTsim3D.GetElevation(viewer, elev);
viewer.z = elev + 1140;
## set orientation parameters of viewer in order
## pitch, roll, heading
orientation.x = -3; # pitch
orientation.y = 0; # roll
orientation.z = 239; # heading
# set scene using viewer position and orientation
TNTsim3D.SetSceneByOrientation(viewer, orientation);
# select and turn on sky raster
TNTsim3D.LoadSky("sky6");
TNTsim3D.SetSky(1);
# SML function name predefined in TNTsim3D,
# called when any flight control is activated
func OnControlActivate()
{
Exit();
}
©MicroImages, Inc. 2013 Published in the United States of America
11th Floor - Sharp Tower, 206 South 13th Street, Lincoln NE 68508-2010 USA
Business & Sales: (402)477-9554 Support: (402)477-9562 Fax: (402)477-9559
Business info@microimages.com
Support support@microimages.com
Web webmaster@microimages.com
| |