TNTmips

HOME

FREE PRODUCTS
  TNTlite
  TNTatlas
  TNTsim3D

DOWNLOADS
  Release Version
  Development Version
  FTP
  Language Kits
  Sample Geodata
  Reseller Resources
  Promotional

DOCUMENTATION
  Tutorials
  Technical Guides
  Quick Guides

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. 2008 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

19 May 2008

page update: 13 Aug 07