Re: [osg-users] Updating a PositionAttitudeTransform node from another PositionAttitudeTransform node

2019-10-09 Thread Voerman, L.
I'm not sure what you are trying to accomplish, maybe a custom osg::Node::ComputeBoundingSphereCallback can help; osg::Node::setComputeBoundingSphereCallback(cb) will call a custom callback when a node or it's children changes. Laurens. On Wed, Oct 9, 2019 at 3:41 PM Dan johansson wrote: > Hi!

Re: [osg-users] Updating a PositionAttitudeTransform node from another PositionAttitudeTransform node

2019-10-09 Thread Dan johansson
Hi! Thanks for the reply, i understand the issue. I'm not really understanding why this isn't built in automatically though. This simple code seemed to do the trick even with multiple Pat's chained Code: osg::NodePathList fullNodePath = node2->getParentalNodePaths(); osg::NodePath

Re: [osg-users] Updating a PositionAttitudeTransform node from another PositionAttitudeTransform node

2019-10-09 Thread Voerman, L.
Hi Dan, I think your expectations are off. pose2 gets the postition from the node2 matrix, not the world postition. to retrieve the world position you need to have a nodepath, so you can call osg::computeLocalToWorld( fullNodePath ); In your case this might be just the product for the node1 matix

[osg-users] Updating a PositionAttitudeTransform node from another PositionAttitudeTransform node

2019-10-09 Thread Dan johansson
Hi, I've ran into a seemingly easy problem that i have failed to find an answer for. I've simplified the problem here to quickly describe my question. I'm setting a Pat node as parent to another Pat node and re positioning it. The updated position is not translated to the child and i wonder