CreateVideoOnTerrain

The CreateVideoOnTerrain creates a Video On Terrain object, to play a movie draped on the terrain.

 

HRESULT CreateVideoOnTerrain(

[in] BSTR VideoFileName,

[in] double X,

[in] double Y,

[in] double Elevation,

[in] double Yaw,

[in, optional, defaultvalue(-80)] double Pitch,

[in, optional, defaultvalue(3)] HeightStyleCode HeightStyle,

[in, optional, defaultvalue(0)] long GroupID,

[in, optional, defaultvalue("")] BSTR Description,

[out, retval] ITerrainVideo5** pITerrainVideo5)

Parameters:

The HeightStyleCode enum can use any of the following values:

Return Values:

The return value obtained from the returned HRESULT can be one of the following:

 

Return value

Meaning

S_OK

Success.

E_FAIL

The voxel engine is used or other catastrophic failure.

TE_E_MPTNOTLOADED

An MPT file must be loaded in TerraExplorer for this method to work.

TE_E_INFOTREE_PARENTNOTGROUP

The group ID entered does not represent a valid group in the information tree.

TE_E_INTERNAL

TerraExplorer was unable to create the object. To get more information about this error use IErrorInfo Interface.

TE_E_NOLICENCE

Your license does not allow the use of this feature.