Subject:
|
Re: Generator, Primitives, and Part questions
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Fri, 3 Oct 2003 12:56:24 GMT
|
Viewed:
|
483 times
|
| |
| |
In lugnet.cad, Don Heyse wrote:
|
In lugnet.cad, Richard Marchetti wrote:
|
1. Is there a render generator that will automatically generate
renders of all the parts in a directory in a specific color at a
specific angle? I seem to remember someone posting about this before;
and it would seem that such a tool must probably exist for use on the
Parts Reference and also on Bricklink. Tell me these renders are not
being done by hand, one by one!!!
|
I think partsref uses a perl script, but you may need a UNIX
OS of some sort to run it on. :) You might be able to rig up a
batch file to do it with ldlite or the ldglite offscreen renderer
on Windows. Something like this:
FOR %%F IN (*.dat) DO ldglite -v1280,1024 -Q -i1 -l3 -mS%%F#.png %%F
|
Uh Oh, competition from Travis. Id better provide the missing info
in order to keep up. The method above supports whatever view angle
you want with the ldglite -A setting. The part color can be changed
with a -C setting. The background color can be set with a -B command.
Heres the specs for those commands.
-Afloat,float,float,float,float,float,float,float,float
This specifies an initital scale/rotationmatrix, and is commonly used to set the
viewpoint for the model.
-Binteger
This specifies the background color to use in the image. The decimal integer can
be any valid color number, although it is not affected by any color
redefinition statements.
-Cinteger
This specifies the default drawing color to use (i.e. it defines what the color
value 16 initially maps into). The decimal integer can be any valid
color number, although it is not affected by any color redefinition
statements.
This defaults to an orthographic projection. You can read the ldglite
readme.txt file to see how to choose a perspective projection and set
its properties.
One thing to note. Traviss program will probably draw smooth shaded
curves whereas ldglite will draw them flat shaded.
Enjoy,
Don
|
|
Message has 1 Reply: | | Re: Generator, Primitives, and Part questions
|
| (...) Hehe. The funny thing here is that it was originally written in May of 2002. It's a real simple program, less than 400 lines of code, and someone requested that I write it. He was going to use it for an online catalog in a LEGO-related web (...) (21 years ago, 5-Oct-03, to lugnet.cad, FTX)
|
Message is in Reply To:
| | Re: Generator, Primitives, and Part questions
|
| (...) I think partsref uses a perl script, but you may need a UNIX OS of some sort to run it on. :) You might be able to rig up a batch file to do it with ldlite or the ldglite offscreen renderer on Windows. Something like this: FOR %%F IN (*.dat) (...) (21 years ago, 2-Oct-03, to lugnet.cad, FTX)
|
11 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
|
|
|
|