From: Marc Mendez (mmendez++at++silicon-worlds.fr)
Date: 05/21/2002 01:56:09
Thanks Allan for having forwarded my message.
I ve succeeded in enabling a per-channel input processing.
To do this, simply do a pfuInitMultiChanInput() to enable the event
queueing.
Use a pfuMouse and pfuEventStream structures per channel.
Then in a update_events() function do a pfuGetMouse and a pfuGetEvents for
each channel but apply the
pfiTDFXformer changes only for the channel whose pipe window is
corresponding to the mouse.inWin field.
Here is a bit code :
for(int i = 0; i < numchan; i++)
{
pfuGetMouse(&mouse[i]);
pfuGetEvents(&eventstream[i]);
if(chan[i]->getPWin()->getWSWindow() == mouse[i].inWin)
pfiUpdateXformer(xformer[i]);
}
The problem here is that the get events routines in PFU are using a single
input structure shared by every channel (have a look at input.c) ... so you
have to deal with that sharing by hand.
Maybe Allan in a future release of Performer ????
Have a good pfDay,
Marc.
> -------- Original Message --------
> Subject: pfInput and multi(channels/pipes/windows)
> Date: Fri, 17 May 2002 11:59:11 +0000
> From: Marc Mendez <mmendez++at++silicon-worlds.fr>
> Organization: Silicon Worlds SA
> CC: "'info-performer++at++sgi.com'" <info-performer++at++sgi.com>
> References: <CA07770D5D31C04F9C942809BAE5970E01A128B8++at++usilms10.ca.com>
> <3DA07871.618001A5++at++ei.tum.de>
>
> Hello performers,
>
> I am coding a new app that can open several scenes in several pwindows
> ... but one pipe for the moment.
>
> I d like the input to be processed independantly for each channel (I m
> using pfiTDFXformer and autoInput(), but not channel groups and share
> modes).
>
> Using pfuInitMultiChanInput(), I m getting totally synchronized on every
> window even if the scene is not the same on the different channels.
>
> Using pfuInitInput() argue me with errors when several channels are
> input-enabled : " pfuInitInput has already been called, returning. ",
> then only the first channel opened has input enabled.
>
> Has anyone been facing this already ???
>
> pfThanks,
>
> Marc.
>
> --
> Marc Mendez
> Silicon Worlds SA
>
> 12, rue de Chatillon
> 75014 Paris
> Tel : +33 (01) 53 90 11 13
> Fax : +33 (01) 53 90 11 12
>
> --
> Allan Schaffer allan++at++sgi.com
> Engr. Manager, Core Rendering 1-650-933-2160
> Silicon Graphics http://www.sgi.com
-- Marc Mendez Silicon Worlds SA12, rue de Chatillon 75014 Paris Tel : +33 (01) 53 90 11 13 Fax : +33 (01) 53 90 11 12
This archive was generated by hypermail 2b29 : Tue May 21 2002 - 01:56:56 PDT