Page 1 of 1
Problem with rendering slopes
Posted: Fri Jul 24, 2009 7:41
by NeoHippo
As seen in this image (click it for a larger view), when viewed from a distance the sky comes through where slopes are to be. Moving closer, the slopes are rendered properly. I'm just wondering if that is a bug or not.

Re: Problem with rendering slopes
Posted: Fri Jul 24, 2009 8:57
by Graf Zahl
Interestingly this behavior does not change one bit when the field of view is changed so this looks indeed like an engine problem.
Re: Problem with rendering slopes
Posted: Sat Jul 25, 2009 8:11
by Graf Zahl
The slopes are so steep that their z-position overflows at the player's viewpoint. This means that half the math in the code needs to be changed from fixed point to floating point. I'll have to see what's possible.
Re: Problem with rendering slopes
Posted: Sat Jul 25, 2009 9:14
by Graf Zahl
Fixed. However, I can't guarantee that there aren't other places in the engine where such an overflow may occur so even though it renders properly now there's still a chance for this producing glitches.