> 
> Date: Mon, 12 Jun 2006 21:23:11 +0100
> From: "Robert Osfield" <[EMAIL PROTECTED]>
> Subject: Re: [osg-users] OSG in a subregion of a window?
> To: "osg users" <[email protected]>
> Message-ID:
>       <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Hi Stephen,
> 
> I wouldn't recommend mixing Qt and Producer, there is too much overlap
> between who's managing windows.  I'd recommend just rolling your own
> osgUtil::SceneView based code.
> 
> Have a look at the osgkeyboardmouse example as this should give a bit
> more cut down and flexible basis for your app.  When I have  a bit
> more time I'll write a Qt example, but alas I've got very little free
> time at present.

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.

> 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.

> 
> Robert.
> 


Stephen H. Westin
Animusic, LLC







_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to