luanti-org/luanti

“TGA Type 2 (uncompressed RGB) top-bottom Test Node” devtest node texture is flipped upside down

Aperta

#12.570 aperta il 21 lug 2022

 (7 commenti) (0 reazioni) (0 assegnatari)C++ (2395 fork)auto 404
@ Devtest GameBugLow prioritygood first issue

Metriche repository

Star
 (13.341 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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
  1. Place the TGA test nodes in devtest.
  2. 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.

Guida contributor