[osg-users] Updating scene properties instead of recreating it each frame
Andreas Mueller
andiadb at gmx.de
Mon Jul 2 00:49:46 PDT 2018
1.) Make sure you have set
Code:
geometry.setDataVariance(osg::Object::DYNAMIC)
2.) To clear the "cached" data if you use display lists:
Code:
geometry.dirtyDisplayList()
or if you use vertex buffer objects:
Code:
vertices.dirty()
Cheers,
Andreas
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74237#74237
More information about the osg-users
mailing list