To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 10129
10128  |  10130
Subject: 
ldconfig.ldr and dithered colors
Newsgroups: 
lugnet.cad.dev
Date: 
Sun, 6 Feb 2005 03:39:51 GMT
Viewed: 
2532 times
  
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 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.

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 ?
/Lars



Message has 2 Replies:
  Re: ldconfig.ldr and dithered colors
 
(...) I'd say a blend of 0 and 1, basically just as if it's counterpart (272) wasn't defined in the ldconfig -Orion (20 years ago, 6-Feb-05, to lugnet.cad.dev)
  Re: ldconfig.ldr and dithered colors
 
(...) 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 (...) Hmm. The LGEO colors don't have edge colors, do they? So using K,J instead of J,K [if J,K isn't (...) (20 years ago, 7-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
    

Custom Search

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