car sprite directions are not evenly spaced/mapped

This subforum contains all the issues which we already resolved.
sparr
Smart Inserter
Smart Inserter
Posts: 1417
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

car sprite directions are not evenly spaced/mapped

Post by sparr »

Image

This is the sprite sheet I am using. The sprites are consistently rotated 5.625 degrees each. Traveling N/S/E/W looks fine. However, when the sprite is pointing NW/SW/SE/NE it actually travels in a direction that is a bit more horizontal than vertical. If this is intentional, that mapping should be published so that we can create sprite sheets with the appropriate distribution of directions. If this is unintentional, then consider this a bug report.

sparr
Smart Inserter
Smart Inserter
Posts: 1417
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: car sprite directions are not evenly spaced/mapped

Post by sparr »

It occurs to me that the problem might be some perspective correction in the game. I suspect that these sprites would line up with their direction of travel if I compressed them all by some amount in the vertical direction (a poor man's perspective transform).

kovarex
Factorio Staff
Factorio Staff
Posts: 8173
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: car sprite directions are not evenly spaced/mapped

Post by kovarex »

There is correction indeed.
The correction is made, that if you rendered that car to go some direction and then rendered it 45 degrees, the direction of the car on the screen will match. We call it projectionCorrection.

Long story short, we can make a flag for that that would disable it.

sparr
Smart Inserter
Smart Inserter
Posts: 1417
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: car sprite directions are not evenly spaced/mapped

Post by sparr »

A flag to disable it might be ideal.

kovarex
Factorio Staff
Factorio Staff
Posts: 8173
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: car sprite directions are not evenly spaced/mapped

Post by kovarex »

Added the flag for 0.9.4 and documented the RotatedSprite type here:
https://forums.factorio.com/wiki/inde ... atedSprite

Post Reply

Return to “Resolved Problems and Bugs”