Re: pfGUI widgets with Coryphaeus EasyScene

New Message Reply Date view Thread view Subject view Author view

Mark Baranowski (baranowski++at++marklynn.demon.co.uk)
Fri, 06 Dec 1996 09:31:03 GMT


On Thu, 05 Dec 1996 19:13:32 -0500, Jeff wrote:
>Hi everyone,
>
> I am trying to build an application using Performer 1.2,
>IRIX 5.3, and Coryphaeus EasyScene (ES)3.0.
<munch>
> 2) I was able to add a panel with various buttons and slider
> bars from the PfGUI into my ES application, but it appears
> that my mouse events for any of the GUI widgets do not
> seem to be processed. In fact, ES uses the mouse events to
> drive the direction of my simulation. I made the
> pfGUIViewpoint a small section of my screen for where the
> panel is located and I did a pfChanViewpoint for the rest
> of the screen dedicated for rendering my scene.
>
> Has anyone tried mixing the pfGUI with EasyScene and
> can they help steer me in the right direction. An example
> would be greatly appreciated.

I haven't had any experience with EasyScene (so all that follows might
be a load of *!#* with respect to EasyScene), but this sounds like the
same problem we had integrating the pfuGUI routines into our Vega
application. The pfuGUI functions expect the mouse data to be stored
in a pfuMouse structure. I guess that ES reads the mouse/keyboard
events itself and makes them available to you give some API. There are
probably two approaches you can take.

1. Try to get Performer to collect the input before EasyScene.
Probably/Possibly not the approach to take, as I would guess ES may
need such input if it updates motion models or whatever for you.

2. Use the ES API to get mouse (& keyboard ?) inputs and map them into
the pfuMouse ( & pfuEvent?) structures so that the GUI routines can
use them. Note that as you are using Performer 1.2, one of the pfuGUI
routines reads the mouse and updates a local pfuMouse structure
directly. You will have to modify the code to stop this and instead
accept a pfuMouse structure which you can pass in as a parameter from
your application. (Fortunately, exactly this change was made in
Performer 2)
     
> 3) Can the pfGUI buttons support a pixmap? I would like
> part of my panel to contains buttons with pixmaps that
> look like buttons on a VCR.

No, but all the source code is there to let you create these sorts of
buttons if you are so inclined.

>Thanks in advance,
>
>Jeff Eng

Regards

Mark.

-- 
Mark Baranowski at work (baranowski++at++marklynn.demon.co.uk)
Pera, VR Division. Melton Mowbray, Leicestershire. UK.
Tel: +44 1664 501501, Fax: +44 1664 501553
===================================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:54:06 PDT

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