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 

Database pager and failed loading of PagedLOD's children


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission
View previous topic :: View next topic  
Author Message
hartwigw
Appreciator


Joined: 20 Mar 2009
Posts: 128

PostPosted: Sun Mar 04, 2018 5:42 pm    Post subject:
Database pager and failed loading of PagedLOD's children
Reply with quote

Hi,

I use PagedLODs and the database pager to load dynamically nodes. Here is the pseudo code:

Code:

pagedLOD->addChild(nodePtr,limit,std::numeric_limits<float>::max);
pagedLOD->setFileName(1,fileName);
pagedLOD->setRange(1,0.0,limit);


In case the pseudo-loader for fileName fails I would like to keep the child at position zero (here called nodePtr).

What is the best method to achieve this?

Thank you!

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


Joined: 18 Mar 2009
Posts: 12006

PostPosted: Sun Mar 04, 2018 5:49 pm    Post subject:
Database pager and failed loading of PagedLOD's children
Reply with quote

HI Hartwig,

This isn't a submission so best to post general questions like this on
other parts of the forum.

As for the particular question, the OSG requests children that are
required for a given range when then come into range, and while they
aren't available will automatically fallback to the next highest level
of detail until this child is loaded.

So... in your case if child 1 fails to load when request the OSG will
just keep fallback back to child 0 automatically.

Robert.

On 4 March 2018 at 17:42, Hartwig Wiesmann <> wrote:
Quote:
Hi,

I use PagedLODs and the database pager to load dynamically nodes. Here is the pseudo code:


Code:

pagedLOD->addChild(nodePtr,limit,std::numeric_limits<float>::max);
pagedLOD->setFileName(1,fileName);
pagedLOD->setRange(1,0.0,limit);




In case the pseudo-loader for fileName fails I would like to keep the child at position zero (here called nodePtr).

What is the best method to achieve this?

Thank you!

Cheers,
Hartwig

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








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


Joined: 20 Mar 2009
Posts: 128

PostPosted: Sun Mar 04, 2018 5:50 pm    Post subject:
Reply with quote

Hi,

sorry, I accidentally posted this issue in the wrong forum. Please ignore it. I have posted the same thread in "General" where it belongs.

Cheers,
Hartwig
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission 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 Load OSG trimesh to ODE: Read Vertice... TKoller General 2 Fri Jul 20, 2018 3:06 pm View latest post
No new posts error while loading .iv file in opens... Rj@123 General 0 Wed Jun 20, 2018 10:52 am View latest post
No new posts osgQt failed in QT 5.10.1 + osg 3.6 feelapi General [3rdparty] 3 Fri May 11, 2018 12:31 pm View latest post
No new posts Support for loading cubemap images in... Farshid Lashkari Submission 7 Wed May 09, 2018 5:56 pm View latest post
No new posts Database pager and failed loading of ... hartwigw General 3 Sun Mar 04, 2018 5:51 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