pioneerspacesim/pioneer — pull request #1125 by Luomu (2012-03-29 14:29:48+00:00)
Title: Allow ships to define offsets for rear and front cameras

For #1067.

Ship definitions now have new optional fields: front_camera and rear_camera. If an offset is left undefined or 0,0,0, the ship will not be drawn in the camera view as usual.

Notes:
- The legacy renderer always has a near clipping distance of 10.0. This means that cameras too close to the ship can "cut" through the surface. Sad but unavoidable...
- Crosshairs are always drawn at the screen center. Since lasers are spawned at the gun_mount positions tweaking the camera offset can lead to even larger aiming error. Of course this has been a problem before, but nobody has complained ;)