Bug Terrain ?????

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Xeus32
Posts: 20
Joined: Tue Mar 22, 2005 9:11 am
Location: Italy , Padua

Bug Terrain ?????

Post by Xeus32 »

The terrain scene node not support rectangular map!

The error is here

TerrainData.Size = heightMap->getDimension().Width;
.
.
.

for (int x=0; x<TerrainData.Size; ++x)
for (int z=0; z< TerrainData.Size; ++z)

it is indispensable change the definiscion of Size to be able use 2 different index

TNX
Xeus32
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

You can't, the terrain must be square for a geomipmap style terrain ( same X and Y dimensions )

As a workaround, you can split your terrain into multiple square tiles and load each tile as a terrainscenenode
Image
Post Reply