Re: [osg-users] About Changing Parental Nodes?

2008-07-24 Thread Ümit Uzun
Hi there, Firstly thanks for useful replies. I know, this programmatic operation is clumsy but I don't know any way to reorganize my 3d model structure. So I am trying to handle my model's components and then I will write the created scene in osg format. Then I can traverse the scene easily. I su

Re: [osg-users] About Changing Parental Nodes?

2008-07-24 Thread David Spilling
If I understand your problem correctly, the general approach would be to compute the coordinate system matrix local to a group prior to a move (with computeWorldToLocal) - call it A - then to move the node, recompute the coordinate system in the new location - call this B - and apply the correct ma

Re: [osg-users] About Changing Parental Nodes?

2008-07-24 Thread Alberto Luaces
El Jueves 24 Julio 2008ES 09:39:40 Vincent Bourdier escribió: > If you want your node to stay a the same place, you will need to add it in > an other place, or you will have to move it first at the opposed > transformation of your matrixtransform nodes, and after that add it to > them... ...or lea

Re: [osg-users] About Changing Parental Nodes?

2008-07-24 Thread Vincent Bourdier
Hi, When you put a node under a matrixTransform, this node will be deplaced and transformed depending on the MatrixTransform. This behavior is totaly adapted to the scene graph. If you want your node to stay a the same place, you will need to add it in an other place, or you will have to move it