Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am making a game with SDL currently. It is a simple 2D RPG game. I have this great idea to use static backgrounds and foregrounds. To do this I plan to create another layer that will serve as the collision mask, and cover area where the player cannot move to. I have been trying to find a good format to do this, I want something simple because I plan to write my own library to read the format, it seems that most vector graphics formats are simple enough for that, so its not a huge issue, and not all the information is necessary, for my application, since it will not be visible, no color information is needed. However, there are not that many formats available, and they all seem to be XML based (I don't care for XML), but in the end, I settled on SVG. I wanted something I could create in GIMP, if these masks are too hard to create, I may never finish this project (laziness)... However, I discovered that my version of GIMP will not save as/export to SVG format! It will open SVG, but not export to SVG. Very frustrating. So I went through all the trouble of compiling GIMP 2.7, but that still doesn't support SVG. I made sure to install all libsvg-dev headers before building GIMP 2.7.
What can I do to get GIMP to support exporting to SVG format
OR is there another SIMPLE vector graphics format that GIMP supports that I could be using?
Thanks, but it didn't work for me. I may not have compiled GIMP with python support, would that be a problem?
Anyway, I decided to go with Inkscape instead. I can import my raster graphics into Inkscape and then trace over them, which is exactly what I wanted. and the SVG files it creates are nice and easy to read.
Just can't figure out why so many formats use XML, XML is meant to be human readable, but vector graphics files aren't, so why not use something more efficient? I'll probably write a simple program to convert SVG into something more computer readable, that will serve as some basic encryption as well (not that its important).
Yes. You could try rebuilding on a vm just to see the results.
Built gimp again with python support. Got that extension working, but it isn't what I want. GIMP actually makes SVGs by default, you just have to open the paths dialog box and right click and say export. By default GIMP only exports paths, with the extension it exports strokes and fills and other stuff I don't need, so I would be better off without that script. That being said, either way, Inkscape is the better solution. Inkscape builds much nicer looking SVGs in the end, with nice coordinates in pixels, GIMP gives coordinates in inches, which isn't great for games. Plus Inkscape actually made a smaller file, as long as I export it as a plain SVG and not an Inkscape SVG.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.