CyclopsMC / IconExporter

Exports item and block icons to files
MIT License
19 stars 7 forks source link

Semi-transparent blocks lose their transparency in renders #25

Open BabylonAS opened 8 months ago

BabylonAS commented 8 months ago

Issue type:


Short description:

Blocks that are partially transparent, such as stained glass, are not rendered with partial transparency, their icons are completely opaque.

Steps to reproduce the problem:

  1. Run the /iconexporter export command, no configuration is needed.
  2. Find an icon for a semi-transparent block, such as minecraft__green_stained_glass.png, in the icon-exports-x32 folder (or other folder for other resolutions).
  3. Open the file in a image viewer or editor that supports transparency (preferably with something like a checkerboard background enabled).

Expected behaviour:

The image must be partially transparent, like it is in Minecraft itself. This can be noticed if picking a semi-transparent block from the inventory and dragging it around the screen. Under the default resource pack, the hotbar has a translucent background as well, so turning the camera around while such a block is in the hotbar also affects the block’s on-screen appearance. Obviously, the regular inventory slot’s background does that too.

Sites such as the Minecraft Wiki, the FTB Wiki, and the Official Aether Project Wiki display inventory icons in a similar fashion to the game (often using the solid gray background) and thus expect icons to be semi-transparent (example). This means that fixing the issue would greatly improve the mod’s usefulness for such projects, especially mod wikis.


Versions:

Log file:

Not a crash.

rubensworks commented 8 months ago

Thanks for reporting!

rubensworks commented 8 months ago

Not really a bug though, more of a feature request I'd say :-)

This is not on my roadmap to support atm, but PRs are definitely welcome.

elifoster commented 8 months ago

It's definitely a bug.