Mod Tool: Difference between revisions

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




=====New door animations=====
=====New camera animations=====
After a few experiments onisplit v0.9.54.0 seems to output XYZ-W instead of XYZW.
There's already an excel macro available but now I want to build cam anims without excel.
 
That's the situation (object rotation):
 
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.


Example:
So we might add some polygons to the cube's back to let the user know where cube's ''new front'' is.


X Y Z
Rotation in Mod Tool 40 0 0
--------------------------------------------------------------
X Y Z W
Q.Rotation in Mod Tool 0,342 0 0 0,939
--------------------------------------------------------------
X Y Z -W
Q.Rotation onispl. v54 0,334 0 0 -0,94




=====New door animations=====
Following code is "WIP", it gets quaternions and write them into an OBAN*.xml
Following code is "WIP", it gets quaternions and write them into an OBAN*.xml
* [https://dl.dropbox.com/u/139715/OniGalore/ModToolScript/create_DOOR_OBAN.txt create_DOOR_OBAN.txt]  
* [https://dl.dropbox.com/u/139715/OniGalore/ModToolScript/create_DOOR_OBAN.txt create_DOOR_OBAN.txt]  
8,452

edits