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 / 5344
5343  |  5345
Subject: 
Re: DAT to GIF/JPG/EPS
Newsgroups: 
lugnet.cad
Date: 
Wed, 24 Jan 2001 14:16:05 GMT
Viewed: 
806 times
  
Thomas:

Is there a utility out there for converting DAT files into GIF, JPG or EPS
files?

LDGLite (see http://www.ldraw.org/reference/linux for installation
instructions on Linux) can convert DAT and MPD files to PNG:

  ldglite-run -i2 -ms model.mpd

Using netpbm/pbmplus (and tcsh) it is easy to convert the PNG files
to GIF and JPEG:

  foreach file ( /usr/local/share/ldraw/bitmap/model*.png )
    pngtopnm < ${file} | cjpeg > `basename ${file} .png`.jpeg
    pngtopnm < ${file} | ppmtogif > `basename ${file} .png`.gif
  end

And if you want to improve the looks of the model, you can render
the model in double size, and then scale down the images:

  ldglite-run -i2 -ms -s2 -w2 model.mpd

  foreach file ( /usr/local/share/ldraw/bitmap/model*.png )
    pngtopnm < ${file} | pnmscale 0.5 | cjpeg > `basename ${file} .png`.jpeg
    pngtopnm < ${file} | pnmscale 0.5 | ppmtogif > `basename ${file} .png`.gif
  end

Play well,

Jacob
--
No .sig today.



Message has 1 Reply:
  Re: DAT to GIF/JPG/EPS
 
(...) Did you use this double size method to generate the recently posted horse and cow instructions? They look nice. I might have to reorder my priorities. I've been working on replacing the pathetic ldglite gui with something a bit more user (...) (24 years ago, 24-Jan-01, to lugnet.cad)

Message is in Reply To:
  DAT to GIF/JPG/EPS
 
Is there a utility out there for converting DAT files into GIF, JPG or EPS files? (24 years ago, 19-Jan-01, to lugnet.cad)

13 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