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 / 11147
11146  |  11148
Subject: 
Re: SVG renders possible?
Newsgroups: 
lugnet.cad.dev
Date: 
Fri, 1 Apr 2011 13:50:58 GMT
Viewed: 
22456 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.

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.

http://news.lugnet.com/cad/dev/?n=9286

And at that point ldglite already had experimental support for the
similar gleps code that seems to have disappeared down the memory hole
of the internet.

Unfortunatly I found gleps also produced astronomically large files,
similar to the results reported below.  But it's nice to know Travis is
still hammering away at it.  I'm confident he'll eventually get the
size to something acceptable, even if we have to wait until googlebyte
local storage is commonplace. :^)

Don

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.



Message has 1 Reply:
  Re: SVG renders possible?
 
(...) Actually, I'm not hammering away at it. I put the support in back in May of 2008, but I haven't really done much with it since then. --Travis (14 years ago, 1-Apr-11, to lugnet.cad.dev)

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 (...) (14 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