Hi kcbale The light is a uniform and it is used to compute the wave top/bottom color. Because the setLightColor set a statSetDirty, ocean is instructed tu reload all stuffs. This cause a "freeze" at any time this reload is called. I'm planning to setup directly the uniform without dirty the stateSet...I'm try some ideas tomorrow...
kcbale wrote: > Hi Dario, > > I'm not sure I understand what you mean by a 'latch', could you describe the > symptoms a little more? I can't remember if the light variable is a uniform > or a #define and I'm not in front of a pc to check. > > Regards > > Kim. > > Sent from my iPhone > > On 13 Jun 2013, at 17:04, "Dario Minieri" <> wrote: > > > > Hi, > > > > I'm implementing a simple sun walk into skydome, calculating the light > > color during day. I'm using osgocean. To setup the ocean scene accordingly > > with the light color variation, I have to set the light color in osgocean > > itself via setLightColor. This works but setLightColor dirty the shader > > anytime and I see a "latch" into the scene when this happens. > > > > You can suggest to me a workaround to avoid the latch? Obviously I don't > > sets the ocean light color any microsecond, I update the light any 5 secs. > > > > Thank you! > > > > Cheers, > > Dario > > > > ------------------ > > Read this topic online here: > > http://forum.openscenegraph.org/viewtopic.php?p=54595#54595 > > > > > > > > > > > > _______________________________________________ > > osg-users mailing list > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > _______________________________________________ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ------------------ > Post generated by Mail2Forum ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=54600#54600 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

