(already in Bassy's stadium pack, uploaded this so it's easier to reinstall cameras without downloading the whole pack)
*** Broadcast Cameras for BassyBoy's Stadium Megapack ***
Installation manual:
-Requires the BassyBoy's Stadium Megapack
-Simply copy all the .json files to your BepInEx\plugins\CameraInject\cameras folder
-Overwriting will remove your past camera presets if they exist
-Probably will not work for non-megapack stadiums
Methodology (skip if not intrested):
-"Position": manually positioned in the 3D model based on where the camera is in real life
-"autoFovMin": Actual broadcast footage frame (ball is near the goal) transparently overlayed over FM. Zooming in&out in until matching (plus a little more ( (-0.015) * abs(x_coord) + 2  😉 to accommodate for FM not accounting in the prospect of cameras not always zooming in when the ball is near the opposite sideline).
-"autoFovMax": Actual broadcast footage frame (ball is near the middle of the near sideline) transparently overlayed over FM. Zooming in&out in until matching (plus a little more ( (-0.01)* abs(x_coord) + 1.25 ) to accommodate for other cases where we might need more zoomed out cameras that FM doesn't account for).
-"fov": ("autoFovMin" + "autoFovMax") / 2
-"autoFovNearDist": Distance between the camera and the intersect between the halfway line and the near sideline, plus a few meters. (absolute value of the position.x coordinate minus ~22 (assumed ~35% of the pitch width))
-"autoFovFarDist": Distance between the camera and the goal (square root from the absolute value of the position.x coordinate squared plus 2500 (assumed 50% of the pitch length squared). All that plus 3.5 to accommodate for FM not accounting in the prospect of cameras not always zooming in when the ball is near the opposite sideline)
-recommendedation, use excel for fovs and a script for implementing those fovs into jsons as well as other calculations such as autoFovDistances
-Credits to BassyBoy, for stadiums obviously, but also for the super cool CameraInject plugin!
-GuruOfNauru
Credits
BassyBoy
Comments
You'll need to Login to comment
GuruOfNauru
https://drive.google.com/drive/folders/1Ck-7HRUohoWLaScMEC9CUSYCfK6_-dlJ?usp=drive_link
klyt
Hey man! Love the work!
I just have a quick edit question. Is there a quick way to flip the camera? Some cameras aren't at the right side from where they are on TV.
Like, in the last game for example the camera is facing the stand with the bench and manager when it should be the other way around as the camera is on the same side as the bench. I hope that makes sense?
GuruOfNauru
Hi there, ideally I get every camera's position and FOVs correct and there is no need to flip them 😅 (I do remember some cases where I was confused with the benches position relative to the camera, either the model didn't align with real life or stuff just wasn't adding up hahaha). If you want to quick fix yourself, follow the instructions in the README inside the cameras folder (it's not some golden ruleset that needs to be followed, just the methodology I followed for creating cameras). I do want to keep the pack as accurate as possible so do let me know which stadium has that issue 🙂.
klyt
That particular one I noticed was Hibernian - Easter Road (Scotland).
Looking through the files I'm happy to edit them where I can but I want to make sure I'm understanding correctly.
This list is labelled essentially “StadiumID_TeamID”, yeah? Then that particular JSON file is the camera settings for that particular stadium?
Now inside the file I'm guessing to flip it to the other side of the pitch would be the Z-axis on position? I'm kinda dumb with this side of things haha. Which one am I adjusting here?
GuruOfNauru
That is the old format, I would suggest deleting the old cameras folder and adding the new one from here (no big difference, but if you add new cameras you will likely end up with double cameras per stadium since the camera inject moved to a new name format, StadiumID.json).
As far as flipping the camera you would need to change the position.x variable from positive to negative or from negative to positive (in your case from -79.91 to 79.91), but there is no guarantee it won't clip into the stand or fans. Manually positioning the camera with free cam is probably the way to go 🙂.
For the Hibernians stadium, I think I got it right no?
klyt
I think I know what the issue was and it was my fault! Bassy had a camera preset saving function and I think I had one for Easter Road and for some reason it flipped. What I've done now is just delete the camera JSONs and installed them again downloading your link here to start from scratch.
As I'm still in lower leagues it might be a while until I come across them again! haha So leave it with me for now, it might just be me. 😂
I should just stick with my kits lol
GuruOfNauru
No worries, and great job with the national kits, didn't realise it was you.