Jump to content

XML:OBAN: Difference between revisions

689 bytes added ,  31 October 2013
m
Neo saved the day ^_^
No edit summary
m (Neo saved the day ^_^)
Line 162: Line 162:




===calculating a transform matrix step by step===
===calculating a transform matrix===
In some scenarios we need to build a new transform matrix, e.g. when making a new weapon particle emitter.
In some scenarios we need to build a new transform matrix, e.g. when making a new weapon particle emitter.


Line 213: Line 213:
  <InitialTransform>0.719846249  0.6941092 -0.005813241 -0.262002677 0.279453874 0.9237208 0.642787635 -0.6634138 0.3830223    <font style="color:#AAAAAA">0 0 0</font></InitialTransform>
  <InitialTransform>0.719846249  0.6941092 -0.005813241 -0.262002677 0.279453874 0.9237208 0.642787635 -0.6634138 0.3830223    <font style="color:#AAAAAA">0 0 0</font></InitialTransform>
                   cos(y)*cos(z)                                                                                  cos(x)*cos(y)
                   cos(y)*cos(z)                                                                                  cos(x)*cos(y)
By now it gets clear that the other values are made of various operations and so far it worked only because not all rotations were used (2 values at most at a time).
The complex calculations (matrix multiplications) needed for this were baked into a program by Neo, it can be downloaded '''[https://dl.dropboxusercontent.com/u/139715/OniGalore/OniMatrix.zip HERE]'''. Later OniSplit might be able to do this to, and/or display the values in a different way.
The source can be accessed over [https://dl.dropboxusercontent.com/u/139715/OniGalore/OniMatrix_src.zip HERE]; Mod Tool vbs adaption (rotations only) over [https://dl.dropboxusercontent.com/u/139715/OniGalore/Oni_rotation_matrix.vbs HERE].


{{XML}}
{{XML}}
8,018

edits