Mod Tool: Difference between revisions

1,083 bytes added ,  1 October 2012
m
no edit summary
mNo edit summary
mNo edit summary
Line 1,153: Line 1,153:
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.
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.


Update: Sept. 29, 2012
'''Update: Sept. 29, 2012'''


If camera is a real one then the additional X and Y changes aren't necessary. (Primitive > Camera > ''any should do'')
If camera is a real one then the additional X and Y changes aren't necessary. (Primitive > Camera > ''any should do'')
Line 1,165: Line 1,165:
* OBAN positions and rotations
* OBAN positions and rotations
* ZAxisUp (Does this flag do something else?)
* ZAxisUp (Does this flag do something else?)
'''Theory of the (Oni to ModTool) import from scratch:'''
* import BINACJBODOOR
* get door classes
* extract M3GM from DOOR, etc.
* import M3GM
* move center to lower bounding box Z
* move object to Z = 0
* import OBAN
* apply rotations and positions to object
* create null object
* make null a parent of door object
* rotate null in X = -90 (to make Z axis pointing up)
* add BINACJBODOOR rotation and position to null object
The current version of onisplit (v0.9.68.0) imports the doors from AKEV without animations.
Those door have there centers at the lower bounding box Z, got corrected from their ZAxisUp, and have (BINACJBODOOR) rotation and position.
Writing an own combined import would not only take more time, also it wouldn't be so fast and efficient. So, I will go with the existing import but then do some changes on the doors (appling null object, custom properties, etc.)
The door objects can be identified by their naming. Each name contains the BINACJBODOOR ID, e.g. <DOOR Id="7294">.
There could be a loop scanning all objects for those numbers.


'''(old wip code)'''
'''(old wip code)'''
8,452

edits