Stereo problem

New Message Reply Date view Thread view Subject view Author view

Dan Hagens (hagens++at++ctc.com)
Mon, 22 Sep 1997 16:50:11 -0400


Performers,

  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

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:58 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.