The PrirmitiveSet::dirty() only has an affect is you are using VBO's, and only will be required if you use VBO's and modify the primtive sets in question.
If you are just modifiying vertex data then a ditryDisplayList should suffice.
Robert.
On 9/7/06, Bill Prendergast <[EMAIL PROTECTED]> wrote:
Hmm... I suppose that topic name can be taken a couple different ways ;-)
I've been trying to trace PrimitiveSet::dirty() and figured it would be safer to just ask...
1) If I change a vertex position of a Primitive, does calling PrimitiveSet::dirty() yield
the same eventual results as calling the parent Geometry's dirtyDisplayList() or
is it a different beast altogether?
I cannot easily see if changing the _vboList's _modifiedCount causes the
vertex change to be reflected into OGL. Not sure if changing a vertex position
requires PrimitiveSet::dirty, Geometry::dirtyDisplayList, or both to be done right.
2) Is it safe to assume that if changing a vertex color, texture coordinate, or
normal requires only a display list dirtying, but if changing the vertex position,
that a dirtyBound should also be called?
Note that I'm talking about occasional modifications, not "dynamic geometry"
that would warrant turning off the display lists. I'm writing a wrapper that accepts
changes to vertices and am trying to make only the necessary dirty() calls.
Thanks,
Bill
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
