Sign in to follow this  

Terrain Weird Movement

This topic is 1729 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

Camera new view: 1.0f

Camera far view: 80000.0f

 

 

BackBufferFormat: D3DFMT_X8R8G8B8
AutoDepthStencilFormat: D3DFMT_D24S8

Share this post


Link to post
Share on other sites

@belfegor: What's the appropriate average far plane for FPS game?

 

I don't have problems when I make small terrain in 3Ds Max (size: 4000 x 4000).

 

However, If I made large terrain, like: 50,000 x 50,000 I get this problem.

Edited by Medo3337

Share this post


Link to post
Share on other sites

Did you read the link you were provided ?

 

If you did, you would understand that the ratio between front/far Z-plane is too big - thus causing the Z-Buffer Shimmering.

 

Reduce the Far plane by at least a factor of 10.0f or increase the Near plane by at least a factor of 10.0f .

 

Yes, that means you will have to rescale the terrain and all objects to preserve the precision of Z-Buffer.

 

If you don't want to do that, your other option is to implement a Linear Z-Buffer - see http://www.mvps.org/directx/articles/linear_z/linearz.htm

 

If you don't want to do that either your last (and by far the easiest) option is to ignore the artifacts :-)

Share this post


Link to post
Share on other sites

This topic is 1729 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.

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