News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

Draw_as_ding causing missing pixels

Started by Leartin, January 13, 2018, 09:18:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Leartin



Those missing pixel columns only appear when draw_as_ding is set in the object, and affect all tiles which have a connection to the north and west. All tiles which connect to the north have one missing pixel, the lowest of the column pixels. There needs to be a connection, an unconnected object to the north does not cause issues.

Object is available in the pakset

gauthier

I have the same in pak128 with high enough graphics (here on a piece of elevated tracks).

Dwachs

Is this with standard zoom? (I mean not zoomed out or in ?) 

I worked on that time ago: https://forum.simutrans.com/index.php?topic=16588.0

Parsley, sage, rosemary, and maggikraut.

Leartin

This is the standard zoom. It's the same with other zooms as well. Notably, if you zoom in for twice the size, there is still only one column of pixels missing, so half of the 'original pixels' are visible.

I know you worked on it back then, and as you can see in the first picture of the old thread, these missing columns were not a thing back then before your patch, but I can't say when it started to appear. I noticed this issue a while ago, but suspected something with the graphic was wrong so I just made a mental note to fix that later.

Dwachs

Without zoom, the missing pixel column is two pixels wide? I suppose the pixels are there in fast-forward?

For pak192, I cannot blame integer division playing tricks with us, 192 is divisible by 12 and 16, which should be sufficient..... Have to look into this again ....
Parsley, sage, rosemary, and maggikraut.

Leartin

#5
No, it's always one pixel wide, no matter which zoom. Since pixels of the image become 2x2 pixel chunks when zoomed in, only half of them is missing.



It was this which convinced me to give up looking for fault in my graphic, and I thought I'd note it since it might limit where the bug could be (pixels exist, just not drawn and are not two pixels in zoom mode)

Can't currently tell if fast forward changes anything, since I don't have Simutrans available on this machine.
EDIT: Indeed, fast forward cures the issue.

Dwachs

I suppose it looks correct in fast-forward, found a spot, where an addition +1 would cure this bug. I have to write a test program to see that this wll not introduce glitches somewhere else.
Parsley, sage, rosemary, and maggikraut.

Dwachs

This should be fixed with r8373. There are still pixels when zooming in / out. The executable in this thread: https://forum.simutrans.com/index.php?topic=17848 should not show these errors.
Parsley, sage, rosemary, and maggikraut.

Leartin