Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Graphics APIs > SoStereoCameraK...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 77 of 99
Post > Topic >>

SoStereoCameraKit Orientation Problem

by tom_kuehnert@[EMAIL PROTECTED] Nov 8, 2006 at 01:53 AM

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...)
 




 1 Posts in Topic:
SoStereoCameraKit Orientation Problem
tom_kuehnert@[EMAIL PROTE  2006-11-08 01:53:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Aug 30 4:12:59 CDT 2008.