Re: [info-performer] Mouse interaction

Date view Thread view Subject view Author view

From: MLM Veraart (veraart++at++fel.tno.nl)
Date: 01/16/2004 07:42:31


Joost wrote:

> Hi all,
>
> I have a question concerning mouse interaction in Performer.
>
> I'm developing a Performer application in which I have to be able to
> 'travel' through a scene, ie. adjust the position/orientation of a
> pfChannel with the mouse like the Trackball motion model, only updating a
> pfChannel an not a pfDCS.
> When dragging the mouse with a mouse button pressed it should result in
> the following behaviour:
> Left mouse button: horizontal/vertical translation (in XZ plane)
> Middle mouse button: rotation
> Right mouse button: translation away from/towards the screen (in Y direction)
>
> It should also be possible to tether a pfChannel to an object in the scene
> graph. The pfChannel will always look in the direction of this object and
> still has to be able to rotate around the object.
>
> Since I'm quite new in Performer I have a few questions:
> -Should I write new Xformer classes or are the standard Performer classes
> sufficient?
> -If so: what do I have to implement for a new Xformer class?
> -If not: how can I use the standard Performer Motion models for this
> application?
>
> -Also, is there some more documentation available for mouse interaction
> besides the Getting Started Guide and the Programmer's Guide?
>
> Thanks in advance,
>
> Joost Verschuren

Take a look at the complex.C example program how the mouse movement is handled.

Mario

-- 
------------------------------------------------------------------------------
The disclaimer that applies to e-mail from
TNO Physics and Electronics Laboratory
can be found on: http://www.tno.nl/disclaimer/email.html
------------------------------------------------------------------------------


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Jan 16 2004 - 07:48:32 PST