Hi, Maybe you can set up a timer there and call your viewer->frame() on the timer event. Or launch a thread?
On Mon, Aug 1, 2016 at 3:12 PM, Sebastian Messerschmidt < sebastian.messerschm...@gmx.de> wrote: > Am 01.08.2016 um 15:04 schrieb Han Hu: > >> Hi Sebastian , >> >> Sketchup doesn't have any API to allow render into its openGL context. >> >> And thanks for your snippet on handling the HWND. But I think the real >> problem lies in that I do not have access to the render loop. So there is >> nowhere for me to place the viewer->frame() to render the stuffs. >> > Maybe you can use the Sketchup-API to at least "pause" the original > applications rendering, so you can sneak in and perfrom your frame. > > >> At last thanks again. >> >> Cheers, >> Han >> >> ------------------ >> Read this topic online here: >> http://forum.openscenegraph.org/viewtopic.php?p=68233#68233 >> >> >> >> >> >> _______________________________________________ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- trajce nikolov nick
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org