createVideoOnTerrain Method

Creates a Video OnTerrain object, to play a video movie on the terrain surface.

createVideoOnTerrain(videoFileName, position, [name]);

 

Parameter

Description

videoFileName

A URL of the video file to import to the terrain

position

The position of the video on the terrain

name

Optional

The node name

Return Value

An SGNode object. If the method fails, the return value is null. SGWorld.lastError will contain the failure reason.

Remarks

To modify other properties of the video on terrain, access the node innerObj. See SGNode.innerObj property and ITerrainVideo5 interface for more details.