VR-Forces 4.1 Class Documentation
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] [vrfAccessingFeaturesThroughTheApi >>]


Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)