Classification:  UNCLASSIFIED 
Caveats: NONE

So from helpful comments, I believe I know what I'm doing wrong.
I am creating a group and adding cameras to the group.
in the cameras I have various drawables that I'd like to update with my
program.

i can't get the camera's children to update and can't find an example
that works.

for an example of what i'm trying to do, 
i took the osghud example and created a few geometries on it.

i added a callback that should change a scale factor for the triangles
that i'm adding 
and update the text in one of the screens.

i tried to versions.  one that had the callback on the camera and one
that has the callback on one of the geodes.

I appreciate any help anyone might be able to give.

Danny

> -----Original Message-----
> From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-
> boun...@lists.openscenegraph.org] On Behalf Of Paul Martz
> Sent: Tuesday, April 14, 2009 12:30 PM
> To: 'OpenSceneGraph Users'
> Subject: Re: [osg-users] any help would be appreciated - updating a
> groupofcameras (UNCLASSIFIED)
> 
> Hi Danny -- There really isn't much info to go on here. You don't
> describe
> the mechanism that is doing the drawing. Cameras don't draw, they only
> set
> the matrices.
> 
> Assuming you are changing a Drawable in your scene graph... One thing
> to
> check would be to make sure that you have setUseDisplayLists( false ).
> You
> don't want to use display lists for dynamic geometry.
> 
> If your code is too large to debug, then write a small piece of code
to
> reproduce the problem outside of your larger app, making it as small
> and
> simple as possible. This will increase the odds that someone on the
> list
> will take the time to look at it.
> 
> Paul Martz
> Skew Matrix Software LLC
> http://www.skew-matrix.com
> +1 303 859 9466
> 
> -----Original Message-----
> From: osg-users-boun...@lists.openscenegraph.org
> [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of
> Konkle,
> Daniel T AMRDEC/Dynetics
> Sent: Tuesday, April 14, 2009 9:32 AM
> To: OpenSceneGraph Users
> Subject: [osg-users] any help would be appreciated - updating a group
> ofcameras (UNCLASSIFIED)
> 
> Classification:  UNCLASSIFIED
> Caveats: NONE
> 
> I am new to OSG and I am stuck and need help/insight.
> 
> I'm created a Heads up display by extending the group class.
> 
> My Hud is an osg::Group and has several cameras in it.
> 
> The Hud displays fine.
> 
> The Hud class has several variables that control how information is
> displayed such as the heading.
> 
> I've written a callback and attached it to my Hud.
> 
> After attaching my Hud to my scene, I want to the callback for the Hud
> to
> change its variables but the cameras in my Hud don't use the updated
> variables to redraw themselves.
> 
> I've used osg::notify to show that the callback is getting executed
and
> to
> print out the value of the heading variable I am changing.
> 
> I realize I'm not showing any code only because there is so much of
it.
> 
> Can anyone give me an idea of where to look to figure out why all the
> children in my HUD class aren't updating?
> 
> My HUD (an osg::Group) class constructor creates several cameras that
> draw a
> variety of elements on the screen.
> 
> 
> I've looked through most of the examples but I'm not sure what I'm
> looking
> for.
> 
> Any help would be greatly appreciated.
> 
> Danny Konkle
> Classification:  UNCLASSIFIED
> Caveats: NONE
> 
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-
> openscenegraph.org
> 
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-
> openscenegraph.org
  Classification:  UNCLASSIFIED 
Caveats: NONE

Attachment: osghud.cpp
Description: osghud.cpp

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to