------ =_NextPart_001_01C08C4A.8B66FD68
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

The RotationInterpolator completely replaces the existing transform
matrix in the target TransformGroup, including the translation
components being set to 0,0,0.
=A0
Add another transform group above the TG that holds the translation to
(3,0,0).=A0 Use this new transform group as the target for the
interpolator.
=A0
-Lee

-----Original Message-----
From: Sungye Kim [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 7:53 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Help! : rotation of object



There is a TransfomGroup node that have (3, 0, 0)) by its translation
component.=20
and then I made rotationinterpolator. Its target TG is above
TransformGroup node.=20
however the rotationinterpolator rotates at origin.=20
Why?=20
Actually, TG has translation component (3, 0, 0).=20

Transform3D t3d =3D new Transform3D();=20
t3d.setTranslation(new Vector3f(3.0f, 0.0f, 0.0f));=20
TransformGroup objRotPos =3D new TransformGroup(t3d);=20
rotInterpolator =3D new RotationInterpolator(alpha, objRotPos);=20

Anyone Help me~~~~=20


------ =_NextPart_001_01C08C4A.8B66FD68
Content-Type: text/html;
        charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>[JAVA3D] Help! : rotation of object</TITLE>

<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=474373112-01022001>The
RotationInterpolator completely replaces the existing transform matrix in the
target TransformGroup, including the translation components being set to
0,0,0.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=474373112-01022001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=474373112-01022001>Add
another transform group above the TG that holds the translation to
(3,0,0).&nbsp; Use this new transform group as the target for the
interpolator.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=474373112-01022001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=474373112-01022001>-Lee</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; 
MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
  size=2>-----Original Message-----<BR><B>From:</B> Sungye Kim
  [mailto:[EMAIL PROTECTED]]<BR><B>Sent:</B> Wednesday, January 31, 2001 7:53
  PM<BR><B>To:</B> [EMAIL PROTECTED]<BR><B>Subject:</B> [JAVA3D]
  Help! : rotation of object<BR><BR></FONT></DIV>
  <P><FONT size=2>There is a TransfomGroup node that have (3, 0, 0)) by its
  translation component.</FONT> <BR><FONT size=2>and then I made
  rotationinterpolator. Its target TG is above TransformGroup node.</FONT>
  <BR><FONT size=2>however the rotationinterpolator rotates at origin.</FONT>
  <BR><FONT size=2>Why?</FONT> <BR><FONT size=2>Actually, TG has translation
  component (3, 0, 0).</FONT> </P>
  <P><FONT size=2>Transform3D t3d = new Transform3D();</FONT> <BR><FONT
  size=2>t3d.setTranslation(new Vector3f(3.0f, 0.0f, 0.0f));</FONT> <BR><FONT
  size=2>TransformGroup objRotPos = new TransformGroup(t3d);</FONT> <BR><FONT
  size=2>rotInterpolator = new RotationInterpolator(alpha, objRotPos);</FONT>
  </P>
  <P><FONT size=2>Anyone Help me~~~~</FONT> </P></BLOCKQUOTE></BODY></HTML>

------ =_NextPart_001_01C08C4A.8B66FD68--

===========================================================================
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