Giter VIP home page Giter VIP logo

svg2godot's People

Contributors

pixelriot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

svg2godot's Issues

case insensitive string replacement

Hello!

Thank you so much for this contribution. It is really useful to me.

I might have come across a bug. In
func process_svg_path()

you use the replacen() function.

This leads to all the letters being upper-case (Godot 4.0), and therefore the match statement cannot distinguish between relative and absolute positions.

A replace(), instead, solves this problem.

Kind regards,

Joel

Problem with definition

@pixelriot
When trying to run, a prompt appears that the script could not be rebuilt.The console says that the definition of line 134 is already on line 124. Godot 3.5.1.
Thank you.

What are the requirements for the script to work?

Hey!

I found your script and got my hopes up! ๐Ÿ˜„ However, I've tried a bunch of SVG files and haven't managed to get any to work reliably. What would you say the requirements are for this script to work well as-is?

For example, this SVG ended up like this:

Screenshot 2020-04-16 at 20 22 30

Thanks and nice work!

Still active? Alternatives?

Hello, I would like to convert some svg-based map data (US states, etc.) to Godot nodes (preferably Polygon2D's), etc.

I found this project, but I would have to hack on it considerably in order to get it to work with some of the SVG files produced from US Census data, of states or counties.

(I'm also open to anything that takes in other data/spatial formats, such GIS data or shapefiles or KLM, etc., and converts to Godot 2D (or even 3D) nodes.)

It appears that this (SVG2Godot) project was a good start, but has stalled. Has it been abandoned?

Is it because there are better/newer solutions now available for importing SVG files (or other formats) into Godot?

Thank you!

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.