Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Animations not working for .X or .3ds files?

Author
Message
Person99
18
Years of Service
User Offline
Joined: 15th Dec 2005
Location: Good question
Posted: 2nd May 2007 07:34
I have a sword that has exactly 10 frames of animation. I made in Milkshape 3d, and exported it as both a .3ds AND a .X file.

I imported it into DBPro, and nothing happens.
I tried using it where it goes with the player (Attached to a limb by 'XYZ is the same as: LIMB (Basically)' stuff.) Did not work.
I tried it with as simple animate code. nothing happens.

Code try one.


Code try two.


Code try three.



The models are built in and animated in Milkshape 3d. The model appears fine, but doesn't animate at all.

Can anyone help me get my objects animating?

The Person99 awards go to: 1. Jack the Ripper for hardest crime scenes. 2. Peter Petrelli for most powers. 3. Superman for longest flight. 4. "The Doctor" for best time travel machine.
Jerok
19
Years of Service
User Offline
Joined: 7th May 2005
Location: Mars. Wait a sec I\'m on MARS. OMG
Posted: 2nd May 2007 17:16
Did you check the boxes to export animations?
I know it is stupid to ask, but you should double check anyway.

Were you in animation mode when you exported the model?
This is a big one. Milkshape screws up models that are exported while you are still in animation mode.

When you exported to .x what did you choose as your animation frame spacing?
When you exported into .x it asks for frame offset. I believe if you choose zero then you lose your animation.

Thats all I can think of that could make you lose the animation.
vorconan
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Wales
Posted: 2nd May 2007 20:07
.3ds files don't support animation, they are just a mesh file
Johaness
18
Years of Service
User Offline
Joined: 20th Sep 2006
Location:
Posted: 2nd May 2007 20:33 Edited at: 2nd May 2007 20:35
Use the Total Object Frames command to see if the model does have animation frames.

.3ds supports hierarchical animation not skinned mesh.
vorconan
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Wales
Posted: 2nd May 2007 20:46
yeah, i just looked, only keyframe animation
Person99
18
Years of Service
User Offline
Joined: 15th Dec 2005
Location: Good question
Posted: 2nd May 2007 20:52
Ok, I turned anim off before exporting.
With this code, if I press control, it just does one frame forward. If I remove line 15 (If controlkey()=0 then lo...), it plays about 3 or 4 frames, then sits there.

The Person99 awards go to: 1. Jack the Ripper for hardest crime scenes. 2. Peter Petrelli for most powers. 3. Superman for longest flight. 4. "The Doctor" for best time travel machine.
Johaness
18
Years of Service
User Offline
Joined: 20th Sep 2006
Location:
Posted: 2nd May 2007 20:58
try

Person99
18
Years of Service
User Offline
Joined: 15th Dec 2005
Location: Good question
Posted: 2nd May 2007 21:20
It printed "1890"...?

The Person99 awards go to: 1. Jack the Ripper for hardest crime scenes. 2. Peter Petrelli for most powers. 3. Superman for longest flight. 4. "The Doctor" for best time travel machine.
Johaness
18
Years of Service
User Offline
Joined: 20th Sep 2006
Location:
Posted: 3rd May 2007 07:56
hmmm. I don't use milkshape but I'm guessing it exported the animation using ticks instead of keyframes. Might want to check the export settings.

A way to test that theory out is to use "set object speed" and give it a large value like 1000 or more.
Person99
18
Years of Service
User Offline
Joined: 15th Dec 2005
Location: Good question
Posted: 3rd May 2007 21:33 Edited at: 3rd May 2007 21:33
Still does the exact same thing. If I press control, it moves by one frame, and while control is down, does nothing.

The Person99 awards go to: 1. Jack the Ripper for hardest crime scenes. 2. Peter Petrelli for most powers. 3. Superman for longest flight. 4. "The Doctor" for best time travel machine.
Person99
18
Years of Service
User Offline
Joined: 15th Dec 2005
Location: Good question
Posted: 3rd May 2007 21:41 Edited at: 3rd May 2007 21:45
Aha! (Edit is messed up again...)

It now animates when control is pressed, but it is really slow, and animates smoothly. I think Milkshape is using ticks.



(Well edit seems to work on this post...?)

Anyway, I added the line:
set object speed 2, 1890

And it animated like it did in Milkshape.
I would really like it to use keyframes instead of "ticks", does anyone know how can I do this?

The Person99 awards go to: 1. Jack the Ripper for hardest crime scenes. 2. Peter Petrelli for most powers. 3. Superman for longest flight. 4. "The Doctor" for best time travel machine.

Login to post a reply

Server time is: 2024-09-25 21:21:40
Your offset time is: 2024-09-25 21:21:40