"Gianni Ambrosio" writes: > Now, if I run my application without resizing the viewer widget and I > insert an osgWidget::Window to the osgWidget::WindowManager I can see > it stretched to a small size. Then I resize the viewer interactively, > the code falls into the handled resizeEvent and the > GLWidget::resizeEvent(iEvent) call makes the widget to be shown > correctly.
Initially osgWidgets relies on the size you specify when you create the WindowManager, and it can be different than the actual size of your rendering context. OSG doesn't send a RESIZE event at window creation time, so you have to check this for yourself. -- Alberto _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org