Page 1 of 1

car sprite directions are not evenly spaced/mapped

Posted: Thu Mar 13, 2014 4:37 pm
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.

Re: car sprite directions are not evenly spaced/mapped

Posted: Thu Mar 13, 2014 4:44 pm
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).

Re: car sprite directions are not evenly spaced/mapped

Posted: Thu Mar 13, 2014 9:02 pm
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.

Re: car sprite directions are not evenly spaced/mapped

Posted: Thu Mar 13, 2014 10:18 pm
by sparr
A flag to disable it might be ideal.

Re: car sprite directions are not evenly spaced/mapped

Posted: Wed Mar 19, 2014 1:06 pm
by kovarex
Added the flag for 0.9.4 and documented the RotatedSprite type here:
https://forums.factorio.com/wiki/inde ... atedSprite