[PD] maps, shapes, vector graphics and kml files

marius schebella marius.schebella at gmail.com
Mon Oct 8 14:54:17 CEST 2007

I think svg supports more than just lines and curves, and you also want 
to be able to move the shape and resize it later. so a simple drawing is 
not enough. it could be converted to glsl though...
I think blender has some kind of svg to gl conversion script. maybe that 
is a good place to start. they probably will be also the first ones to 
come up with a kml to gl script? external converter, luagl, pyopengl, or 
a native gem object, I don't know yet how to do it.

Patrice Colet wrote:
> marius schebella a écrit :
>> hi,
>> I am trying to get a good world map in Pd where I have separated 
>> countries. My initial idea was to be able to switch between a flat and 
>> a spherical view... that was probably too ambitious.
>> First I wanted to work with the shapes of the countries, leaving the 
>> rest of the map black (for alpha blending), but that gave me some 
>> limitations when zooming in. Now I am reading into svg formats and how 
>> google earth handles location data and country borders (with kml 
>> files) and I wonder how I can display any vector graphics format in 
>> pd. at the moment I am converting from adobe illustrator to blender to 
>> wavefront obj. Is there an easier way to do that? I read that there 
>> are opengl libraries like cairo that can handle svg and draw them in 
>> opengl.
>> otoh, with wavefront objects I have the problem that the countries are 
>> all flat and not bent to the sphere, so I wonder if that is solvable 
>> at all? I would rather stay with a flat map if I get moveable and 
>> resizable country shapes...
>> thnx for hints!
>> marius.
> Hi, I don't think I can help you so much in here, but using svg files in 
> pd is a good idea I'd like to exploit since I've seen how powerfull is 
> vector graphic files.
>  Wouldn't it be possible to parse directly with the textfile object the 
> svg file and draw it's content?

More information about the Pd-list mailing list