Page 1 of 1

[2.0.26] RollingStock picture frame selection discontinuities when transitioning on/off the rail ramp

Posted: Tue Dec 17, 2024 2:17 am
by kirazy
There are several discontinuities in sprite frame selection when a rolling stock entity is transitioning on/off the base of a rail ramp.

A) Shadow Discontinuity


There is a discontinuity in the rolling stock shadow at the base of the ramp. This is entity-agnostic and appears to be related to how the engine is choosing which frames of the shadow to display.

B) Sloped-to-Rotation Discontinuity


This is specifically when the rail immediately after the ramp is a curved rail. The rolling stock snaps from the sloped sprite set to the rotated sprite set prematurely.

For completeness, it does not occur for a straight rail:


May not be fixable or worth fixing, but who knows...?

Re: [2.0.26] RollingStock picture frame selection discontinuities when transitioning on/off the rail ramp

Posted: Tue Dec 17, 2024 2:28 am
by boskid
Case A is most likely a difference of shadow casted on ramp vs shadow casted on straight rails and i do not care about this.

Case B is related to selection of rotated vs sloped sprires. Sloped sprites are given only for 4 rotations. Due to rails turning, the rotation falls into a nearby direction for which sloped sprites are not given so it gets a non sloped but rotated sprite. I was aware of this case when ramps were implemented and this was well within my 'i do not care' quota given all the other compromises that had to be made.

Re: [2.0.26] RollingStock picture frame selection discontinuities when transitioning on/off the rail ramp

Posted: Tue Dec 17, 2024 2:35 am
by IsaacOscar
kirazy wrote: Tue Dec 17, 2024 2:17 am There are several discontinuities in sprite frame selection when a rolling stock entity is transitioning on/off the base of a rail ramp.

A) Shadow Discontinuity


There is a discontinuity in the rolling stock shadow at the base of the ramp. This is entity-agnostic and appears to be related to how the engine is choosing which frames of the shadow to display.

B) Sloped-to-Rotation Discontinuity


This is specifically when the rail immediately after the ramp is a curved rail. The rolling stock snaps from the sloped sprite set to the rotated sprite set prematurely.

For completeness, it does not occur for a straight rail:


May not be fixable or worth fixing, but who knows...?
Completely off topic, but how did you make those cool little videos?

Re: [2.0.26] RollingStock picture frame selection discontinuities when transitioning on/off the rail ramp

Posted: Tue Dec 17, 2024 2:56 am
by kirazy
IsaacOscar wrote: Tue Dec 17, 2024 2:35 am
Completely off topic, but how did you make those cool little videos?
Windows Snip tool!

Re: [2.0.26] RollingStock picture frame selection discontinuities when transitioning on/off the rail ramp

Posted: Tue Dec 17, 2024 3:16 am
by IsaacOscar
kirazy wrote: Tue Dec 17, 2024 2:56 am
IsaacOscar wrote: Tue Dec 17, 2024 2:35 am
Completely off topic, but how did you make those cool little videos?
Windows Snip tool!
Thanks!