Martin,

Not sure what the problem is, maybe you thread is conflicting with the osg
threads. You should only update the MatrixTransform during the update
traversal - or sync your thread with the update.

What you are doing - setting the MatrixTransform should just work. Try
doing it as an update callback instead of in your thread.

Brian

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
any order or other contract unless pursuant to explicit written agreement
or government initiative expressly permitting the use of e-mail for such
purpose.

[email protected] wrote: -----


To: [email protected]
From: "Martin" <[email protected]>
Sent by: [email protected]
Date: 03/06/2009 08:34AM
Subject: Re: [osg-users] BoundingSphere with radius 0

I have a geometry. But I updated the matrix in a thread:

osg::Matrix matrix = new osg::Matrix;

((::osg::MatrixTransform*)_root.get())->setMatrix(matrix);

_root is my MatrixTransform. And when I remove the line with "setMatrix" it
works fine. When I use "setMatrix" my radius is 0.  [Crying or Very sad]

Thanks

Martin

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to