(2021-02-08, 0:12)Travis Cobbs Wrote: The RGB in the PNG doesn't match any current color in LDConfig.ldr
Slightly off topic:
I've been thinking about supporting mapped pngs'Â in LDCad, meaning using the combined RGBA color space as found in the decoded png as an LDraw number.
You could then map those numbers to the LDConfig RGBA defs before sending the raw image data to OpenGL.
Only real problem is how a renderer would know when to apply this.
Possible solution would to only allow <1024 colors, and apply this translation only if all RGBA pixel (uint) values are <1024