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 / 4104
4103  |  4105
Subject: 
LDraw extended colors
Newsgroups: 
lugnet.cad.dev
Date: 
Wed, 1 Mar 2000 22:21:05 GMT
Viewed: 
804 times
  
The LDraw colors are 0-15, 32-47, 256-511 (and of course 16 and 24).
Paul Gyugyi defined some more colors for LDLite, 17-23, 25, 57
and "Direct Colors" in the range 0x04000000-0x07FFFFFF.

As MLCad supports these colors, I'm going to add support for them too.

However, Gyugyi packed two RGB's (for dithering) into each Direct Color
leaving only 12 bits to each RGB, e.g. 0x04RGBRGB.
Some L3P and L3Lab users have asked for the possibility to specify
"true colors" (24 bit RGB's), so I would like to define/reserve the range
0x02000000-0x03FFFFFF for this.
0x02RRGGBB for solid colors and 0x03RRGGBB for transparent.

I will support, but not require, hex notation for colors (0x/0X prefix).

I hope MLCad, LDLite and other tools will support the new range too.
/Lars



Message has 3 Replies:
  Re: LDraw extended colors
 
I would if I could, but it's hard for me to imagine how this can be supported by LDS... /Tore (...) (25 years ago, 1-Mar-00, to lugnet.cad.dev)
  Re: LDraw extended colors
 
(...) I will have to find a way how to define such colors in MLCad but I think I will provide an option where the user can define if he/she likes 24bit or 12bit colors. Generally no problem :-) Michael (25 years ago, 2-Mar-00, to lugnet.cad.dev)
  Re: LDraw extended colors
 
(...) During implementation of Gyugyi's Direct Colors, I browsed his LDLite code: | if ((c >= 0x4000000) && (c <= 0x7ffffff)) | { | /Numbers of 0x4000000 to 0x7ffffff are hard coded color values. | zcp->r = 16 * ((c & 0x00000f00) >> 8); | zcp->g = (...) (25 years ago, 20-Mar-00, to lugnet.cad.dev)

6 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