[osg-users] PagedLOD in hooked context

Han Hu huhan8807 at gmail.com
Tue Aug 16 05:27:08 PDT 2016


Hi,

Here is my problem.

I am developing a plugin for a software, which the rendering is based on OpenGL. Because it does not have any API for custom rendering support, I hooked the SwapBuffer API of windows to my function (say h_SwapBuffer), that I know is called in every frame. And in h_SwapBuffer I can call the viewer.frame() to draw my things. And the viewer can be initilized using the EmbedGraphicsWindow using viewer->setUpViewerAsEmbeddedInWindow
 
And everything went well with traditional node.

But when I tried with the PagedLOD files, the node won't show correctly. I have debugged this, and find that the _databaseThreads in DatabasePager have started successfully and the _fileRequestQueue can also be successfully added.

Another thing is that, when I zoomed out, the most coarse node can show. When zooming in a little, this node will disappear, but finer nodes can not be shown, even if I have see they are added to the _fileRequestQueue.

Thank you!

Cheers,
Han

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








More information about the osg-users mailing list