0 votes

SVG is not imported, instead black square.

And is it rational to use SVG, or better immediately PNG. How godot squeezes SVG when processing? (I plan to add a large number of objects)

UPD What formats are best to use to best quality?

https://imgur.com/a/pzmjX1n
https://imgur.com/a/CoUQUxm

in Engine by (86 points)
reshown by

1 Answer

0 votes
Best answer

How godot squeezes SVG when processing?

SVG is rasterized to an image using NanoSVG when importing, so it is not a "true" vector when used in-game. Also, keep in mind NanoSVG is quite limited in terms of supported features: some complex vectors won't render correctly (or at all).

And is it rational to use SVG, or better immediately PNG.

If you want control over the rendering process, I'd advise rendering SVGs to PNGs beforehand. This can be automated using Inkscape's command line interface.

by (11,917 points)
selected by

Thanks, I understand. Easier to use png pre rendered

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.