Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terrain lines in the fog #949

Closed
chieling opened this issue Nov 19, 2014 · 4 comments
Closed

terrain lines in the fog #949

chieling opened this issue Nov 19, 2014 · 4 comments
Labels
Milestone

Comments

@chieling
Copy link

screenshot_025-00000

its the zfighting on the fog distance at the view range cut off. flickers when you move about

@crabmusket crabmusket added the Bug label Nov 19, 2014
@chieling
Copy link
Author

I had found THIS link
http://www.garagegames.com/community/forums/viewthread/123972

with this line in it:
I did find that if you went to line 135 of terrCellMaterial.cpp and "lied" about the far clip distance to the shaders:

vEye.normalize( 1.0f / (farPlane + 100.0f) );

Az had suggested:
vEye.normalize( 1.0f / (farPlane*1.1) );

and the terrain lines seem to go away.

What do the graphics gods think?

@crabmusket
Copy link
Contributor

Seems legit...

Azaezel added a commit to Azaezel/Torque3D that referenced this issue Dec 17, 2014
@crabmusket crabmusket added this to the 3.6.3 milestone Dec 17, 2014
@chieling
Copy link
Author

this seems to fix the issue

Azaezel@0d19b14

@crabmusket
Copy link
Contributor

Great, that will be included in #1078.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants