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 

About Register all tiles when reading the rootnode


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission
View previous topic :: View next topic  
Author Message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 10982

PostPosted: Thu Sep 08, 2016 8:54 am    Post subject:
About Register all tiles when reading the rootnode
Reply with quote

HI Zhou,

The OSG's database pager only loads in what is required for the
current view frustum. For paged databases you'd typically overload
your computers memory capacity if you attempted to load the whole
paged database at one time. The whole architecture of
PagedLOD/DatabasePager is built around hitting a solid 60Hz when
rendering massive databases that are otherwise too large to fit in
memory.

You can adjust how the many tiles are loaded in at runtime by setting
the viewer's master Camera's LODScale parameter, it defaults to 1.0
which is the what should work well for visuals on properly built paged
databases. You could adjust this to so that higher res tiles are
paged in and then rendered but it increases the memory footprint so is
a trade off.

Within there isn't a specific routine written to load all tiles, you
can write this yourself if you wish, it won't be difficult. but it's
not a general rendering task so out with the scope of the core OSG.
For this type of task it'll be very specific to the needs of the
particular end users.

The big question that I would have, and one you should yourself ask,
exactly what do you want all the names? Has it anything to do with
rendering? What you are trying to achieve in the end will determine
how best to do it.

Robert.

On 8 September 2016 at 09:07, Zhou Shuangshuang <> wrote:
Quote:
Hi,

My problem is,when loading the rootnode,we often use codes like "osg::ref_ptr <osg::Node> rootnode = osgDB::readNodeFile("terrain.ive")".
My model "terrain.ive" has 8 levels, but actually osg will only load 4 levels at the beginning.

Is there any method that can load all the tiles of each levels or just load these tiles' name, for instance, just load the level n, x coordinate and y coordinate ?


Thank you!

Cheers,
Zhou :)

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








------------------
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 -> 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 Error with InputStream reading osgb f... Riccardo Corsi General 28 Thu Jun 08, 2017 11:20 am View latest post
No new posts How to implement pagedLOD without rea... wernerM General 7 Wed Nov 09, 2016 11:47 am View latest post
No new posts PagedLOD range for 2D image tiles Bruno Oliveira General 6 Tue Sep 13, 2016 10:31 pm View latest post
No new posts About Register all tiles when reading... zhouss General 0 Thu Sep 08, 2016 8:07 am View latest post
No new posts Error with reading .obj file mpkuse General 1 Mon Aug 01, 2016 7:38 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