-
Notifications
You must be signed in to change notification settings - Fork 339
Open
Labels
Description
render a 3D model at a fixed orientation/position relative to the observer (in VR version untransformed orientation of the observer) after rendering objects and before rendering HUD.
a possible simple implementation:
- reuse Body class and provide CelestiaCore::setCockpit(Body *) which creates a copy of the body as the spaceship/cockpit (detach it from its planetarysystem in its copy and make other changes if necessary)
- in Body definition in ssc, add properties to hold the cockpit position relative to the body and initial orientation
- updates the global position and orientation per render loop
- always render it at the end of object rendering, the lighting should be based on the closest stars/planets etc...