On Sun, Aug 18, 2013 at 3:52 PM, Tom Browder <tom.brow...@gmail.com> wrote: > > So, what is the user to do to truly affect the color: use both rgb and color > attributes? Or does it matter since BRL-CAD may be treating 'color' and > 'rgb' as aliases for each other?
Tom, The rgb/color thing is basically a consequence of me jumping the gun on trying to make the attributes more general and uniform - at the time I was doing that it hadn't fully registered how gnarly all that was and I probably just made things worse. My thought was that it was reasonable to specify colors in ways other than RGB (CMYK, names, etc.) so RGB was too specific, but as it turned out the rgb thing wasn't just an attribute - it's buried deep in the data structures as well. Arrgh. The current mess is me trying to both satisfy the need for rgb in some situations and at the same time support using "color" as an attribute to specify color. I'm open to suggestions - the "correct" thing to do is probably to make sure that all ways of setting either color or rgb end up with both attributes present and with rgb being the "winner" if the two are in conflict, but it looks like you've found a case I missed (comb_color) and the attr command (or, more correctly, the syncing functions its calling under the hood) are trimming the attribute down to color rather than setting both rgb and color. The command "comb_color" should actually be calling attr or something similar under the hood, really... Longer term, it would probably make more sense to do away with having geometry objects directly saving any sort of color information - they should instead link to a shader object, which would hold all of that. Cliff ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel