Hi Maxim, I'm confused by this resending of an original submission that I've already not accepted, I don't believe the solution is just to randomize the value if it exceeds a specified amount. Might I suggest we continue the discussion on the original submission as it's just plain confusing to have two threads on the same topic on the same submission.
Robert. On Sat, Sep 11, 2010 at 10:24 AM, Maxim Gammer <[email protected]> wrote: > The problem with the system of particles: > in hiding the particle system and their subsequent screening creates a huge > number of particles (splash). But more than the big time difference between > concealment and display. The drawings depicted such a situation. > http://i35.tinypic.com/ridkhu.jpg > http://i33.tinypic.com/2nulhfd.jpg > The first figure shows the correct image, the second figure shows the > erroneous operation of the system of particles. > In addition, when a large number of particles occurs following warning: > Warning: State:: drawQuads (0, 72588) too large handle in remapping to > ushort glDrawElements. > Warning: State:: drawQuads (0, 72592) too large handle in remapping to > ushort glDrawElements. > Warning: State:: drawQuads (0, 72592) too large handle in remapping to > ushort glDrawElements. > Warning: State:: drawQuads (0, 72596) too large handle in remapping to > ushort glDrawElements. > > I change file RandomRateCounter to fix this problem... > i add: > inline void setClamp(bool value); > and add.. > if ((n > getRateRange().maximum) && > (clampProducedParticles==true)) > { > n = getRateRange().get_random(); > _np=0; > } > to inline int RandomRateCounter::numParticlesToCreate(double dt) const > > These changes can be added in next version OSG? > -- > Maxim Gammer > > > _______________________________________________ > 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
