Otaka

Registered
  • Content Count

    6
  • Joined

  • Last visited

Everything posted by Otaka

  1. bead-v, I think it will be very usefull to be able to run mdledit from command line with some arguments like "--sourceFolder "D:/kotorExtracted/mdl/*.mdl" --convertFromBin2Ascii --skipErrors" and it will convert all mdl files in folder automatically. In this case it will be easier to write some helper scripts and not manually do the job
  2. And can you please explain how do you make conversion from bezier to linear(mathematic expression, or at least point me where in source code you do the conversion)? Example of bezierposition controller: node dummy Box04 parent DOR_LDA01 positionbezierkey 0.0 -1.94879 0.0967285 0.0 0.0 0.0 0.0 1.23964 0.0 0.0 1.46667 -0.08933 0.0967285 0.0 -1.23964 0.0 0.0 0.0316088 0.0 0.0 2.0 -0.0419167 0.0967285 0.0 0.0400847 0.0 0.0 0.0 0.0 0.0 endlist endnode The same controller linearized(with errors): node dummy Box04 parent DOR_LDA01 positionkey 0.0 -1.94879 0.0967285 0.0 1.46667 -0.0419167 0.0967285 0.0400847 2.0 endlist endnode
  3. I think I have found a bug. 1. Open file "dor_lda01.mdl" (model from KOTOR 1). 2. In settings set Convert Bezier Controllers to Linear. 3. Try to save the model as ASCII. It throws several error messages: --------------------------- Error! --------------------------- Missing controller data on animation controller 'position' on node 'Mesh01' in animation 'opening1'. vector::_M_range_check: __n (which is 41) >= this->size() (which is 30) In result file I see missing values. Example: node dummy Box04 parent DOR_LDA01 positionkey 0.0 -1.94879 0.0967285 0.0 1.46667 -0.0419167 0.0967285 0.0400847 2.0 <-----------MISSING endlist
  4. did not noticed. Thank you so much
  5. bead-v, can you share with the source code of this excelent application? I am very interested in animation parsing
  6. Farmboy0, does your KOTOR1 model template handle animation in the placeables(doors, lockets)? I checked Xoreos and mdlops and also told to the DrMcCoy about this. Example of the problem: There is a placeable (dor_lda01.mdl converted via mdlops 0.6). And I see in the animation section: 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(time, quaternion[4]), but it seems there is something wrong with PositionKey. It seems that mdlops interpret controller data wrong. Similar problem is in the plc_footlker.mdl and in other placeables. In creature models positionkey and orientation keys looks fine.