graphical glitches of the latest releases April 18, 2010, 01:38:14 pm Here is a list of graphical glitches I have noticed to help devloppers 1) Seems to happen with the needs ground property. Here in the meat_packing_plant :When I delete what is in front of one tile of this industry (if there is something), the glitch disappear on the concerned tile. But it appears again later.(You can see that the glitch doesn't appear on the north-east tile since I removed some trees in front of it)2) Tunnels ...3) After terraforming, there are glitches on the concerned tiles :4) the eternal bridge glitch ...That's all I found now, perhaps I will add some others.Have a nice work dev. team Quote Selected
Re: graphical glitches of the latest releases Reply #1 – April 18, 2010, 06:52:55 pm At first: which version did you run? I suppose, you used some nightly...1) I cannot reproduce this. Does this happen with all building or just with this particular one? I cannot observe any glitches with the meat packing plant.2) These are infact two errors: one in the code, which shows a vehicle that is in the tunnel, the other one is in the tunnel-pak: there the way graphic is drawn in top of the vehicle (the way has to be drawn in the background-image, it only happens with the tunnel going west).3) and 4) are actually the same errors. But they are present in 102.2.2 as well, so a did not introduce new glitches here.Lets see what I can do with 2-4. Quote Selected
Re: graphical glitches of the latest releases Reply #2 – April 18, 2010, 07:59:16 pm 3) & 4) are broken ground tiles. Ground tiles (and ways) should never ever go into the front tile, before it or after it, since the order ground tiles are drawn are not guarantied. Quote Selected
Re: graphical glitches of the latest releases Reply #3 – April 18, 2010, 08:42:18 pm Quote from: Dwachs – on April 18, 2010, 06:52:55 pm...I cannot observe any glitches with the meat packing plant...Comparing the picture here with the ones in this thread you can see some areas (to south and west) where ground should be placed. Hope it helps. Quote Selected
Re: graphical glitches of the latest releases Reply #4 – April 18, 2010, 09:19:26 pm I run 102.3-3151 Quote Selected
Re: graphical glitches of the latest releases Reply #5 – April 19, 2010, 06:19:47 am Quote from: gauthier – on April 18, 2010, 09:19:26 pmI run 102.3-3151Could you please re-test the first bug with a newer nightly and pak128 1.4.6? I cant reproduce this one. Quote Selected
Re: graphical glitches of the latest releases Reply #6 – April 19, 2010, 08:09:39 am I will try later, impossible to reach the nightly page now Quote Selected
Re: graphical glitches of the latest releases Reply #7 – April 21, 2010, 06:39:36 pm Something is fixed in revisions 3176 & 3177:3 & 4) completely2) the bug in the middle picture, left picture: missing train in tunnel mouth is pak an error, right picture: hard to fix.1) I could not reproduce, maybe you have a broken pak that misses the needs-ground property? Quote Selected
Re: graphical glitches of the latest releases Reply #8 – April 28, 2010, 06:42:30 pm It's the original pak downloaded on the nightly page ... I'll try with a more recent one.I found some other minor glitches, I'm going to see if they're still there in the new releases. Quote Selected
Re: graphical glitches of the latest releases Reply #9 – April 29, 2010, 10:18:33 am Quotesim-winsdl_2010-04-29_v102.3_r3190.zip 2.53MBsim-winsdl_2010-04-27_v102.3_r3185.zip 2.53MBsim-winsdl_2010-04-26_v102.3_r3184.zip 2.53MBsim-winsdl_2010-04-25_v102.3_r3182.zip 2.53MBsim-winsdl_2010-04-22_v102.3_r3179.zip 2.53MBsim-winsdl_2010-04-21_v102.3_r3175.zip 2.53MBCan't find 3176 or 3177 The bug is fix in later releases too ?EDIT : that's good there're fixed I'm checking if the glitches I found are still present in r3190.EDIT² : these are the three glitches I found.The third happen only with the grey platform. Quote Selected Last Edit: April 29, 2010, 10:37:04 am by gauthier
Re: graphical glitches of the latest releases Reply #10 – April 29, 2010, 12:32:18 pm Thank you for investigating! Simply take the newest nightly to test for glitches.As to your bugs:Bug1: the signal is overdrawn by the pole of the tile behind. Hard to fix. Maybe move the signal some pixels to the front in the pak?Imho, the other two glitches are pak-errors: the supermarket has this missing pixels. And this grey platform is missing some pixels in its foreground images to overdraw the foreground images of the stations behind. Quote Selected Last Edit: April 29, 2010, 12:35:54 pm by Dwachs
Re: graphical glitches of the latest releases Reply #11 – April 29, 2010, 01:33:12 pm in the 1) it seems to be the catenary of the crossing which hide the signal.in the 3) I think it's that the forward part of the platform is defined as back image.EDIT : Useless to show a screenshot for the tree's placing problem Quote Selected
Re: graphical glitches of the latest releases Reply #12 – April 29, 2010, 02:58:05 pm #3 - Yep, comes from pak. Actually at least 4 stations have this problem now.#2 - I don't know how would I check that... investigating.#3 (stations) is fixed now. Quote Selected Last Edit: May 01, 2010, 11:26:29 am by VS
Re: graphical glitches of the latest releases Reply #13 – May 03, 2010, 01:47:27 pm There are two problems with trees.1) as everyone know there are sometimes placed on a tile next to their one.possible solution : on a tree source file we could define a "base pixel" which must be the base of the trunk.Afterwards the code of tree's placing should be fixed, so trees will be placed only on their tile.2) as you can see in attached picture : tree's shadows sometimes intersect so it's a complete blackout ...Two solutions : a heavy solution would be generate a 50% transparent shadow under the tree. an easier one would be to make shadows all at the same place on the source files and in the code force the trees to place only on certain pixels so shadows can't intersect. Quote Selected
Re: graphical glitches of the latest releases Reply #14 – May 03, 2010, 05:35:53 pm Anyone wishing to take a shot at trees, it's probably void baum_t::calc_off() And I don't understand it, but that's okay, because I can try it á la Monte Carlo... And it seems its results are good. (Charts are anisotropic so look at axes)Perhaps there is an hidden ****umption about tree alignment that is violated by graphics? Such as that the tree "starts" in the center of tile? It feels that way. Most of pak128 trees aren't centered, but made to fit on tile, so...I'll look if there isn't even a problem with tile size - the code gives randomization in fixed range, while it should perhaps vary that...edit: Spot on with graphics requirements - everything old in 64 (ls_*.png) is centered. Quote Selected Last Edit: May 03, 2010, 05:48:48 pm by VS
Re: graphical glitches of the latest releases Reply #15 – May 03, 2010, 06:52:15 pm Imho it looks like trees should be centered at a tile.The offset-calculation looks right for flat tiles (case 0:). There should be a calculation of the offsets for all different slopes differently, these three different cases cannot cover all possible slopes right. After rotation the offset is wrong anyway (the tree magically changes its position in 3d space, here a z-offset is needed or some sophisticated rotation calculation). After rotation the sorting of trees on a tile has to be corrected too.Long list of possible bugs (all what I remembered now). Quote Selected Last Edit: May 03, 2010, 07:05:46 pm by Dwachs
Re: graphical glitches of the latest releases Reply #16 – May 03, 2010, 07:12:04 pm Rotations aside, perhaps the resulting areas are clipped so that they are always inside resulting visible tile? Also, it seems there is this TILE_STEPS thing so tile size does not matter. False alarm Tree images should be easy to fix on pakset side with offsets (I hope!). The hard part is of course finding the offsets edit: this is a very productive thread...edit2: Perhaps recalculating position after every rotation would be enough? So that after rotation, placement is correct, but not a rotation of old placement. Yes, this is "lossy", but does it really matter much? When there is a bunch of trees on a tile, it does not matter to me much how are they arranged... If it is still absolutely critical to maintain the spatial pattern after full 360°, these randoms could be replaced by something deterministic inferred from coordinates. As a bonus, if you used rotation as part of that calculation, you could possibly make it work 100% if it was some table lookup (that's lossless again with some work to get the tables to match). Quote Selected Last Edit: May 03, 2010, 07:31:23 pm by VS
Re: graphical glitches of the latest releases Reply #17 – May 03, 2010, 09:56:47 pm I definitly can't understand anything what you're talking about XDThe solutions I purposed seem to be wrong ... why ? Quote Selected
Re: graphical glitches of the latest releases Reply #18 – May 04, 2010, 05:01:23 am We are talking about your problem number 1. It seems like the code already ****umes a certain position of the tree graphic: namely the root of the tree should be in the center of the tile (in the png files). Then the wrong positioning of trees comes from the wrong positioning of the trees in the paks. Quote Selected
Re: graphical glitches of the latest releases Reply #19 – May 04, 2010, 11:43:47 am #1 in first post was real. I just noticed... for some reason here the building worked well even without needs_ground.Hmmm. Perhaps instead of restarting bug numbers for each post, they should keep increasing.A quick recap so far:* needs_ground - pakset, fixed* tunnels - pakset, fixed; code?* terraforming & bridge - ?* signals - ?* supermarket - probably pakset, todo* platforms - pakset, fixed* tree placement - pakset, todo* tree shadows - ? Quote Selected
Re: graphical glitches of the latest releases Reply #20 – May 04, 2010, 12:58:37 pm Since most of the remaining bugs are pak128 dependent, moved this topic there. Quote Selected
Re: graphical glitches of the latest releases Reply #21 – May 04, 2010, 02:32:13 pm Quote from: VS – on May 04, 2010, 11:43:47 amA quick recap so far:* needs_ground - pakset, fixed* tunnels - pakset, fixed; code should be fixed - needs confirmation of bug reporter* terraforming & bridge - code should be fixed - needs confirmation of bug reporter* signals - ?* supermarket - probably pakset, todo* platforms - pakset, fixed* tree placement - pakset, todo* tree shadows - ?As to the signal bug: maybe remove the overheadwire-pole? I mean, it is not clear whether the ne and sw poles should be drawn before or after vehicles. In fact, the ne-pole should be drawn after vehicles driving n-s but after vehicles driving e-w! Such glitches can be observed in the game. Conclusion: remove these poles.Tree shadows: there is nothing that can be done in the program. Imho this is not so important ... Quote Selected
Re: graphical glitches of the latest releases Reply #22 – May 04, 2010, 03:43:40 pm You're right that the side poles are ambiguous, and that alone is reason to remove them and thus resolve this.But the signal / pole clash has a different reason. Graphics, but these are again forced by other circumstances. Let me explain. The poles are on the crossing tile, 4 around the center. Nothing wrong there, I think. What is causing problems is the signal, which is moved forward from its "home tile". And that, I guess, is because of where trains stop - far in front of tile. So one could conclude the vehicle movement algorithm is behind this...Tree shadows can die Thanks for all the reports (gauthier) and fixes (Dwachs)! Quote Selected
Re: graphical glitches of the latest releases Reply #23 – May 04, 2010, 04:49:29 pm normally a thing on a tile should be drawn after things on the tile behind, write ?The signal must be drawn after the electrification ... Quote Selected
Re: graphical glitches of the latest releases Reply #24 – May 04, 2010, 07:05:01 pm Quote from: gauthier – on May 04, 2010, 04:49:29 pmnormally a thing on a tile should be drawn after things on the tile behind, write ?The signal must be drawn after the electrification ...This is how its used to be. Now this is more complicated to fix the glitches with vehicles and stations:The drawing sequence per tile is:a) background imagesb) background image of tiles in front (if ways are connected, only the part that goes into the tile behind is drawn)c) vehicles on tiled) vehicles on tile in fronte) front imagesf) front images of tiles in front Quote Selected
Re: graphical glitches of the latest releases Reply #25 – May 04, 2010, 08:25:28 pm I see ...This is a problematic trouble ... I will think about it some days, if I find a solution I say it Quote Selected
Re: graphical glitches of the latest releases Reply #26 – May 13, 2010, 03:00:49 pm happens with all stations. Quote Selected
Re: graphical glitches of the latest releases Reply #27 – May 13, 2010, 03:36:36 pm what are we suppose to see? what is the bug here? the tree? Quote Selected
Re: graphical glitches of the latest releases Reply #28 – May 13, 2010, 03:39:49 pm another one (sorry for tiple post)But I had an idea to make all tunnels'entries glitches disappear easily.Why not add a special color which would be put around the tunnel entry (in the source pictures) at the place of the slope, and in game this color would be drawn other every thing (catenaries, signals, vehicles, ...) and replaced by the normal slope picture ?I hope you understand my idea, if it's not clear I can draw some schemas (yes the bug is the tree between the two platforms of the station)EDIT : one more : the red station must be like the green one, this layout glitch seems to be caused by some underground constructions. Quote Selected Last Edit: May 13, 2010, 03:52:57 pm by gauthier
Re: graphical glitches of the latest releases Reply #29 – May 13, 2010, 03:53:41 pm Quote from: gauthier – on May 13, 2010, 03:39:49 pmBut I had an idea to make all tunnels'entries glitches disappear easily.Why not add a special color which would be put around the tunnel entry (in the source pictures) at the place of the slope, and in game this color would be drawn other every thing (catenaries, signals, vehicles, ...) and replaced by the normal slope picture ?I hope you understand my idea, if it's not clear I can draw some schemas I understand, had the same idea some time ago. But no idea how to implement this.Quote(yes the bug is the tree between the two platforms of the station)on which tile is the tree actually? behind the station / on the station tile / under the station ?Edit: what station-pak is that on the screenshot? could you upload a savegame somewhere (with addons that do not belong to plain pak128)? Quote Selected Last Edit: May 13, 2010, 04:01:46 pm by Dwachs
Re: graphical glitches of the latest releases Reply #30 – May 13, 2010, 04:06:11 pm It happens with every station, the tree is of course behind the station. But I realised that in fact it's the tree placement problem, so it's not a independant glitch Quote Selected
Re: graphical glitches of the latest releases Reply #31 – May 13, 2010, 05:31:02 pm Quote from: Dwachs – on May 13, 2010, 03:53:41 pmEdit: what station-pak is that on the screenshot? could you upload a savegame somewhere (with addons that do not belong to plain pak128)?I meant the ituation on bug2012-endofworld. Quote Selected
Re: graphical glitches of the latest releases Reply #32 – May 13, 2010, 06:50:20 pm I don't even understand what is 2012 showing. Are the wires connected across wrong tiles? Quote Selected
Re: graphical glitches of the latest releases Reply #33 – May 13, 2010, 08:46:46 pm you see two stations, each one is pointed by an arrow. They're SNFOS stations, with 8 pictures. Normally the extremity of the station is the same as the one pointed by the green arrow. But there's a glitch pointed by the red arrow which occurs when something is built under the station. I often see this glitch. Quote Selected
Re: graphical glitches of the latest releases Reply #34 – May 14, 2010, 05:27:49 am @gauthier: please upload a savegame together with the needed snfos pak's. I could not reproduce this with a pak.german station. Quote Selected