8,452
edits
Paradox-01 (talk | contribs) mNo edit summary |
Paradox-01 (talk | contribs) m (I'll try to remake the cam oban maker so that it doesn't need Excel.) |
||
Line 976: | Line 976: | ||
=====New | =====New camera animations===== | ||
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. | |||
So we might add some polygons to the cube's back to let the user know where cube's ''new front'' is. | |||
=====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] |
edits