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 / FPS Camera Help

Author
Message
Wana7262
12
Years of Service
User Offline
Joined: 23rd Nov 2011
Location:
Posted: 5th Jun 2012 11:08
Hi all, i have been working on a FPS game using DGDK,i got some 3d .X model but i am unable to set the model to my camera can someone help me to set the3d model( Gun with hands) with the camera FPS view??? here is the 3d model to download

Attachments

Login to view attachments
Mr Bigglesworth
16
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 5th Jun 2012 17:13 Edited at: 5th Jun 2012 17:15
You can use dbLockObjectOn(iObjectID), use that after you load your model, not in the loop. You may also have to rotate 180 degrees on the Y axis to see it after you lock it to the camera.
Wana7262
12
Years of Service
User Offline
Joined: 23rd Nov 2011
Location:
Posted: 6th Jun 2012 07:42
hmmm thanks... why is dbPlayObject() and dbLoopObject() working???? and how can i view number of frames in a .X animated model...
Mr Bigglesworth
16
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 6th Jun 2012 17:15 Edited at: 6th Jun 2012 17:16
The new update broke the animation commands, Mireben kindly created a class to play animations here http://forum.thegamecreators.com/?m=forum_view&t=185664&b=22

To get the number of frames use dbTotalObjectFrames(int iObjectID)
Wana7262
12
Years of Service
User Offline
Joined: 23rd Nov 2011
Location:
Posted: 6th Jun 2012 18:33
can i set frame per second for my animated .x model???
Mr Bigglesworth
16
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 7th Jun 2012 06:14 Edited at: 7th Jun 2012 06:14
Using this class:


you specify the start frame, end frame, and fps. Here is an example:


and to play the animation you put this in your loop:
Wana7262
12
Years of Service
User Offline
Joined: 23rd Nov 2011
Location:
Posted: 7th Jun 2012 07:23
thanks i will try this code..

Login to post a reply

Server time is: 2024-04-19 12:15:49
Your offset time is: 2024-04-19 12:15:49