Hi,
first of all: I am very new to the Studierstube/Inventor stuff - so I
am maybe asking noob-stuff...
I'm working on a Studierstube project and have to modify the camera in
there automatically (not tracked or desktop-controlled).
1. I dont know which camera to take:
Right now i am using a camera which I got from the UserKit:
SoStudierstubeViewer* viewer =
SoUserManagerKit::getInstance()->getUserKit(UserID.getvalue())->getDisplay()->getViewer();
SoStereoCameraKit* scam = viewer->getStereoCameraKit();
-> i dont like that call too much because I think there is an easier
way to get access to the cameras used by the viewer.
2. if i want to modify this stereocamera in orientation, I dont know
how...
I can change translation and rotation, but in the end I want to do
several rotations one after another (and I dont know how to calculate
that to a rotation on 1 axis+value). It would be easier if i could use
the SoTransform::pointAt method here, but it doesnt give me the right
results when trying
SbVec3f camFrom(...), camTo(...);
scam->getTransform()->pointAt(camFrom,camTo);
I guess I have a false imagination on what the pointAt of a SoTransform
does...
(3. could I access the Left/Right Cam separetly and use their
position/pointAt methods?
I guess I'd to care about the offsets then to keep it stereo...)