0 votes

Hi
I import my SVG file to Godot, now it shows the gray color and not my real color
how to fix that?

Godot version 3.3.4
in Engine by (35 points)

Can you upload the SVG file somewhere and link it here?

It's possible that the SVG relies on Inkscape-specific functionality, which SVG loaders like nanosvg can't replicate. (nanosvg is the library currently used by Godot to import SVG images.)

Hi again
https://file.io/Qkzt9dZOqghN
in the first time, I use Adobe Illustrator SVG and it is black then I just export pdf then converted it to SVG with the online tool now it just shows gray color

It says the file was deleted. Converting to PDF as an in-between step sounds a bit convoluted. It should work directly.

Resaving with Inkscape did the trick, but I had to select the object and ungroup (any other operations would probably work too) so that Inkscape reevaluates the data.

I am not very good at english. Can you tell me what I should do now to solve this problem? Step by Step

  1. Install Inkscape if you don't have it already
  2. Open your SVG
  3. Click the image to select it
  4. Object > Ungroup (or Shift+Ctrl+G)
  5. Save SVG
  6. Load in Godot and enjoy the colours

tnx it is work

Godot seems doesn't support the alpha channel for SVG it is just true or false

Alpha channel import works fine for me. It could be Illustrator exporting weird SVGs.

Please log in or register to answer this question.

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.