pixelriot / svg2godot Goto Github PK
View Code? Open in Web Editor NEWImport SVG files into Godot game engine.
License: MIT License
Import SVG files into Godot game engine.
License: MIT License
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
@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.
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:
Thanks and nice work!
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.