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.

Dark GDK / Cant dbPlayObject( ) with blender created animated figure

Author
Message
Whiteglove
7
Years of Service
User Offline
Joined: 1st Aug 2012
Location:
Posted: 2nd Aug 2012 03:39
Hi ,

My model does appear but dark gdk wont play the animation I've created in Blender . I exported it into DirectX (.x)
Frame Length : 1-160
Used Armature

Need Help .

Here to learn . There to be a programmer
haliop
11
Years of Service
User Offline
Joined: 2nd Sep 2008
Location:
Posted: 2nd Aug 2012 09:29
this is a known problem
use dbSetObjectFrame(id,frameNumber);

then cycle the frameNumber ++; or -- for reverse.



[URL] http://forum.thegamecreators.com/?m=forum_view&t=198467&b=22 [/URL]
Olby
16
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 2nd Aug 2012 13:02
Just to clarify. This is only an issue with DarkGDK 1.0 and not the new 2.0.


Intel Core2Duo 2.2GHZ, 2GB, GeForce 8600M GT 1280MB, Windows Vista Ultimate SP2, PureBasic 4.61 + DarkGDK 2.0
Whiteglove
7
Years of Service
User Offline
Joined: 1st Aug 2012
Location:
Posted: 2nd Aug 2012 23:45
You mean like this
->> dbSetObjectFrame( 1,++);

Here to learn . There to be a programmer
Rudolpho
13
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 3rd Aug 2012 13:15


With some more work you can get it to play in reverse as well (using --anim.current and checking if its < anim.start for instance). A problem with this is that it won't interpolate between the frames. I think it's possible to do that using dbSetObjectInterpolation (the function name should be something like that) which sets how fast the transition between two frames will be.


"Why do programmers get Halloween and Christmas mixed up?"

Login to post a reply

Server time is: 2019-10-16 23:33:01
Your offset time is: 2019-10-16 23:33:01