Vehicle suspension in Milkshape
by Chris Robertson · in Torque Game Engine · 02/06/2004 (8:51 pm) · 7 replies
Hi,
I am having trouble exporting a milkshape vehicle model that includes suspension animations. I have set up four hub nodes (named hub0-3) as required.
I have set 2 keyframes for each of the 4 springs. The first frame has the hub node up high (ie the spring is compressed), the second frame has the node down low (the spring is extended).
In the materials section, I have set four special materials named:
seq: spring0=1-2
seq: spring1=3-4
seq: spring2=5-6
seq: spring3=7-8
When I export this model, it appears correctly in game - ie the wheels appear at the hub nodes - but only one of the suspension animations (spring1 - front right) actually plays.
I have traced through the code and confirmed that the suspension animations exist, and that springLength is being set correctly for all 4. If I hard code wheel->extension, only the front right suspension animation is set to the correct position.
I am fairly sure the code is ok, as the buggy.dts that comes with the torque demo works correctly.
Strangest of all, if I export the model with only 1 of the 4 animations, that 1 animation works correctly, whichever one it is.
Has anyone ever got suspension animations exported from milkshape working before?
Even better, does anyone have or know of a working example of a milkshape vehicle they would be willing to share?
I am having trouble exporting a milkshape vehicle model that includes suspension animations. I have set up four hub nodes (named hub0-3) as required.
I have set 2 keyframes for each of the 4 springs. The first frame has the hub node up high (ie the spring is compressed), the second frame has the node down low (the spring is extended).
In the materials section, I have set four special materials named:
seq: spring0=1-2
seq: spring1=3-4
seq: spring2=5-6
seq: spring3=7-8
When I export this model, it appears correctly in game - ie the wheels appear at the hub nodes - but only one of the suspension animations (spring1 - front right) actually plays.
I have traced through the code and confirmed that the suspension animations exist, and that springLength is being set correctly for all 4. If I hard code wheel->extension, only the front right suspension animation is set to the correct position.
I am fairly sure the code is ok, as the buggy.dts that comes with the torque demo works correctly.
Strangest of all, if I export the model with only 1 of the 4 animations, that 1 animation works correctly, whichever one it is.
Has anyone ever got suspension animations exported from milkshape working before?
Even better, does anyone have or know of a working example of a milkshape vehicle they would be willing to share?
#2
I believe this is what you're looking for:
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2601
02/22/2004 (8:50 am)
Chris,I believe this is what you're looking for:
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2601
#3
Thanks for the link.....it's a good example of a vehicle, but unfortunately does not have suspension set up.
I have now added the ability for blended animations to the milkshape exporter, and have them working correctly ingame.
02/22/2004 (10:27 am)
Hi Sean,Thanks for the link.....it's a good example of a vehicle, but unfortunately does not have suspension set up.
I have now added the ability for blended animations to the milkshape exporter, and have them working correctly ingame.
#4
03/08/2004 (10:21 am)
Look very good :)
#5
Peace,
-Rob
03/08/2004 (10:29 am)
Is that exporter available to all? I would be nice to be able to use those blended animations ^_^.Peace,
-Rob
#6
04/07/2004 (10:00 pm)
One of the problems with using Milkshape is the lack of animation control from what I understand...
#7
It is open source and free. Interface takes some warming up to, though.
04/08/2004 (12:00 pm)
If you need another low cost alternative to milkshape in the short term, check out Blender - its exporter now supports almost all DTS features. www.blender.org/It is open source and free. Interface takes some warming up to, though.
Torque Owner Joe Melton
Fails At Making Games
Milkshape is pretty limited compared to those other programs, but I've always read here that it has all of the capabilities required to do what you need to do in Torque.