Subject:
|
Re: ldconfig.ldr and dithered colors
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Mon, 7 Feb 2005 13:58:20 GMT
|
Viewed:
|
3210 times
|
| |
| |
In lugnet.cad.dev, Lars C. Hassing wrote:
> How is a renderer expected to handle dithered colors not mentioned explicitly in ldconfig.ldr ?
They should be fall back on the 'default spec' -- that is, dither them; don't
rely on their counterpart's definition. But that doesn't really
> The "LDraw File Format" specification says:
> "Also, colours 256 through 511 are dithered. So if you want to combine
> colours J and K, figure your colour value as
> colour = (J * 16) + K + 256
> The complementary colour of J is used as the complementary colour of the
> dithered value.
> So you can control the edge colour (somewhat) by switching J and K."
>
> This is fine, but for LGEO colors L3P has always tried K,J if J,K wasn't in
> L2P_COLR.TAB, i.e. since 10,15 (431) is not defined, L3P tries 15,10 (506)
> and matches lg_mint.
Hmm. The LGEO colors don't have edge colors, do they? So using K,J instead of
J,K [if J,K isn't found] shouldn't make a difference.
> I see that ldconfig.ldr has different entries for 7,15 (383 Chrome_Silver) and 15,7 (503 Light_Gray)
> and 4,14 (334 Chrome_Gold) and 14,4 (484 Dark_Orange).
>
> But for e.g. 1,0 (272 Dark_Blue) there's no 0,1 (257),
> so what should color 257 be ?
> 272 or a blend of 0 and 1 ?
Definitely render 272 as a blend of 0 and 1.
Another question - should a 'default dither' be created using the default values
of the two colors, or the value defined in ldconfig.ldr?
We *could* add all the default-dither colors to ldconfig.ldr, with the proviso
that they might be re-assigned in the future.
Steve
|
|
Message is in Reply To:
| | ldconfig.ldr and dithered colors
|
| How is a renderer expected to handle dithered colors not mentioned explicitly in ldconfig.ldr ? The "LDraw File Format" specification says: "Also, colours 256 through 511 are dithered. So if you want to combine colours J and K, figure your colour (...) (20 years ago, 6-Feb-05, to lugnet.cad.dev)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|