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 Discussion / Animation Problem

Author
Message
JMScomp
17
Years of Service
User Offline
Joined: 9th Dec 2007
Location:
Posted: 9th Dec 2007 08:47
Hello. I am trying to animate a minigun, then place it in my game. Well I made the model and animation, and I placed the model in my level just fine. The problem comes when I add the command for looping the animation.
First, I'm running DB Enhanced Edition (same as classic?), I made the model In 3DSMAX, and my model is nothing but a box with minigun barrels sticking out of the side that rotate when the animation is played.

When I place it without looping it looks like this:
********
* *********
********
But when I loop it:
*
*
*
******** *
* *
********

The barrels are place like this and no animation is played. Is this a problem with my animation or with DB. I have attached the model in question.

Attachments

Login to view attachments
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 9th Dec 2007 19:14
You may want to check on the 3 dimensional chat board but there seems to be a problem in one of two or both areas in the model file.

Not knowing 3dsmax, I can only guess at a few things based on converting this to a directx file. Often in 3d editors there is a selection to set the final pivot point. This is hard to explain... The gun barrel and the holds are set with a rotation before they even go to the animation. If it's at all possible, you should make sure that whatever position you set the model up as, all the rotations should be fixed or set to zero. What I mean by this is in the designing stage of your model if you select the barrel and move it around and rotate it to get it where you want it, that rotation and movement data is saved. Once the barrel is in place, the rotations and positions should be reset to zero so as to say that the barrel's position now is it's starting point. Sometimes this is called locking the transformations or clearing the transformations. If this information is not reset, once the animation starts, it looks at the rotations and positions you made on the barrel to get it into place (before you even started animating) and plays those with the animation key frames. This will often throw a limb into a strange position or it's original position when you first created it.

Enjoy your day.
JMScomp
17
Years of Service
User Offline
Joined: 9th Dec 2007
Location:
Posted: 10th Dec 2007 02:31
I posted this here because I thought it might be a problem with DB, or code. I'm new to animating in 3DSMAX, but I understand what you are saying, so I'll post in the 3D board and figure out how to do this.
Thanks for the help, this one had me boggled.

Login to post a reply

Server time is: 2025-06-05 17:38:08
Your offset time is: 2025-06-05 17:38:08