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 / help loading quake 3 models

Author
Message
MrFusion
22
Years of Service
User Offline
Joined: 6th Oct 2003
Location:
Posted: 12th Oct 2003 18:58
Does anyone have some code that shows the proper way to load
Quake 3 models (md3 models) and animation? I can't seem to
get them to work with the object load method. I'm also not
sure how to load in the animation.cfg file.

Thanks for any help.
Tom
MikeJohnson
22
Years of Service
User Offline
Joined: 29th Aug 2003
Location: Radcliffe, Manchester
Posted: 12th Oct 2003 19:33
You need to place all of the files for the MD3 model in one folder e.g. "mymodel". There will be texture files, cfg files and usually 3 MD3 models - upper, lower and head. Then you need to call "load object" referring to the "mymodel" folder and tag on ".md3" e.g. 'load object "mymodel.md3", 1' Your model should then load as normal.

Mike
MrFusion
22
Years of Service
User Offline
Joined: 6th Oct 2003
Location:
Posted: 13th Oct 2003 05:43
Ok, great! That loaded the model (thank you!) and I was able
to loop through the animation, but for some reason the
animation seems to be off. The upper body sometimes rotates
180 degrees around the waist as well as some other strange effects.
I haven't quite got the hang

I've included the code (although I've noticed that the posted version is sometimes missing the backslashes).

Thanks for the help, I'm just getting started (as if you couldn't
tell!)
MikeJohnson
22
Years of Service
User Offline
Joined: 29th Aug 2003
Location: Radcliffe, Manchester
Posted: 13th Oct 2003 22:04
If you send me the model I will take a closer look. I have only tested models off the Quake 3 CD and they work fine. Not tried many others.

Mike
UberTuba
23
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Brittania
Posted: 14th Oct 2003 01:26 Edited at: 14th Oct 2003 01:28
so thats how u do it. ive wondered why it doesnt work 4 so long
oh well, got an x model now, so im happy

the artist formally known as darkfluff
MrFusion
22
Years of Service
User Offline
Joined: 6th Oct 2003
Location:
Posted: 15th Oct 2003 16:47
Ok, I'm working on getting you the model (it's about 5 Megs)
I may have to post it somewhere you can download.

It seemed kind of strange to you need to give the program the name
of a directory with an added extension in order to load these
models. Is that documented anywhere? Maybe the DarkBasic people
should have some more examples of loading these different model
types. I never would have figured that out on my own.

Login to post a reply

Server time is: 2026-07-28 05:47:27
Your offset time is: 2026-07-28 05:47:27