[osg-users] StatsFunctor not taking into account number of indices
Hi Community, Robert, I debug the code where I have my own drawable down to -- trajce nikolov nick ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] StatsFunctor not taking into account number of indices
it sent the email too fast The code debug down to void Statistics::drawElements(GLenum mode,GLsizei count,const GLuint*) { PrimitivePair prim = _primitiveCount[mode]; ++prim.first; prim.second+=count; _primitives_count[mode] += _calculate_primitives_number_by_mode(mode, count); } and it is not taking into account the number of instances. Any pointers what is needed to be modified? Thanks Nick On Tue, Nov 25, 2014 at 12:51 PM, Trajce Nikolov NICK trajce.nikolov.n...@gmail.com wrote: Hi Community, Robert, I debug the code where I have my own drawable down to -- trajce nikolov nick -- trajce nikolov nick ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] StatsFunctor not taking into account number of indices
also it has to be number of instances instead of indices Nick On Tue, Nov 25, 2014 at 12:52 PM, Trajce Nikolov NICK trajce.nikolov.n...@gmail.com wrote: it sent the email too fast The code debug down to void Statistics::drawElements(GLenum mode,GLsizei count,const GLuint*) { PrimitivePair prim = _primitiveCount[mode]; ++prim.first; prim.second+=count; _primitives_count[mode] += _calculate_primitives_number_by_mode(mode, count); } and it is not taking into account the number of instances. Any pointers what is needed to be modified? Thanks Nick On Tue, Nov 25, 2014 at 12:51 PM, Trajce Nikolov NICK trajce.nikolov.n...@gmail.com wrote: Hi Community, Robert, I debug the code where I have my own drawable down to -- trajce nikolov nick -- trajce nikolov nick -- trajce nikolov nick ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org