• Tutorials
  • Making vector art in Krita ver 5 for Godot .

Godot will use vectors- but it rastorizes them into a texture, but I have gotten some pretty nice resolution using vectors in Godot. And Krita will make vectors and has vector art tools. (At least ver 5.0 and few of the earlier ones as well).

But to make vectors in Krita can be confusing.

step 1. On the layers window on right side (in default layout) there is a plus symbol for new layer. Beside that symbol is a tiny arrow. Click that and choose new vector layer. Only vector layers will produce vector art.

Step 2. On the left tool window the top rows of tools are your vector tools. If you try and use a raster tool on your vector layer it will warn you it cant as this is a vector layer. Draw your vector shapes using your tools. Line size, fill and color are located under tool options if you select a vector path.

Step 3. Saving a SVG file. When you try and save a SVG file using export or save as you soon learn that Krita will not save a vector file that way as only raster file options are offered. Here is what you do to save the SVG- click on the vector layer, then on top menu click on layers and click on import / export and choose export layer as SVG. then save the layer as SVG.

Step 4. Merging layers. If your drawing has multiple vector layers and you dont ant to export ea one in a different file, then highlight all the vector layers excluding the very bottom one. Then click layers and click merge with layer below. This will combine all the layers into the bottom layer which you can then export as a single SVG file via layers/export/ export layer as vector.

Step 5. Getting the file in to godot - same as any other asset. Just drag it from its folder location into the bottom left panel of godot called the resources window and Godot will import it. Then you can use it as a texture for sprite node, mesh instance etc.

Step 6. I found turning on HIDPI in Godot under display / windows helps in a clearer resolution, though it may add some other complications with older machines and it does change the scale and resolution of your game display.

Step 7. Make the vectors larger than you need them- scaling down looks much better than scaling up.

I hope this helps you.

Probably best to keep the original art in vector and just export a PNG for Godot. This will be easier to work with.

@cybereality said: Probably best to keep the original art in vector and just export a PNG for Godot. This will be easier to work with.

True- but sometimes one just wants an SVG. ;)