Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Help] Understanding SMD files?

Skilled Illusionist
Joined
Aug 5, 2008
Messages
377
Reaction score
33
Hi guys, I have a couple questions regarding SMD files, what some things do and such, I have some theories, but I thought I would ask too, 'cause maybe I'm all wrong here.

So for example, this is Rune Blade:

Code:
version 1
nodes
0 "Box02" -1
1 "Bone02" 0
end
skeleton
time 0
0 15.888655 0.000000 -3.940662 1.570796 0.000000 0.000000
1 -15.888647 6.951506 160.123444 -1.570796 0.942000 -1.570796
end

For what I understand in the skeleton part, every time.. so time 0, time 1, etc are the frames of the animation, so in this case as there's only 1 frame it means the Rune Blade has no animation, which seems right, as weapons don't really move.

Then on each line in that specific time frame, so in this case just 2 (0 and 1), are those position coordinates?
So like:

Code:
0 15.888655 0.000000 -3.940662 1.570796 0.000000 0.000000

Are those 15.8, 0, -3.9, 1.5, 0, 0 positions? Or what do those values mean?

Also, last question, in the first part, the bones, what does the last digit mean?

Code:
0 "Box02" -1

That -1 for example?
 
Junior Spellweaver
Joined
Aug 7, 2010
Messages
137
Reaction score
138
Hi. Here is Valve website to understand SMD files.




About "time" label. Inside each frame, you have the position and rotation of each node.

The last digit on Node list means it's parent. If a node has -1, it means it has no parent. It it has other value, it is the ID of the parent.
 
Upvote 0
Back
Top