To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 11145
11144  |  11146
Subject: 
Re: SVG renders possible?
Newsgroups: 
lugnet.cad.dev
Date: 
Fri, 1 Apr 2011 01:19:07 GMT
Viewed: 
21312 times
  
In lugnet.cad.dev, Bram Lambrecht wrote:
In lugnet.cad.dev, Michael Horvath wrote:
Is it possible to create a SVG version of a rendering of an LDRaw model? I am
only interested in the visible portion, such as what you see from one of the
several default views (front, left, back, etc.).

Rendering from 3D to 2D vector graphics should be possible:
http://www.geuz.org/gl2ps/
But I don't know how efficient it is.
--Bram

LDView actually has experimental support for this built-in (although it has to
be manually enabled via either a command line switch or a registry setting).
Unfortunately, it's effectively useless on anything other than individual parts
due to the astronomically large output files, and their extremely slow
processing.  The results also tend to not render nicely in most SVG renderers
(particularly transparent parts).  See below for the output from car.dat
(WARNING: 8.3MB file).

http://www.halibut.com/~tcobbs/ldraw/private/car.svg

Here's a single part (276KB):

http://www.halibut.com/~tcobbs/ldraw/private/30272.svg

The above also has another experimental LDView feature (OBI: Old/Original
Building Instructions) enabled with a custom part file to make use of that
feature.  That's why the sides of many of the cylinders are black.

--Travis



Message has 4 Replies:
  Re: SVG renders possible?
 
(...) There must be a way to weld all those polygons together and do vertex shading, but I'm sure its no 5 minute programming exercise. --Bram (13 years ago, 1-Apr-11, to lugnet.cad.dev)
  Re: SVG renders possible?
 
(...) Yeah, in Google Chrome I can see the edges faintly between the polygons. -Mike (13 years ago, 1-Apr-11, to lugnet.cad.dev)
  Re: SVG renders possible?
 
(...) Wow, I must be getting really old. The deja-vu didn't didn't set in until I slept on it. I can't hardly believe this was 8 years ago. (URL) at that point ldglite already had experimental support for the similar gleps code that seems to have (...) (13 years ago, 1-Apr-11, to lugnet.cad.dev)
  Re: SVG renders possible?
 
(...) How would I go about enabling this experimental feature? I'd like to try it out on one of my line drawings. Eric Albrecht (13 years ago, 24-May-11, to lugnet.cad.dev)

Message is in Reply To:
  Re: SVG renders possible?
 
(...) Rendering from 3D to 2D vector graphics should be possible: (URL) I don't know how efficient it is. --Bram (13 years ago, 1-Apr-11, to lugnet.cad.dev)

9 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