Skåne Sjælland Linux User Group - http://www.sslug.dk Forside   Tilmelding   Postarkiv   Sitemap   Kalender   Søg
 

SSLUGJulekalender for nørder

8. december 2006

I dag tillader jeg mig at være lidt doven; I må nøjes med at læse brugsanvisningen til LDGLite:


ldglite

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
SEE ALSO
NOTES
BUGS
FILES
AUTHORS


NAME

ldglite − Display (LEGO) brick models

SYNOPSIS

ldglite [ −xpq ] [ −aorientation ] [ −eoffset ] [ −fh ] [ −fs ] [ −itype ] [ −lparser ] [ −mmode ] [ −ox,y ] [ −ux,y ] [ −vsize ] [ −wwidth ] file ... | --

DESCRIPTION

ldglite reads a file (or standard input if ‘‘−−’’ is specified) containing a (LEGO) brick model i LDRAW DAT format and displays the model.

OPTIONS

ldglite takes the following options

−aorientation

Nine comma-separated floating point numbers, which make up a matrix used for scaling and rotating the presented model. The default is <1,0,1,0.5,1,-0.5,-1,0,1>.

−eoffset

Fixes polyline offset driver errors. Try -e0.95 if lines look bad.

−fh

Turns on shading mode.

−fs

Turns off stud drawing. (l3glite only)

−isize

Picks output image type.

1 for PNG.
2
for transparent PNG.
3
for BMP8.
4
for BMP24.
5
for PPM.
Prefix the number with a to turn off cropping.

−lparser

Select parser, use d for the ldlite parser, or 3 for the l3 parser. e starts the program in LEDIT emulation mode, E starts the program in LEDIT emulation mode with soild moving pieces. −ledit or -LEDIT do the same but with draw-to-current and stud-as-line on.

−mmode

Picks operation mode.

p for pause at each step.
c
for continous rendering of the whole model.
s
for save an image of each step.
S
for save an image of each step with off-screen rendering.
The default is p.

−ox,y

Changes the centre of the picture. The value for <x> moves across and the value for <y> moves down.

−p

Turns on polling mode.

−q

Quality lines (antialiased)

−ux,y

Saves a huge output image from window sized tiles. (see notes below)

−vsize

Picks the window size.

-2 for fullscreen gamemode (no menus).
-1
for fullscreen with no decorations.
0
for 320×200 pixels.
1
for 640×200 pixels.
2
for 640×350 pixels.
3
for 640×480 pixels.
4
for 800×600 pixels.
5
for 1024×768 pixels.
6
for 1600×1200 pixels (should only be 1280×1024).
The default is a full-screen window.

−wwidth

Set line width.

−x

Displays the x,y,z axis.

SEE ALSO

/usr/share/doc/ldglite/readme.txt

NOTES

You should set the environment variable LDRAWDIR to a directory containing the basic ldraw files.

A click on the right mouse button gives a menu.

Use -uX,Y on the command line to build and save an image larger than the screen made out of several tiles, each the size of the ldglite window. This can be used in combination with the -w option for wide lines and/or the -q switch for antialiased lines to generate high quality instructions. Currently this dumps PPM files instead of BMP files. PNG works, but transparent backgrounds and cropping are not supported in tiled mode. Ldglite automatically exits after saving the images (much like the -MS mode). The following command renders the model in double size and saves a 2000 by 2000 PNG file. It uses the l3 parser so it only has to parse the mpd file once for the multiple rendering passes required for the tiles.

ldglite -l3 -i2 -s2 -w2 -u2000,2000 model.mpd

BUGS

This manual page is based on an old version of ldglite (0.8 I think).

FILES

/usr/share/doc/ldglite/readme.txt.gz

AUTHORS

Ldglite is written by:

Don Heyse <dheyse@hotmail.com>

This manual page was written by Henrik Christian Grove

<grove@sslug.dk>, for the Debian GNU/Linux system (but may be used by others).

Manual page partially based on parts of the readme.txt file in the source distribution.


Næste del af historien kommer så snart Strandnissen får tid til at skrive den.


 
Forside   Tilmelding   Postarkiv   Sitemap   Kalender   Søg

 
 
Henvendelse vedrørende websiderne til <www_admin>. Senest ændret Sunday, 07-Jan-2007 19:15:55 CET
Denne side vedligeholdes af Strandnissen .