Karl Karsten wrote:
I would like to have best performance when loading the scene in the viewer and inspecting them (zoom, pan, etc.).
It sounds like load time and interactive viewing is your priority.
My newbie questions are: - Should I use simply osgDB::readNodeFile in a loop for all parts? I guess this will be slow when reading.
In general, your should do some analysis to determine where your bottleneck is. Yes, try readNodeFile; if the load time and rendering performance is acceptable, then your job is done. :-)
- Can I prepared something before reading? creating an archive etc.?
Yes, you can preprocess your models into a more optimized format to meet your requirements. I'm reluctant to state unequivocally that simply making your models into an archive will do the trick. You'll need to analyze and optimize based on the results of the analysis.
- Can osgDB::DatabasePager be a solution? Is there any Newbie documentation available for osgDB::DatabasePager? Examples or code sniplets?
I don't think of DatabasePager as a solution for improving load time or viz-sim framerate. DatabasePager simply calls readNodeFile in a thread, so takes the same amount of CPU time as you calling readNodeFile directly. It's really designed more for paging in successively higher LODs of multilevel DBs (such as terrain). Search the archives for "DatabasePager" or "PagedLOD" for more information. Search the examples source code if you're looking for examples.
-Paul _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

