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

Things that we don't consider worth fixing at this moment.
User avatar
kirazy
Filter Inserter
Filter Inserter
Posts: 430
Joined: Tue Mar 06, 2018 12:18 am
Contact:

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

Post 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...?
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
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3454
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

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

Post 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.
User avatar
IsaacOscar
Filter Inserter
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

Post 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?
User avatar
kirazy
Filter Inserter
Filter Inserter
Posts: 430
Joined: Tue Mar 06, 2018 12:18 am
Contact:

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

Post 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!
User avatar
IsaacOscar
Filter Inserter
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

Post 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!
Attachments
Screen Recording 2024-12-17 131527.mp4
(357.3 KiB) Downloaded 13 times
Post Reply

Return to “Won't fix.”