.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old December 9th, 2007, 05:14 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: XFile Creation and XFileClasses Effects

So... is this how the axes are oriented? The black circle is on the plane of the system hex grid (the XZ plane).



I'm just trying to figure out how to make planets have a randomized starting rotation, in the same direction as the continual rotation vector. The Starting Rotate and Continual Rotation Vector fields seem to be referring to entirely different types of rotations, around different axes... its all very confusing.
Attached Images
File Type: png 569752-se5_axes.png (8.5 KB, 246 views)
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #2  
Old December 9th, 2007, 06:13 PM

MasterChiToes MasterChiToes is offline
Corporal
 
Join Date: Sep 2006
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
MasterChiToes is on a distinguished road
Default Re: XFile Creation and XFileClasses Effects

You have Y and Z reversed. The hex grid is on the XY Plane... so change +Z to +Y, -Y to -Z, etc.

The Starting Rotate is not motion, just the initial fixed planetary orientation.
The three Continual Rotation vectors are the trick... the three vectors have to added in the proper amounts to prevent wobble and precession.

I am currently working on a cheat sheet for the vector addition... trying to get the Y tilts right now.
Reply With Quote
  #3  
Old December 9th, 2007, 06:24 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: XFile Creation and XFileClasses Effects

MasterChiToes said:
"The Starting Rotate is not motion, just the initial fixed planetary orientation."


Never said it was motion.. I can now confirm that Starting Rotate Y and Continual Rotation Vector Z are in the same direction. Setting a non-zero value for Starting Rotate Y rotates the planet around the axis normal to the system hex grid, same as having a Continual Rotation Vector with only Z portions. Why Aaron coded things this way is beyond me...

=0=

So, the coordinate system should look like this then?

Attached Images
File Type: png 569765-se5_axes.png (8.5 KB, 215 views)
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #4  
Old December 9th, 2007, 06:30 PM

MasterChiToes MasterChiToes is offline
Corporal
 
Join Date: Sep 2006
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
MasterChiToes is on a distinguished road
Default Re: XFile Creation and XFileClasses Effects

*tilt * |*spin * |+spin z
-------------------------------------
+tilt x |-tilt x |ARCSIN(1-SIN(tilt))
-tilt x |-tilt x | ""
-tilt z |+tilt y | ""
+tilt z |-tilt y | ""

example (from earlier post):
tilt = 3 (game units - not degrees or radians)
then 3 gets added or subtracted to Start Rotate X or Z
then the appropriate x or y spin become +/- 3
spin z = 15.1 (game units - not degrees or radians)
Reply With Quote
  #5  
Old December 9th, 2007, 06:31 PM

MasterChiToes MasterChiToes is offline
Corporal
 
Join Date: Sep 2006
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
MasterChiToes is on a distinguished road
Default Re: XFile Creation and XFileClasses Effects

Right, those are the coordinates directions... so if you go to the overhead view of the system map, then my earlier post will make sense.

There is an error in my chart above, and I can't seem to edit it... the first row second column is +tilt x (not minus)
Reply With Quote
  #6  
Old December 9th, 2007, 08:09 PM

MasterChiToes MasterChiToes is offline
Corporal
 
Join Date: Sep 2006
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
MasterChiToes is on a distinguished road
Default Re: XFile Creation and XFileClasses Effects

Reply With Quote
  #7  
Old December 9th, 2007, 09:07 PM

MasterChiToes MasterChiToes is offline
Corporal
 
Join Date: Sep 2006
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
MasterChiToes is on a distinguished road
Default Re: XFile Creation and XFileClasses Effects

Okay, here is what I did... It is a tilted huge (size: 7) Rock Planet with a Snowball Moon in an equatorial orbit. The moon also orbits faster than the planet spins.



The planet texture is new as well...
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 10:27 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.