Vector array
Vector array
How to get the vector array from an SVG file? (so that it can be used in games)
Re: Vector array
Can you explain in more detail what you want to do?
Check this out http://wiki.colivre.net/Aurium/InkscapeGenerator
Check this out http://wiki.colivre.net/Aurium/InkscapeGenerator
just hand over the chocolate and nobody gets hurt
Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download
Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download
Re: Vector array
Also have a look at these: http://www.lysator.liu.se/~perni/iboardgameexts/
oh, and the tile clone dialogue can come in handy depending on what you want to do
oh, and the tile clone dialogue can come in handy depending on what you want to do
Re: Vector array
I want to create shapes easily with Inkscape and use their vector arrays, instead of manually making the shapes from code. I am going to use the vector arrays to make collision shapes in a physics engine.
Re: Vector array
I want to easily do shapes with Inkscape using the vector arrays instead of making the shape manually in code. How to get the vectors from n SVG file?
Re: Vector array
Do you want the images, or the XML code?
You want to draw the images, and then take the code from the XML Editor?
Is that it?
You want to draw the images, and then take the code from the XML Editor?
Is that it?
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: Vector array
Can you post a sample of the data structure (e.g. of a rectangle, ellipse or a regular path) you use in your external code?Miglu wrote:I want to easily do shapes with Inkscape using the vector arrays instead of making the shape manually in code.
Re: Vector array
I mean that I want the vectors, or most of them if there are very many of them, so that they can be made into an array of vectors in the code. This is an example of making a rectangle's array: cpVect array[4] = {cpv(x, y), cpv(x + w, y), cpv(x + w, y + h), cpv(x, y + h)};
It is strange that the documentation has nothing about this. Are not complex shapes that are used in physics engines usually created with an SVG application, so that that is one of their main uses.
It is strange that the documentation has nothing about this. Are not complex shapes that are used in physics engines usually created with an SVG application, so that that is one of their main uses.