luanti-org/luanti
View on GitHub“TGA Type 2 (uncompressed RGB) top-bottom Test Node” devtest node texture is flipped upside down
Open
#12,570 opened on Jul 21, 2022
@ Devtest GameBugLow prioritygood first issue
Repository metrics
- Stars
- (13,341 stars)
- PR merge metrics
- (PR metrics pending)
Description
Minetest version
Commits 7c227d2a004068267dbe713259d57374a70c29e4 up to 2cf52642fa89a9497b0200f5a4637a25a82f9c3d
OS / Hardware
It does not matter, as this is not a rendering error.
Summary
The file games/devtest/mods/testnodes/textures/testnodes_tga_type2_16bpp_tb.tga is flipped upside down.
Possible reason: Converting from bottom-top to top-bottom pixel order using imagemagick can erroneously flip images.
Steps to reproduce
- Place the TGA test nodes in devtest.
- Notice that one of the nodes has a ttexture that is flipped upside down.
Additional Information
If you fix this by flipping the texture, make sure that the resulting image is actually a type 2 TGA with 16bpp (A1R5G5B5) colors for which imagemagick's identify(1) reports an orientation of TopLeft.