Re: [osg-users] osgUtil::Optimizer and osgSim::DOFTransform with data variance STATIC

2012-02-28 Thread Magnus Kessler
On Monday 27 Feb 2012 19:49:53 Jean-Sébastien Guay wrote: Hi Magnus, But maybe this question is more to the authors of osgmaxexporter. Why does osgmaxexporter unconditionally set the data variance to STATIC? What are the use cases where one would model a STATIC DOFTransform?

[osg-users] osgUtil::Optimizer and osgSim::DOFTransform with data variance STATIC

2012-02-27 Thread Magnus Kessler
We recently discovered that osgSim::DOFTransform nodes were unexpectedly removed from the scene graph by the unconditional use of the osgUtil::Optimizer in osgconv. The DOFTransform nodes were marked by our modelling tool (Max with the osgmaxeporter plugin) as STATIC. Should the optimizer

Re: [osg-users] osgUtil::Optimizer and osgSim::DOFTransform with data variance STATIC

2012-02-27 Thread Robert Osfield
HI Magnus, If you make a Transform node as STATIC then you've told the scene graph that it will never change so will be fair game for the Optimizer. You have two choices if you don't want to have the Optimizer optimize it away: 1) Don't call the Optimizer with the FLATTEN_STATIC_TRANSFORM

Re: [osg-users] osgUtil::Optimizer and osgSim::DOFTransform with data variance STATIC

2012-02-27 Thread Magnus Kessler
On Monday 27 Feb 2012 15:26:15 Robert Osfield wrote: HI Magnus, If you make a Transform node as STATIC then you've told the scene graph that it will never change so will be fair game for the Optimizer. You have two choices if you don't want to have the Optimizer optimize it away: 1)

Re: [osg-users] osgUtil::Optimizer and osgSim::DOFTransform with data variance STATIC

2012-02-27 Thread Jean-Sébastien Guay
Hi Magnus, But maybe this question is more to the authors of osgmaxexporter. Why does osgmaxexporter unconditionally set the data variance to STATIC? What are the use cases where one would model a STATIC DOFTransform? DOFTransforms are a relic of Multigen (Presagis) Creator, and in that