Dynmap-Forge/Fabric

Dynmap-Forge/Fabric

888k Downloads

webp Tile background color is not transparent

ApliNi opened this issue ยท 5 comments

commented

It is normal in png format, this problem occurs after changing it to webp-l
tried setting background: 'transparent or #00000000 or reg(0,0,0,0)' in world.txt, but it doesn't work
Am I setting it wrong?

But you can get translucent tiles through glass
112
I modified the CSS to get a background with a pattern, so I need transparent tiles
thanks )

commented

are you still using the default jpg storage standard, which cannot create transparent backgrounds IIRC? Try to use PNG as storage standard. also: there have been many changes after 3.3-beta-2, maybe this is changed in the latest version, 3.3-beta-5

commented

ry to use PNG as storage standard

png does not have this problem, i changed it to webp (i forgot to describe webp..

commented

I think I've got a lead on this - we encode the image for WEBP internally as PNG (which handles alpha fine) before passing it to the external cwebp tool to encode, BUT the rendering logic was treating anything that wasn't PNG as not supporting alpha (transparency), so the PNG had the background color baked in, and this was true in the resulting WEBP too. Coding fix now.

commented

Fixed in 3.4 SNAPSHOT 746 or later

commented

Thanks