[osg-users] osg::Vec3Array _dataSize
erf at Teleplan.no
erf at Teleplan.no
Fri May 2 04:56:29 PDT 2008
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: osg-users-bounces at lists.openscenegraph.org [mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of erf at Teleplan.no
Sent: 2. mai 2008 13:28
To: osg-users at lists.openscenegraph.org
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080502/deb885ef/attachment.htm
More information about the osg-users
mailing list