Height field losts some triangles

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
khayyam
Posts: 7
Joined: Fri Mar 09, 2007 8:52 pm
Location: France

Height field losts some triangles

Post by khayyam »

Hello all,

I have a strange rendering for a height field. *Sometimes*, I get this ->

http://img49.imageshack.us/my.php?image=hfieldym9.jpg, some triangles are lost.

At starting the height field is fine, but after some processings (independant, on my mind), the heigt field suddently changes. The processings are picking and just data processing.

Did you already get such a height field ?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Maybe your heightmap is too large. It should be 129x129 pixels in size. Or it's a z-buffer problem, but that's quite unlikely.
khayyam
Posts: 7
Joined: Fri Mar 09, 2007 8:52 pm
Location: France

Post by khayyam »

hybrid wrote:It should be 129x129 pixels in size.
that was the problem. I forgot the extra pixel, I got 256x256, with 257x257 it works.

thanks a lot
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

257x257 only works with 32bit indices, so if you use the current Irrlicht you should use 129x129.
Post Reply