Hi,
I get an AccessViolation Exception while using the Buidterrain Command. My initialisation code is:
oDBTerrain.MakeObjectTerrain(ObjectNumber)
oDBTerrain.SetTerrainHeightMap(ObjectNumber, heightmap.FullName)
oDBTerrain.SetTerrainTexture(ObjectNumber, texture.ImageNumber, detailTexture.ImageNumber)
oDBTerrain.SetTerrainScale(ObjectNumber, 1, 1, 1)
oDBTerrain.SetTerrainSplit(ObjectNumber, 1)
oDBTerrain.SetTerrainTiling(ObjectNumber, 1)
oDBTerrain.SetTerrainLight(ObjectNumber, 1, -0.25, 0, 1, 1, 0.78, 0.5)
oDBTerrain.BuildTerrain(ObjectNumber)
The resolution of the Heightmap is 128x128 and the texture has 512x512.
What can be the Error? The files does exist.
Greets
Ifi
PS: I took in a second try all configurations from the terrainsample in the DBPro Help and the media files, too. But the result was the same. How is it possible to create a terrain?