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 / 11146
11145  |  11147
Subject: 
Re: SVG renders possible?
Newsgroups: 
lugnet.cad.dev
Date: 
Fri, 1 Apr 2011 06:32:36 GMT
Viewed: 
21225 times
  
In lugnet.cad.dev, Travis Cobbs wrote:
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.

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



Message is in Reply To:
  Re: SVG renders possible?
 
(...) 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 (...) (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
    

Custom Search

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