LDView Differenc between colours in LDConfig and lg_colours


RE: Differenc between colours in LDConfig and lg_colours
#3
(2020-10-07, 9:01)Manfred Schäfer Wrote: When exporting to POV-Ray in LDView, I noticed that not all colors are defined in the lgconfig file. Here I noticed that the definitions for the color values in the file LDConfig.ldr and lg_colour.inc are defined differently. Can someone please describe how the color values are to be calculated.
Thank you.

LDView doesn't generate lg_color.inc; that is included as part of LGEO. LDView's LGEO.xml file contains a list of colors that are available in lg_color.inc. That simply maps the LDraw color numbers to named LGEO colors. (For example, 6 gets mapped to lg_brown.) The actual definition of the colors comes from the LGEO package, though.

When LGEO is disabled, LDView generates colors based on the RGB values that are loaded at the time of export. (If LDConfig.ldr parsing is disabled, these are LDView-generated RGB; otherwise they are LDConfig.ldr RGB.)
Reply
« Next Oldest | Next Newest »



Messages In This Thread
RE: Differenc between colours in LDConfig and lg_colours - by Travis Cobbs - 2020-10-08, 0:51

Forum Jump:


Users browsing this thread: 1 Guest(s)