Hello all,
  I'm trying to grab individual StatElem from the RenderAction, but can't
seem to get valid results. (e.g. the values are always 0) I've included the
code I'm using below, in case I overlooked something obvious. Otherwise,
when do the various systems clear their internal stats in preparation for
the next frame? Any help would be greatly appreciated.

        osg::StatCollector* sc = m_render_action->getStatistics();
        osg::StatElem* elem =
sc->getElem(osg::RenderAction::statNMaterials);
        if(elem->isOn()==false) { printf("no stats!\n"); return; }

        std::string str;
        elem->putToString(str);
        cerr << "num materials: " << str << endl;

Thanks

E.

---
Eric Maslowski
Research Computer Specialist
University of Michigan 3D Lab

Autodesk 3D Studio Max Certified Trainer

email:  [EMAIL PROTECTED]
office: 734-615-9699
mobile: 734-730-9904



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to