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 

I need any ideas on how to wait for all outstanding frame-calls


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


Joined: 10 Jul 2014
Posts: 19

PostPosted: Wed Feb 27, 2019 12:24 pm    Post subject:
I need any ideas on how to wait for all outstanding frame-calls
Reply with quote

Hi all,

I need any ideas on how to wait for all outstanding or pending frame-calls.

What I try to do is have a rendering on demand mode for a viewer showing a geotiff (using osgearth). Currently it takes several frame-calls to have the image in a clear state. And is state is the item I want to wait for, before start doing something else.

Currently the implementation starts with calling OsgMapManipulator::centerMapAtPosition(). As next step I tried doing different approaches like:

Code:
while (viewer->checkEvents() )
{
    viewer->frame()
}


or

Code:
while (viewer->checkEvents() )
{
    viewer->renderTraversas()
}


or

Code:
while (viewer->checkNeedToDoFrame() )
{
    viewer->frame()
}


Unfortunately nothing worked as I expected.

Anyone out here in the forum who is able to give me the 'right' hint which item to ask in which way to be sure, that the rendered viewer content could be labeled 'stable'?

Thank you!

Cheers,
Christoph[/list]
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12336

PostPosted: Wed Feb 27, 2019 12:53 pm    Post subject:
I need any ideas on how to wait for all outstanding frame-calls
Reply with quote

Hi Christoph,

Quote:
What I try to do is have a rendering on demand mode for a viewer showing a geotiff (using osgearth). Currently it takes several frame-calls to have the image in a clear state. And is state is the item I want to wait for, before start doing something else.

A quick reply as I'm about to head out. It sounds like the database
pager thread will be active in your usage model, so you'll need to
wait for all pending requests to be merged. I don't recall the API
for checking this off the top of my head, have a look at the
DatabasePager API and also look through the OpenSceneGraph/examples I
think there might an example of this - search for DatabasePager.

Robert.


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
christoph
Newbie


Joined: 10 Jul 2014
Posts: 19

PostPosted: Wed Feb 27, 2019 1:43 pm    Post subject:
Reply with quote

Hi Robert,

thanks for the quick reply. Do you mean the osgposter example?
I will dig into this over the next days.

Thank you!

Cheers,
Christoph
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 How to reset osgAnimation (put the an... GiacomoB General 1 Fri Jul 26, 2019 12:11 pm View latest post
No new posts Frame Drop xdfanfan General 0 Tue Jul 02, 2019 4:03 pm View latest post
No new posts Off topic question and request for ideas wernerM General 2 Fri Dec 14, 2018 2:35 pm View latest post
No new posts Switch call to viewer::frame() betwee... DrPowers General 4 Tue Sep 11, 2018 6:48 am View latest post
No new posts Extra draw calls in osgText? gwaldron General 1 Thu Jul 19, 2018 8:48 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