Discussion:
OverlayNodes without continuous update
Michael Henheffer
2006-10-19 18:22:55 UTC
Permalink
Hi everyone,

Since upgrading to OpenSceneGraph 1.2 I've noticed a problem with the
OverlayNodes that I was using. I was previously using version 1.0.

I'm using an OverlayNode with continuous updating set to false and the
overlay no longer displays. I am calling dirtyOverlayTexture() when the
subgraph is set or changes so that's not the cause. Everything works
fine if I set continuous updating to true.

I think the problem is related to the local camera update code in
OverlayNode.cpp being moved into the update traversal. It appears that
this code will now never be called if continuous updating is set to
false. Could this be the reason I'm not seeing my overlays? Or am I
likely doing something wrong in my code that has been exposed by a fix
in 1.2?

Thanks,
Michael
Jason Beverage
2006-10-19 19:31:53 UTC
Permalink
Michael,

I'm also experiencing this issue since moving to 1.2. I'm not sure what
the issue is, just letting you know you're not alone:)

Jason

-----Original Message-----
From: osg-users-bounces-O4jvQuzB+***@public.gmane.org
[mailto:osg-users-bounces-O4jvQuzB+***@public.gmane.org] On Behalf Of Michael
Henheffer
Sent: Thursday, October 19, 2006 2:23 P
To: osg-users-O4jvQuzB+***@public.gmane.org
Subject: [osg-users] OverlayNodes without continuous update

Hi everyone,

Since upgrading to OpenSceneGraph 1.2 I've noticed a problem with the
OverlayNodes that I was using. I was previously using version 1.0.

I'm using an OverlayNode with continuous updating set to false and the
overlay no longer displays. I am calling dirtyOverlayTexture() when the

subgraph is set or changes so that's not the cause. Everything works
fine if I set continuous updating to true.

I think the problem is related to the local camera update code in
OverlayNode.cpp being moved into the update traversal. It appears that
this code will now never be called if continuous updating is set to
false. Could this be the reason I'm not seeing my overlays? Or am I
likely doing something wrong in my code that has been exposed by a fix
in 1.2?

Thanks,
Michael
Robert Osfield
2006-10-23 15:00:24 UTC
Permalink
Hi Michael,

I have just reviewed the code and guess that the problem is that
camera is never set up for the subgraph. The update code obviously
should be a bit more savy about the test as whether to set up the
camera or not - perhaps some kind of dirty mechansim is required.

Robert.
Post by Michael Henheffer
Hi everyone,
Since upgrading to OpenSceneGraph 1.2 I've noticed a problem with the
OverlayNodes that I was using. I was previously using version 1.0.
I'm using an OverlayNode with continuous updating set to false and the
overlay no longer displays. I am calling dirtyOverlayTexture() when the
subgraph is set or changes so that's not the cause. Everything works
fine if I set continuous updating to true.
I think the problem is related to the local camera update code in
OverlayNode.cpp being moved into the update traversal. It appears that
this code will now never be called if continuous updating is set to
false. Could this be the reason I'm not seeing my overlays? Or am I
likely doing something wrong in my code that has been exposed by a fix
in 1.2?
Thanks,
Michael
_______________________________________________
osg-users mailing list
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
Michael Henheffer
2006-10-23 18:27:36 UTC
Permalink
Thanks Robert. For some reason I was thinking the solution was more
difficult than it actually was. I've updated the code to call the
camera update code during the update following a call to
dirtyOverlayTexture() and made a submission with the fix.

Michael
Post by Robert Osfield
Hi Michael,
I have just reviewed the code and guess that the problem is that
camera is never set up for the subgraph. The update code obviously
should be a bit more savy about the test as whether to set up the
camera or not - perhaps some kind of dirty mechansim is required.
Robert.
Post by Michael Henheffer
Hi everyone,
Since upgrading to OpenSceneGraph 1.2 I've noticed a problem with the
OverlayNodes that I was using. I was previously using version 1.0.
I'm using an OverlayNode with continuous updating set to false and the
overlay no longer displays. I am calling dirtyOverlayTexture() when the
subgraph is set or changes so that's not the cause. Everything works
fine if I set continuous updating to true.
I think the problem is related to the local camera update code in
OverlayNode.cpp being moved into the update traversal. It appears that
this code will now never be called if continuous updating is set to
false. Could this be the reason I'm not seeing my overlays? Or am I
likely doing something wrong in my code that has been exposed by a fix
in 1.2?
Thanks,
Michael
_______________________________________________
osg-users mailing list
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
Loading...