CTerrainSceneNode heightmap's max width and height
CTerrainSceneNode heightmap's max width and height
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.
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.
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.