> Date: Fri, 16 Jun 2006 09:48:59 +0100
> From: "Robert Osfield" <[EMAIL PROTECTED]>
> Subject: Re: [osg-users] Re: 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,
> 
> On 6/15/06, Stephen H. Westin <[EMAIL PROTECTED]> wrote:
> > I think I finally have this sorted out. The key, at least for me, is
> > that OpenSceneGraph doesn't really know where it's drawing: by 
default,
> > it just takes the current OpenGL context and goes with it. So 
my code
> > got a lot simpler. I did find it useful to isolate OSG with push/pop
> > attributes and matrices:

<snip>

> I'm curious, this should just be isolating the context from parts of
> the state that the OSG will change during its draw, it won't actually
> affect what the OSG does itself, it won't change where it draws too.
> 
> Is it that you have other OpenGL code that is being affected by 
the OSG?
> 
> Robert.

Yes, that's exactly why I did this. In particular, we put a title at
the top left corner of the viewport. Since it is drawn *after* calling
osgUtil::SceneView::draw(), it tended to show up in strange locations,
or not at all. But things are happy now.


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