Strangely blurry map.

Strangely blurry map.

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Strangely blurry map.

Post 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.
Attachments
screen047cropped.jpg
screen047cropped.jpg (40.43 KiB) Viewed 1595 times
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Strangely blurry map.

Post by jK »

compressed detailtex?
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Strangely blurry map.

Post 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.
User avatar
RogerN
Posts: 238
Joined: 24 Jul 2006, 23:29

Re: Strangely blurry map.

Post 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).
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Strangely blurry map.

Post 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?
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Strangely blurry map.

Post by jK »

terrain texture mipmapping isn't handled by OpenGL, Spring just loads _one_ mipmap for each ground quad.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Strangely blurry map.

Post by lurker »

So it uses a bad algorithm. I'll try to fix it. It only does it at some angles.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Strangely blurry map.

Post by jK »

lurker wrote:So it uses a bad algorithm.
No, just the mipmaps are bad!
User avatar
BETEPUHAP
Posts: 11
Joined: 22 Sep 2008, 11:57

Re: Strangely blurry map.

Post by BETEPUHAP »

you sure you've forced anisotropy in video driver settings?
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Strangely blurry map.

Post 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.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Strangely blurry map.

Post 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.
Post Reply

Return to “Help & Bugs”