HI Massimo, What exactly do you mean by bad rendering?
Do you have vync on? Robert. On Fri, Dec 18, 2009 at 1:58 PM, Massimo Tarantini <[email protected]> wrote: > Hi all, > > i have added some snow to my scene (it's Christmas time!), after looking the > example osgprecipitation. > It renders very well when the scene is static, and quite well when moving > fast, but very bad when moving slow. > > > Code: > osg::ref_ptr<osgParticle::PrecipitationEffect> precipitationEffect = new > osgParticle::PrecipitationEffect; > precipitationEffect->snow(1.0); > /* It Does not work, if i set to false: what does it mean? */ > precipitationEffect->setUseFarLineSegments(true); > precipitationEffect->getFog()->setDensity(0.00012f); > precipitationEffect->getFog()->setMode(osg::Fog::EXP2); > precipitationEffect->getFog()->setFogCoordinateSource(osg::Fog::FRAGMENT_DEPTH); > root->addChild( precipitationEffect.get() ); > root->getOrCreateStateSet()->setAttributeAndModes(precipitationEffect->getFog()); > > > > Can you give me some hint? > It Could a problem of my ATI Radeon 3650 AGP, or could be my code? > > Thanks > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=21661#21661 > > > > > Attachments: > http://forum.openscenegraph.org//files/moving_fast_976.jpg > http://forum.openscenegraph.org//files/moving_slow_526.jpg > http://forum.openscenegraph.org//files/static_594.jpg > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

