Game Development Community

Need help with the camera...

by Justin Woodman · in Torque Game Engine · 11/10/2004 (5:10 pm) · 10 replies

Hello, I have created a player model in milkshape, it exported, loads fine, animates fine, and the camera positions are fine. However, if I move the 3rd person camera ('cam') to look up at the sky, the player model dissapears when about half of the model is still visible by the 3rd person camera... any Ideas?

Thank you,
Justin

#1
11/10/2004 (6:11 pm)
Have you set up your model bounds properly?
#2
11/10/2004 (6:22 pm)
Aah, probably not, thats why I'm still a noob ;). Is there any tutorial on doing this? is it using the mission editor or the 3d modeller? (if the 3d modeller, is there any tutorials on doing it woth milkshape)
thank you again,
justin
#3
11/11/2004 (6:15 am)
Ok, I set a bounding box around the character, and the box works, but the problem still arises. If i move the camera up from 3rd person, the character still dissapears.... any help would be appreciated. Thanks
#4
11/11/2004 (10:11 am)
Hmm... If you look at the shape in the world editor, does the bounding box the editor draws surround the entire shape, or just part of it? I'm thinking maybe the engine thinks the shape is a different size than it really is, thus stopping drawing of it sooner than it ought.
#5
11/11/2004 (5:12 pm)
Yes, I made it surround the whole model, even when the animations are at full extent, and the camera problem still happens..... does the camera need a box too?
#6
11/12/2004 (10:25 am)
So it shows up properly in the world editor?
#7
11/12/2004 (1:08 pm)
Yes, the bounding box cannot be seen, and my character can be seen, and the bounding box collides with my buildings just fine
#8
11/13/2004 (3:09 am)
Er... Maybe we're miscommunicating. I'm referring to the yellow and red boxes that show up in the Torque mission editor (accessible by hitting f11), when you select your object.
#9
11/13/2004 (5:10 am)
Oh, yes, that i certainly the problem, thank you, but how do I scale that box?
#10
11/13/2004 (7:22 pm)
If you're using the player class, you can set that box's size in the player datablock. Otherwise it should be based on the extents for the model that you set in your modelling package.