The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Spacethingy on October 15, 2012, 06:48:04 PM

Title: Max zoom tile edge bug
Post by: Spacethingy on October 15, 2012, 06:48:04 PM
Evenin' all, here's a little annoyance that only occurs on max zoom (in all paks it seems):

(http://i.imgur.com/Pwplu.png)

As you can see, when the brightness is changed, an outline is left around the edge of all the tiles. As soon as I move the view point, the lines disappear.


Also, the outlines are left behind when a vehicle moves over the tile. Look closely at the edges of the tiles on the corner and you can see blue and red pixels left behind by the bus. Again, the rogue pixels disappear when I move the viewpoint or change the zoom.

(http://i.imgur.com/Kbu2U.png)


I'm on 111.3.1 r5843, with a Mobile Intel(R) 945GM "card" if that helps. I don't know if this counts as a bug, it's such a small thing, but thanks for your help anyways!
Title: Re: Max zoom tile edge bug
Post by: prissi on October 16, 2012, 02:43:19 PM
It dependes on pak set size too. One would need to change the zooming out routine to add a extra pixel every second row for maximum level. Nobody bothered yet, but I think almost everybody saw this.
Title: Re: Max zoom tile edge bug
Post by: Dwachs on October 17, 2012, 05:55:30 PM
Here is a patch. The bug appears in all paksets in full zoom in, ie 2:1 zoom. This is due to the applied diagonal filtering: some pixels are made transparent, but no pixels are made opaque. Hence some transparent pixels appear between ground tiles.

Please test :)
Title: Re: Max zoom tile edge bug
Post by: kierongreen on October 17, 2012, 11:15:12 PM
Patch seems to work fine here :)
Title: Re: Max zoom tile edge bug
Post by: TurfIt on October 17, 2012, 11:44:19 PM
The grid is unfortunately affected by the patch. North/South lines disappear in pak128. All lines gone in pak96.comic. Just blobs in the tile corners left.
But the original problem is fixed.  :P
Title: Re: Max zoom tile edge bug
Post by: Ters on October 18, 2012, 08:23:25 AM
I've wondered, why do people zoom in? Retro look with big pixels? Touch screen users with big fingers?
Title: Re: Max zoom tile edge bug
Post by: Spacethingy on October 18, 2012, 10:00:45 AM
Thanks! Re. zooming in, I do it in 64-sized paks with slow vehicles, as it makes their motion look smoother. Also, I like just sitting watching things happen in a small area, like I'm waiting at a station... (does that sound weird? :))
Title: Re: Max zoom tile edge bug
Post by: Dwachs on October 19, 2012, 06:41:26 PM
Here is an updated patch, the grid is preserved to some extent.
Title: Re: Max zoom tile edge bug
Post by: IgorEliezer on October 20, 2012, 12:48:11 AM
Quote from: Spacethingy on October 18, 2012, 10:00:45 AM
Also, I like just sitting watching things happen in a small area, like I'm waiting at a station... (does that sound weird? :) )
So, wait when Simutrans goes isometric 3D. 8)
Title: Re: Max zoom tile edge bug
Post by: prissi on October 20, 2012, 07:22:24 PM
Look fine to me. It just make the fact more visible that pak32 and pak192 has cursor outlines, that are shifted 1-2 pixel versus their intended position. But that is a pak error. Please commit.
Title: Re: Max zoom tile edge bug
Post by: Dwachs on October 21, 2012, 10:30:33 AM
This is now incorporated, r5998.