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 Discussion / DBC Models

Author
Message
eek
21
Years of Service
User Offline
Joined: 26th Dec 2004
Location:
Posted: 4th Jul 2006 10:57
Hi all,

I have a problem with using the free media that comes with DBC. You know, the models in the program files under media. I'm just trying to use the animated Samurai model for a game because I don't want to make it mysel when it's not needed, but the problem is I don't know how to find out the keyframes to animate the model correctly. I know how to write the code to animate him and to move from say idle.x to walk.x but I don't know what the correct keyframes for each animation are. Any help would be appreciated.
Xarshi
20
Years of Service
User Offline
Joined: 25th Dec 2005
Location: Ohio
Posted: 4th Jul 2006 15:01
Download the trial deep exploration and just play the animation through. Its relatively easy

all ben needs is his band,his guitar,and his computer
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 4th Jul 2006 16:18
If I remember correctly, the Samurai animations are saved separately. So to get the number of keyframes, simply get them by using the command total object frames(obj).

Something like

* not tested
After you did this, the walking animation = 1 -> WalkEnd and the Idle animation ranges from WalkEnd -> IdleEnd

One more thing though, I used that object too once, and I thought the limb numbers did not match, and therefor, the object did not animate correctly...
If that occurs, try to avoid the append object command. (Load as 2 seperate models and hide one of the 2 every time)

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
eek
21
Years of Service
User Offline
Joined: 26th Dec 2004
Location:
Posted: 6th Jul 2006 07:49
@sven
Thanks! Total object frames seems to be working, not for the samurai but for the other models. Hopefully it'll work out.

@benny
I'm not sure what deep exploration is, maybe I'll do a search.

Login to post a reply

Server time is: 2026-07-07 17:31:54
Your offset time is: 2026-07-07 17:31:54