To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dev.org.ldrawOpen lugnet.cad.dev.org.ldraw in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / Organizations / LDraw / 2519
2518  |  2520
Subject: 
Re: LDraw.org Config File (was: Edge line colors on img.lugnet.com)
Newsgroups: 
lugnet.cad.dev.org.ldraw
Date: 
Tue, 29 Jul 2003 15:21:41 GMT
Viewed: 
1137 times
  
In lugnet.cad, Steve Bliss wrote:
[XPFUT lugnet.cad.dev.org.ldraw]

In lugnet.cad, Andrew Westrate wrote:
I've been thinking about this a little bit, and I'd like to propose a
solution.  I think that with the next parts update, we should include
a "colors.lst" file.

...
My suggestion for the file name is ldconfig.ldr.  This seems to identify the
file adequately.  I happened to have a fairly extensive colors file lying
around.  I cleaned it up, and here it is.
...

I'm working on a Track Designer-like program; I'll be presenting it at
BrickFest. My program, TrackDraw, can read and write LDraw files -- I've also
created a color definition file (in XML) that is very much like Steve's -- so
I've been thinking a lot about this problem, too.

My comments:

- While dithering is not hard to implement, it appears to serve no purpose here.
All of the colors are the same in the last two groupings for all values of RGB.
The ones that appear different (the 'trans' colors) could be the same with no
loss, since the alpha is specified as zero, so the RGB values are irrelevant.
There's a more important reason to lose dithering: it is a display artifact, and
cannot necessarily describe a color well. This is because the dithered colors
need to lie equi-distant from the color on vectors pointing in opposite
directions. Taking gamma into consideration, the distance is neither linear nor
uniform. LDraw did it because on CGA it had to. Keeping it because it isn't hard
to implement ignores how color works. It's easy for a program to construct the
dithered values from a single value; it isn't easy to do the reverse accurately.

- The numerical values are a mixture of hexadecimal and decimal. For the colors,
I'd prefer to see 0xARGB to decimal R,G,B,A. 0xARGB is a standard used by HTML,
CSS, SVG and many others. The file already requires reading hexadecimal 32 bit
values, and is no more difficult to read by humans than R,G,B,A (and I find it
easier to read).

- The names are not consistant. The same way that LDraw parts have complete,
formal names, the colors should too. These names should not have abbreviations
and should be quoted to allow for spaces. So instead of "DkBlue" the name should
be "Dark Blue", and so on. I could see having a short name form in addition to a
formal name, although regular parts don't have short forms.
If you reject this idea, please consider making the abbreviations consistant.
Note only one color uses "Tran" instead of "Trans"; only one color uses a dash
in the name, etc.

- I couldn't figure out what the fifth column is for (e.g. 0x4601601).

- The table only includes flat colors: even if the RGB values are unchanged, it
would be great to include chrome, silver, etc. for the applications that can
render reflectance. Similarly, GlowDark should have a luminosity value.

- The most complete color reference I know of his here:
http://www.bricklink.com/catalogColors.asp
It currently contains 79 colors, with a reasonable choice of names. It would be
great to standardize the names -- I'd like to see good rationale when a
different name choice is chosen. In particular, I think it is a stretch to call
the color only available as a 1x1 plate as "LtGray".

- Black is 33,33,33? Why not 0,0,0? If it needs to be less black for printing,
that should be a print-driver concern. Is there any evidence that Black is
really dark gray but not truely black? See:
http://www.peeron.com/inv/colors

- LtPurple is the only color I see that has slightly different values in the two
dither color columns. Is that deliberate? Why?

Cary



Message has 2 Replies:
  Re: LDraw.org Config File (was: Edge line colors on img.lugnet.com)
 
(...) As you pointed out, dithering is a historical artifact with LDraw. As I don't see it doing any harm, I'd rather leave it in for now, even if it is generally unused. Call me misguidedly sentimental. ;) (...) As to the order and format, I was (...) (21 years ago, 30-Jul-03, to lugnet.cad.dev.org.ldraw)
  Re: LDraw.org Config File (was: Edge line colors on img.lugnet.com)
 
In lugnet.cad.dev.org.ldraw, Cary Clark wrote: <snip> (...) It's 33,33,33 since these values make the color light enough to show up on a black backgrond when rendered but dark enough to be considered black. -Orion (21 years ago, 30-Jul-03, to lugnet.cad.dev.org.ldraw)

Message is in Reply To:
  LDraw.org Config File (was: Edge line colors on img.lugnet.com)
 
[XPFUT lugnet.cad.dev.org.ldraw] (...) A little more has happened on this: I emailed the authors of most of the LDraw-compatible software packages, and asked for buy-in on this idea. Basically, my thought was that we needed to have agreement about (...) (21 years ago, 29-Jul-03, to lugnet.cad, lugnet.cad.dev.org.ldraw)  

18 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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR