Yes, it will be more simple in that case to change the viewpoint.

Cheers,

Florin

-----Ursprüngliche Nachricht-----
Von: Nikolaj Uzunow [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 3. Februar 2003 14:20
An: [EMAIL PROTECTED]
Betreff: Re: [JAVA3D] AW: [JAVA3D] AW: [JAVA3D] two Alphas for
oneInterpolator - is itpossible?


Florin Herinean wrote:
> 
> The docs for the RotationInterpolator states: "The interpolated angle is
> used to generate a rotation transform about the local Y-axis of this
> interpolator." So, using RotationInterpolator ONLY rotates around the
local
> Y-axis! For what you want to do, you need two RotationInterpolators, the
> first one is ok, rotates around Y axis, but for the second one you need an
> intermediate transformgroup which transforms the x axis into the y axis.
> Alternatively, write your own interpolator.

yes, that's true! I have an additional transformation to rotate over X.
let me return to this discussion in few hours from now from home, where my
PC
with the exact code is :-)
I'll paste these few lines of code.

I see things are going to a new Interpolator... or, maybe it would be easier
to
change the viewpoint to have this cube reviewed from all 360 degrees...?

I have a PC camera which I have programmed to capture few frames every
second
(using JMF, of course :-) and I'm detecting the coordinates of some object
on
the image. next, I wanted to make the cube rotated accordingly, as if I look
on
it from any point around...


cheers,
Nikolaj

> 
> Cheers,
> 
> Florin
> 
> -----Ursprüngliche Nachricht-----
> Von: Nikolaj Uzunow [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 3. Februar 2003 13:15
> An: [EMAIL PROTECTED]
> Betreff: Re: [JAVA3D] AW: [JAVA3D] two Alphas for one Interpolator - is
> itpossible?
> 
> hi Florin,
> 
> let me try to be a bit more clear...
> but first - J3D has just a marginal presence in my project (just to
> visualize
> the effects), so forgive me if I'm missing things which wouldn't be missed
> by
> J3D expert :-)
> 
> hmm...so, I have an Alpha which is a source of values defining a rotation
> over
> the X axis.
> next, another Alpha generates values for the Y rotation.
> 
> I was thinking whether it is possible to make one cube rotating over X and
Y
> with these two Alphas, using one RotationInterpolator?
> or, this was a bad design to make Alphas - maybe, some kind of
> Transformation3D
> is needed here, or so...?
> 
> cheers,
> Nikolaj
> 
> Florin Herinean wrote:
> >
> > Can you be a little more clear ?
> >
> > You can write your own Interpolator, so it can use as many alphas as you
> > like. The stock interpolators only use one alpha. If you want to use the
> > stock interpolators with more alphas, than the best approach is to
create
> > your own alpha which depends on the other alphas that you provide. In
your
> > alpha, then you define the rules to combine the values of the other
> alphas.
> >
> > Cheers,
> >
> > Florin
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Nikolaj Uzunow [mailto:[EMAIL PROTECTED]]
> > Gesendet: Montag, 3. Februar 2003 12:34
> > An: [EMAIL PROTECTED]
> > Betreff: [JAVA3D] two Alphas for one Interpolator - is it possible?
> >
> > hi All,
> >
> > is it possible to make an interpolator (for example,
RotationInterpolator)
> > dependent not on one Alpha object, but on two Alphas?
> > I've defined my own class extending Alpha, but returning values which
are
> > not
> > time-based but depend on another parameters.
> > I need to make a 3D object to respond to two Alphas. or, maybe it would
be
> > easier to apply another transformation to my obj which in order may take
2
> > Alphas as an input...?
> >
> > what do you think?
> >
> > thanks in advance for any suggestions,
> > Nikolaj
> >
> >
>
===========================================================================
> > 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".
> 
>
===========================================================================
> 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".

Reply via email to