gfxstyler wrote:what's so hard about terrain?
terrain heightmap size: irrlicht cant handle more than 65535 vertices with the same mesh because it uses unsigned 16bit indexes, and each pixel on the image of the heightmap is a vertex. this limits the heightmap to a max of 256x256.
you need 256+1x256+1 though, so your max heightmap size is 257x257.
This is my point, as per the subject of the thread !!
Read any one of a 100 posts on the topic of terrains, and no one can give a firm answer.
I don't claim to be an expert, but most people would disagree with your statement, and that 257x257 terrains don't work.
It appears the maximun 'working' heightmap is 129x129.
gfxstyler wrote:
oh, and i use 129x129 heightmaps and scale them. if you use good textures it wont look crappy, no need for 2049x2049 terrains (irrlicht can't handle them anyway, even with 32bit patch, because it's too slow)
so the short answer is: dont use heightmaps bigger than 129x129, dont scale it up too much (use smaller player meshes/objects/whatever) and use proper textures.
and @ hybrid: i think it depends on how big he scales the terrain. if you scale it up high, LOD will be culling away a lot of vertices, so it should (theoretically) work without render problems (with 257x257).
Although I may agree to some extent on the limitations of the engine, and that physics may be a cure for falling through terrain, the point of the thread was to provide an answer for everyone, on issues with terrains.
I don't wish to knock your knowledge or ability, and you have made no statement on your knowledge of terrains, or even the use of them, other than maybe trying the terrain demo for 2 minutes, like everyone else, who wishes to voice a firm opinion on terrains.
But the bottom line is, terrains in irrlicht are flawed, and I simply wish some one to share firm answers on known issues or limitations, possible 'working' demos.
I'm sure this will spark many opinions, but I'm sure this will help many people.
Being a noobie, does not mean being an idiot. Many people here are experienced programmers, or just new to the realm of gaming, or even this is their first attempt at using terrains.
We should all be able to team together to make this an easier topic for Everyone !!
Cheers

You scratch my back, I'll scratch yours.