Hi Lan

I wrote a mousebehavior class that may help you.
I also add it to the viewplatformtransform
you can specify the translations/rotations as you mention (so without input from the 
user).
However, it is a behavior class that is specifically written for my application so it 
navigates maybe a bit strange for a regular user ;-).
You can drag yourself forward with the right mouse button while your altitude remains 
the same. So only your x-axis direction affects the way you move.
Middle mousebutton drag changes your altitude and left mousebutton is to look around.
You can also invert the input for rotation and translation and you can also set the 
speedfactors
I believe it's a good starting point to write your own behavior.

It was my first behavior class , so I don't know if it is really well written.
Anyone who has comments, please send me a message!
Also note that I had to replace the middlemousebutton mask with an integer since those 
values don't match. Does anyone know what's the reason for that?

good luck

mattie

8/23/01 3:15:09 PM, Lan Wu-Cavener <[EMAIL PROTECTED]> wrote:

>Since I have not seen any response to this mail, I will give my opinion.
>This question may be for Java3D team.
>
>I wish Java3D provides us with an interface that programmer can specify the
>x and z translations for the Behavior. This is similar to that a programmer
>can activate a button press without the user clicking the button.
>
>When zooming in any direction, since viewerPlatform roation angle can be
>accessed by transformGroup, the x and z translation components of the
>zoomed distance are known. If Java Behavior can take these input rather
>than those got from user mouse input, the task of zooming in random
>direction can be achieved by maneuvering viewer transformGroup only.
>
>Lan
>
>
>
>
>
>
>At 03:03 PM 8/22/2001 -0400, you wrote:
>>Hi,
>>
>>I have been struggling with this for a week. I was wondering if any one
>>having the experience and solution to my problem. Since my 3D scene
>>contains huge amount of objects, it is faster to navigate the scene by
>>modifying the viewer's transformGroup. I know that default Java Mouse
>>Behavior only let me walk in the X, Z direction in the object
>>transformGroup (coordinates). This works fine when I don't turn around
>>(rotate around y). Eric website has suggested to do some extra work with
>>object transformGroup to deal with viewing in random angles.
>>
>>My question is that is it possible to avoid touching the object
>>transformGroup, but work with viewer's transformGroup solely to achieve the
>>neviagting in any direction?
>>
>>Thanks in advance!
>>Lan
>>
>>Lan Wu-Cavener
>>Research Associate and Programmer
>>Dept. of Landscape Architecture
>>
>>===========================================================================
>>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>>of the message "signoff JAVA3D-INTEREST".  For general help, send email to
>>[EMAIL PROTECTED] and include in the body of the message "help".
>
>Lan Wu-Cavener
>Research Associate and Programmer
>Dept. of Landscape Architecture
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
>


MouseMoveBehavior.java

Reply via email to