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.

DarkBASIC Professional Discussion / saving the animation data

Author
Message
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 7th Apr 2010 02:22
Hi guys!

So, why are the "save object animation" and "load object animation" obsolete now? Even "set object keyframe" is obsolete... How can I save the animation data of an object to a file? Basically, I'd like to have a system where I can append one set of animation data to any object (with the same amount of limbs). How else could I achieve this?

I know that Enhanced Animations can do it, but is that really the only way?

TheComet

Robert The Robot
19
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 7th Apr 2010 17:09
Quote: "I know that Enhanced Animations can do it, but is that really the only way?"

Effectively, yes.

To extract the animtion data manually, you can open the .X file in notepad. As long as it's ASCII text, the animation data is usually located in a hge list at the end (Starts with "AnimationSet", continues with a series of templates called "Animation keys").

You could then manually copy the keyframe data over to the neobject by pasting it in one limb at a time. If the file is a .X binary, or a .dbo, there isn't a thing you can do.

"I wish I was a spaceman, the fastest guy alive. I'd fly you round the universe, in Fireball XL5..."
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 8th Apr 2010 19:47
Would append object work for you?

http://s6.bitefight.org/c.php?uid=103081
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 8th Apr 2010 20:07
@DVader

Not exactly. I'd like to use "append object animation", which is now also obsolete...

Let's say I had 2 models:

model1.x
model2.x

And I had an animation file

animation.anim

In DBC It was possible to append the animation to any object, so I would be able to use:

load object "model1.x",1
load object "model2.x",2

append object animation 1,"animation.anim"
append object animation 2,"animation.anim"

(Can't quite remember the syntax of that command, is that correct?)

I'd like to do that with DBP somehow. How could I do that?

@RTR

I am using an ASCII based .X format, but it is boned animation. Does that still work?

TheComet

Login to post a reply

Server time is: 2026-07-26 15:31:51
Your offset time is: 2026-07-26 15:31:51