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 / Switching between models?

Author
Message
Zeus
20
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 27th Nov 2010 06:57
Okay so I believe I have bit off more than I can chew. This code is a project of mine I am working on (if you must know a WW2 RTS) that uses FPSC x9 maps. Well here is my problem. I am using DarkMATTER 1 for some of the character models. In this case, the enemy (German). I have a set of functions (included). Well as you know, DM's animations aren't in just one model. So I have to load up all of the models that go with the character. Well, I am trying to load them within the functions, delete the old one, and place the new animation with the same object number as the old one. Well it goes all fine and well actually! Deletes the old one (object 2 per say), creates the new one as object 2, but I have one problem. The FPS slows down to like 4 and just stays there. I figured it is within my coding seeming as the models aren't high poly. Can you see what I am doing and please correct me? The source is below.



Thank you!

Zeus
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 27th Nov 2010 12:26
You can add the animations from one object to another using "Append Object". That should help with your object problems!

Zeus
20
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 27th Nov 2010 16:33
I didn't know that command existed! Thank you baxslash, that will help my object woes.
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 27th Nov 2010 16:51
Append object is a useful command, but if you add in an animation that is too different rotation wise, it will mess up the rest of the anims. Don't think you will have any trouble with most dark matter objects though.

http://s6.bitefight.org/c.php?uid=103081
=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 27th Nov 2010 17:42
I used append object to add Dark Matter 1 models together for a zombie shooter project I worked on a while ago.

It worked splendidly for the SWAT guy, and the Zombie.

Zeus
20
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 27th Nov 2010 18:11 Edited at: 27th Nov 2010 19:14
Works like a charm! Thanks everyone.

Login to post a reply

Server time is: 2026-07-21 12:51:12
Your offset time is: 2026-07-21 12:51:12