| | Substitute Colors for Dithered Colors? Erik Olson
|
| | Hi, I'm wondering how to treat dithered colors (LDRAW 0x0100 to 0x01ff, see FAQ). Short of implementing a dithered texture--which would preserve that old-timey look--I'm seeking a conversion function. My first guess is that the perceptual equivalent (...) (23 years ago, 30-Jun-01, to lugnet.cad.dev)
|
| | |
| | | | Re: Substitute Colors for Dithered Colors? Lars C. Hassing
|
| | | | Erik Olson wrote... (...) I use the average of the two colors' RGB. Try it out in L3Lab by toggling the "Dither or blend colord 256-511" button in the toolbar. Here is the code I use for color decoding: /* Return -1 on invalid LDraw color. rgb may (...) (23 years ago, 2-Jul-01, to lugnet.cad.dev)
|
| | | | |
| | | | | | Re: Substitute Colors for Dithered Colors? Erik Olson
|
| | | | Wow, Lars, that was a lot of code to support r = (r1+r2)/2. The obvious hypothesis would say that the eye performs spatial integration on the pixels, so therefore values are averaged. I guess I can try it on my eyes with L3Lab then. I looked in (...) (23 years ago, 2-Jul-01, to lugnet.cad.dev)
|
| | | | |
| | | | | | Re: Substitute Colors for Dithered Colors? Paul Gyugyi
|
| | | | | I think much of the use of dithered colors in LDRAW really paid off when the dithering was used to imply a different texture, such as shiny gold, diffuse rubber, or flourescent colors. I'm currently concerned about what happens to the dithered (...) (23 years ago, 7-Jul-01, to lugnet.cad.dev)
|
| | | | | |
| | | | | | Re: Substitute Colors for Dithered Colors? Lars C. Hassing
|
| | | | Erik Olson wrote... (...) Yeah, it was mainly to ensure that you remember to support the full range of LDraw colors, i.e. also 0x2000000-0x7FFFFFF, but I guess you already did :-) Models built in MLCad may use these colors, and L3P+L3Lab support (...) (23 years ago, 10-Jul-01, to lugnet.cad.dev)
|
| | | | |