[osg-users] osgDotNet and Windows Forms

Jason Beverage jasonbeverage at gmail.com
Wed Sep 19 10:08:53 PDT 2007


Just guessing, but what happens if you hit the space bar with the app
running?  That should tell the camera manipulator to go to the home
position.

Jason

On 9/19/07, Christoffer Markusson <ch.markusson at gmail.com> wrote:
>
> Jason,
>
> Thanks for your reply.
>
> My program is a simple form with your control and a timer in it. The
> only thing it does is to get an reference to the viewer in the control
> and then use setSceneData on it. (to construct the scene data I've
> used the example from
>
> http://www.openscenegraph.org/projects/osgDotNet/wiki/GettingStartedWithTheWrappers
> ).
> After this, the application is launched using Application.Run.
>
> >From your suggestion I invalidate the controller each timer click.
>
> What I get when I run the application is just the form, nothing is
> displayed in the control.
>
> Christoffer
>
> >2007/9/19, Jason Beverage <jasonbeverage at gmail.com>:
> >
> >Hi Christoffer,
> >
> >I'd need a little more information about what is going on.  I assume you
> >passed a Node to the viewer using the setSceneData function.  Also, to
> get a
> >continuous update, I just dropped a timer on the form and set it to call
> >Invalidate on the OSG control on tick.
> >
> >Jason
> >
> >2007/9/19, Christoffer Markusson <ch.markusson at gmail.com>:
> > Hi Jason,
> >
> > Thanks for your help!
> >
> > I've used your code to create a controller in Visual Studio. But when
> > I try to use the controller in a project it dosen't render anything.
> >
> > Could you please give me an example of how you use your controller?
> >
> > Christoffer
> >
> > >2007/9/19, Jason Beverage <jasonbeverage at gmail.com>:
> > >Hi Christoffer,
> > >
> > >Here is a simple control that uses TAO to display an OSG window that
> I've
> > >used for testing.
> > >
> > >Thanks!
> > >
> > >Jason
> > >
> >
> > >>2007/9/18, Christoffer Markusson <ch.markusson at gmail.com>:
> > >> I'm using OSG together with C# in Visual Studio 2005 using the
> > osgDotNet wrappers.
> > >>
> > >>Is there an easy way to integrate and display an OSG window in a
> > Windows Form? >>Does anyone have example code?
> > >>
> > >> Christoffer
> > >>
> >
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070919/a07d5491/attachment-0003.htm>


More information about the osg-users mailing list