[osg-users] transforming between coordinate systems of two subgraph

Christian Buchner christian.buchner at gmail.com
Thu Jul 16 08:23:01 PDT 2015


Hi,

I was having some problems with a coordinate transformation.

root
matrixTransformA      matrixTransformB
subgraphA                subgraph B

I have two subgraphs in my scene, each of which is a child of a unique
MatrixTransform.

I now have to draw a line between an element from subgraph A to connect to
an element of subgraph B. I've decided to add this line into subgraphA as a
drawable - so both start and end point of this line have to be specified in
my "A" coordinate system.

How would I transform a coordinate from subgraph B coordinate system into
the equivalent
coordinate valid within subgraph A, ideally using utility functions
provided by the OSG framework ? I would like to do that with minimal amount
of code.

Excuse me for asking a basic linear algebra question, but I seem to be
stuck for good on this problem.

Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150716/eb254151/attachment-0002.htm>


More information about the osg-users mailing list