minetest / minetest

Minetest is an open source voxel game-creation platform with easy modding and game creation

Home Page:https://www.minetest.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grayscale Targa images (Type 3) don't render as grayscale

Wuzzy2 opened this issue · comments

commented
Minetest version
a66e6d4dff0b1dad065297442981718d7f7aec55
Summary

The type 3 Targa test nodes in DevTest don't render as grayscale. Instead, the letters "T" and "A" on the test nodes appear yellow for some reason.

Steps to reproduce
  • Launch DevTest
  • Place the type 3 Targa test nodes

@Wuzzy I have a suspicion. I think if these are 16 bit grayscale images, they should have one alpha channel and one grayscale channel. However, the engine might treat them as A1R5G5B5 16 bit color images instead. This could be verified with a debugger, or with a mod that contains a single printf in each decoding path.