Tom's Peripherals

Tom's Peripherals

49 Downloads

GPU Image Transparency

EndlessStormWolf opened this issue ยท 2 comments

commented

I've been enjoying experimenting with the GPU, but as far as I can tell, image transparency is not supported in 2D or 3D rendering when loading a PNG file. It's possible that I'm missing something, as it seems the documentation is somewhat unclear, but it would be greatly appreciated to be able to use PNG images with transparency!

I've been trying to write a script to render a model from a Minecraft-style '.json' file and I got really hung up thinking I had made some mistake with my uvs before I realized that the test model I was using (the default player model) happened to have a transparent overlay, which was making everything wonky.

If it so happens that transparency is actually supported, and I just missed something, I would love if you could point me in the right direction to make that work!

Here's what it currently looks like thanks to the transparency rendering incorrectly:
2024-04-15_22 42 24

Here's what it should look like (this was taken with a version of the model that didn't have the second skin layer):
2024-04-15_22 41 51
2024-04-15_22 42 01

Thank you for putting time into this mod regardless! It's a lot of fun to mess with!

Edit: Just realized I should note that I'm using the mod on Minecraft 1.19.2!

commented

Transparency isn't supported yet.

commented

Okay, no worries! Mostly just wanted to make sure I wasn't missing something obvious! Thanks again for your work on this mod, it is very cool!