I didn't know NVIDIA DVR thing records my background music too (as opposed to OBS), you're now forced to listen to my classic Eastern European hard techno haha.
Hello, it's the episode 7 of me absolutely propagating libfpv everywhere. The last time the game was Red Dead Redemption 2 (even if actually this BeamNG mod was made before that one).
So this time it's BeamNG.drive, why? Won't it make just yet another FPV drone mod for this game? I know it will, but I still wanted to make it after trying out one of the existing mods a couple of months ago - it was horrible (I won't point to the exact mod)... So horrible I didn't even want to test the other FPV mods.
The point of this mod is to fully support game replays so you can fly around your own rides (something I couldn't do in that other mod), yet you can absolutely ignore that and do other things like guerilla whooping or switching the preset to the 7" drone and go training long range with analog noise simulation, RXLOSS-es and stuff (now a feature across all the libfpv mods). I didn't test other game modes but they shouldn't really have issues.
It may be difficult to get up and running. I won't try to publish in the official BeamNG mod repo, this mod requires injecting into the game process and running my libfpv runtime in its thread, but with BeamNG this can only be done if you run the libfpv mod host executable before launching the game... Distributing on the libfpv website only, for now.
This mod also had another issue with car collisions. Do you know how libfpv collides with the host game? No, it doesn't get the whole collision data from the game (except SM64 FPV or any other mod that has access to the game's source code), a mod usually can't do that, and it isn't really needed. Instead, libfpv casts rays in different directions to ask the game whether the ground is close to the drone or not. It's also used to check obstacles between the drone and the pilot for signal loss simulation. To debug all this, I had to modify libfpv to be able to ask it render these rays (you can now do that too in F8 > Camera & sound).
What's the problem then? You can't just probe a complex BeamNG car with rays. It's composed of nodes, and these nodes have to be converted to something usable. To fix this, the conversion had to be done once when a car loads, so a damaged car doesn't change its collision for the drone, and it doesn't cover the wheels yet. For me, that's fine enough.
I finally made the last libfpv mod for a game I initally wanted to mod libfpv into. From now on, I'll go creative.
Until the next one,
Links: