From: Steven J. Rak (rak++at++ll.mit.edu)
Date: 05/30/2001 11:23:42
Hi Folks -
I'm developing performer stereo visualization on a multipipe Onyx2.
My implementation is basically a customized version of perfly with
some old example code from stereo.c (~10/97?) folded in. This uses
quad-buffered stereo with a dual channel group (left/right eye),
which I've customized to handle the multipipe configuration. While
navigating works fine, I'm having difficulty with changing viewpoints
or path playback since I have to manage left and right eye channels
separately, even though I've initialized and attached the channels
like this:
for (i=0; i<NumChans; i++)
{
ViewState->chan[i] = new pfChannel(pfGetPipe(i));
ViewState->rightEye[i] = new pfChannel(pfGetPipe(i));
Viewstate->chan[i]->attach(ViewState->rightEye[i]);
}
...
/* Attach channels to master channel to form a channel group. */
for (i=0; i<NumChans; i++)
if (ViewState->chan[i] != ViewState->masterChan)
ViewState->masterChan->attach(ViewState->chan[i]);
..
Discussing this recently, it was suggested that this might not be the
best approach and/or that I'm using "old-style" stereo. Could anyone
comment on whether this is true and what is "new-style" stereo? Any
code examples using new-stereo (or any stereo) would be greatly
appreciated!
TIA,
- Steve
--Steven J. Rak - - rak++at++ll.mit.edu - Voice: 781.981.3723; VisLab: .3726 Advanced Networks and Applications Group: 781.981.7650; Fax: .2874 MIT/Lincoln Laboratory - - 244 Wood St - - Lexington, MA 02420-9185
This archive was generated by hypermail 2b29 : Wed May 30 2001 - 11:23:12 PDT