Giter Site home page Giter Site logo

support svg file decomp about gdsdecomp HOT 1 OPEN

mauersu avatar mauersu commented on July 3, 2024
support svg file decomp

from gdsdecomp.

Comments (1)

nikitalita avatar nikitalita commented on July 3, 2024

Unfortunately, it's impossible to recover SVG files used to import textures; they're converted to raster images upon import into the Godot project, and the vector data is not present in the imported texture.

I spent quite a bit of time seeing if there would be a way around this (e.g. hacking a SVG file to just contain a reference to an exported raster image), but Godot's SVG importer is limited and doesn't support any of the hacks that would allow this.

Additionally, automated vectorization of raster images with the available open-source tools is pretty dicey and, in my experience, you will almost always end up with something that doesn't look like the original. If you DO find an open-source tool that provides consistent accuracy, let me know.

GDRE Tools DOES export a PNG of the rasterized SVG texture in the .assets directory when it encounters them. If you are encountering errors because a script can't find the texture resource, a workaround for this would be to copy that back to the original directory and renaming all references to ".svg" to ".png"

from gdsdecomp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.