0 votes

Can you add the ability to import vector images?

asked Oct 28, 2019 in Engine by Ninozioz (14 points)

As far as I know vector images can be imported in the format *.svg. They will be rendered into pixels at the time of import though.

There also exist 2D meshes.
https://docs.godotengine.org/en/3.1/tutorials/2d/2d_meshes.html#introduction

I don't do much in 2D but I did just tried to import such a 2D mesh from *.svg.
It works - kind of - but material assignments (=colors) where lost.

Here's how it went:
I imported a relatively simple *.svg into blender. I scaled it up a bit. And rotated it, so that it was in the x/y plane.
Then I exported it to *.obj which I copied into a godot test object.

Then I created a MeshInstance2D and could load that mesh from the *.obj. But the albedo material (although displayed in the Inspector) wasn't used. The result is actually a scalable 2D mesh though.

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.