Barry,

A fellow Naval Architect I see.
Are you calculating the vessel(s) response yourself - using?

I wrote a similar application a couple of months back to evaluate JAVA3D.
If you would like to see the application you can download it from our WEB
site at:

http://www.wsatkins.co.uk/asas-aqwa/download/aqwa_sequence_java_download.htm

The ship motions are read from a .POS file created by our hydrodynamics
software AQWA.  The application is limited to a single vessel in a regular
wave, however we may develop it further to include the full range of AQWA
results (multiple structures moored or articulated, irregular/diffracted
sea, pressure plots etc).  Any future development of a JAVA version will be
in applet form as to allow our users the ability to display results on the
WEB.
We also have a Windows based GUI which handles all these results - however
the play-back is not real-time - hence the investigation of a real-time
system such as JAVA3D using OpenGL).

I am not sure why you are reluctant to thread the animation.  I think you
will find that this is the most efficient way to create a 'media-player'
type application with full control.  The 'AQWA Sequence Player' (above) has
a 'frame slider/pointer' which advances in a separate thread (+ve and -ve
advance).  The slider is visible at the bottom of the application and can be
altered manually by dragging the pointer with the mouse or advanced by using
one of the play-back buttons.  When any of the playback buttons are pressed
the slider is either advanced or stopped, depending on the button.  Any
alteration to the slider will notify the J3D scene-graph to update according
to the present frame.  Because the slider is advancing in another thread the
user still has control over the rest of the application.

Let me know if you would like to see the code for the slider, and I will
send it to you.

Best regards,

Andy Phelps

===============================================================
WS Atkins Engineering Software
Woodcote Grove
Ashley Road                   Tel:  +44 (0)1372 726 140
Epsom                         Fax: +44 (0)1372 740 055
Surrey                        URL:
http://www.wsatkins.co.uk/wsa/core-pages/software.htm
KT18 5BW                      E-mail: [EMAIL PROTECTED]
England
===============================================================

date sent: 24/05/99 09:15 (QA purposes)



-----Original Message-----
From:   [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Barry Walsh
Sent:   21 May 1999 18:09
To:     '[EMAIL PROTECTED]'
Subject:        [java3d] Predetermined Motion Animations

Hello all,

  I am animating a small number of objects from rotations and translations
determined from a file. At each time step, a full range of motions occurs

roll, pitch, yaw, forward, sideways, up). Manipulation of the view angle
and zooming in/out are also available via mouse actions and buttons. The
motions are retrieved from a file and placed into a vector. They are then
retrieved from the vector and applied to the animation inside a loop.

 The problem is this: when the animation is started (by a button), I
completely lose the ability to manipulate the scene with mouse or buttons,
including stopping the animation. I have to wait for it to run through all
the motions and then I regain the ability to use the GUI components.

  The question is: is there a simple way of regaining access to GUI
components without having to thread out the whole GUI and the animation,
and trade time between them?

  Any ideas welcome.

Cheers,

B

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to