[osg-users] osgDotNet and Windows Forms

Jason Beverage jasonbeverage at gmail.com
Thu Sep 20 10:58:33 PDT 2007


Hi Christoffer,

I'm not sure what would be going on.  I can try to take a look at your code
if you can send it to me, but I'm a little pressed for time right now so I
don't know when I'd get to it.

Jason

On 9/19/07, Christoffer Markusson <ch.markusson at gmail.com> wrote:
>
> Unfortunately nothing happens.
>
> Christoffer
>
> >2007/9/19, Jason Beverage <jasonbeverage at gmail.com>:
> >
> >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
> >
> >2007/9/19, Christoffer Markusson <ch.markusson at gmail.com>:
> > 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/20070920/ef6b7036/attachment-0003.htm>


More information about the osg-users mailing list