Game Development Community

Player not rendering

by Daniel Buckmaster · in Torque Game Engine · 12/21/2007 (1:06 pm) · 2 replies

I've implemented a few resources like 'more realistic first person' and 'additional player positions', and now I'm getting some wierd stuff going on. Basically, when I start a mission and the player spawns, the player's model is not loaded, so the camera just floats a metre above the ground without the root animation, shadow, or anything. When I look down, the mesh pops into view, the camera snaps into place, and a shadow springs up.
I *think* this is because to start with, the player's bounding box cannot be seen, so the Player is not rendering. This occurs when I go from crouching to prone, as well, and some other transitions, so the camera ends up behaving strangely until I look down at myself.
Is there an easy way to force the player to render, even if the bounding box is out of sight? Or is that not the issue?

About the author

Studying mechatronic engineering and computer science at the University of Sydney. Game development is probably my most time-consuming hobby!


#1
12/25/2007 (11:49 am)
If you set the bounding box of your player to include the eye node, or move the eye node inside the bounding box, it should render.
#2
12/25/2007 (12:13 pm)
Okay, thanks. I'm using a default player model for now, though, so I can't esaily change it. I'll kep it in mind with other characters...