VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
15.5 - Terrain Implementations

Terrain database files are imported using DtTerrainImplementations (terrainImplementation.h).

A DtTerrainImplementation knows how to import terrain geometry data (terrain skin) from an external format and provide intersection capabilities. VR-inTerra has the following terrain implementations:

These terrain implementors handle the following terrain types:

For example, to load an OpenFlight database, do the following:

// Create and initialize a terrain interface
DtTerrainInterface terrainInterface;
terrainInterface.init();
// Load the terrain database
// Openflight files.
if(!terrainInterface.loadTerrain("HL_94.flt.flt"))
{
DtWarn("Couldn't load terrain database file\n");
return 1;
}

[<< Using Vector Networks] [Home] [Top of Page] [Accessing Features through the API >>]


Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)