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 / 10332
10331  |  10333
Subject: 
Re: Question about image generation
Newsgroups: 
lugnet.cad.dev
Date: 
Wed, 9 Nov 2005 12:56:12 GMT
Viewed: 
2429 times
  
In lugnet.cad.dev, Dan Boger wrote:
On Tue, Nov 08, 2005 at 10:08:04PM +0000, Ross Crawford wrote:
In lugnet.cad.dev, Dave Schuler wrote:
How is an image like this created:

http://media.peeron.com/ldraw/images/47/3x/2464.png

Specifically, how are the black lines done?  Is there a special command, or is
it a function of some software platform unfamiliar to me?

Looks to me like its rendered with ldglite, but i could be wrong.

Nope, that's right:

  ldglite -a1,0,0,0,1,0,0,0,1 -ld -Q -v3000,3000 -W$scale -S$scale -i2 -MSfilename.png somedat.dat

(I think, it's Steve's code)

The key bit is the -W option -- it draws thick lines.  The $scale is the width
of the line, in pixels.  For the ldraw/partsref/peeron images, we use -W3 (but
we also set scale to -S3, for a 300% zoom).  -Q is supposed to result in
higher-quality, by drawing anti-aliased lines, but I'm not sure how much effect
it has.

Steve



Message is in Reply To:
  Re: Question about image generation
 
(...) Nope, that's right: ldglite -a1,0,0,0,1,0,0,0,1 -ld -Q -v3000,3000 -W$scale -S$scale -i2 -MSfilename.png somedat.dat (I think, it's Steve's code) (19 years ago, 9-Nov-05, 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