Hi,

  this topic refers to OSG in Windows. Can be a bit off-topic.

  have anyone been able to have an OSG viewer that can be resized, repaints
during resize and renders in a thread? I'm trying desperately now and have a
tons of problems.

  I look at the osgViewer application. i launch it with

       osgviewerd --window 100 100 800 600 cow.osg.   (Debug version).

 and the window popups correctly, with its happy cow. When i resize the
window, the viewer don't update the viewport until i release the mouse
 (if you resize up the window, you see the trails of the previous borders)
I attached a screen capture. I use the osgViewer to compare it with my own
window implementation.


  My program opens a window using GraphicsWindowWin32
(createGraphicsContext). The window can be resized. But when i resize the
window, the viewer resize also. I have compare the two codes. In my
application
 the viewer resize during mouse moves. Ok, fine. First difference: my app
resize the viewer during, osgviewer resize the viewer after. Same window
styles, same class styles.

 My scene have a black background, i read an object (cow.osg). During
resizing the scene (the viewer, the camera, don't know what) jitters
up/down, left/right, flickers black / scene. Very awful. It seems OSG is
render
frames with differents viewport settings or tratis settings. I suspect the
problem can be that i use a render thread that call viewer.frame().
viewer.checkevents don't catch any windows messages, as it is not the owner
thread of the Hwnd. And i'm also suspect that the threads are colliding..

 Any clues, tips, info? I know this question could not be directly related
with OSG. For sure it this how i set OSG. But i have fired all my charges
now. So i need a little push :(

Thanks

<<attachment: viewerResize.JPG>>

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to