NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
October 20, 2017, 11:28:45 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Discovery consists of seeing what everybody has seen and thinking what nobody has thought. ..."Albert von Szent-Gyorgyi(1893-1986, 1937 Nobel Prize for Medicine, Lived to 93)"
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

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

Posts: 1784


http://weelookang.blogspot.com


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

Hi prof!
according to
http://fem.um.es/Javadoc/OSP_EJS/org/opensourcephysics/numerics/Matrix3DTransformation.html#setOrigin%28double[]%29

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

i added the codes

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.
http://www.compadre.org/osp/bulletinboard/TDetails.cfm?FID=59&TID=2227&ViewType=2#PID51631

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
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
  • 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 1510 times.)

* Wave Machine.png (1386.42 KB, 1269x713 - viewed 1963 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
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
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 Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
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
  Print  
Discovery consists of seeing what everybody has seen and thinking what nobody has thought. ..."Albert von Szent-Gyorgyi(1893-1986, 1937 Nobel Prize for Medicine, Lived to 93)"
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
how to make x and y axis automatically on the drawing panel
Questions related to EJS
lookang 4 13224 Last post August 10, 2007, 02:35:48 pm
by lookang
any example xml on angle always made with positive x axis
Questions related to EJS
lookang 7 11342 Last post August 15, 2007, 02:37:23 pm
by Fu-Kwun Hwang
Complex numbers and Laplace transform
Question related to Physics or physics related simulation
j142 1 11166 Last post June 24, 2009, 06:37:56 pm
by Fu-Kwun Hwang
Rotation in 3D (Does the order of rotation matter?)
misc
Fu-Kwun Hwang 0 7573 Last post February 07, 2010, 03:49:45 pm
by Fu-Kwun Hwang
Rotation in 3D (Does the order of rotation matter?)
misc
ahmedelshfie 0 9494 Last post May 21, 2010, 01:46:52 am
by ahmedelshfie
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.059 seconds with 22 queries.since 2011/06/15