godot-svgsprite 4.x

An asset by heppocogne
The page banner background of a mountain and forest
godot-svgsprite 4.x hero image

Quick Information

0 ratings
godot-svgsprite 4.x icon image
heppocogne
godot-svgsprite 4.x

[GDExtension addon]Rasterize svg on run-time.Note that this addon uses lunasvg for svg rasterization, but godot4.x uses thorvg, so the rendering result may not be the same.dll files (windows) are available on GitHub:https://github.com/heppocogne/godot-svgsprite/releases/tag/v2.0.2or, compile by yourself.

Supported Engine Version
4.0
Version String
2.0.2
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

godot-svgsprite

GDExtension addon for dynamic svg rendering
Please use "master" branch for Godot 3. README

How to use

Build

  1. Clone this repository
    (Current directory=project root)

    git clone -b gdextension https://github.com/heppocogne/godot-svgsprite --recursive
    cd godot-svgsprite
    
  2. Build godot-cpp library
    For more information, please check the official documentation.
    (Current directory=project root)

    cd cpp/godot-cpp
    scons platform=<platform> generate_bindings=yes target=editor/template_debug/template_release
    

    (wait a minute)

    cd ../
    
  3. Build lunasvg library
    (Current directory=cpp/)

    mkdir lunasvg_build
    cd lunasvg_build
    cmake -DCMAKE_BUILD_TYPE=Debug/Release -G Ninja ../lunasvg
    ninja
    cd ../../
    
  4. Build godot-svgsprite library
    (Current directory=project root)

    mkdir bin
    scons platform=<platform> target_name=libgodot-svgsprite target=editor/template_debug/template_release
    

Enjoy the demo project!

Install addon

  1. Copy "addons" and "bin" folders to your project folder
    README image
  2. Project > ProjectSetting > Plugins: Activate SVGSprite plugin
    README image

Export project

When you export your project or resource package(*.pck,*.zip), make sure to add "_rawsvg/*" folder as a "non-resource folder". README image

Note

Note that this addon uses lunasvg for svg rasterization, but godot4.x uses thorvg, so the rendering result may not be the same.

[GDExtension addon]
Rasterize svg on run-time.

Note that this addon uses lunasvg for svg rasterization, but godot4.x uses thorvg, so the rendering result may not be the same.

dll files (windows) are available on GitHub:
https://github.com/heppocogne/godot-svgsprite/releases/tag/v2.0.2
or, compile by yourself.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
godot-svgsprite 4.x icon image
heppocogne
godot-svgsprite 4.x

[GDExtension addon]Rasterize svg on run-time.Note that this addon uses lunasvg for svg rasterization, but godot4.x uses thorvg, so the rendering result may not be the same.dll files (windows) are available on GitHub:https://github.com/heppocogne/godot-svgsprite/releases/tag/v2.0.2or, compile by yourself.

Supported Engine Version
4.0
Version String
2.0.2
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers