Player, Anim Speed, Shadows and Camera
by Emerson Gresoski · in Torque Game Engine · 02/23/2008 (8:32 am) · 4 replies
Hi Guys,
I'm trying to put a character in my game, but, some things are wrong, and, I don't know the why... I hope you can help me.
1 - Animation Speed - My character are with 30 fps, in ShowTool, the character play the animation in the correct speed, but, when I put the character in Tutorial.base, the animation speed are too slow, how to correct this? (the game is running up to 60 fps).
2 - Shadows - The character don't "creating" the dynamic Shadow, like the "box man" of the Tutorial.base. How to correct this?
3 - When I rotate the camera (Pressing 'Z' key), the camera don't rotate around the character, the camera rotate self around... Same thing, how to correct this ?
4 - The character scale is different than "box man", I'm using setScale to correct this, in the scripts. No problem with this, right?
I'm trying to put a character in my game, but, some things are wrong, and, I don't know the why... I hope you can help me.
1 - Animation Speed - My character are with 30 fps, in ShowTool, the character play the animation in the correct speed, but, when I put the character in Tutorial.base, the animation speed are too slow, how to correct this? (the game is running up to 60 fps).
2 - Shadows - The character don't "creating" the dynamic Shadow, like the "box man" of the Tutorial.base. How to correct this?
3 - When I rotate the camera (Pressing 'Z' key), the camera don't rotate around the character, the camera rotate self around... Same thing, how to correct this ?
4 - The character scale is different than "box man", I'm using setScale to correct this, in the scripts. No problem with this, right?
About the author
#2
Unfortunatelly I don't know what app is used for export the model, because I have bought the model more than one year ago :(, and, I don't have the contact with the artist anymore.
1 - All animations, Run, Walk, Jump, Back, etc.. (In ShowToolPRO the animations runs in the correct speed).
2 - hmm... Seeing the object in the engine, the bounding box is much "minor" than the player.
3 - Ok.
4 - Ok.
Thank you !
02/24/2008 (4:02 am)
Hi Adam,Unfortunatelly I don't know what app is used for export the model, because I have bought the model more than one year ago :(, and, I don't have the contact with the artist anymore.
1 - All animations, Run, Walk, Jump, Back, etc.. (In ShowToolPRO the animations runs in the correct speed).
2 - hmm... Seeing the object in the engine, the bounding box is much "minor" than the player.
3 - Ok.
4 - Ok.
Thank you !
#3
02/24/2008 (4:41 am)
2 - Bounding Box Corrected to the correct size.
#4
I'm still having problems with Number 2, The character without Shadows, anyone can help me?
02/28/2008 (3:28 am)
About Number 1 question, Now are working correct. I'm still having problems with Number 2, The character without Shadows, anyone can help me?
Torque 3D Owner Adam
Adam deGrandis
1) Which animation are you talking about that plays too slow? Is it all of them? If its a movement animation that is playing to slow and you exported the animation with ground transform (which is the "correct" thing to do), then torque will adjust your animation speed according to the velocity of the player. This stops your player from "skating" across the terrain/dif/whatever.
2) Not sure about this one. could be a problem with the bounding box or how the player is constructed. Without having the model in front of me, id be hard pressed to give a definitive solution.
3) Z allows you to rotate around the players cam node. So if the cam node is outside of the player, your rotation pivot will reflect that.
4) There isn't a problem with adjusting a player size in script. For main characters, though, its good to have no scale applied to the player. It's generally cleaner, and working clean is a great way to avoid problems down the road.