How to get zed2i depth image to unreal texture?

Hi!
Try to use Unreal Engine to make a MR project,Can’t figure out how to get zed 2i depth to unreal txture.
Thanks

Hi @giordanoshai, welcome to the forums.

Sorry, I’m not sure I get what you mean. If it’s displaying the depth in UE5, you can do so by changing the “Image View” setting in the BP_ZED_Initializer:
image

Hi
sorry ,my bad.
I need the depth image to be a unreal texture,not the image view.

Hi,

You can take a look at our “M_ZED_Mono” material that is using the depth texture to compute the occlusions.

The texture is set here : https://github.com/stereolabs/zed-UE5/blob/main/Plugins/Stereolabs/Source/ZED/Private/Core/ZEDCamera.cpp#L529

Best,
Benjamin Vallon

Stereolabs Support