[osg-users] osg with c# winforms and simpleopenglcontrol Tao framework
robert.osfield at gmail.com
Thu Sep 27 02:04:21 PDT 2007
I know nothing of c# or Toa, but the one question I can answer is that
the values in setUpViewerAsEmbeddedInWindow(x,y,width,hieght) are for
the glViewport dimensions within the window that your application
On 9/27/07, Peter DeSantis <peter at jumbovision.com.au> wrote:
> Im new to OSG but have produced some opengl applications previously, some
> simple 3ds model loading applications using opengl for viewing in
> stereoscopic and multiwall VR settings.
> So im trying to get to grips with using c# with winforms and OSG, using the
> dotnet wrappers available. In additon to that im using the Tao Framework,
> that comes with simpleopenglcontrol, that allows a opengl panel to be
> dropped onto a winforms.
> I am wanting to use OSG with this opengl control on winforms, and the
> closest example of how to do this seems to be the GLUT sample code, in the
> examples section, using the
> setUpViewerAsEmbeddedInWindow(x,y,width,hieght) option. Do
> the paramters here just correspond to the glViewport paramters or do they
> specify the pixel location on screen of the window ?
> Can anyone confirm this would be the only way to use the simpleopenglcontrol
> from the tao framework ?
> Are there any other options. I thought perhaps passing the window hwd or the
> graphics context of the simpleopenglcontrol to the OSG viewer might be an
> option or not ?
> Perhaps i could pass the hwd of the winforms panel and use the option to
> create a win32 window in osg.
> I thought about pass the hwd to producer but it seems to still be in alpha
> stage and perhaps underdeveloped to use with osg in its current form
> If anyone could clarify these points or provide any other/or best examples
> of using osg with the tao framework simpleopengl control it would be
> Peter DeSantis
> peter at jumbovision.com.au
> osg-users mailing list
> osg-users at lists.openscenegraph.org
More information about the osg-users