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 / No playing md2 models-- bug?

Author
Message
Ian T
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 13th Nov 2003 19:09 Edited at: 13th Nov 2003 19:11
Greets. I'm having trouble with my md2 models-- they won't play, but they'll loop. To clarify, the loop object command works with them, but play object and set object frame don't do anything. Interpolation and object speed do effect them. I've tried this with a number of md2 models off of Polycount with the same results-- no complex code here, just load + play/loop +do-sync-loop. (Edit-- will also note that trying to loop between a set of specific frames fails. Apparently Pro is loading in the frame data wrong? Works fine in Deep Exploration.)

Same thing with you guys?

--Mouse: Famous (Avatarless) Fighting Furball

A very nice %it, indeed.
waffle
23
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 13th Nov 2003 19:13
I had a simular problem before....

try this and see if it works as a work around...

Play Object obj,1,finalframe

I found that simply calling
Play Object obj
would stop at the last frame and not reset to the first frame.

internet gaming group
Ian T
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 13th Nov 2003 19:35
Oh-- I think I may have located another problem. Play object 1,1,80, for example, actually stops the object at frame 80.01*******, so If Object Frame(1)=80 dosen't work like it should... Play Object without any paramaters also dosen't work. I think the animation commands need a tad bit of fixing .

Thanks.

--Mouse: Famous (Avatarless) Fighting Furball

A very nice %it, indeed.
Ian T
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 13th Nov 2003 19:37
Here's more weirdness.

Play Object 1,55,80, before the main loop, plays the object from frame 1 to 80. That's bad enough.

And...

If Object Frame(1)>80 then set object frame 1,55 : play object 1,55,80

...inside the main loop just keeps playing the object past frame 80. In other words the play object command has no regard for the start frame on md2 models, and apparently if the end frame is earlier than its current frame, it just keeps playing to the end.

In other words md2 models are currently useless until they get fixed . I'm going to post this in the bug reports forum in a bit, I hope it can be repaired in Upgrade 6.

--Mouse: Famous (Avatarless) Fighting Furball

A very nice %it, indeed.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 13th Nov 2003 19:59
I'm having the same problem with a model someone asked me to try out ...

SET OBJECT FRAME doesn't.

TOTAL OBJECT FRAMES() returns 0 until you actually start animating

PLAY OBJECT doesn't start at the specified start frame, it initially starts at frame 1, and then will only move forward through the frames.

I'll tell you what. If you post it, I'll confirm it
Ian T
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 13th Nov 2003 20:08
Will do . Just wanted to see if I was missing something obvious before I posted in the bug reports. Bugward ho!

--Mouse: Famous (Avatarless) Fighting Furball

A very nice %it, indeed.

Login to post a reply

Server time is: 2026-07-26 12:33:25
Your offset time is: 2026-07-26 12:33:25