Re: [osg-users] hook osg into other window

2016-08-01 Thread Trajce Nikolov NICK
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

Re: [osg-users] hook osg into other window

2016-08-01 Thread 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

Re: [osg-users] hook osg into other window

2016-08-01 Thread Sebastian Messerschmidt
Hi Han Hi, Here is my problem. I am writing a plugin for a 3D modeling software , sketchup, and going to draw some 3D things into the OpenGL context. But it does not have any Api for customizing the rendering. So I have to hook my rendering stuffs into its render loop, which I do not have

[osg-users] hook osg into other window

2016-07-31 Thread Han Hu
Hi, Here is my problem. I am writing a plugin for a 3D modeling software , sketchup, and going to draw some 3D things into the OpenGL context. But it does not have any Api for customizing the rendering. So I have to hook my rendering stuffs into its render loop, which I do not have access. I