Jump to content
  • Advertisement
Sign in to follow this  

depth buffer precision

This topic is 3058 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello everyone, I'm stumped and out of ideas. Currently, we have a b-spline tunnel working. All objects uses its z-pos to determine where it is in the tunnel. Eg. the camera uses the player z-pos so it know where to draw stuff on the screen. There is a problem though: as the game progresses the z-pos is a very high value thus depth precision is gone. That is, when the game is deep in the tunnel there will be z-fighting or dithering effects in the objects being drawn on the screen due to imprecise depth calculations. Anyone have any ideas how to overcome this imprecision? I tried playing around with the depthrange (default is 0 to 1) but nothing happens. How do I shift the b-spline curve along the zpos?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!