Dan Hagens (hagens++at++ctc.com)
Mon, 22 Sep 1997 16:50:11 -0400
I am running a 3 pipe application which I would like to have in stereo. I am
running this in a CAVE so I need 3 different views. For each pipe I have 2
channels so altogether I have 6 channels. For each pipe I have a left channel
and a right channel so I can view it in stereo. Everything lines up properly
when I move around in mono mode but when I try to run it in stereo, the views
don't match up. Here is a piece of code where I am setting the stereo offset
up:
eyeAngle = PF_RAD2DEG(
atanf(Iod *.5f /(Converge * (far - near) + near)));
// left eye
pfSetVec3(hprOffsets, -eyeAngle, 0.f, 0.f);
pfSetVec3(xyzOffsets, -Iod/2.f, 0.f, 0.f);
pfChanViewOffsets(Shared->leftfront, xyzOffsets, hprOffsets);
pfChanViewOffsets(Shared->leftside, xyzOffsets, hprOffsets);
pfChanViewOffsets(Shared->leftfloor, xyzOffsets, hprOffsets);
// right eye
pfSetVec3(hprOffsets, eyeAngle, 0.f, 0.f);
pfSetVec3(xyzOffsets, Iod/2.f, 0.f, 0.f);
pfChanViewOffsets(Shared->rightfront, xyzOffsets, hprOffsets);
pfChanViewOffsets(Shared->rightside, xyzOffsets, hprOffsets);
pfChanViewOffsets(Shared->rightfloor, xyzOffsets, hprOffsets);
I am certainly no expert at Performer so any help would be greatly appreciated.
Thanks.
--
**********************************
* Daniel J. Hagens, Jr. *
* Concurrent Technologies Corp. *
* Assistant Software Engineer *
* (814) 269-6891 *
* hagens++at++ctc.com *
**********************************
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:58 PDT