(06-27-2017, 07:52 PM)Ichiru Wrote: Sneak preview of some newer features:
- Better HUD
- Atmosphere
- Ship speeds matching FL
I used two fixed positions in local ship coordinates, one near and far. Basically you just interpolate cam position between them depending on normalized speed and clip to far if camera goes behind. Same for rotation using slerp.
And final tip that makes everything ok: you move far position in local coordinates depending on where your normalized mouse position is. This trick expands your view in direction where you point your mouse (inb4 like FL does, when you point mouse right, your cam is offset to right, ship goes to left and you see more on your right, and ye x and Y axis are trated differently becaue of your resolution, but I used circle like mouse area)