Subject:
|
Re: LDraw parts images from TomS
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Fri, 19 Feb 1999 19:21:37 GMT
|
Viewed:
|
863 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:
8 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|