Mod Tool: Difference between revisions

14 bytes added ,  24 September 2012
m
no edit summary
m (I'll try to remake the cam oban maker so that it doesn't need Excel.)
mNo edit summary
Line 977: Line 977:


=====New camera animations=====
=====New camera animations=====
{| border=0 cellpadding=0 align=right
| last frame of OBANOutroCam02<br>[http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/Mod_Tool/camera_OBAN_examination_zpsaf16d39e.png http://i305.photobucket.com/albums/nn207/unknownfuture/camera_OBAN_examination_tn_zps73db972a.png]
|}
There's already an excel macro available but now I want to build cam anims without excel.
There's already an excel macro available but now I want to build cam anims without excel.


That's the situation (object rotation):
The last frame's rotation of level1_Final file OBANOutroCam02 is: -0.0158410165 0.854542 0.0261086561 -0.518483639.
 
input ModTool X=80° Y=45° Z=20°
 
output ModTool
W X Y Z
0,7397 0,5339 0,3918 -0,1193
output OBAN (after TRAM harvest)
X Y Z -W
0,5339 0,3918 -0,1193 -0,7397
 
This shows that ModTool and Oni(split) handles the rotations differently.
 
Another test:
 
An OBAN rotation is: -0.0158410165 0.854542 0.0261086561 -0.518483639
 
Mod Tool would converts it to: -173,313113254392 62,2890772385832 7,54379929276703
 
After correcting the parameter shift (WXYZ -> XYZ-W) it becomes: -3,50001952733371 117,506388343481 -2,4092566118679E-05


If we apply that rotation to a cube, it looks into same direction than the game cam but 180 reverted in y rotation.
Those quaternions are sorted in X Y Z -W order, so we've to watch out a bit when setting the input for converting them to euler rotations in degrees.


So we might add some polygons to the cube's back to let the user know where cube's ''new front'' is.
If a newly created object (in this case a cube) shall serve as camera placeholder then the X output has to be multiplied by -1 and the Y output has to be reduced by -180.


Those changes must repeated again when exporting the object's rotation to xml.




8,452

edits