OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

On-screen Stats Display


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
colby
Newbie


Joined: 23 Jun 2016
Posts: 3

PostPosted: Wed Apr 25, 2018 1:53 pm    Post subject:
On-screen Stats Display
Reply with quote

Hi,

I remember there being a simple call to enable the 's' key to display on-screen stats in OSG, but for the life of me, I can't remember how to enable that. I thought it was a trivial call on the viewer, something like `enableStats`, which resulted in the 's' key displaying some useful statistics about the scene rendering.

Thanks in advance for the help in locating that useful feature!

Cheers,
Chris
Back to top
View user's profile Send private message
Voerman, L.
Guest





PostPosted: Wed Apr 25, 2018 2:08 pm    Post subject:
On-screen Stats Display
Reply with quote

Hi Chris,
the calls you're looking for:


#include <osgViewer/ViewerEventHandlers>

    // add the stats handler
    viewer.addEventHandler(new osgViewer::StatsHandler);


This comes form the osgviewer source (applications/osgviewer/osgviewer.cpp)


Laurens.

On Wed, Apr 25, 2018 at 3:53 PM, Chris Baker < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi,

I remember there being a simple call to enable the 's' key to display on-screen stats in OSG, but for the life of me, I can't remember how to enable that. I thought it was a trivial call on the viewer, something like `enableStats`, which resulted in the 's' key displaying some useful statistics about the scene rendering.

Thanks in advance for the help in locating that useful feature!

Cheers,
Chris

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=73506#73506





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
colby
Newbie


Joined: 23 Jun 2016
Posts: 3

PostPosted: Fri Apr 27, 2018 10:35 pm    Post subject:
Reply with quote

Exactly what I was looking for! Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts osg::Node can not be displayed front ... aozdin General 4 Fri Mar 02, 2018 12:43 pm View latest post
No new posts osgText::Text display issue (only whi... eskay187 General 5 Tue Dec 26, 2017 1:35 pm View latest post
No new posts Real time Strobing effect for on scre... rposg General 4 Thu Oct 19, 2017 1:12 pm View latest post
No new posts Display one scene, pick from another one arennuit General 8 Fri Sep 08, 2017 11:50 am View latest post
No new posts Convert from screen space to world sp... NavyBas General 3 Thu Jun 22, 2017 6:14 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP