The International Simutrans Forum

Development => Bug Reports => Topic started by: HDomos on January 15, 2013, 01:07:07 AM

Title: Underground station labels placed wrong
Post by: HDomos on January 15, 2013, 01:07:07 AM
If i build a station underground, the label of it is placed wrong (the deeper it is the worse the placement will be). I made a few screenshots to demostrate it. The strange is, that if i'm in sliced mode on the level of the station, the label is OK, and when i use the "go up one level" button it moves in the opposite direction as it should. The pictures are from the same position, and on the ground level, the label is sompletely out of place... The station begins one tile west from the parking place(stop), and thats where the label should be.
(https://lh5.googleusercontent.com/-COwAqljoS84/UPSql1oRVRI/AAAAAAAALw4/pQf2iFmD640/s800/simscr190.jpg)
(https://lh3.googleusercontent.com/-34lFY50hEXI/UPSql7J7i8I/AAAAAAAALxE/_ikkZqJIMoE/s800/simscr192.jpg)
(https://lh5.googleusercontent.com/-pVTGNJ4tIX0/UPSql0rdMEI/AAAAAAAALxA/X0YF58pf9-o/s800/simscr194.jpg)
(https://lh6.googleusercontent.com/-HVBoMA3ldFc/UPSqmF_5rfI/AAAAAAAALw8/l521cajHue4/s800/simscr196.jpg)
(https://lh3.googleusercontent.com/-hwkWWYNP1J0/UPSqmcVpIeI/AAAAAAAALxI/BSO7N4ADAM4/s800/simscr198.jpg)
Title: Re: Underground station labels placed wrong
Post by: Dwachs on January 15, 2013, 06:40:33 AM
where are the pictures ?
Title: Re: Underground station labels placed wrong
Post by: HDomos on January 15, 2013, 11:59:40 AM
Quote from: Dwachs on January 15, 2013, 06:40:33 AM
where are the pictures ?
You can't see them? They are here for me... The label of "Örkény Blaha Luiza tér p.u." is the wrong one
Title: Re: Underground station labels placed wrong
Post by: mEGa on January 15, 2013, 12:02:58 PM
I see them too.
Title: Re: Underground station labels placed wrong
Post by: Ters on January 15, 2013, 04:08:57 PM
Looks like labels for underground stops get a double y-offset due to depth. It also affects the old style underground view.
Title: Re: Underground station labels placed wrong
Post by: Dwachs on January 15, 2013, 07:11:12 PM
Hard to fix. Technically these labels sit on the surface, and their offset is adjusted for underground view.
Title: Re: Underground station labels placed wrong
Post by: ӔO on January 15, 2013, 09:02:24 PM
I think it would be a slight improvement, although not a full fix, if the station label were automatically centred above the most central part of the station instead of the first piece built.
Title: Re: Underground station labels placed wrong
Post by: Ters on January 16, 2013, 05:26:40 AM
Having done some work in determining the central point of something, such a seemingly simple thing is unexpectedly complicated to express through logic (you normally don't want the center point inside a hole in the middle). It might or might not be simpler with tiles than with polygons. I think it's a different problem from this, though. The problem here lies along the z-axis, while centering on station would happen on the xy-plane.