To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 16460
16459  |  16461
Subject: 
Re: Tools that output SVG?
Newsgroups: 
lugnet.cad
Date: 
Fri, 25 Sep 2009 15:52:04 GMT
Viewed: 
9388 times
  
In lugnet.cad, Michael Horvath wrote:
   Are there any LDraw tools that will output in SVG format?

LDView has experimental SVG/PS/EPS snapshot support, but you have to set a registry key for it to be enabled. Create the following DWORD registry key and set it to 1:

HKEY_CURRENT_USER\Software\Travis Cobbs\LDView\GL2PSAllowed

Once you have done that, SVG, EPS, and PS show up as file types in the Save Snapshot dialog. There are some serious problems, though:
  • LDView takes a long time to generate the files, and there is no feedback while this is going on. It just appears that LDView is locked up.
  • The files often render incorrectly if antialiasing is enabled. This is due to problems with the renderers, not the files, but it doesn’t change the fact that they end up looking bad.
  • The files produced are monstrously big. For example, CAR.dat produces a 9.9MB SVG file (11MB with edges enabled).
  • Related to above item, the files take a very long time to render. The CAR.svg file I generated (without edges) took 9 seconds to render in Firefox on a 2.66GHz Core i7 computer. GIMP 2.6 took 7 seconds and produced essentially useless results due to its antialiasing.
(I just noticed a bug when this feature is enabled. If you save an SVG snapshot, then do it again, it lists <model>.svg as the filename, but has PNG selected as the file type. You have to manually switch the file type back to SVG each time you do a snapshot save. Sometimes it also switches the filename to <model>.png.)

At least one LDView user is using this to produce high-quality part images. The file size problem isn’t as bad when rendering parts, but even 3001.dat (brick 2x4) generates a 605KB file with edges enabled and fairly standard other settings.

--Travis



Message has 1 Reply:
  Re: Tools that output SVG?
 
(...) Could you upload an example file? -Mike (15 years ago, 26-Sep-09, to lugnet.cad)

Message is in Reply To:
  Tools that output SVG?
 
Are there any LDraw tools that will output in SVG format? -Mike (15 years ago, 25-Sep-09, to lugnet.cad)

4 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR