VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)