luigi,

The example HelloJava3dc.java provides a simple
illustration on how to use rotation interpolator.
It shows that  you need to use an alpha class
generating a time varying function and rotatioon interpolator
As a starting try to execute it and adapt it to your application.

for example to rotate the object at 15 degrees/second just one time
you may need to set  the parameters of the alpha function (generating the
time varying function) at  1 and 360x1000/15.

Hope this helps


Naoufel


On Thu, 10 Feb 2000, luigi wrote:

> i know this, my problem is with rotationInterpolator, i don't know how it works
> very well. I need for example the code to rotate an object arround the X axis
> 15 degrees in one second just one time. I know this might be a very simple
> question but i don't know how to do it.
> I know how to iteract with the objects in my world but my problem is to do it
> in an animation.
>
> thanks in advance
>
> "Kasparian, Raffi J." wrote:
>
> > As an example, to manipulate an arm with hand and fingers, you might set up
> > your tree like this:
> >
> > armTG
> > |__armShape
> > |__handTG
> >    |__handShape
> >    |__thumbTG
> >    |  |__thumbShape
> >    |__fingerTG1
> >    |  |__fingerShape1
> >    |__fingerTG2
> >    |  |__fingerShape2
> >    |__fingerTG3
> >    |  |__fingerShape3
> >    |__fingerTG4
> >       |__fingerShape4
> >
> > Any individual finger can be moved by the TG directly above it, the whole
> > hand can be moved via handTG and the entire arm can be moved through armTG.
> >
> > -----Original Message-----
> > From: Drakein of EiT [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 09, 2000 1:14 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JAVA3D] rotationInterpolator
> >
> > I'm curious to how to go about this too.  Actually, I just need to define
> > some animations in advance that will move parts of a model to appropriate
> > positions.  For instance, an animation of a figure taking two steps to be
> > looped as the animation for walking.
> >
> > Is it possible to some how "group" different shapes together, so that they
> > can be moved as one body, but still retain the ability to select one of the
> > shapes to move for an animation?  Or is there some easy principle that both
> > Luigi and I are over looking?
> >
> > Thanks
> > -Drakein-
> >
> > Luigi <[EMAIL PROTECTED]> Wrote:
> > >Hello all.
> > >I have a problem with the animations.
> > >I want to animate a robot arm with for example 3 articulations. When i
> > >push a button i want to rotate one of this articulations a number of
> > >grades in the axis i choose. How i can do that?
> >
> > ________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> >
> > ===========================================================================
> > 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".
> >
> > ===========================================================================
> > 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".
>
> ===========================================================================
> 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".
>

--
**********************************************************************
Dr.  Naoufel Werghi                       Email [EMAIL PROTECTED]
Department of Computing Scinces           Tel: 44 141 330 35 98
Lilybank Gardens                          Fax: 44 141 330 49 13
University of Glasgow
Glasgow  G12 8QQ,  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".

Reply via email to