SVG Importer

free scripts, plugins, models, textures
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

SVG Importer

Post by clintonman »

svgTest3.jpg
SVG importer script for trueSpace 7.61

It reads in SVG files and saves the curves in COB format for modelspace/truespace6

http://clintons3d.com/plugins/truespace ... mport.html" onclick="window.open(this.href);return false;

Nov 21, 2015: Small update, now reads polylines
Last edited by clintonman on 21 Nov 2015, 21:24, edited 2 times in total.
Clinton Reese

http://clintons3d.com
User avatar
Emmanuel
Chief Warrant Officer
Posts: 650
Joined: 14 Jun 2009, 06:47

Re: SVG Importer

Post by Emmanuel »

Cool !
Thank you Clinton :bananamouse:
User avatar
Draise
Captain
Posts: 3198
Joined: 21 Sep 2009, 19:33
Type the number ten into the box: 0
Location: Bogota, Colombia
Contact:

Re: SVG Importer

Post by Draise »

I gave it a whirl with an SVG and got the following error:
error.JPG
I can't load anything...
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: SVG Importer

Post by clintonman »

can you share the svg file?
Clinton Reese

http://clintons3d.com
User avatar
Cellulo
Lieutenant
Posts: 914
Joined: 27 Sep 2012, 07:48
Type the number ten into the box: 9
Location: France
Contact:

Re: SVG Importer

Post by Cellulo »

Thanks Clintonman, is it compatible with tS7.6 full ?
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: SVG Importer

Post by clintonman »

Cellulo wrote:Thanks Clintonman, is it compatible with tS7.6 full ?
Works with tS7.61 full and std.
Clinton Reese

http://clintons3d.com
User avatar
Cellulo
Lieutenant
Posts: 914
Joined: 27 Sep 2012, 07:48
Type the number ten into the box: 9
Location: France
Contact:

Re: SVG Importer

Post by Cellulo »

Ok thanks.
User avatar
Draise
Captain
Posts: 3198
Joined: 21 Sep 2009, 19:33
Type the number ten into the box: 0
Location: Bogota, Colombia
Contact:

Re: SVG Importer

Post by Draise »

Here you go Clinton, here is the SVG:

Download
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: SVG Importer

Post by clintonman »

Fixed, the error was caused by a known problem. The importer can't handle exponents in the numbers. The update takes small exponent values and makes them zero.
Also the stand alone svg importer won't be updated anymore. All new changes will go into the curves loader found in the curves toolbar.

http://clintons3d.com/plugins/truespace ... urves.html" onclick="window.open(this.href);return false;

BTW, @Draise your sample will import with a very spikey looking curves. That's caused by some kind preview bug for sharp cornerd curves. If you adjust the curve resolution the spikes will disappear. Also if you export to tS cob the spikes don't show in modelspace. I think the "O" spike is a special case and may need adjusting manually.
Clinton Reese

http://clintons3d.com
User avatar
Draise
Captain
Posts: 3198
Joined: 21 Sep 2009, 19:33
Type the number ten into the box: 0
Location: Bogota, Colombia
Contact:

Re: SVG Importer

Post by Draise »

Wow, that was great! Good work!

I will try out your new curves stuff, this one I have not updated in a while. Neato.

Thanks Clinton.. :worship:
Post Reply