[IGSTK-Users] two trackers and RequestSetTransformAndParent
Ray Tayek
rtayek at ca.rr.com
Sun Jul 20 00:02:13 EDT 2008
hi, i think i have two trackers working in the hello world sample and
i want to see if i am doing this in a reasonable way.
helloworld does a m_GUI->View->RequestSetTransformAndParent(
identityTransform, tracker );. but the view has only one of these
delegate things. so looking at the two views sample, he does a:
tracker->RequestSetTransformAndParent( identityTransform, mesh );
and a: m_GUI->m_View3D->RequestSetTransformAndParent( displayTransform, mesh );
it's not clear what doing a RequestSetTransformAndParent does to a
tracker, but it seems to work (one would think that the transforms in
the tools would do the right thing).
i ended up making an axes, placing the cylinder relative to the axes
and doing a:
axes->RequestSetTransformAndParent(identityTransform,m_GUI->View);
and a: tracker->RequestSetTransformAndParent( identityTransform, axes
); for *both* of my trackers.
this seems to work.
i am on the right track or i am i digging a hole?
thanks
---
vice-chair http://ocjug.org/
More information about the IGSTK-Users
mailing list