#Problem with SVG import transparency

1 messages · Page 1 of 1 (latest)

fleet drift
#

Hello there! I'd love some help with this issue that's really got me stumped.

I'm using SVGs in my game - they are small tiles. Each tile has a rounded corner - so I am importing the SVGs with transparency at the rounded corners.

For the majority of my tiles it works fine... but then there are the stubborn ones who get imported with a big transparent bar at the bottom of the tile! You can see an example attached. Reimporting doesn't seem to help. Does anyone have any ideas for how I can solve this?

fast marsh
#

from docs:
https://docs.godotengine.org/en/stable/tutorials/assets_pipeline/importing_images.html

SVG (.svg) - SVGs are rasterized using ThorVG when importing them. Support is limited; complex vectors may not render correctly. Text must be converted to paths; otherwise, it won't appear in the rasterized image. You can check whether ThorVG can render a certain vector correctly using its web-based viewer. For complex vectors, rendering them to PNGs using Inkscape is often a better solution. This can be automated thanks to its command-line interface.

seems the svg importer isnt the best