On Tuesday, Ben wrote:
From: Ben Logan <[EMAIL PROTECTED]> Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [JAVA3D] Animation etc Date: Tue, 7 Dec 2004 09:33:45 -0000
Hello
I was wondering what the easiest way of achieving the following is...
Say I have a loop
for (int i=0; i < 5; i++){ //perform some transformation }
Obviously with the default java3d configuration it will just perform all these transformations and then show you the final result. What is the simplest way of manually talking to the renderer in order to view each individual transformation in a sequence...kind of like flip-book animation?
Thanks
******************************************** Ben Logan - Software Engineer RCID Stephenson Building Newcastle Upon Tyne NE1 7RU www.rcid.ncl.ac.uk ********************************************
=========================================================================== 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".
Ben,
I recommend creating a Behavior class that is triggered by some AWT event. Let the Behavior class carry out each transformation.
Then let the loop dispatch the appropriate event (ie. Component.dispatchEvent(...))
You might need to create a thread delay of a "do nothing" loop inside the main loop to allow Java3D enough time to react.
Cheers,
Gobe Hobona Research Student University of Newcastle upon Tyne
=========================================================================== 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".