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 / Load model+bones+animation problem(3D)

Author
Message
SpaDeKo
17
Years of Service
User Offline
Joined: 6th Jul 2009
Location:
Posted: 24th Aug 2010 18:05
Helle peeps at TGC

I have a bit of a problem here.
I have made a map(ONE big .x file) with just stationaire objects.

The map loads perfectly and I'm able to move around using standart WASD, Space, Mouse.

The problem is, when I try to load a Player model with a framed bones animation + "4 IK chains(Not exported)" - My model dissapears.
I had 1 "good go" with the animation playing, but the model was rerotated and deform.
I used this thread to make sure the exportation was ok:
http://forum.thegamecreators.com/?m=forum_view&t=168612&b=3&msg=1997346#m1997346

This is the code I used for the Forward animation:



I took the code from the following thread, This code is the 3rd posted, and I have tried both number 2 and 3.
I succeeded once with code #2, but I dont see much deffirence in them, and both should work.

Any help, guys?

http://forum.thegamecreators.com/?m=forum_view&t=168899&b=1

--------------------------------------
NewBie - Coding? Damn..
Dia
21
Years of Service
User Offline
Joined: 16th Jan 2005
Location:
Posted: 25th Aug 2010 16:55
which model disappears? the terrain or the logan.x model

firstly you are animating object id 2, but your lgic check is object playing(1) so you are checking whatever object 1 is (the obj ID for your terrain or something?)

also, is this subroutine called every game loop? if so you will be trying to load logan.x as object 2 every single loop

thirdly are you sure that a y height of 100 is appropriate for your map/unit size? this may be why it disappears, if it is well above the camera frame

are you able to make the model correctly appear if it is static?

This is not the Sig you are looking for....
Neotron
16
Years of Service
User Offline
Joined: 21st Jul 2010
Location: I am in an underworld , making a E.Army
Posted: 25th Aug 2010 17:43
this happens to me also . i make models from 3ds max and export it using panda Xporter .when i load it in dbpro the object becomes scrambled and turned into a deform cylinder.(its with ik).

ALLAH IS THE GREATEST
May he forgive me
SpaDeKo
17
Years of Service
User Offline
Joined: 6th Jul 2009
Location:
Posted: 25th Aug 2010 18:16
#Dia:
It was the logan.x(Player model)

I have played a little around now, and managed to get the animation play(Only playing ONCE when I press W tho. It wont loop the animation)
BUT, Now the model wont move anymore, only play the animation

Here's my player:
Quote: "makePlayer:
Load object "TestDude_01.x",2
Loop object 2
position object 2,0,5,0
SCALE OBJECT 2,3,3,3
sc_setupObject 2,0,1"


This is the movement code:


#Neotron:
I'm pretty sure IK chains aren't supported by DB (Not 100% sure tho).

--------------------------------------
NewBie - Coding? Damn..
SpaDeKo
17
Years of Service
User Offline
Joined: 6th Jul 2009
Location:
Posted: 25th Aug 2010 18:28
I made a little mistake. I changed the "object playing(1)" to "object playing(2)" - Both of them

--------------------------------------
NewBie - Coding? Damn..

Login to post a reply

Server time is: 2026-07-24 23:12:27
Your offset time is: 2026-07-24 23:12:27