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 

CompositeViewer:: checkNeedToDoFrame() always returns true after adding an UpdateCallback


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


Joined: 19 Jan 2015
Posts: 23

PostPosted: Sun Sep 24, 2017 9:26 pm    Post subject:
CompositeViewer:: checkNeedToDoFrame() always returns true after adding an UpdateCallback
Reply with quote

Hi All,

Just to confirm, is it by design that after you add an update callback to a node in the scene,
CompositeViewer:: checkNeedToDoFrame() always returns true? Meaning that the Frame Scheme will always be CONTINUOUS and never ON_DEMAND. Or am I missing something I should be doing?

...

Thank you!

Cheers,
Lincoln
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11829

PostPosted: Mon Sep 25, 2017 7:40 am    Post subject:
CompositeViewer:: checkNeedToDoFrame() always returns true after adding an UpdateCallback
Reply with quote

Hi Linclon,


This is done by design, if you've put an update callback into the scene graph then you are tell the world that you plan to update it, typically one would move a transform or alter some visual state in such an update, so you really need to render a frame to make sure those updates get seen.


Robert.


On 24 September 2017 at 22:26, Lincoln Nxumalo < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi All,

Just to confirm, is it by design that after you add an update callback to a node in the scene,
CompositeViewer:: checkNeedToDoFrame() always returns true? Meaning that the Frame Scheme will always be CONTINUOUS and never ON_DEMAND. Or am I missing something I should be doing?

...

Thank you!

Cheers,
Lincoln

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





_______________________________________________
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
View user's profile Send private message
makulis
User


Joined: 19 Jan 2015
Posts: 23

PostPosted: Mon Sep 25, 2017 8:43 am    Post subject:
Reply with quote

Hi Robert,

Okay thanks for the reply. That makes sense.

Thank you!

Cheers,
Lincoln
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11829

PostPosted: Mon Sep 25, 2017 9:04 am    Post subject:
CompositeViewer:: checkNeedToDoFrame() always returns true after adding an UpdateCallback
Reply with quote

Hi Lincoln,


If you know that your updates don't always need calling you customize the behaviour of the viewer by subclassing from CompositeViewerViewer and override the run() orĀ  checkNeedToDoFrame() method and let this code decide when a new frame is required.


Robert.

------------------
Post generated by Mail2Forum
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 Adding primitiveset in runtime sergio2k18 General 7 Tue May 01, 2018 9:12 pm View latest post
No new posts CompositeViewer Bug with Scroll Events Daniel Emminizer, Code... General 1 Tue Apr 03, 2018 3:21 pm View latest post
No new posts Problem integrating CEGUI using libep... jay74 General 1 Sun Jan 14, 2018 11:53 pm View latest post
No new posts raise windows in compositeviewer Meldryt General 0 Mon Jan 08, 2018 2:56 pm View latest post
No new posts osg::Program::isFixedFunction() shoul... Mathieu Submission 1 Mon Aug 28, 2017 8:49 am 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