3ds animation - Help needed
Hi.
I am having a hard time understanding how to handle animation from 3ds file.
I can read all the data needed:
1. Meshes
2. Rotation matrixes and offset vectors
3. Pivot point
4. Animation keys : positions, rotations ....
The problem is that I don't understand how to make it work together.
Thanks for any help.
Hi,
well what do you mean by "I can read all the data" ? Anybody can. :) The problem is allways how to interpred the bytes from a file. Well as regrads 3ds file format its rather uneasy co cope with it. I would suggest to move on to another file format unless you have to use 3ds. However if only 3ds is your only way to go, you could try to search for 3ds file loaders.
Here is link to 3ds file structure (i didnt try it though . ;o) ):
http://www.spacesimulator.net/tut4_3dsloader.html
Or this link is for most file format that exist to date, it might be helpful to you. http://www.wotsit.org/search.asp?s=ALLFILES
Hope this helps you a little. :)
Y.
well what do you mean by "I can read all the data" ? Anybody can. :) The problem is allways how to interpred the bytes from a file. Well as regrads 3ds file format its rather uneasy co cope with it. I would suggest to move on to another file format unless you have to use 3ds. However if only 3ds is your only way to go, you could try to search for 3ds file loaders.
Here is link to 3ds file structure (i didnt try it though . ;o) ):
http://www.spacesimulator.net/tut4_3dsloader.html
Or this link is for most file format that exist to date, it might be helpful to you. http://www.wotsit.org/search.asp?s=ALLFILES
Hope this helps you a little. :)
Y.
Quote:
Hi,
well what do you mean by "I can read all the data" ? Anybody can. :) The problem is allways how to interpred the bytes from a file. Well as regrads 3ds file format its rather uneasy co cope with it. I would suggest to move on to another file format unless you have to use 3ds. However if only 3ds is your only way to go, you could try to search for 3ds file loaders.
Here is link to 3ds file structure (i didnt try it though . ;o) ):
http://www.spacesimulator.net/tut4_3dsloader.html
Or this link is for most file format that exist to date, it might be helpful to you. http://www.wotsit.org/search.asp?s=ALLFILES
Hope this helps you a little. :)
Y.
Thanks.
"I can read all the data" - I mean that I have all the data needed for animation.
Moving to other format is not the solution , because I still have to work with the same animation, maybe it would be a little easier.
I have read these links before, and made my 3ds importer based on them, they don't have any explanation how the animation actually works.
Let me explain what exactly I am strugling with:
Here is the file I am going to take as reference for now :anim6.3DS (Two piramids, one at center rotates around itself, other also rotates around its center and moves around first piramid.
Here is the data I get from it:
Animation: Start=0, End=100;
(Piramid1) - 0x4160
TRI_RMATRIX :
| 1.00 0.00 0.00 0.00 |
| 0.00 0.00 1.00 0.00 |
| 0.00 1.00 0.00 0.00 |
| -0.15 -0.91 -0.00 1.00 |
KEYF_OBJPIVOT:
Pos:x=0.000000, y=0.000000, z=0.000000
(Piramid2) - 0x4160
TRI_RMATRIX :
| 1.00 0.00 0.00 0.00 |
| 0.00 0.00 1.00 0.00 |
| 0.00 1.00 0.00 0.00 |
| 50.08 -1.51 -0.00 1.00 |
KEYF_OBJPIVOT:
Pos:x=0.000000, y=0.000000, z=0.000000
Position , rotation and scale keys by Piramid1
Change Position... keys=1 [0]pos=0 Pos:x=0.150835, y=0.005000, z=0.905006Change Rotation... keys=101 [0]pos=0 Angle=0.000000 Pos:x=0.000000, y=0.000000, z=0.000000 [1]pos=1 Angle=0.172208 Pos:x=0.000000, y=1.000000, z=0.000000 [2]pos=2 Angle=0.501694 Pos:x=0.000000, y=1.000000, z=0.000000 [3]pos=3 Angle=0.808788 Pos:x=0.000000, y=1.000000, z=0.000000 [4]pos=4 Angle=1.093488 Pos:x=0.000000, y=1.000000, z=0.000000 [5]pos=5 Angle=1.355795 Pos:x=0.000000, y=1.000000, z=0.000000 [6]pos=6 Angle=1.595710 Pos:x=0.000000, y=1.000000, z=0.000000 [7]pos=7 Angle=1.813230 Pos:x=0.000000, y=1.000000, z=0.000000 [8]pos=8 Angle=2.008358 Pos:x=0.000000, y=1.000000, z=0.000000 [9]pos=9 Angle=2.181093 Pos:x=0.000000, y=1.000000, z=0.000000 [10]pos=10 Angle=2.331436 Pos:x=0.000000, y=1.000000, z=0.000000 [11]pos=11 Angle=2.459383 Pos:x=0.000000, y=1.000000, z=0.000000 [12]pos=12 Angle=2.564940 Pos:x=0.000000, y=1.000000, z=0.000000 [13]pos=13 Angle=2.648102 Pos:x=0.000000, y=1.000000, z=0.000000 [14]pos=14 Angle=2.708872 Pos:x=0.000000, y=1.000000, z=0.000000 [15]pos=15 Angle=2.747248 Pos:x=0.000000, y=1.000000, z=0.000000 [16]pos=16 Angle=2.763229 Pos:x=0.000000, y=1.000000, z=0.000000 [17]pos=17 Angle=2.756819 Pos:x=0.000000, y=1.000000, z=0.000000 [18]pos=18 Angle=2.728019 Pos:x=0.000000, y=1.000000, z=0.000000 [19]pos=19 Angle=2.676825 Pos:x=0.000000, y=1.000000, z=0.000000 [20]pos=20 Angle=2.603235 Pos:x=0.000000, y=1.000000, z=0.000000 [21]pos=21 Angle=2.507251 Pos:x=0.000000, y=1.000000, z=0.000000 [22]pos=22 Angle=2.388878 Pos:x=0.000000, y=1.000000, z=0.000000 [23]pos=23 Angle=2.248109 Pos:x=0.000000, y=1.000000, z=0.000000 [24]pos=24 Angle=2.084944 Pos:x=0.000000, y=1.000000, z=0.000000 [25]pos=25 Angle=1.899396 Pos:x=0.000000, y=1.000000, z=0.000000 [26]pos=26 Angle=1.778568 Pos:x=0.000000, y=1.000000, z=0.000000 [27]pos=27 Angle=1.739036 Pos:x=0.000000, y=1.000000, z=0.000000 [28]pos=28 Angle=1.702006 Pos:x=0.000000, y=1.000000, z=0.000000 [29]pos=29 Angle=1.667444 Pos:x=0.000000, y=1.000000, z=0.000000 [30]pos=30 Angle=1.635361 Pos:x=0.000000, y=1.000000, z=0.000000 [31]pos=31 Angle=1.605751 Pos:x=0.000000, y=1.000000, z=0.000000 [32]pos=32 Angle=1.578632 Pos:x=0.000000, y=1.000000, z=0.000000 [33]pos=33 Angle=1.553984 Pos:x=0.000000, y=1.000000, z=0.000000 [34]pos=34 Angle=1.531823 Pos:x=0.000000, y=1.000000, z=0.000000 [35]pos=35 Angle=1.512139 Pos:x=0.000000, y=1.000000, z=0.000000 [36]pos=36 Angle=1.494921 Pos:x=0.000000, y=1.000000, z=0.000000 [37]pos=37 Angle=1.480208 Pos:x=0.000000, y=1.000000, z=0.000000 [38]pos=38 Angle=1.467961 Pos:x=0.000000, y=1.000000, z=0.000000 [39]pos=39 Angle=1.458181 Pos:x=0.000000, y=1.000000, z=0.000000 [40]pos=40 Angle=1.450902 Pos:x=0.000000, y=1.000000, z=0.000000 [41]pos=41 Angle=1.446087 Pos:x=0.000000, y=1.000000, z=0.000000 [42]pos=42 Angle=1.443762 Pos:x=0.000000, y=1.000000, z=0.000000 [43]pos=43 Angle=1.443910 Pos:x=0.000000, y=1.000000, z=0.000000 [44]pos=44 Angle=1.446530 Pos:x=0.000000, y=1.000000, z=0.000000 [45]pos=45 Angle=1.451647 Pos:x=0.000000, y=1.000000, z=0.000000 [46]pos=46 Angle=1.459226 Pos:x=0.000000, y=1.000000, z=0.000000 [47]pos=47 Angle=1.469297 Pos:x=0.000000, y=1.000000, z=0.000000 [48]pos=48 Angle=1.481847 Pos:x=0.000000, y=1.000000, z=0.000000 [49]pos=49 Angle=1.496875 Pos:x=0.000000, y=1.000000, z=0.000000 [50]pos=50 Angle=1.514368 Pos:x=0.000000, y=1.000000, z=0.000000 [51]pos=51 Angle=1.513052 Pos:x=0.000000, y=1.000000, z=0.000000 [52]pos=52 Angle=1.493007 Pos:x=0.000000, y=1.000000, z=0.000000 [53]pos=53 Angle=1.475603 Pos:x=0.000000, y=1.000000, z=0.000000 [54]pos=54 Angle=1.460830 Pos:x=0.000000, y=1.000000, z=0.000000 [55]pos=55 Angle=1.448719 Pos:x=0.000000, y=1.000000, z=0.000000 [56]pos=56 Angle=1.439239 Pos:x=0.000000, y=1.000000, z=0.000000 [57]pos=57 Angle=1.432387 Pos:x=0.000000, y=1.000000, z=0.000000 [58]pos=58 Angle=1.428193 Pos:x=0.000000, y=1.000000, z=0.000000 [59]pos=59 Angle=1.426641 Pos:x=0.000000, y=1.000000, z=0.000000 [60]pos=60 Angle=1.427721 Pos:x=0.000000, y=1.000000, z=0.000000 [61]pos=61 Angle=1.431447 Pos:x=0.000000, y=1.000000, z=0.000000 [62]pos=62 Angle=1.437804 Pos:x=0.000000, y=1.000000, z=0.000000 [63]pos=63 Angle=1.446817 Pos:x=0.000000, y=1.000000, z=0.000000 [64]pos=64 Angle=1.458466 Pos:x=0.000000, y=1.000000, z=0.000000 [65]pos=65 Angle=1.472761 Pos:x=0.000000, y=1.000000, z=0.000000 [66]pos=66 Angle=1.489684 Pos:x=0.000000, y=1.000000, z=0.000000 [67]pos=67 Angle=1.509256 Pos:x=0.000000, y=1.000000, z=0.000000 [68]pos=68 Angle=1.531468 Pos:x=0.000000, y=1.000000, z=0.000000 [69]pos=69 Angle=1.556332 Pos:x=0.000000, y=1.000000, z=0.000000 [70]pos=70 Angle=1.583812 Pos:x=0.000000, y=1.000000, z=0.000000 [71]pos=71 Angle=358.386047 Pos:x=0.000000, y=-1.000000, z=0.000000 [72]pos=72 Angle=1.646719 Pos:x=0.000000, y=1.000000, z=0.000000 [73]pos=73 Angle=1.682151 Pos:x=0.000000, y=1.000000, z=0.000000 [74]pos=74 Angle=1.720213 Pos:x=0.000000, y=1.000000, z=0.000000 [75]pos=75 Angle=1.760904 Pos:x=0.000000, y=1.000000, z=0.000000 [76]pos=76 Angle=1.881718 Pos:x=0.000000, y=1.000000, z=0.000000 [77]pos=77 Angle=2.066066 Pos:x=0.000000, y=1.000000, z=0.000000 [78]pos=78 Angle=2.228158 Pos:x=0.000000, y=1.000000, z=0.000000 [79]pos=79 Angle=2.368050 Pos:x=0.000000, y=1.000000, z=0.000000 [80]pos=80 Angle=2.485700 Pos:x=0.000000, y=1.000000, z=0.000000 [81]pos=81 Angle=2.581127 Pos:x=0.000000, y=1.000000, z=0.000000 [82]pos=82 Angle=2.654335 Pos:x=0.000000, y=1.000000, z=0.000000 [83]pos=83 Angle=2.705304 Pos:x=0.000000, y=1.000000, z=0.000000 [84]pos=84 Angle=2.734026 Pos:x=0.000000, y=1.000000, z=0.000000 [85]pos=85 Angle=2.740559 Pos:x=0.000000, y=1.000000, z=0.000000 [86]pos=86 Angle=2.724836 Pos:x=0.000000, y=1.000000, z=0.000000 [87]pos=87 Angle=2.686886 Pos:x=0.000000, y=1.000000, z=0.000000 [88]pos=88 Angle=2.626727 Pos:x=0.000000, y=1.000000, z=0.000000 [89]pos=89 Angle=2.544325 Pos:x=0.000000, y=1.000000, z=0.000000 [90]pos=90 Angle=2.439692 Pos:x=0.000000, y=1.000000, z=0.000000 [91]pos=91 Angle=2.312837 Pos:x=0.000000, y=1.000000, z=0.000000 [92]pos=92 Angle=2.163750 Pos:x=0.000000, y=1.000000, z=0.000000 [93]pos=93 Angle=1.992448 Pos:x=0.000000, y=1.000000, z=0.000000 [94]pos=94 Angle=1.798894 Pos:x=0.000000, y=1.000000, z=0.000000 [95]pos=95 Angle=1.583129 Pos:x=0.000000, y=1.000000, z=0.000000 [96]pos=96 Angle=1.345138 Pos:x=0.000000, y=1.000000, z=0.000000 [97]pos=97 Angle=1.084907 Pos:x=0.000000, y=1.000000, z=0.000000 [98]pos=98 Angle=0.802465 Pos:x=0.000000, y=1.000000, z=0.000000 [99]pos=99 Angle=0.497771 Pos:x=0.000000, y=1.000000, z=0.000000 [100]pos=100 Angle=0.170864 Pos:x=0.000000, y=1.000000, z=0.000000Change Scale... keys=1 [0]pos=0 Size:width=1.000000, length=1.000000, height=1.000000
Position , rotation and scale keys by Piramid2
Change Position... keys=101 [0]pos=0 Pos:x=-50.077003, y=0.005000, z=1.508343 [1]pos=1 Pos:x=-49.926052, y=0.005000, z=1.745139 [2]pos=2 Pos:x=-49.484970, y=0.005000, z=2.429575 [3]pos=3 Pos:x=-48.771427, y=0.005000, z=3.522726 [4]pos=4 Pos:x=-47.803089, y=0.005000, z=4.985668 [5]pos=5 Pos:x=-46.597618, y=0.005000, z=6.779475 [6]pos=6 Pos:x=-45.172688, y=0.005000, z=8.865221 [7]pos=7 Pos:x=-43.545956, y=0.005000, z=11.203981 [8]pos=8 Pos:x=-41.735092, y=0.005000, z=13.756830 [9]pos=9 Pos:x=-39.757763, y=0.005000, z=16.484844 [10]pos=10 Pos:x=-37.631630, y=0.005000, z=19.349096 [11]pos=11 Pos:x=-35.374367, y=0.005000, z=22.310661 [12]pos=12 Pos:x=-33.003635, y=0.005000, z=25.330614 [13]pos=13 Pos:x=-30.537100, y=0.005000, z=28.370029 [14]pos=14 Pos:x=-27.992430, y=0.005000, z=31.389982 [15]pos=15 Pos:x=-25.387289, y=0.005000, z=34.351547 [16]pos=16 Pos:x=-22.739344, y=0.005000, z=37.215797 [17]pos=17 Pos:x=-20.066259, y=0.005000, z=39.943813 [18]pos=18 Pos:x=-17.385704, y=0.005000, z=42.496662 [19]pos=19 Pos:x=-14.715341, y=0.005000, z=44.835423 [20]pos=20 Pos:x=-12.072838, y=0.005000, z=46.921169 [21]pos=21 Pos:x=-9.475862, y=0.005000, z=48.714973 [22]pos=22 Pos:x=-6.942076, y=0.005000, z=50.177917 [23]pos=23 Pos:x=-4.489149, y=0.005000, z=51.271069 [24]pos=24 Pos:x=-2.134744, y=0.005000, z=51.955505 [25]pos=25 Pos:x=0.103470, y=0.005000, z=52.192299 [26]pos=26 Pos:x=2.380698, y=0.005000, z=52.031624 [27]pos=27 Pos:x=4.847868, y=0.005000, z=51.562504 [28]pos=28 Pos:x=7.480902, y=0.005000, z=50.804306 [29]pos=29 Pos:x=10.255718, y=0.005000, z=49.776390 [30]pos=30 Pos:x=13.148239, y=0.005000, z=48.498119 [31]pos=31 Pos:x=16.134386, y=0.005000, z=46.988853 [32]pos=32 Pos:x=19.190079, y=0.005000, z=45.267963 [33]pos=33 Pos:x=22.291237, y=0.005000, z=43.354805 [34]pos=34 Pos:x=25.413784, y=0.005000, z=41.268742 [35]pos=35 Pos:x=28.533638, y=0.005000, z=39.029140 [36]pos=36 Pos:x=31.626722, y=0.005000, z=36.655357 [37]pos=37 Pos:x=34.668957, y=0.005000, z=34.166763 [38]pos=38 Pos:x=37.636257, y=0.005000, z=31.582714 [39]pos=39 Pos:x=40.504555, y=0.005000, z=28.922577 [40]pos=40 Pos:x=43.249760, y=0.005000, z=26.205713 [41]pos=41 Pos:x=45.847797, y=0.005000, z=23.451485 [42]pos=42 Pos:x=48.274593, y=0.005000, z=20.679255 [43]pos=43 Pos:x=50.506058, y=0.005000, z=17.908386 [44]pos=44 Pos:x=52.518120, y=0.005000, z=15.158242 [45]pos=45 Pos:x=54.286697, y=0.005000, z=12.448186 [46]pos=46 Pos:x=55.787712, y=0.005000, z=9.797580 [47]pos=47 Pos:x=56.997082, y=0.005000, z=7.225786 [48]pos=48 Pos:x=57.890732, y=0.005000, z=4.752168 [49]pos=49 Pos:x=58.444576, y=0.005000, z=2.396089 [50]pos=50 Pos:x=58.634544, y=0.005000, z=0.176910 [51]pos=51 Pos:x=58.445732, y=0.005000, z=-2.057139 [52]pos=52 Pos:x=57.895134, y=0.005000, z=-4.456201 [53]pos=53 Pos:x=57.006500, y=0.005000, z=-6.998468 [54]pos=54 Pos:x=55.803585, y=0.005000, z=-9.662133 [55]pos=55 Pos:x=54.310131, y=0.005000, z=-12.425389 [56]pos=56 Pos:x=52.549900, y=0.005000, z=-15.266428 [57]pos=57 Pos:x=50.546635, y=0.005000, z=-18.163445 [58]pos=58 Pos:x=48.324089, y=0.005000, z=-21.094627 [59]pos=59 Pos:x=45.906017, y=0.005000, z=-24.038174 [60]pos=60 Pos:x=43.316170, y=0.005000, z=-26.972275 [61]pos=61 Pos:x=40.578293, y=0.005000, z=-29.875122 [62]pos=62 Pos:x=37.716145, y=0.005000, z=-32.724911 [63]pos=63 Pos:x=34.753471, y=0.005000, z=-35.499828 [64]pos=64 Pos:x=31.714025, y=0.005000, z=-38.178074 [65]pos=65 Pos:x=28.621561, y=0.005000, z=-40.737839 [66]pos=66 Pos:x=25.499825, y=0.005000, z=-43.157314 [67]pos=67 Pos:x=22.372572, y=0.005000, z=-45.414692 [68]pos=68 Pos:x=19.263550, y=0.005000, z=-47.488167 [69]pos=69 Pos:x=16.196514, y=0.005000, z=-49.355930 [70]pos=70 Pos:x=13.195212, y=0.005000, z=-50.996174 [71]pos=71 Pos:x=10.283397, y=0.005000, z=-52.387096 [72]pos=72 Pos:x=7.484820, y=0.005000, z=-53.506882 [73]pos=73 Pos:x=4.823232, y=0.005000, z=-54.333729 [74]pos=74 Pos:x=2.322384, y=0.005000, z=-54.845833 [75]pos=75 Pos:x=0.006031, y=0.005000, z=-55.021378 [76]pos=76 Pos:x=-2.280204, y=0.005000, z=-54.758526 [77]pos=77 Pos:x=-4.693987, y=0.005000, z=-53.998772 [78]pos=78 Pos:x=-7.216519, y=0.005000, z=-52.785332 [79]pos=79 Pos:x=-9.829000, y=0.005000, z=-51.161407 [80]pos=80 Pos:x=-12.512630, y=0.005000, z=-49.170212 [81]pos=81 Pos:x=-15.248610, y=0.005000, z=-46.854950 [82]pos=82 Pos:x=-18.018141, y=0.005000, z=-44.258831 [83]pos=83 Pos:x=-20.802420, y=0.005000, z=-41.425068 [84]pos=84 Pos:x=-23.582651, y=0.005000, z=-38.396866 [85]pos=85 Pos:x=-26.340034, y=0.005000, z=-35.217430 [86]pos=86 Pos:x=-29.055767, y=0.005000, z=-31.929976 [87]pos=87 Pos:x=-31.711052, y=0.005000, z=-28.577709 [88]pos=88 Pos:x=-34.287090, y=0.005000, z=-25.203836 [89]pos=89 Pos:x=-36.765079, y=0.005000, z=-21.851570 [90]pos=90 Pos:x=-39.126221, y=0.005000, z=-18.564116 [91]pos=91 Pos:x=-41.351719, y=0.005000, z=-15.384683 [92]pos=92 Pos:x=-43.422768, y=0.005000, z=-12.356480 [93]pos=93 Pos:x=-45.320568, y=0.005000, z=-9.522716 [94]pos=94 Pos:x=-47.026325, y=0.005000, z=-6.926599 [95]pos=95 Pos:x=-48.521236, y=0.005000, z=-4.611338 [96]pos=96 Pos:x=-49.786503, y=0.005000, z=-2.620142 [97]pos=97 Pos:x=-50.803326, y=0.005000, z=-0.996219 [98]pos=98 Pos:x=-51.552902, y=0.005000, z=0.217223 [99]pos=99 Pos:x=-52.016434, y=0.005000, z=0.976974 [100]pos=100 Pos:x=-52.175125, y=0.005000, z=1.239826Change Rotation... keys=100 [0]pos=0 Angle=0.000000 Pos:x=0.000000, y=0.000000, z=0.000000 [1]pos=1 Angle=0.154003 Pos:x=0.000000, y=1.000000, z=0.000000 [2]pos=2 Angle=0.449085 Pos:x=0.000000, y=1.000000, z=0.000000 [3]pos=3 Angle=0.724779 Pos:x=0.000000, y=1.000000, z=0.000000 [4]pos=4 Angle=0.981086 Pos:x=0.000000, y=1.000000, z=0.000000 [5]pos=5 Angle=1.218005 Pos:x=0.000000, y=1.000000, z=0.000000 [6]pos=6 Angle=1.435537 Pos:x=0.000000, y=1.000000, z=0.000000 [7]pos=7 Angle=1.633681 Pos:x=0.000000, y=1.000000, z=0.000000 [8]pos=8 Angle=1.812438 Pos:x=0.000000, y=1.000000, z=0.000000 [9]pos=9 Angle=1.971806 Pos:x=0.000000, y=1.000000, z=0.000000 [10]pos=10 Angle=2.111789 Pos:x=0.000000, y=1.000000, z=0.000000 [11]pos=11 Angle=2.232380 Pos:x=0.000000, y=1.000000, z=0.000000 [12]pos=12 Angle=2.333591 Pos:x=0.000000, y=1.000000, z=0.000000 [13]pos=13 Angle=2.415408 Pos:x=0.000000, y=1.000000, z=0.000000 [14]pos=14 Angle=2.477839 Pos:x=0.000000, y=1.000000, z=0.000000 [15]pos=15 Angle=2.520882 Pos:x=0.000000, y=1.000000, z=0.000000 [16]pos=16 Angle=2.544540 Pos:x=0.000000, y=1.000000, z=0.000000 [17]pos=17 Angle=2.548807 Pos:x=0.000000, y=1.000000, z=0.000000 [18]pos=18 Angle=2.533690 Pos:x=0.000000, y=1.000000, z=0.000000 [19]pos=19 Angle=2.499187 Pos:x=0.000000, y=1.000000, z=0.000000 [20]pos=20 Angle=2.445290 Pos:x=0.000000, y=1.000000, z=0.000000 [21]pos=21 Angle=2.372011 Pos:x=0.000000, y=1.000000, z=0.000000 [22]pos=22 Angle=2.279337 Pos:x=0.000000, y=1.000000, z=0.000000 [23]pos=23 Angle=2.167283 Pos:x=0.000000, y=1.000000, z=0.000000 [24]pos=24 Angle=2.035839 Pos:x=0.000000, y=1.000000, z=0.000000 [25]pos=25 Angle=1.885011 Pos:x=0.000000, y=1.000000, z=0.000000 [26]pos=26 Angle=1.792780 Pos:x=0.000000, y=1.000000, z=0.000000 [27]pos=27 Angle=1.773083 Pos:x=0.000000, y=1.000000, z=0.000000 [28]pos=28 Angle=1.754903 Pos:x=0.000000, y=1.000000, z=0.000000 [29]pos=29 Angle=1.738215 Pos:x=0.000000, y=1.000000, z=0.000000 [30]pos=30 Angle=1.723039 Pos:x=0.000000, y=1.000000, z=0.000000 [31]pos=31 Angle=1.709365 Pos:x=0.000000, y=1.000000, z=0.000000 [32]pos=32 Angle=1.697192 Pos:x=0.000000, y=1.000000, z=0.000000 [33]pos=33 Angle=1.686532 Pos:x=0.000000, y=1.000000, z=0.000000 [34]pos=34 Angle=1.677376 Pos:x=0.000000, y=1.000000, z=0.000000 [35]pos=35 Angle=1.669716 Pos:x=0.000000, y=1.000000, z=0.000000 [36]pos=36 Angle=1.663577 Pos:x=0.000000, y=1.000000, z=0.000000 [37]pos=37 Angle=1.658933 Pos:x=0.000000, y=1.000000, z=0.000000 [38]pos=38 Angle=1.655791 Pos:x=0.000000, y=1.000000, z=0.000000 [39]pos=39 Angle=1.654163 Pos:x=0.000000, y=1.000000, z=0.000000 [40]pos=40 Angle=1.654036 Pos:x=0.000000, y=1.000000, z=0.000000 [41]pos=41 Angle=1.655414 Pos:x=0.000000, y=1.000000, z=0.000000 [42]pos=42 Angle=1.658299 Pos:x=0.000000, y=1.000000, z=0.000000 [43]pos=43 Angle=1.662686 Pos:x=0.000000, y=1.000000, z=0.000000 [44]pos=44 Angle=1.668570 Pos:x=0.000000, y=1.000000, z=0.000000 [45]pos=45 Angle=1.675979 Pos:x=0.000000, y=1.000000, z=0.000000 [46]pos=46 Angle=1.684885 Pos:x=0.000000, y=1.000000, z=0.000000 [47]pos=47 Angle=1.695284 Pos:x=0.000000, y=1.000000, z=0.000000 [48]pos=48 Angle=1.707209 Pos:x=0.000000, y=1.000000, z=0.000000 [49]pos=49 Angle=1.720615 Pos:x=0.000000, y=1.000000, z=0.000000 [50]pos=50 Angle=1.735554 Pos:x=0.000000, y=1.000000, z=0.000000 [51]pos=51 Angle=1.747053 Pos:x=0.000000, y=1.000000, z=0.000000 [52]pos=52 Angle=1.753878 Pos:x=0.000000, y=1.000000, z=0.000000 [53]pos=53 Angle=1.760291 Pos:x=0.000000, y=1.000000, z=0.000000 [54]pos=54 Angle=1.766315 Pos:x=0.000000, y=1.000000, z=0.000000 [55]pos=55 Angle=1.771935 Pos:x=0.000000, y=1.000000, z=0.000000 [56]pos=56 Angle=1.777164 Pos:x=0.000000, y=1.000000, z=0.000000 [57]pos=57 Angle=1.781972 Pos:x=0.000000, y=1.000000, z=0.000000 [58]pos=58 Angle=1.786399 Pos:x=0.000000, y=1.000000, z=0.000000 [59]pos=59 Angle=1.790412 Pos:x=0.000000, y=1.000000, z=0.000000 [60]pos=60 Angle=1.794038 Pos:x=0.000000, y=1.000000, z=0.000000 [61]pos=61 Angle=1.797249 Pos:x=0.000000, y=1.000000, z=0.000000 [62]pos=62 Angle=1.800079 Pos:x=0.000000, y=1.000000, z=0.000000 [63]pos=63 Angle=1.802490 Pos:x=0.000000, y=1.000000, z=0.000000 [64]pos=64 Angle=1.804518 Pos:x=0.000000, y=1.000000, z=0.000000 [65]pos=65 Angle=1.806128 Pos:x=0.000000, y=1.000000, z=0.000000 [66]pos=66 Angle=1.807353 Pos:x=0.000000, y=1.000000, z=0.000000 [67]pos=67 Angle=358.191803 Pos:x=0.000000, y=-1.000000, z=0.000000 [68]pos=68 Angle=1.808600 Pos:x=0.000000, y=1.000000, z=0.000000 [69]pos=70 Angle=1.808226 Pos:x=0.000000, y=1.000000, z=0.000000 [70]pos=71 Angle=1.807462 Pos:x=0.000000, y=1.000000, z=0.000000 [71]pos=72 Angle=1.806281 Pos:x=0.000000, y=1.000000, z=0.000000 [72]pos=73 Angle=1.804700 Pos:x=0.000000, y=1.000000, z=0.000000 [73]pos=74 Angle=1.802709 Pos:x=0.000000, y=1.000000, z=0.000000 [74]pos=75 Angle=1.800340 Pos:x=0.000000, y=1.000000, z=0.000000 [75]pos=76 Angle=1.868906 Pos:x=0.000000, y=1.000000, z=0.000000 [76]pos=77 Angle=1.997077 Pos:x=0.000000, y=1.000000, z=0.000000 [77]pos=78 Angle=2.107867 Pos:x=0.000000, y=1.000000, z=0.000000 [78]pos=79 Angle=2.201233 Pos:x=0.000000, y=1.000000, z=0.000000 [79]pos=80 Angle=2.277189 Pos:x=0.000000, y=1.000000, z=0.000000 [80]pos=81 Angle=2.335755 Pos:x=0.000000, y=1.000000, z=0.000000 [81]pos=82 Angle=2.376936 Pos:x=0.000000, y=1.000000, z=0.000000 [82]pos=83 Angle=2.400677 Pos:x=0.000000, y=1.000000, z=0.000000 [83]pos=84 Angle=2.407039 Pos:x=0.000000, y=1.000000, z=0.000000 [84]pos=85 Angle=2.395976 Pos:x=0.000000, y=1.000000, z=0.000000 [85]pos=86 Angle=2.367536 Pos:x=0.000000, y=1.000000, z=0.000000 [86]pos=87 Angle=2.321677 Pos:x=0.000000, y=1.000000, z=0.000000 [87]pos=88 Angle=2.258430 Pos:x=0.000000, y=1.000000, z=0.000000 [88]pos=89 Angle=2.177750 Pos:x=0.000000, y=1.000000, z=0.000000 [89]pos=90 Angle=2.079697 Pos:x=0.000000, y=1.000000, z=0.000000 [90]pos=91 Angle=1.964212 Pos:x=0.000000, y=1.000000, z=0.000000 [91]pos=92 Angle=1.831352 Pos:x=0.000000, y=1.000000, z=0.000000 [92]pos=93 Angle=1.681073 Pos:x=0.000000, y=1.000000, z=0.000000 [93]pos=94 Angle=1.513406 Pos:x=0.000000, y=1.000000, z=0.000000 [94]pos=95 Angle=1.328308 Pos:x=0.000000, y=1.000000, z=0.000000 [95]pos=96 Angle=1.125820 Pos:x=0.000000, y=1.000000, z=0.000000 [96]pos=97 Angle=0.905943 Pos:x=0.000000, y=1.000000, z=0.000000 [97]pos=98 Angle=0.668648 Pos:x=0.000000, y=1.000000, z=0.000000 [98]pos=99 Angle=0.413950 Pos:x=0.000000, y=1.000000, z=0.000000 [99]pos=100 Angle=0.141849 Pos:x=0.000000, y=1.000000, z=0.000000Change Scale... keys=1 [0]pos=0 Size:width=1.000000, length=1.000000, height=1.000000
So the problem is I don't know how to draw them correctly. It seems they are always in the wrong direction , or incorrectly rotated.
And also the KEYF_OBJPIVOT (0xB013) point holds the rotation point of object , but somehow it is always 0,0,0 even if the point in Max is in different location
[Edited by - DMINATOR on June 2, 2005 11:00:31 AM]
IIRC 3ds uses a left handed coordinate system. So that would explain the wrong direction of the rotation.
Quote:Original post by nefthy
IIRC 3ds uses a left handed coordinate system. So that would explain the wrong direction of the rotation.
Thanks, I know that, and have taken that into consideration.
This problem is that the rotation and position of the objects are wrong sometimes, If I fix it then in other 3ds file the problem appears again. I think it is somehow related with center of rotation.
Quote:Original post by nefthy
IIRC 3ds uses a left handed coordinate system. So that would explain the wrong direction of the rotation.
Thanks, I know that, and have taken that into consideration.
This problem is that the rotation and position of the objects are wrong sometimes, If I fix it then in other 3ds file the problem appears again. I think it is somehow related with center of rotation.
OK maybe can someone suggest a format that :
a) Easily and correctly exported from 3dsmax (UV's , animation).
b) Easier to work with.
c) Preferably with free tools.
[Edited by - DMINATOR on June 2, 2005 12:20:27 PM]
Id be interested in that to. But from what I've read, everyone seems to sugest, writting a plugin for 3ds max, that exports to your format.
Quote:Original post by DMINATOR
Hi.
I am having a hard time understanding how to handle animation from 3ds file.
I can read all the data needed:
1. Meshes
2. Rotation matrixes and offset vectors
3. Pivot point
4. Animation keys : positions, rotations ....
The problem is that I don't understand how to make it work together.
Thanks for any help.
Maybe you need this and this.
Quote:Original post by ganQuote:Original post by DMINATOR
Hi.
I am having a hard time understanding how to handle animation from 3ds file.
I can read all the data needed:
1. Meshes
2. Rotation matrixes and offset vectors
3. Pivot point
4. Animation keys : positions, rotations ....
The problem is that I don't understand how to make it work together.
Thanks for any help.
Maybe you need this and this.
Thanks looks interesting.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement