MaxScript
Добавлено: 15 фев 2013, 12:41
Hi,
I am trying to re-create original Battlefield 3 skeleton in 3ds max from extracted game data files. Basically I have world space coordinates for each bone in text file
The structure looks like this:
member::LinearTransform
right::Vec3
x 1.0
y 0.0
z 2.220446e-16
up::Vec3
x -0.0
y 1.0
z 0.0
forward::Vec3
x -2.220446e-16
y -0.0
z 1.0
trans::Vec3
x 0.2
y 0.0
z 4.440892e-17
member::LinearTransform
right::Vec3
x 1.0
y 0.0
z 0.0
up::Vec3
x -0.0
y 1.0
z 0.0
forward::Vec3
x 0.0
y -0.0
z 1.0
trans::Vec3
x 4.956174e-16
y 1.7004331
z 0.0771753
where "member::LinearTransform" is subsequent bone
And my guess that "right" "Up" "Forward" is not usefull, only the "trans::Vec3" and its sub-column is used.
Now all I need atm is, maxscript to interpret the txt file and create a "point" helper for each "member::LinearTransform" using world space data from it`s respective "trans::Vec3" subcolumns.
I am attaching a link to the txt file I have extracted.
https://dl.dropbox.com/u/88155050/BF3/Venice1pSke01.txt
Could you possibly help me with this?
Thank you very much.
I am trying to re-create original Battlefield 3 skeleton in 3ds max from extracted game data files. Basically I have world space coordinates for each bone in text file
The structure looks like this:
member::LinearTransform
right::Vec3
x 1.0
y 0.0
z 2.220446e-16
up::Vec3
x -0.0
y 1.0
z 0.0
forward::Vec3
x -2.220446e-16
y -0.0
z 1.0
trans::Vec3
x 0.2
y 0.0
z 4.440892e-17
member::LinearTransform
right::Vec3
x 1.0
y 0.0
z 0.0
up::Vec3
x -0.0
y 1.0
z 0.0
forward::Vec3
x 0.0
y -0.0
z 1.0
trans::Vec3
x 4.956174e-16
y 1.7004331
z 0.0771753
where "member::LinearTransform" is subsequent bone
And my guess that "right" "Up" "Forward" is not usefull, only the "trans::Vec3" and its sub-column is used.
Now all I need atm is, maxscript to interpret the txt file and create a "point" helper for each "member::LinearTransform" using world space data from it`s respective "trans::Vec3" subcolumns.
I am attaching a link to the txt file I have extracted.
https://dl.dropbox.com/u/88155050/BF3/Venice1pSke01.txt
Could you possibly help me with this?
Thank you very much.