NTNUJAVA Virtual Physics LaboratoryEnjoy the fun of physics with simulations! Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
September 21, 2020, 11:10:59 pm

"Vision, mission and action." ...Wisdom

 Pages: [1]   Go Down
 Author Topic: how to transform about an axis a rotation using Matrix3DTransformation ?  (Read 17219 times) 0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Hero Member

Offline

Posts: 1796

http://weelookang.blogspot.com

 « Embed this message on: August 22, 2012, 12:27:17 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

Hi prof!
according to

i can transform a rotation about an axis of my choice say x,y,z = 0,1,0 meaning y-axis.

i changed i to j for the syntax creating italics in the words
for(int j=0;j<n; j++){

rotations[j] = Matrix3DTransformation.rotationY(theta[j]);
}

the result is not what i wanted.

the sphere i added are rotating about it own axis, i want them rotate the coordinate system X,Y,Z

i wish to make the sphere move as if they were connected to the rectangle shapes
like in the video
http://www.nationalstemcentre.org.uk/elibrary/resource/2096/wave-machine/

no one seems to know as i have posted here a few days back.

any ideas?
thanks!

Embed a running copy of this simulation

Embed a running copy link(show simulation in a popuped window)
Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
• Please feel free to post your ideas about how to use the simulation for better teaching and learning.
• Post questions to be asked to help students to think, to explore.
• Upload worksheets as attached files to share with more users.
Let's work together. We can help more users understand physics conceptually and enjoy the fun of learning physics!
 rotation.png (98.93 KB, 1288x766 - viewed 2111 times.)  Wave Machine.png (1386.42 KB, 1269x713 - viewed 2792 times.) *** There are 1 more attached files. You need to login to acces it! « Last Edit: August 22, 2012, 12:36:19 pm by lookang » Logged
Fu-Kwun Hwang
Hero Member

Offline

Posts: 3085

 « Embed this message Reply #1 on: August 22, 2012, 05:27:45 pm » posted from:,,Satellite Provider

There is a Rotate property for Tex3d GUI element.

Matrix3DTransformation can be  used to transform a know shape object.
To transform the text , information about text is required-however, it is not available.

May be there are some new function in java3D which is possible to do this. However, I do not know.
May be you can ask Paco directly. Sorry! :-(
 Logged
lookang
Hero Member

Offline

Posts: 1796

http://weelookang.blogspot.com

 « Embed this message Reply #2 on: August 24, 2012, 03:16:04 pm » posted from:Singapore,,Singapore

done!
 *** There are 1 more attached files. You need to login to acces it! Logged
 Pages: [1]   Go Up
"Vision, mission and action." ...Wisdom