Still having problems with terrains

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Amen-Moses
Posts: 6
Joined: Tue Oct 17, 2006 11:29 pm
Location: Portsmouth, England

Still having problems with terrains

Post by Amen-Moses »

Hi,

Using the terrain demo terrain-heightmap image which is a 256x256 BMP file everything is fine but when I try to use any other size it doesn't work, i.e if I simply resize the image to 512 by 512 or use the earthbump.bmp image which is 512x256 I get a really screwy looking strip with separate layers.

I am using version 1.0 of Irrlicht on an Intel Mac and all the demos work fine but I really want to use it with bigger terrain files (i.e I really want to generate them using terragen @ 1024x1024 and import them) or possibly find a way to stitch together many small ones.

Can anyone help me?

Cheers,
Chris
hybrid
Admin
Posts: 14144
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Only terrain size of 129x129 works correctly in all aspects. This is due to Irrlicht's index buffer and the terrain implementation. This is a known limitation and is currently being worked on.
Amen-Moses
Posts: 6
Joined: Tue Oct 17, 2006 11:29 pm
Location: Portsmouth, England

Post by Amen-Moses »

hybrid wrote:Only terrain size of 129x129 works correctly in all aspects. This is due to Irrlicht's index buffer and the terrain implementation. This is a known limitation and is currently being worked on.
Well that explains a lot.

Can anyone explain how to stitch together small terrains to make one large one?

A simple to follow code example would be appreciated.

Cheers,
Chris
Xaron
Posts: 310
Joined: Sun Oct 16, 2005 7:39 am
Location: Germany
Contact:

Post by Xaron »

You could patch Irrlicht to use 32 bit indices, but this patch does only work on Irrlicht 1.0, I guess... That's the way I did it.

Regards - Xaron
Amen-Moses
Posts: 6
Joined: Tue Oct 17, 2006 11:29 pm
Location: Portsmouth, England

Post by Amen-Moses »

Xaron wrote:You could patch Irrlicht to use 32 bit indices, but this patch does only work on Irrlicht 1.0, I guess... That's the way I did it.

Regards - Xaron
Have you got the patch, I am using 1.0.

Cheers,
Chris
hybrid
Admin
Posts: 14144
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Read my sig :wink: (Try www first)
Post Reply