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 / 10028
10027  |  10029
Subject: 
Re: Getting complete set of Ldraw parts images
Newsgroups: 
lugnet.cad
Date: 
Fri, 16 May 2003 14:24:02 GMT
Viewed: 
685 times
  
In lugnet.cad, Todd Lehman writes:
In lugnet.cad, Jacob Sparre Andersen writes:
That's pretty trivial to do with LDGLite and NetPBM/PBMplus.

   ldraw_file=some_lego_model.mpd
   rendering=`ldglite -l3 -ms -q -s1 -w1 ${ldraw_file} \
     | grep '^Write BMP8' | tail -1 | cut -d' ' -f3-`
   bmptoppm ${rendering} \
     | pnmscale -width 120 \
     | pnmtopng \
`basename ${ldraw_file} .mpd`.png

Hmm, this sounds really attractive.  And you're able to run this under Unix?

Yes, and you should be able to run it all as a background process
without even opening a window.  See here for some of the details on
how to get that up and running.

  http://news.lugnet.com/cad/dev/org/ldraw/?n=2437

I'd really love to see some independent verification of the completely
headless operation.

PS: I have a POSIX Shell script version of the above code, which
    includes some error checking and _maximum_ dimensions instead of
    fixed width.

I think I'd find that useful.  I'm looking for ways to relieve some of the
burden on Steve with respect to Partsref images.

Should I publish it somewhere?  Where?

You could start by posting it here.  :-)

Yeah, and then maybe you could add a link from the linux ldraw
installation instructions to these various useful tidbits you've
developed.  Alternatively you could get started on that "Ldraw Tools
for *NIX" book that you've been putting off working on.  ;^)

Don



Message has 1 Reply:
  Re: Getting complete set of Ldraw parts images
 
(...) It could be made slightly more headless with some use of `make -C src/`, but it didn't quite work for me anyway. :-( (...) You mean make a symlink to "~sparre/bin/"? I will grep my scripts for calls to LDGLite and other known LDraw related (...) (21 years ago, 16-May-03, to lugnet.cad)

Message is in Reply To:
  Re: Getting complete set of Ldraw parts images
 
(...) Hmm, this sounds really attractive. And you're able to run this under Unix? (...) I think I'd find that useful. I'm looking for ways to relieve some of the burden on Steve with respect to Partsref images. (...) You could start by posting it (...) (21 years ago, 16-May-03, to lugnet.cad)

18 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