[osg-users] setDataVariance STATIC messes up model

2013-01-24 Thread Josep
Hi,

I have been loading models into OSG with readNodeFile and setting 
“setDataVariance” to STATIC. 

I have never had a problem with this. However, there are a couple of 3ds 
models, that look just fine in Max that are being “modified” by OSG. I debugged 
my app and found that if I do not set “setDataVariance”, does models look fine, 
just like in MAX. 

What could be happening here? 
Is there something a could be doing after in the scene graph that could mess 
some meshes if  set to STATIC?

Thank you!

Cheers,
Sahex

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=52083#52083





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] setDataVariance STATIC messes up model

2013-01-24 Thread Robert Osfield
Hi Sahex,

On 23 January 2013 11:04, Josep sar...@gmail.com wrote:
 I have been loading models into OSG with readNodeFile and setting 
 “setDataVariance” to STATIC.

 I have never had a problem with this. However, there are a couple of 3ds 
 models, that look just fine in Max that are being “modified” by OSG. I 
 debugged my app and found that if I do not set “setDataVariance”, does models 
 look fine, just like in MAX.

 What could be happening here?
 Is there something a could be doing after in the scene graph that could mess 
 some meshes if  set to STATIC?

Sounds like the Optimizer is being used, and is modify the scene graph
using the DataVariance as guidance as to what it can optimizer and has
to leave alone.  It could also be that there is threading issue but
this would only happen if you were dynamically modifying the scene
graph.  What the specific isssue is in your case one can't say as
there really is too few specific details about what you are doing.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org