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 / Animation not working.

Author
Message
tFighterPilot
15
Years of Service
User Offline
Joined: 9th Jul 2009
Location:
Posted: 11th Jul 2009 16:47
Creating a new thread because when I reply to an old one it doesn't go up.

Hello, I'm unable to see animations in the program I created. I exported the model in 3D Studio Max using the Panda DirectX exporter. I can see the animation just fine in the directX model viewer. When I load it to the program, I can see the model, but not the animation. Here's the code



Please help.
Mista Wilson
16
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 12th Jul 2009 05:12
Try using the function "dbLoopObject" instead of playobject... I think that with that play command(also depending on where you have it in your code, keep it outside the main loop, or control when it can execute if its in the main loop)

I think PlayObject will just play the animation through once. And experiement with the speed, I use the panda exporter for MAX09 myself, and I have noticed that it tends to do some strange things to the files(or maybe its GDK loading it strangely ive not looked to hard tbh), for example, I have a model rigged and animated in max, its 30 frames of animation for an idle loop, timed to play out over 3 secs. When I export it from MAX, I load it into GDK, it has something like 50,000 keyframes of animation(instead of the 30 its meant to have) and I had to set its speed to over 12,000 to be able to get its timing correct.

Also, the Panda export options need to be set a certain way if you are going to export animation and have it affect the mesh properly inside GDK. Ive noticed that sometimes, depending on options, the mesh can look fine, till half way through its animation, then the skin gets all screwed up and the model collapses on itself(looks quite funny actually)... the best advice I can give to you, is to experiment with all of the export setting on the Panda Exporter(there are alot of em) and see what gets you closest to what you want - and when loading it in GDK, expect it to be a little different than it was inside max(speed, amount of keyframes, sometimes even the rotation/pos of the model will be affected etc)

If it ain't broke.... DONT FIX IT !!!
tFighterPilot
15
Years of Service
User Offline
Joined: 9th Jul 2009
Location:
Posted: 12th Jul 2009 12:29
First of all, thank you very much for your answer.

I tried both loop and play. I even tried to set it to a certain frame. Nothing work, it's standing still. As I said, it seems like the export was ok, because it looked just fine in the DirectX viewer. Are there certain settings I need to put when exporting?
tFighterPilot
15
Years of Service
User Offline
Joined: 9th Jul 2009
Location:
Posted: 12th Jul 2009 12:32
Wait, yeah it works. It's just really really slow! I set speed to 5000 instead of 100 and it works just fine! Thanks!

Login to post a reply

Server time is: 2024-11-25 06:45:26
Your offset time is: 2024-11-25 06:45:26