Page 1 of 1

Strangely blurry map.

Posted: 24 Oct 2008, 18:12
by lurker
I started up spring while wanting to tweak my lod bias and anisotropic filtering settings, and found this. At a rather close distance to the camera, the map becomes unexpectedly blurry. Changing lod bias, view radius, and anisotropic filtering settings has no effect on where the map gets blurry, so I wonder what the cause is and what I can do to fix it.

Re: Strangely blurry map.

Posted: 24 Oct 2008, 18:28
by jK
compressed detailtex?

Re: Strangely blurry map.

Posted: 24 Oct 2008, 18:35
by lurker
Compression is off, and metalheck uses the default detailtex.

Edit: I overrode the detailtex with a blank white bmp. It still has the blur starting at the same distance.

Re: Strangely blurry map.

Posted: 24 Oct 2008, 18:43
by RogerN
Have you noticed the same blurry phenomenon on other maps? If not, I suspect that the mipmaps for metal heck were generated poorly. IIRC mipmap generation is part of the map compiling process, and there'd be no way to fix it without recompiling the map (which would break compatibility with the existing map).

Re: Strangely blurry map.

Posted: 24 Oct 2008, 18:46
by lurker
But I also changed the mipmap bias, by a large amount. It might even be a correct mipmap taking over, but the issue is that I can't get where that happens to move. I'll go add in a debug message to check if it's reading the value incorrectly...
Unless spring is setting the wrong texture level on these pieces in a seperate fashion with a bad algorithm?

Re: Strangely blurry map.

Posted: 24 Oct 2008, 18:54
by jK
terrain texture mipmapping isn't handled by OpenGL, Spring just loads _one_ mipmap for each ground quad.

Re: Strangely blurry map.

Posted: 24 Oct 2008, 19:06
by lurker
So it uses a bad algorithm. I'll try to fix it. It only does it at some angles.

Re: Strangely blurry map.

Posted: 24 Oct 2008, 19:11
by jK
lurker wrote:So it uses a bad algorithm.
No, just the mipmaps are bad!

Re: Strangely blurry map.

Posted: 24 Oct 2008, 19:26
by BETEPUHAP
you sure you've forced anisotropy in video driver settings?

Re: Strangely blurry map.

Posted: 24 Oct 2008, 19:37
by lurker
I'll find a bunch of maps and also look at the raw mipmaps on metal heck. Like I said, it's only an issue at some angles.
I'll also compare fps or something to be absolutely sure the anisotropy settings are working.

Re: Strangely blurry map.

Posted: 24 Oct 2008, 22:40
by Forboding Angel
This is why it's so tough to take decent map screenshots in spring, because you can't force it to not go blurry, you can only hope that the stars align at an angle that manages to either hide it or it not be blurry.

Tho, over time I've just kinda accepted it for what it is and dealt with it. It would be nifty if you could turn map mipmapping on an off. That way we could get some truly gorgeous screenies.