NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
November 22, 2017, 11:39:14 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  
Brevity is the Soul of wit. ..."Shakespeare (154-1616, English dramatist and poet) "
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 13874 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 1552 times.)

* Wave Machine.png (1386.42 KB, 1269x713 - viewed 2018 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  
Brevity is the Soul of wit. ..."Shakespeare (154-1616, English dramatist and poet) "
 
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 13289 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 11486 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 11291 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 7629 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 9681 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.133 seconds with 22 queries.since 2011/06/15