Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Java 3D / March 2006

Tip: Looking for answers? Try searching our database.

Rotations

Thread view: 
mvahey@gmail.com - 07 Mar 2006 14:39 GMT
I'm making a 3d solar system and need my planets (spheres) to spin on
there own axis and around the sun, getting very confused with
transformgroups, (do i need a new transformgroup for each rotation?)
all that seems to happen is all my planets spin around the sun, at the
same speed etc, how do i just concentrate on one planet at a time! I
know this is probably a stupid question and the answer is probably
obvious but i've been staring at it so long that none of it makes sense
and all the examples do is confuse me (well there brief moments of
elation followed by complete despair) Any help would be appreciated!
Paul Drallos - 08 Mar 2006 13:35 GMT
> I'm making a 3d solar system and need my planets (spheres) to spin on
> there own axis and around the sun, getting very confused with
[quoted text clipped - 5 lines]
> and all the examples do is confuse me (well there brief moments of
> elation followed by complete despair) Any help would be appreciated!

Yes.  You pretty much answered your own question.  Add each sphere to its own (rotation) transform group which is centered on the origin (0,0,0).  Then add each of those transform groups to a new (translation) transform group to position the sphere relative to the sun.  Finally, add those transform groups to yet another (rotation) transform group to rotate the spheres around the sun.

Note that, if you want the planets to each rotate around the sun at a different rate, you will need a different 'around the sun' transform group for each planet.

So your transform group structure will be something like:

Solar rotation (time around the sun)
     |
translation (distance from sun)
     |
axis rotation (time around axis)

You will need a structure like this for each planet.
mkv83 - 09 Mar 2006 00:14 GMT
thank you so much i can stop banging my head against the wall now!


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.