Skip to content

Commit

Permalink
Ue5.3 (#36)
Browse files Browse the repository at this point in the history
* change default RHI to Dx11

* set 5.3 as UE version and 2022 as VS version

* fix engine version compatibility check for D3D11 texture

* fix post process material blending issue

* edit readme for 5.3

* change default params to some levels

---------

Co-authored-by: Benjamin Vallon <[email protected]>
  • Loading branch information
SLJLMacarit and Bvallon-sl authored Oct 25, 2023
1 parent 1b7dff0 commit d0548f8
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Config/DefaultEngine.ini
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ bUseManualIPAddress=False
ManualIPAddress=

[/Script/WindowsTargetPlatform.WindowsTargetSettings]
DefaultGraphicsRHI=DefaultGraphicsRHI_DX12
DefaultGraphicsRHI=DefaultGraphicsRHI_DX11
Compiler=VisualStudio2022

[ConsoleVariables]
Expand Down
Binary file modified Content/ZED/Levels/L_BodyTrackingMulti.umap
Binary file not shown.
Binary file modified Content/ZED/Levels/L_BodyTrackingSingle.umap
Binary file not shown.
Binary file modified Content/ZED/Levels/L_ObjectDetection_2D.umap
Binary file not shown.
Binary file modified Content/ZED/Levels/L_ObjectDetection_3D.umap
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ void USlTexture::InitResources(ESlTextureFormat Format, TextureCompressionSettin
ID3D11Resource* D3D11NativeTexture = GetID3D11DynamicRHI()->RHIGetResource(Texture->GetResource()->TextureRHI);
#endif

#if ENGINE_MINOR_VERSION == 2
#if ENGINE_MINOR_VERSION >= 2
CudaError = cudaGraphicsD3D11RegisterResource(&CudaResource, D3D11NativeTexture, cudaGraphicsMapFlagsNone);
#else
CudaError = cudaGraphicsD3D11RegisterResource(&CudaResource, D3D11Texture->GetResource(), cudaGraphicsMapFlagsNone);
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<h1 align="center">
ZED UE5.2 Plugin
ZED UE5.3 Plugin
<br>
</h1>

This plugin requires using **UE5.2**.
This plugin requires using **UE5.3**.

<p align="center">

Expand All @@ -30,18 +30,22 @@ This repository contains Unreal examples projects that demonstrate how to create

## Getting started

This version of the plugin is compatible with Unreal Engine **5.2**, and requires the [**ZED SDK 4.0**](https://www.stereolabs.com/docs/get-started-with-zed/#download-and-install-the-zed-sdk) and a **Windows setup**, because for now we are only compatible with the DirectX API.
This version of the plugin is compatible with Unreal Engine **5.3**, and requires the [**ZED SDK 4.0**](https://www.stereolabs.com/docs/get-started-with-zed/#download-and-install-the-zed-sdk) and a **Windows setup**, because for now we are only compatible with the DirectX API.

- To see our implementation of Live Link with the ZED, go here : [ZED Live Link Plugin](https://github.com/stereolabs/zed-LiveLink-plugin)

### Installation

- Download this repository..
- Download or clone this repository.
- Right click on the *ZEDSamples.uproject*, select *switch Unreal Engine version* and choose our ue5 you previously installed in the list.
- Build the solution by pressing **Ctrl + F5**. Once the build is done, it will start the project in the UE5 Editor.

You can now start the project with a double click on *ZEDSamples.uproject*.

> Troubleshooting and known issues:
> - **GPU Crashed or D3D Device Removed.** when playing a level: This is a DirectX 12 issue. Please change the RHI of your project to DirectX 11.
> - **Error when trying to package to Shipping build**: There is currently a bug preventing from building to "Shipping" build. Please use a "Development" build instead.
### Documentation

A more detailed documentation is available on our website, see here : https://www.stereolabs.com/docs/ue5/
Expand Down
2 changes: 1 addition & 1 deletion ZEDSamples.uproject
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"FileVersion": 3,
"EngineAssociation": "5.2",
"EngineAssociation": "5.3",
"Category": "",
"Description": "",
"Modules": [
Expand Down

0 comments on commit d0548f8

Please sign in to comment.