Re: [info-performer] Multipipe stereo input

New Message Reply Date view Thread view Subject view Author view

From: Dan Johnston (dan.johnston++at++nrc.ca)
Date: 08/12/2002 05:14:06


"Nguyen, Tien" wrote:

> hi pf,
>
> I have a problem interacting in multipipe mode and was wondering if someone
> could provide some insight.
>
> I have my application running its display in 3 pipe for 3 screens, each with
> its own 2 channels for stereo.
>
> I am using the center screen as the main pipe. The displayed is fine and i
> am able to select 3d models using the mouse cursor in the center screen.
> However, when i tried to click models from the left/right screen, the
> display on the three screen becomes unsynchronized or only the left screen
> response or sometime it nothing response. Has anyone encounter a similar
> problem? what are the common mistake that's causing this?

Look at the source code for the pfUtil code 'input.c'. You will
discover that all keyboard and mouse input done using the
standard pfUtil functions will only respond to the 'main'
pfPipeWindow (in your case the center channel I guess).
(Note source is in /usr/share/Performer/src/lib/libpfutil)
You can 'mouse down' in the main window and drag to
anywhere in the display, but keyboard and 'mouse down'
events in any other window or display are ignored.

I have tried many times to think of an elegant way to get
around this. I have tried to make use of the multi channel
features of this input code (pfuInitMultiChanInput for
example) but it does not do what I want - which is to
accept input keyboard and mouse events from several
selected pfPipeWindows. I eventually made a copy of
'input.c' and modified the source to define the window set
that I needed.

Hope this helps!

--
      ___|__    |
      /  |  \   ||\      Daniel (Dan) Johnston
     /___|___\  || \     Dan.Johnston++at++nrc.ca
    _____|____  ||  \    National Research Council of Canada, London, ON
    |    |    | ||   \   Integrated Manufacturing Technologies Institute
\___|    |    | ||____\  Tel: (519) 430-7081   Fax: (519) 430-7090
 \_o_\___|____|_|______\_    Inst: http://www.nrc.ca/imti
  \                o /    These opinions are my own! Not those of NRC.
   \________________/    Virtual Reality:
                        http://www.nrc.ca/imti/vetc/home.html
 More Tall Ships - Fewer Computers!


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Aug 12 2002 - 05:14:13 PDT

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