CTerrainSceneNode heightmap's max width and height

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
dujimache
Posts: 24
Joined: Mon Aug 03, 2009 3:22 am

CTerrainSceneNode heightmap's max width and height

Post by dujimache »

when i use a 2049 * 2049's heightmap,and set patch size 129,irrlicht engine appears mistake,i want to know the max size irrlicht support.
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Post by greenya »

Please provide source code how you call the method with which arguments you pass to it.

Some thoughts:

1)
scene::E_TERRAIN_PATCH_SIZE has definition for patch sizes, and the maximum it defines as ETPS_129, but this value is integer and equals to 129, so i believe it is possible to use greater values next way:
(scene::E_TERRAIN_PATCH_SIZE)257
(scene::E_TERRAIN_PATCH_SIZE)513
(scene::E_TERRAIN_PATCH_SIZE)1025
...
but i didn't tried it.

2)
heightMapFileName can be very large; it will not be loaded as driver' textures, but necessary patches will be created in memory from it. I believe the limitation here is the maximum size of driver' texture of 1 single patch.
Post Reply