[xoreos-devel] Kotor mdl models
Dmitry Savchenko
demonmitnik at rambler.ru
Fri Aug 21 21:18:55 CEST 2015
Hi developers of the xoreos,
After reading the xoreos.org site I was very impressed how you reverse engineered
the game formats, and quickly created some working module loader where one can
fly across the level click on the creatures and placeables.
I am more interested in KOTOR and that is why mostly try to understand insides of
this game.
When I investigate the resources of the kotor in KotorTools I find that I can
export mdl models in ascii human readable format to understand it, I am
understand vertices, UVs, faces, but stuck on the animations of the placebles(not
creatures).
This is an example of the animation of the creature:
positionkey
0 -0.2309760004282 -0.0177801996469498 0.010844400152564
orientationkey
0 1.66655885251617e+036 1.81793339299717e+034 0 3.14159265358979
As I am understand first number it is a time mark, and then x,y,z in position and
axisAngle quartet in orientation.
But in placeble (dor_lda01.mdl converted via mdlops 0.6) I see:
orientationkey
2 0 0 -1 3.14159265358979
positionkey
0 -0.041916698217392 0.096728503704071 0 0 0 0 0 0 0 -0.0645015016198158 0 0 0 0
0 0 0 0 -0.0474167987704277
0.100000001490116 -0.041916698217392 0.096728503704071 -0.00970267038792372 0 0
0.0229321997612715 0 0 -0.0474167987704277 0 0 0 0 0 0 0 0 -1.90687000751495 0
0.200000002980232 -0.041916698217392 1.33635848760605 0 0 0 0 0
0.533333003520966 -0.041916698217392 0.096728503704071 0
2 -0.041916698217392 0.096728503704071 0
Orientation is the same as in creature's orientation, but it seems there is
something wrong with PositionKey.
May be you can help me to understand how to interpret the positionkey
Best regards
Dmitry Savchenko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://xoreos.org/pipermail/xoreos-devel/attachments/20150821/f6fe0573/attachment.html>
More information about the xoreos-devel
mailing list