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...?
[2.0.26] RollingStock picture frame selection discontinuities when transitioning on/off the rail ramp
[2.0.26] RollingStock picture frame selection discontinuities when transitioning on/off the rail ramp
- Attachments
-
- train-locomotive-smooth-dismount.mp4
- (3.23 MiB) Downloaded 15 times
-
- train-locomotive-snap-to-rotation-sprite-set.mp4
- (3.69 MiB) Downloaded 14 times
-
- 20241217-0156-22.1607582.mp4
- (7.98 MiB) Downloaded 12 times
Re: [2.0.26] RollingStock picture frame selection discontinuities when transitioning on/off the rail ramp
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.
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.
- IsaacOscar
- Filter Inserter
- Posts: 843
- Joined: Sat Nov 09, 2024 2:36 pm
- Contact:
Re: [2.0.26] RollingStock picture frame selection discontinuities when transitioning on/off the rail ramp
Completely off topic, but how did you make those cool little videos?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...?
Re: [2.0.26] RollingStock picture frame selection discontinuities when transitioning on/off the rail ramp
Windows Snip tool!IsaacOscar wrote: Tue Dec 17, 2024 2:35 am
Completely off topic, but how did you make those cool little videos?
- IsaacOscar
- Filter Inserter
- Posts: 843
- Joined: Sat Nov 09, 2024 2:36 pm
- Contact:
Re: [2.0.26] RollingStock picture frame selection discontinuities when transitioning on/off the rail ramp
Thanks!kirazy wrote: Tue Dec 17, 2024 2:56 amWindows Snip tool!IsaacOscar wrote: Tue Dec 17, 2024 2:35 am
Completely off topic, but how did you make those cool little videos?
- Attachments
-
- Screen Recording 2024-12-17 131527.mp4
- (357.3 KiB) Downloaded 13 times