Another thing you could do, is to change the near/far range to reflect the closest and furthest object...
Basically just calculate the distance from the camera to every object and set the near value to the closest distance-something and the far value to the furthest distance-something. Something being the width of the largest object in the game.
In the code above, you write:
'Rather than using controls to move the player, use them to move all your stuff around them!'
Just remember that calling it every frame is redundant, CPU intensive and can lead to problems with collision.
Andy
Basically just calculate the distance from the camera to every object and set the near value to the closest distance-something and the far value to the furthest distance-something. Something being the width of the largest object in the game.
In the code above, you write:
'Rather than using controls to move the player, use them to move all your stuff around them!'
Just remember that calling it every frame is redundant, CPU intensive and can lead to problems with collision.
Andy