Re: [osg-users] OsgViewer in form, aspect ratio issue and error on close

2007-12-01 Thread Himar Carmona
Hi, i'm also using .NET (with C++/CLI) and i'm also new with OSG (a few moths like you). Perhaps that can help you: 1) the projectionMatrix is recomputed in GraphicsContext::resizedImplementation (which GraphicsWindow derives from). You can override it (setResizedCallback), or look at how it

[osg-users] OsgViewer in form, aspect ratio issue and error on close

2007-11-29 Thread LOREK Christophe
hi everyone, I'm new to this mailing list, although I have been using OpenSceneGraph for a couple of monthes. I'm using the OsgViewer from OSG 2.0 and I would like to have it use a .NET form for display (using managed C++, not C#). I followed the advice given by Glenn Waldron in his reply to

Re: [osg-users] OsgViewer in form, aspect ratio issue and error on close

2007-11-29 Thread Miao
hi Christophe, 1) it seems that the aspect ratio used for the rendering is based on the ratio of the form size. About your first problem,when i reuse code of osgviewerMFC , I met the same problem. I found in osgViewer::Viewer's base class osg::view 's constructor , it'll new a master camera