joshjaysalazar / IntelliCaster

An AI race commentator for iRacing
GNU General Public License v3.0
3 stars 1 forks source link

14 add more camera variety #83

Closed joshjaysalazar closed 9 months ago

joshjaysalazar commented 9 months ago

Description

A method was added to choose a random camera (with a strong preference for TV camera angles for a consistent visual language), along with logic to avoid bad camera angles. An option was added to the UI to choose to use only realistic camera angles (i.e. no chase cam, since that's an impossible camera angle in real life), and the logic accounts for that setting accordingly. Any camera change made by commentary now chooses a random camera instead of defaulting to "TV1." Additionally, logic is in place to avoid choosing the same camera twice, therefore avoiding the sudden slide over motion which happens when focus is turned to a nearby car on the same angle.

Fixes #14

Type of change

Testing

Multiple replays were run for several laps to ensure choosing cameras was working as intended.