Has anyone figured out how to draw only the "last" segment that was added? I've still not figured that out and I've got over 15,000 small line segments in my vertex array
osg::ref_ptr<osg::Vec3Array> m_ov3aLineVerticesData; And from what I can tell: m_ov3aLineVerticesData->push_back(osg::Vec3(x2,y2,z2)); // curr position m_podreTrailDrawElements->setFirst(0); m_podreTrailDrawElements->setCount(m_ov3aLineVerticesData->size()); m_ogeomTrailGeometry->dirtyBound();// forces needed boundary recalc just causes the "ALL" the vertices to be redrawn. Is there a more efficient way? I'd like to draw only the last "line," which would be the line segment between the last vertex and the new last vertex just added. Does anyone know if there is a way to do that? Thx! :) ------------------------ Allen ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=12688#12688 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org