Hi Benjamin,
If you have dynamic data then its best to turn off display lists via:
geometry->setUseDisplayList(false);
Or if its not a common update just use:
geometry->dirtyDisplayList();
To force a recompile.
Robert.
On 6/26/07, Benjamin Cabut <[EMAIL PROTECTED]> wrote:
Hello,
I use the chessboard of the sample "osganimate".
And I would like to add a Callback that get some value in a LUA script
to change the color of the Chessboard.
I get the geometry from the Drawable, then the colorArray.
I change the color ( (*colors)[0].set())
But the color of the ChessBoard is not affected...
I tried in a UpdateCallBack and in a DrawableUpdateCallback, with same
effect, and I noticed that I only go once in the DrawableUpdateCallBack
Seems the color is memorized and I can't say the system it changed...
Could you explain me why? and how should I do?
Regards.
_______________________________________________
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/