SenorPez / project-cars-replay-enhancer

Project CARS Replay Enhancer: Combines telemetry data with replay video to improve Project CARS replays.
MIT License
12 stars 1 forks source link

First result with the new overlay #106

Open Michel-NL opened 7 years ago

Michel-NL commented 7 years ago

After rendering for about six hours its done :) https://www.youtube.com/watch?v=3VSgXe4N3H4 (edit: second movie https://www.youtube.com/watch?v=YrOYFhxn710) If you think its looks ok, then we could release it in the wild 👍

At the moment the server is busy with number 2, but that one takes about 8 hours. 2GB video. untitled Do you think there could be some more tweaking with the code to make it faster?

Michel-NL commented 7 years ago

Hmmm i knew the replays are bad in Project Cars...but this bad :( I drive the orange McLaren. In the live race there is a McLaren in front of me, with the replay its a BMW. Looking further I think the only right car is my own car. Everyone else is driving the wrong car.

pc_replay

pc_incar

SenorPez commented 7 years ago

They look good to me! There's a bit of an issue with sync, but practice will make perfect there!

As for the two issues:

Michel-NL commented 7 years ago

I knew about liveries switching when you watch a replay... I wasn't aware it'd switch out entire CARS. That's kind of bad, especially given that we list the cars in the results screens. EESH. I'm really hoping replays and telemetry get some love in PCARS2; I'm somewhat disappointed I didn't get WMD access just so I can screech about that to the developers!

Just to be clear I don't use the replay to capture the telemetry data. I do that with the live race. Its really quit about PCARS2. You're not thinking about extending this to Asseto or F1?

SenorPez commented 7 years ago

Just to be clear I don't use the replay to capture the telemetry data. I do that with the live race.

Actually, capturing telemetry from a replay doesn't work. There is a LOT of blank data, most notably timing, that causes issues with the current implmentation. The replay basically outputs vehicle position data and throttle and brake (probably for sound effects). You have to capture from the live race to make anything work.

You're not thinking about extending this to Asseto or F1?

I'm thinking about it, but my limiting factor is time! One huge plus is the new architecture under the hood: It's not nearly as tightly coupled to Project CARS anymore... in theory, someone could write a new "RaceData" module that reads Assetto telemetry, and feed it to the module that renders standings.

Michel-NL commented 7 years ago

in theory, someone could write a new "RaceData" module that reads Assetto telemetry, and feed it to the module that renders standings

If I find some time then I will try it for F1 2016. It is sending out some UDP data.

SenorPez commented 7 years ago

Are you using the python packetcapture or the Java PacketCapture?

I found F1's UDP broadcast information, and the capture should work, with one change: Codemasters broadcasts on a different port than SMS. I can cut you a copy of whichever capture you use that will use that port, and then I can use that data to see how badly it breaks everything else!

Michel-NL commented 7 years ago

I use the python packetcapture and running it on my server. Thinking now....because F1 can only send it to 1 IP it is not going to work, because I reserved that IP to send the UDP data to my tablet (simple low power tablet).

If you still want it to test I could use a Surface tablet to test it with the Java packetcapture, but I wouldn't use it in the future. Hoping that codemaster will allow to broadcast the stream to any device on your network.

SenorPez commented 7 years ago

Looking at their information, it seems that PS4/XBONE is broadcasting and PC can support up to 4 IP addresses, so it should still work? http://forums.codemasters.com/discussion/46726/d-box-and-udp-telemetry-information

Michel-NL commented 7 years ago

It should work that way, but the PS4 version has a bug and as usual codemasters has disappeared to fix it :-( http://forums.codemasters.com/discussion/46594/udp-telemetry-settings-ps4/p1