hi,
found a bug in osgParticle::PrecipitationEffect::traverse, version 2.8.
code is:
void PrecipitationEffect::traverse(osg::NodeVisitor& nv)
{
if (nv.getVisitorType() == osg::NodeVisitor::UPDATE_VISITOR)
{
if (_dirty) update();
if (nv.getFrameStamp())
{
double currentTime = nv.getFrameStamp()->getSimulationTime();
static double previousTime = currentTime; // here, if i have
tow PrecipitationEffect object running, they share the same static
previousTime, thus the second one would reach a delta of 0 always. maybe we can
change it as a member variable instead.
double delta = currentTime - previousTime;
_origin += _wind * delta;
previousTime = currentTime;
}
return;
}_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org