home products news downloads documentation support gallery online maps resellers search
TNTmips Downloads Menu

HOME

CONTACT US

CURRENT RELEASE
  TNT 2013

DEVELOPMENT VERSION
  TNT 2014

TNTmips Pro
PRIOR RELEASES
  TNT 2012

FREE SOFTWARE
  TNTmips Free
  TNTatlas
  TNTsdk

MORE DOWNLOADS
  HASP Key Driver
  Screen Recorder
  TNT Language Kits
  Sample Geodata
  TNT Scripts

DOCUMENTATION
  TNTmips Tutorials
  Tutorial Datasets
  Technical Guides
  Scripts
  Quick Guides

MORE INFO
  Download FAQs
  FTP
  Download Managers
  Find Reseller

SITE MAP


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();
	}


Back Home ©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

25 March 2009

page update: 26 May 11