tmeedend / camtool

This is the camtool app for Assetto Corsa. Its original author kaspersky authorized me to put it on Github so that we can continue to work on it.
GNU General Public License v3.0
5 stars 1 forks source link

Smooth camera transitions on driver change #32

Open MaxineOnGasoline opened 2 years ago

MaxineOnGasoline commented 2 years ago

Knowing that Cam Tool 2 is rather used for Replays, recent upgrades made it almost fully eligible to use for live-streaming as well, but there's just one more obstacle.

From what I noticed, whenever user changes the driver that the camera focuses on, Cam Tool still goes through the whole route of the scene, extremely speeding the movement up and making the shot look very weird and disorienting.

https://www.youtube.com/watch?v=3E7_xrYtqCA&feature=youtu.be Here's a good example of it happening almost constantly when switching drivers.

I don't know how big of a chance there is to fixing that, but even if there was a way to "delay" the camera change between the drivers so it can switch in the moment that the next scene starts for the newly focused car would be good enough. As long as it's possible to get rid of these movements while using the app, any solution would be great.

tmeedend commented 2 years ago

Thank you for your feedback. Unfortunately, all these problems with the camera position and movement is very tricky. I don't manage to understand the code, lot of mathematics. I think this bug could be also related to these issues:

I took already a lot of time trying to understand this portion of code without success. If someone out there is willing to take a look, and propose a merge request, that would be great ...

Cheers