z-buffer error

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
lordcool
Posts: 15
Joined: Thu Jul 13, 2006 8:33 am

z-buffer error

Post by lordcool »

i draw a grass ploygon on a plane ground. but z-buffer error.
see this,
http://hompy.ollio.com/view.asp?fnm=hompy164071.jpg

tested gforce7900GT(with latest driver) winXP
irrlicht1.2 D3D9 and OPENGL

i need help. :(
datamagik
Posts: 26
Joined: Wed Feb 14, 2007 11:25 pm
Location: Bar Harbor, Maine USA

Post by datamagik »

Your jpg was not visible when i looked at your page.

Perhaps you might just upload the jpg instead of using the asp to show it?
Phant0m51
Posts: 106
Joined: Mon Jan 15, 2007 6:07 am

Post by Phant0m51 »

Your problem is that you're drawing the grass polygon at the exact height that you're drawing the ground.

Try moving the grass polygon up.
lordcool
Posts: 15
Joined: Thu Jul 13, 2006 8:33 am

Post by lordcool »

grass polygon height is high enough.
I found out this problem.
my program uses the high position values. it's higher than 2^24.
i guess the problem is 24bits z-buffer overflow.
i tested some ATI card and most NVidia card have this problem.
but some ATI Radeon card was fine.

this problem is existing the position value higher than 2^18.
and skybox shaked when camera moving.

because of 32bits depth buffer dosen't working both gl and d3dx.
i resolved this,
- position data recalculate lower values real time from DB when recieving often.

reply any suggestion if you have any good idea or info.
Post Reply