Sign in to follow this  
ricesteam

depth buffer precision

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this