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 / 994
993  |  995
Subject: 
Re: LDraw parts images from TomS
Newsgroups: 
lugnet.cad
Date: 
Fri, 19 Feb 1999 19:21:37 GMT
Viewed: 
820 times
  
[Steve]
Once LDLite is ported to Unix, could images be generated on-the-fly?

Absolutely, yes, they could.


[Steve]
That would allow access to all LEGO-colors (background color would
be nice, too).  I wonder how hard it would be to get LDLite to
generate transparent backgrounds.  [...]

[Fredrik]
Anyway, I understand that the planned UNIX/Linux version of LDLITE
will output the image in PPM format, which can be converted to GIF
by another program, like, say "ppmtogif".

[Steve]
Cool.  Does PPM allow transparent sections?

My interpretation of the ppm file format (from the ppm manpage) is that it
doesn't, but ppmtogif can be told which color to make transparent during the
conversion.  So, all LDLITE has to do is output the image in ppm format --
which is simple & elegant and looks like this, for example...

   P3
   # feep.ppm
   4 4
   15
    0  0  0    0  0  0    0  0  0   15  0 15
    0  0  0    0 15  7    0  0  0    0  0  0
    0  0  0    0  0  0    0 15  7    0  0  0
   15  0 15    0  0  0    0  0  0    0  0  0

...and the rest is easy, as long as a unique (non-occurring) background color
can be chosen by or specified to LDLITE.

--Todd



Message is in Reply To:
  Re: LDraw parts images from TomS
 
(...) Maybe LDLite is actually semi-free? If so, it could write .gif files. (...) Cool. Does PPM allow transparent sections? Steve (26 years ago, 19-Feb-99, to lugnet.cad)

8 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