Re: [osg-users] Changing material of geodes/drawables during rendering - crash

2013-09-03 Thread Peter Bako
Thank you for your answers! It looks like it works. Peter -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=56084#56084 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.opensce

Re: [osg-users] Changing material of geodes/drawables during rendering - crash

2013-08-29 Thread Robert Milharcic
On 29.8.2013 15:07, Glenn Waldron wrote: For rendering, data variance only applies to Drawables and StateSets, not to Nodes. Data variance on Nodes is only honored by the osgUtil::Optimizer. So if you want to change your materials at runtime in multi-threaded mode, set the StateSet d.v. to DYNAMI

Re: [osg-users] Changing material of geodes/drawables during rendering - crash

2013-08-29 Thread Glenn Waldron
For rendering, data variance only applies to Drawables and StateSets, not to Nodes. Data variance on Nodes is only honored by the osgUtil::Optimizer. So if you want to change your materials at runtime in multi-threaded mode, set the StateSet d.v. to DYNAMIC. Glenn Waldron / @glennwaldron On Thu

Re: [osg-users] Changing material of geodes/drawables during rendering - crash

2013-08-29 Thread Robert Milharcic
On 29.8.2013 10:30, Peter Bako wrote: Hello guys. What is the correct way to change materials during rendering? What callbacks should I use, update callback? Sometimes I get a crash and I assume it is becasue of changing the material. Should I use special updateCallback on every geode/geometry

[osg-users] Changing material of geodes/drawables during rendering - crash

2013-08-29 Thread Peter Bako
Hello guys. What is the correct way to change materials during rendering? What callbacks should I use, update callback? Sometimes I get a crash and I assume it is becasue of changing the material. Should I use special updateCallback on every geode/geometry I am changing, or it is enough to use