On Fri, Sep 17, 2010 at 9:01 AM, Robert Osfield <[email protected]>wrote:
> HI Glenn, > > On Fri, Sep 17, 2010 at 1:00 PM, Glenn Waldron <[email protected]> wrote: > > No problem, just investigating. One of my customers stores color data in > > 32-bit ABGR. He is porting code to OSG, came across these methods, and > was > > confused since they appear to be swapped (based on the method names). I'd > > never seen them before and upon inspection they looked backwards to me as > > well, so I agreed to look into it. > > A quick search shows that they are only used in 2 places in the OSG: in > > osgSim::LightPointDrawable, and in the DXFWriterNodeVisitor (in which the > > code calls asABGR() to get an RGB value ... another tip-off that the > methods > > might be reversed). > > I can't comment on DXF as I'm not the author, but perhaps the DXF is > an convention that it uses. > > As for LightPointDrawable, if the code was wrong we'd be getting wrong > colour light points, the code hasn't hardly changed since it was > written back in 2002. I would have thought we'd have a report of > problem by now... > > So please go do a real GL test, and then if you get an error then > report it as such. > I see now, you are saying that asRGBA() is meant to produce an encoding that matches GL_RGBA + GL_UNSIGNED_BYTE. That answers my question. Glenn
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

