View Single Post
Old 09-19-13, 04:38 PM   #21
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Working with Body.rawchunk in this post..........

Now that We are past the basic stuff let's look at the actual data and how to read it.

4 x 7 x 31!! Remember that and it starts comeing together.
A float is 4 bytes long.
Multiply by 7 and then by how many parts the Biped has (31) we get a number.
It all fits to the size We found as to data included.

Here's where it does get a bit tricky for export/import purposes and I'm pretty sure We missed this fact when S3D was being created!

I'll define a few things first.
Transitional = add the results to Parent positional information.
Non-Transitional = Absolute position of the BodyPart with no regard to Parent position.

The Biped base stance/position as coded is Non-transitional!
To export to a useable format We need to subtract Child positional information from Parent positional information.
(If you know of a format different from Dae that will handle this information? TELL ME!)

Body.rawchunks translated looks like this. Note there are 31 lines to end of data.

0.0000000 0.09770422 -4.270787e-09 0.0000000 0.7071063 0.0000000 0.7071072
0.0000000 -0.0001444198 -4.270787e-09 0.0000000 0.0000000 0.0000000 1.0000000
0.0000000 0.09770422 -4.270787e-09 0.7071063 0.7071072 9.539226e-07 9.539226e-07
-1.32366e-11 0.1078124 1.008526e-05 0.7071067 0.7071067 -0.0002820579 0.000281024
0.00878975 0.09770422 2.984445e-09 0.7337838 -0.6723919 0.04614115 -0.08556522
-0.00878975 0.09770422 -2.006759e-08 -0.6723919 0.733784 0.08556433 -0.04614018
-1.308529e-11 0.1204893 9.969311e-06 0.7071067 0.7071067 -0.0002820579 0.000281024
0.01330656 0.04861388 -0.002336935 0.7255116 -0.677575 0.1191668 -0.01801055
0.01539599 0.009963792 0.003475701 0.6984613 -0.6984613 0.1102352 -0.1102352
0.01940245 -0.0001444203 -0.008900804 -0.5718348 0.4159387 0.4159387 0.5718348
0.01980851 -0.0001444204 -0.01015518 -0.3025436 0.4159387 -0.4159387 0.5718348
-0.01330656 0.04861388 -0.00233697 -0.6775749 0.7255118 0.01800967 -0.1191659
-0.01539602 0.009963794 0.00347566 0.6984615 -0.6984615 -0.1102343 0.1102343
-0.01940244 -0.0001444188 -0.008900856 -0.4159394 0.5718343 0.5718342 0.4159394
-0.0198085 -0.0001444189 -0.01015523 -0.4159394 0.5718343 0.5718342 0.4159394
-2.216505e-11 0.1330212 1.689299e-05 0.7071067 0.7071067 -0.0002820579 0.000281024
-6.570578e-12 0.1585746 4.999525e-06 0.7071067 0.7071067 -0.0002820579 0.000281024
0.0000000 0.1648673 -1.147737e-08 0.7071068 0.7071068 -4.214689e-08 -9.918541e-07
0.01105861 0.1542489 -6.979116e-09 0.0000000 -6.556511e-07 0.0000000 1.0000000
-0.01105861 0.1542489 -3.598148e-08 -6.556511e-07 0.0000000 1.0000000 0.0000000
4.188843e-14 0.1855232 1.626536e-08 0.7071068 0.7071068 -4.214689e-08 -9.918541e-07
0.01934231 0.1542489 3.883316e-09 -0.04582797 -0.01994291 -0.3985133 0.9157997
0.03731502 0.1350498 0.001926369 0.1173631 0.347953 -0.383587 0.847358
0.04816611 0.1217452 -0.01398395 0.8035617 -0.1635095 -0.4349111 0.372029
0.0544094 0.1153025 -0.0203268 0.692152 -0.4045 -0.3953384 0.4483445
0.05732315 0.1079048 -0.02181984 0.692152 -0.4045 -0.3953384 0.4483445
-0.01934231 0.1542489 -4.684392e-08 0.0199417 0.04582849 0.9157998 -0.3985133
-0.03731502 0.1350498 0.001926271 -0.3479541 -0.1173626 0.8473576 -0.3835872
-0.04816607 0.1217452 -0.01398408 -0.163509 0.8035612 -0.3720292 0.4349121
-0.05440934 0.1153025 -0.02032694 -0.4044994 0.6921515 -0.4483451 0.3953393
-0.0573231 0.1079048 -0.02181999 -0.3023349 0.5862651 0.2727683 0.4667423

If you grabbed the Biped names like I told you to? You can paste this info and see the structure.

31 Biped names.
31 lines of positional data.
All Non-Transitional.

Last edited by Madox58; 09-19-13 at 04:52 PM.
  Reply With Quote