Weird impy thing
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom General > Level->SVG exporter?
 
Author
All times are GMT. The time now is 00:30. Post New Thread    Post A Reply
printz
CRAZY DUMB ZEALOT


Posts: 8849
Registered: 06-06


Has anyone made any Doom level -> scalable vector graphics exporter? Not PNG mind you.

__________________
Automatic Wolfenstein - Version 1.0 - also on Android

Old Post 01-11-14 09:34 #
printz is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
exl
Personal Test Dummy


Posts: 575
Registered: 05-02


I wrote one in Python as part of a project before. This is the kind of output it produces. If using Python is no objection, I can try and make it useable as a command line thing.

Old Post 01-11-14 10:06 #
exl is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
printz
CRAZY DUMB ZEALOT


Posts: 8849
Registered: 06-06


That looks quite good, and I don't mind Python. A command-line utility would be cool, though I'm ultimately looking for a source code so I can modify it for my needs :)

__________________
Automatic Wolfenstein - Version 1.0 - also on Android

Old Post 01-11-14 10:22 #
printz is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
exl
Personal Test Dummy


Posts: 575
Registered: 05-02


http://www.dvdflick.net/storage/wad2svg.zip

I forgot that it uses Cairo for SVG rendering, so in addition to a Python 2.7 install, it also requires PyGTK to be installed, from http://ftp.gnome.org/pub/GNOME/bina...n32/pygtk/2.24/ (this version will probably work).

After that, run it by doing in a command line.
code:
wad2svg.py doom2.wad MAP12 doom2_map12.svg 2048 2048


The SVG rendering stuff happens in maprender.py, line 113.

Last edited by exl on 01-11-14 at 13:03

Old Post 01-11-14 10:57 #
exl is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
printz
CRAZY DUMB ZEALOT


Posts: 8849
Registered: 06-06


Can't use it, wad2svg.zip is zero-length.

__________________
Automatic Wolfenstein - Version 1.0 - also on Android

Old Post 01-11-14 12:16 #
printz is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
exl
Personal Test Dummy


Posts: 575
Registered: 05-02


Upload must have gone wrong. Try again please.

Old Post 01-11-14 13:02 #
exl is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
spicyjack
Mini-Member


Posts: 61
Registered: 08-09


Colin Phipps did a wad2svg script in Perl, he has it on his doombsp project page on Sourceforge;

Homepage: http://doombsp.sourceforge.net/wad2svg/
Tarball: http://sourceforge.net/projects/doo...2svg-0.1.tar.gz

The only bad part about the script is that it's dirt old, I don't think it's been updated since about 2002 or so. I did a few tests with it, if you want to see what it outputs.

Here's the example SVG that's listed on his page (125Kb);

http://doom.spicyjack.com/pix/example.svg

Not sure why Chrome won't render this as an SVG in the browser for me.

Here's a try at rendering Mek Velapax... WARNING: this SVG file is about 5.7M, you might want to download it first, then open it up in a dedicated SVG program like Inkscape or Adobe Illustrator... it takes Chrome forever to render it.

http://doom.spicyjack.com/pix/mek-velapax-beta1.svg

The SVG Perl module should be available on any modern Linux system as a package that you can install, for example, on Debian/Ubuntu, the package is named libsvg-perl. It may also installable on Strawberry Perl for Windows via cpanm.

Old Post 01-11-14 19:43 #
spicyjack is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Maes
I like big butts!


Posts: 12488
Registered: 07-06


There also is the option of using a WAD -> DXF/DWG exporter and then going DXF/DWG -> SVG, if going through two steps doesn't bother you.

Old Post 01-11-14 21:17 #
Maes is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 00:30. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom General > Level->SVG exporter?

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.