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 present, but not loading..

Author
Message
Saiochi
18
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Under your bed
Posted: 4th Oct 2006 13:56
I recently made a character in gameSpace, all rigged and animated, etc. I then exported him as a .x file, but the animation frames won't load in DB. So I opened the .x file in notepad, All the animation stuff is there.. The frames are just not updating.. Any thoughts on this?

If you have X-ray vision, can you see through your own eyelids?
Saiochi
18
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Under your bed
Posted: 5th Oct 2006 02:04
Anyone have absolutely ANY ideas on how to fix this?

If you have X-ray vision, can you see through your own eyelids?
Bob_42
18
Years of Service
User Offline
Joined: 15th Sep 2006
Location: Guernsey
Posted: 5th Oct 2006 02:25 Edited at: 5th Oct 2006 02:26
i assume you have tried the play object command...

incase you haven't:


otherwise, i'm not sure...

indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 5th Oct 2006 03:16
try loop object in a small load and view script sort of like this



DarkAuron
18
Years of Service
User Offline
Joined: 24th Sep 2006
Location:
Posted: 5th Oct 2006 03:22
It may or may not depend on what optimizations were performed when exporting. I know if I do heavy optimizations, the animations won't play in dbpro, but if I do light or none at all, the animations work. Don't know why..
Saiochi
18
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Under your bed
Posted: 5th Oct 2006 03:51
That's not working.. Any other ideas?

If you have X-ray vision, can you see through your own eyelids?
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 5th Oct 2006 04:17 Edited at: 5th Oct 2006 04:29
Oh, nooooo...I did the same thing you all are doing! X != MD2.
.x animations are individual files. Here is code for a DarkMatter model.



Okay, that was alot...I hope that everything is there...I know there is more than you need to load and animate.
Saiochi
18
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Under your bed
Posted: 5th Oct 2006 04:29
Can DBC load *.md2? If not could you explain this to me better, Just looking at that gives me a headache xD

If you have X-ray vision, can you see through your own eyelids?
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 5th Oct 2006 04:37
Oh, it can! Well, if that sort of thing gives you a headache, you'd better get some Tylenol for MD2. (DBPro hides a whopper of a headache on that one.)

To be perfectly honest and blunt about it...that code is about as straightforward as the explanation comes. I make constants to help the code read better....then some user types to keep things organized, and flexible. The rest is there to support the DarkMatter 6 animation system for people. Yes, it is pretty complex.

Let's start with your animations...how many are there? What are the file names in the .x file for animations that you have created?
Saiochi
18
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Under your bed
Posted: 5th Oct 2006 09:05 Edited at: 5th Oct 2006 09:07
There is one animation, about 12 frames in length, for a walk cycle. That's all i'm trying to get to load so far. And by filenames do you mean this?
If you do, then I don't have a name, nor did I know you could name them in gamespace >.<

If you have any IM program, please contact me through it. Don't want to clutter up the forums trying to figure this out xD

Cheers,

Saiochi

If you have X-ray vision, can you see through your own eyelids?
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 5th Oct 2006 09:56
...sorry, I don't do IM. My e-mail will work fine.

I meant that...the DarkMatter models have 6 animations. Each one is a .x file. You load the filename...then append the frames. So, in your case, you need to have the append statement after the load statement.

eg.
load object modelname, objnum, 1, 0
append object modelname, objnum, total object frames(objnum) + 1

Login to post a reply

Server time is: 2024-09-25 09:38:05
Your offset time is: 2024-09-25 09:38:05