2.5D Depth Buffer problems

Started by
1 comment, last by dogan 20 years, 11 months ago
I am currently making a ''classic'' 3D shooter game, where instead of 3D models there are simply 2D sprites with masking. The problem is, when I use the z-buffer, a bullet ricochet will be partially obscured by the wall it hits. Any suggestions?
Marathon Redux: MY mega project.http://marathonredux.forerunners.org
Advertisement
polygon offset.
or,
an easier way (depending on the situation)
is to fudge the projection matrix, and push out the far and near clip planes. This ''offsets'' depth values semi-consistently... where as poly offset does some random stuff here and there.

| - Project-X - my mega project.. close... - | - adDeath - | - email me - |
I really do not recommend to play with the projection matrix. It can be correct on some particular cases but it is really hard to play with.

Polygon offset is supported since OpenGL1.1, so that should not be a problem.

This topic is closed to new replies.

Advertisement