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 / 6448
6447  |  6449
Subject: 
Re: Codes for New Colors (was: Sand Red Bricks)
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 2 Oct 2001 16:22:16 GMT
Viewed: 
694 times
  
In lugnet.cad.dev, Lars C. Hassing writes:

I was my impression that colors 256 to 511 are dithered combinations
of colors 0 to 15, and that the RGB was the calculated average of
the two dithered colors.
The RGB of dithered colors is just mentioned in the FAQ as a convenience.

I always thought the RGBs in the FAQ were supposed to be approximations of
the 'real colors'.  LDraw's palette is a poor match for real LEGO, and I'd
hate to be stuck with it's selections.

Although there were some values that we didn't have any measures of real
pieces, so we just put in the values from LDraw.

If we define a different RGB than the average, then renderings in
old and new programs will appear differently...

Yes, because the old programs couldn't know the RGBs for new colors.

A solution for keeping old programs up to date is to not hard-code the RGB
values in the programs at all, but retrieve them from a data file everytime.
Then adding new colors is a matter of updating the data file, not changing
the program.

Steve



Message has 1 Reply:
  Re: Codes for New Colors (was: Sand Red Bricks)
 
Steve: (...) That's also my intention with them. Similarly are the POV-Ray colour codes intended to be the closest match for rendering the colours and transparancies in POV-Ray. Play well, Jacob -- (URL) (23 years ago, 2-Oct-01, to lugnet.cad.dev)

Message is in Reply To:
  Re: Codes for New Colors (was: Sand Red Bricks)
 
(...) [snip] (...) I was my impression that colors 256 to 511 are dithered combinations of colors 0 to 15, and that the RGB was the calculated average of the two dithered colors. The RGB of dithered colors is just mentioned in the FAQ as a (...) (23 years ago, 2-Oct-01, to lugnet.cad.dev)

16 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