Hi Stepen, On 6/13/06, Stephen H. Westin <[EMAIL PROTECTED]> wrote:
Hmm. osgkeyboardmouse uses Producer::RenderSurface. So that's a part of Producer that's reasonable to use with Qt? I hope so, because that's the only way I know to get OSG to display within an already- existing window.
Its an example designed to help point out the bare bones things you have to do integrate with a GUI, Producer is used in a very straight forward way as an example, mapping to the Qt should not be difficult.
> As for small regions of a window, the solution is define a viewport > which selects the part of the window that you want to render to. Well, yes, I had actually figured out that bit. So why, when I set the window via rs-setWindow( 640, 0, 640, 640), does OSG display smack against the left edge of my window? And when I resize for any reason, the display goes somewhere else, and soon right out of my window entirely.
This is one the problems with integrating Qt and Producer, both Qt and Producer creating their own windows, neither of which know about the other, and events don't get passed down correctly so resizes don't work correctly. This is why I recommend not using Producer in conjunction with Qt. The osgkeyboardmouse should point the way in how to integrate things. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
