Special:
|
[DAT] (requires LDraw-compatible viewer)
|
Subject:
|
Re: My experience with user defined colors...
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Wed, 21 Aug 2002 22:33:59 GMT
|
Viewed:
|
941 times
|
| |
| |
Steve Barile wrote...
> My experience with user defined colors in .dat files, MLCad, L3PAO, and POV. (snip)
> Oy! It seems that there is an issue with L3P/L3PAO and custom .dat file
> colors. It turns custom colors into gray.
L3P turns all unknown colors into gray while notifying you:
WARNING "ColorTest1.dat" Line 11: Unknown color, using 7: 1 64 0 -8 0 1 0 0 0 1 0 0 0 1 3001.DAT
The main reason why L3P does not support the COLOR meta command
is its scoping rules.
L3P doesn't walk the tree when rendering, PovRay does that.
And it makes it difficult to implement a correct render of:
0 FILE Untitled.ldr
1 16 0 0 0 1 0 0 0 1 0 0 0 1 Sub1.dat
1 16 0 -24 0 1 0 0 0 1 0 0 0 1 Sub2.dat
0
0 FILE Sub1.dat
0 COLOR 64 DarkGreen 0 6 127 6 255 6 127 6 255
1 16 0 0 0 1 0 0 0 1 0 0 0 1 Brick.dat
0
0 FILE Sub2.dat
0 COLOR 64 DarkRed 0 127 6 6 255 127 6 6 255
1 16 0 0 0 1 0 0 0 1 0 0 0 1 Brick.dat
0
0 FILE Brick.dat
1 64 0 0 0 1 0 0 0 1 0 0 0 1 3001.DAT
because in the .pov file Brick.dat only appears once,
and which Color64 definition should it use ?
To render the above file correctly L3P would have to walk the tree
to examine color usage and then generate Brick_dat_1 and Brick_dat_2
referencing Color64_1 and Color64_2 respectively.
Though your (straightforward) example would be easy to implement in L3P,
the implementation of COLOR has to be complete IMHO.
/Lars
PS. MLCad seems to have trouble with
0 FILE Untitled.ldr
0 COLOR 64 DarkGreen 0 6 127 6 255 6 127 6 255
1 64 0 0 0 1 0 0 0 1 0 0 0 1 3001.DAT
0 COLOR 64 DarkRed 0 127 6 6 255 127 6 6 255
1 64 0 -24 0 1 0 0 0 1 0 0 0 1 3001.DAT
which I believe is a valid file.
(COLOR syntax at http://ldlite.sourceforge.net/)
|
|
Message is in Reply To:
| | My experience with user defined colors... [DAT]
|
| My experience with user defined colors in .dat files, MLCad, L3PAO, and POV. It seems the .dat files use a pre-defined color lookup table (CLUT) for colors 0-28 & 32-47; where 0=black, 1=blue, 2=green and so forth (LDraw color table: (URL) I pulled (...) (22 years ago, 21-Aug-02, to lugnet.cad)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|