Title: [JAVA3D] Local Coordinates of Geometry or Rotation with arbitrary axis

I have a question.
I want to rotate a geometry. (for example, Box)
I used VRML97 to load the geometry.
Translation component of TransformGroup of Box is (3, 0, 0).
I want to rotate Box with not X axis (or Y axis or Z axis) but arbitrary axis.

(1 0 0 0), (0 1 0 3.14), (1 0 0 3.14)
With above three vectors, I created qurternion for rotation.
However,this make a rotation of Box with Y and X axis.
I want to rotate just with Y and X axis of Box its local coordinate.
The origin of this local coordinate is equal to (3,0,0) of global coordinate.
What I have to do ?

Thank you in advance.
Sungye Kim.


==============================================
161 Gajeong-dong, Yuseong-gu, Daejeon 305-350, Korea

Electronics and Telecommunications Research Insititute
Computer Software Technology Laboratory
Virtual Reality Research Center
Image-based Rendering Team

Sungye Kim

tel : 042-860-5828
fax : 042-860-1051
pcs : 016-343-2375
homepage : http://129.254.76.244
http://insideblue.hihome.com
e-mail : [EMAIL PROTECTED]
==============================================




Reply via email to