My bad..
Data size is size of vector.. (Vec3 == 3)..
Still have problems updating geometry though, even though im doing this after
update(maybe a little overkill..) and also try to create a new VecArray..
_drawArrays->dirty();
_vertices->dirty();
_line->setPrimitiveSet(0,_drawArrays.get());
_line->setVertexArray(_vertices.get());
_line->dirtyDisplayList();
_line->dirtyBound();
_lineGeode->setDrawable(0, _line.get());
_lineGeode->dirtyBound();
dirtyBound();
I guess The error lies somewhere else..
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: 2. mai 2008 13:28
To: [email protected]
Subject: [osg-users] osg::Vec3Array _dataSize
Why is the _dataSize used? Shouldn't the size of the std vector be used
instead??
If i want to update the vertex array the _dataSize is not changed SET ANYWERE
except in the constructor, but i think it's used by primitive_set and geometry
for rendering...
Erlend
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org