2009/12/31 Martin Beckett <m...@mgbeckett.com> > I am trying to draw a rubber band wioth the mouse around a selection > I get the mouse position, convert into world coords (assumign a plan view) > then add the new point to the geometry. > I then call osg::Util Tessellator to build the selection into a polygon. > > This works, but only for the first 4 points! After that I can continue to > draw a line but not a filled polygon? > > You probably need to clear the display list, try
_geometry->dirtyDisplayList(); If that works and you are updating it every frame, you may as well turn display lists off. _geometry->setUseDisplayList(false); -- http://www.ssTk.co.uk
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org