Hello Falco,

On 03/24/2011 11:36 AM, Falco Hirschenberger wrote:
> * I had a problem with the rotation of the parts, as the pivot-point was
> not on the joint of the arm, so I edited the file with Blender, moving
> the pivot-points. That worked, the rotation was correct, but the
> transformations were in local coordinate system and did not accumulate
> from one part to another.
>
> I realized that the VRML file has a Transformation (I assume to move the
> part to its position), and then a geometry part inside it. Is the
> Transformation automatically added as Core of the Node?

AFAIU there should be Node with a Transform core to hold the 
transformation with a child Node that has a Geometry core.

> How can I forwarded the transformation of a parent joint to it's child?

in the OpenSG scenegraph transformations are accumulated along the path 
from the root to leaf nodes. Are the joints of the arm children of each 
other in the VRML file?
Take a look at the SceneGraphPrinter in 
Source/System/FieldContainer/Misc/OSGFieldContainerUtils.h, I found it 
helpful to get a quick look at the scenegraph loaders produce, it is 
used like this:

OSG::NodeRefPtr rootNode;

OSG::SceneGraphPrinter sgp(rootNode);
sgp.printDownTree(std::cout);

You should see the segments of the arm forming a "chain" so that when 
you modify a Transform higher up in the chain everything below moves 
with it.

If that does not help in identifying the problem, would it be possible 
for you to share the VRML and/or relevant parts of your code (where you 
insert/modify the transformations)?

        Cheers,
                Carsten

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to