I have added the following (copied from SimpleSceneManager init) to my modified OpenSGApp.h: ... #include <OpenSG/OSGSimpleStatisticsForeground.h> #include <OpenSG/OSGDrawable.h> #include <OpenSG/OSGRenderAction.h> #include <OpenSG/OSGDrawActionBase.h> ... OSG::SimpleStatisticsForegroundPtr sf = OSG::SimpleStatisticsForeground::create(); beginEditCP(sf); sf->setSize(25); sf->setColor(OSG::Color4f(0,1,0,0.7)); sf->addElement(OSG::RenderAction::statTravTime, "FPS: %r.3f"); sf->addElement(OSG::DrawActionBase::statCulledNodes, "%d Nodes culled"); sf->addElement(OSG::RenderAction::statNMaterials, "%d material changes"); sf->addElement(OSG::RenderAction::statNMatrices, "%d matrix changes"); sf->addElement(OSG::Drawable::statNTriangles, "%d triangles drawn"); sf->addElement(OSG::Drawable::statNLines, "%d lines drawn"); sf->addElement(OSG::Drawable::statNPoints, "%d points drawn"); sf->addElement(OSG::Drawable::statNVertices, "%d vertices transformed"); sf->addElement(OSG::RenderAction::statNTextures, "%d textures used"); sf->addElement(OSG::RenderAction::statNTexBytes, "%d bytes of texture used"); endEditCP(sf); ... c_data->mViewport->getForegrounds().push_back(sf); ...
This causes the text to display correctly on the screen, but the numbers corresponding with each statistics element are incorrect. Everything seems to always display 0, even though looking through the documentation, they should each be updated during the draw phase. Is there something I am doing wrong here? -Alan P.S. - I am using the vrj/Draw/OpenSG/OpenSGApp.h as a base with vrjuggler-2.0.1 and OpenSG compiled from the latest source on windows using vs.net2003 and scons. -- ------------------------------------------------ Alan Austin Cell 515-708-2851 Computer Science Liberal Arts and Science Beijing Project - VRAC - ISU [EMAIL PROTECTED] ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users