Hi Rafa,
On 6/3/07, Rafa Gaitan <[EMAIL PROTECTED]> wrote:
Hi Robert,
I have some problems with osgViewer::Viewer integration.
First, passing events mouse throught GraphicsWindows
are completely ignored and resize events not work as the previous
SimpleViewer did.
Without seeing how you've wired things up I can't really guess what
might be up. The Wx, SDL, GLUT and QT example all work fine with
their event handling.
I'm not sure if I missed something.. but I have
reviewed the code lots of times! I have set OSG_NOTIFY_LEVEL to
DEBUG, but nothing strange occurs. There is also a different inicialization
between osgviewerGLUT and mine. I don't know the initial size of the
window, so I pass a default value, and after that a resize event arrives,
but looks like the resize event is not correctly passed (on previous
SimpleViewer
it worked perfectly)
This is probably the Camera's being resized relative to the original
size, and the original projection and viewport is done relative to the
defined window size. This is done to allow for multiple cameras to
share a single window. SimpleViewer just hardwired the aspect ratios
and viewports to exactly that of the window size so can probably get
away with more. I would however, with Viewer expect a camera filling
the whole window to still remain filling the whole window after
resize.
Could you post how you are wiring things up?
Second, Once finished the application, it produces a crash. Here
is the stack:
0 libGL.dylib 0x92b1e96f glDeleteTextures + 59
1 libosg.8.dylib 0x1330794e
TextureObjectManager::flushAllTextureObjects(unsigned) + 106
2 libosg.8.dylib 0x133079e4
osg::Texture::flushAllDeletedTextureObjects(unsigned) + 42
3 libosg.8.dylib 0x132b3b3d
osg::GraphicsContext::close(bool) + 1041
4 libosgViewer.8.dylib 0x137bcde9
osgViewer::Viewer::~Viewer [in-charge deleting]() + 441
5 libjosgviewer.jnilib 0x12f140d5
osg::Referenced::unref() const + 169
Any Idea on How solve this problems?
This suggests that the viewer is being destructed after the graphics
context has been destroyed. Try destroying the viewer first then your
own window.
Robert.
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/