Body Tracking Multi in UE5

Hi, i’m trying to create an immersive experience using UE5.4 and zed2i.
I’m working on the Body Tracking sample found on github, everything was fine and i managed to retarget my own mesh also.
The problem now is that it works only with one person, everytime a new person is detected, the software stop working (it does not crash but the unreal editor stops responding)
Any suggestions?
I had the same problem yesterday, i fixed it by removing the project from my pc and downloading it again, but now i worked on it and i cant simply remove the modified project!

Hi @Cubia, welcome to the forums!

Does it work if you do not use the retargeting at all, with the “raw” project?
Also, sorry if this is very obvious, but are you using the L_BodyTrackingMulti or L_BodyTrackingSingle level? (not that it should crash/freeze though)

Yes, i’m using L_BodyTrackingMulti!
It didn’t work also before performing retarget! It only worked the first time i started the project, it’s like by changing some parameters on the BP broke something

It’s difficult to give a diagnostic without knowing the changes.
If it’s possible for your computer, I recommend opening blueprints from the original project and from your project at the same time and comparing them to find the settings/blueprint changes.
Can you post screenshots of the Details panel of BP_ZEDBodyTrackingManager here? Maybe some variable changes cause the freeze, but I don’t have any combination in mind that could do that.

I tried to delete the project and download another one, but when i launche zed samples i got this :

The following modules are missing or built with a different engine version:

ZEDSamples
Stereolabs
ZED
SpatialMapping
SpatialMappingEditor
ZEDEditor
EnvironmentalLighting

Would you like to rebuild them now?

i try to rebuild and i get this error

ZEDSamples could not be compiled. Try rebuilding from source manually.

i don’t know what to do now

Did you download or clone the project?

The 5.4 compatibility is available, but not fully merged yet, so it’s on the Unreal 5.4 branch.

You need to clone the repository, checkout to this branch, then generate the Visual Studio solution by right-clicking the .uproject file and "Generate Visual Studio Solution. Open up the solution in Visual Studio, make sure that the ZED Samples project/game is selected as startup project in the Solution Explorer (right-click → set as startup project) and build it.

If it doesn’t work, delete the Binaries and Intermediate project and try again.

I don’t know how it worked one before, though.

If it doesn’t work again, please send me the logs from the “Output” tab of Visual Studio, not the “Errors” tab.

I tried all this step, i got this in the output console :

12>Creating makefile for ZEDSamplesEditor (no existing makefile)
12>CUDA SDK missing
12>Total execution time: 1.04 seconds
12>Unable to instantiate module ‘Stereolabs’: CUDA SDK missing

Cuda is correctly installed on my windows10, can be this due to incorrect environment variable paths?

I think the SDK installer should manage the setup of the environment variables just well. You may need to restart your computer once, which I assume you did.

Does ZED Depth Viewer work correctly? And the ZED_Body_Tracking_Viewer.exe sample under C:\Program Files (x86)\ZED SDK\samples\bin?

The first thing to do would be to try to reinstall the SDK, if there are CUDA-related problems, they should be detected then.

Please send me the full logs as a text file if you can, it should show at which point the issue appears exactly.

The problem was with cuda installation on my PC, after reinstalling v11.8 i was able to compile the solution without problems.
Deleting the project and downloading a new one fixed the bug, everything is working now also after retargeting!
Thank you for the support!!

1 Like