[2.0.51] Rotated reflections don't match main graphics

We are aware of them, but do not have solutions that don't cause other issues. They go here in order not to take space in the main bug thread list.
jurgy
Inserter
Inserter
Posts: 30
Joined: Wed Feb 27, 2019 5:55 pm
Contact:

[2.0.51] Rotated reflections don't match main graphics

Post by jurgy »

WaterReflectionDefinition with the rotation as defined bellow, don't seem to select the same variation frame as the main graphics when rotating, even though the number when the number of variations is the same so I would expect them to rotate the same way. The four cardinal directions work fine, but when you introduce more directions the two graphics select different frames.

Code: Select all

    rotate = false,
    orientation_to_variation = true
Here's a clip made by Hanodest showing the frame number of the main graphic and the reflection graphics. Also notice how the two often switch orientation at different moments from each other.
boat.mp4
(12.66 MiB) Downloaded 35 times
I've also added a mod zip that has a unit called "boat" with 128 different rotations for both the main graphics as well as the reflection.
Attachments
boat.zip
(22.11 MiB) Downloaded 20 times
Osmo
Long Handed Inserter
Long Handed Inserter
Posts: 64
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: [2.0.51] Rotated reflections don't match main graphics

Post by Osmo »

This is probably related to the fact RotatedAnimation has apply_projection field, true by default, which changes which frame is displayed at which orientation so an animation with constant rotation speed looks better with the game's camera angle.
Water reflecrions however don't have that, which makes them be out of sync with each other
jurgy
Inserter
Inserter
Posts: 30
Joined: Wed Feb 27, 2019 5:55 pm
Contact:

Re: [2.0.51] Rotated reflections don't match main graphics

Post by jurgy »

setting apply_projection to false on the main graphics doesn't fix the problem, unfortunately.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15671
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.51] Rotated reflections don't match main graphics

Post by Rseding91 »

I can... kind of fix this, but it's never going to be perfect. Unit rendering has several different animations depending on what the unit is doing and depending on its state the orientation of the animation won't always match the orientation of the reflection (the way reflection converts orientation to frame index is not the same as how unit converts orientation to frame index) and if I change one to match the other it will break other stuff.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Minor issues”