You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
TMX-Map format tile-flipping
"When rendering a tile, the order of operation matters. The diagonal flip (x/y axis swap) is done first, followed by the horizontal and vertical flips."
The renderer could not properly display tiles that are flipped and rotated.
https://github.com/urho3d/Urho3D/blob/68635536db18277495f0bc27fdfcd19b24fb7261/Source/Urho3D/Urho2D/TileMapLayer2D.cpp#L360
https://github.com/urho3d/Urho3D/blob/68635536db18277495f0bc27fdfcd19b24fb7261/Source/Urho3D/Urho2D/TileMapLayer2D.cpp#L389
If the tile-block set swapxy true, StaticSprite2D maybe render incorrectness.
https://github.com/urho3d/Urho3D/blob/68635536db18277495f0bc27fdfcd19b24fb7261/Source/Urho3D/Urho2D/StaticSprite2D.cpp#L295-L337
TMX-Map format tile-flipping
"When rendering a tile, the order of operation matters. The diagonal flip (x/y axis swap) is done first, followed by the horizontal and vertical flips."
The left is correct!
TileMapTest.zip
The text was updated successfully, but these errors were encountered: