If you use osgViewer::Viewer::run(), then you're rendering constantly and don't need to do anything else to tell it to redraw.
If you're using osgViewer::Viewer::frame(), then you need to call that function. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Allen Saucier Sent: Thursday, April 16, 2009 8:03 AM To: [email protected] Subject: Re: [osg-users] Dinamic Line Drawing Wow, that easy? ha, ha... Paul, how does the "system" know when to redraw after I've added to the vertices? Don't I have to tell it to redraw after I've added a vertex and up'ed the vertex counter? -vertex counter == osg::DrawArrays *vad; -new vertices added to *vad w/ push_back() cmd Paul Martz wrote: > setUseDisplayLists( false ). > > Paul Martz > Skew Matrix Software LLC > http://www.skew-matrix.com > +1 303 859 9466 > > -----Original Message----- > From: > [mailto:] On Behalf Of Allen > Saucier > Sent: Wednesday, April 15, 2009 3:44 PM > To: > Subject: Re: Dinamic Line Drawing > > Thanks Paul! I didn't understand that in the previous postings. > Would you mind telling me how to "disable" the display listings for this geometry? > > > ** PAUL wrote *** > Your geometry is probably using display lists (on by default). > setVertexArray will dirty and rebuild them. A more efficient solution > would be to disable display lists. If you do that, you should be able > to change individual elements of your array and not have to set the entire array. > > Paul Martz > Skew Matrix Software LLC > http://www.skew-matrix.com > +1 303 859 9466 > > ------------------------ > ---- > Allen > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=10279#10279 > > > > > > _______________________________________________ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph. > org > > _______________________________________________ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph. > org > > ------------------ > Post generated by Mail2Forum ------------------------ ---- Allen ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=10304#10304 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

