Hi Brad, I wrote the code with the multiplication in such as way as the blink sequence modulates the original colour of the light point rather than replacing it so the original code is correct as per it's original intended functionality. What you are doing is changing the basic functionality which is inappropriate as it'll break other users applications.
Robert. On 21 June 2012 23:17, Brad Colbert <[email protected]> wrote: > Hi, > > I believe that the application of the blink sequence to the color of a > lightpoint is incorrect. Currently the code is this: > > Line 304: > osg::Vec4 bs = lp._blinkSequence->color(time,timeInterval); > color[0] *= bs[0]; > color[1] *= bs[1]; > color[2] *= bs[2]; > color[3] *= bs[3]; > > and I believe it is supposed to be this: > > osg::Vec4 bs = lp._blinkSequence->color(time,timeInterval); > color[0] = bs[0]; > color[1] = bs[1]; > color[2] = bs[2]; > color[3] = bs[3]; > > The issue is that the color of the lightpoint is being squared. > > > Thank you! > > Cheers, > Brad > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=48418#48418 > > > > > Attachments: > http://forum.openscenegraph.org//files/lightpointnode_995.cpp > > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
