Skip to content

Commit

Permalink
updating to ZED SDK 2.5, Unreal 4.19
Browse files Browse the repository at this point in the history
  • Loading branch information
nesnes committed Jul 13, 2018
1 parent 2974118 commit 81fbb32
Show file tree
Hide file tree
Showing 11 changed files with 141 additions and 45 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Stereolabs plugins
Plugins/Stereolabs/Binaries/*
Plugins/Stereolabs/Intermediate/*
Plugins/Stereolabs/.git/*
Plugins/Stereolabs/.gitignore
Plugins/*

#local folders
*.vs
Expand Down
50 changes: 23 additions & 27 deletions Config/DefaultEngine.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,39 @@
GlobalDefaultGameMode=/Stereolabs/ZED/Blueprints/GameMode/BP_ZED_GameMode.BP_ZED_GameMode_C
GameInstanceClass=/Script/ZED.ZEDGameInstance
EditorStartupMap=/Game/Levels/L_Passthrough.L_Passthrough
GameDefaultMap=/Game/Levels/L_MotionControllers.L_MotionControllers
GameDefaultMap=/Game/Levels/L_Passthrough.L_Passthrough

[/Script/Engine.Engine]
GameViewportClientClassName=/Script/ZED.ZEDGameViewportClient
LocalPlayerClassName=/Script/ZED.ZEDLocalPlayer
NearClipPlane=1.000000

[/Script/Engine.RendererSettings]
r.TextureStreaming=False
r.AllowStaticLighting=False
r.SeparateTranslucency=False
r.DBuffer=False
r.SceneRenderTargetResizeMethod=2
r.ForwardShading=False
r.DefaultFeature.AntiAliasing=1
r.DefaultFeature.MotionBlur=0
r.DefaultFeature.AmbientOcclusion=False
r.DefaultFeature.AmbientOcclusionStaticFraction=False
r.DefaultFeature.AutoExposure=False
r.DefaultFeature.MotionBlur=False
r.DefaultFeature.AntiAliasing=1
r.CustomDepth=0
r.EarlyZPass=0
vr.InstancedStereo=True
r.SeparateTranslucency=0
r.HZBOcclusion=0
r.MotionBlurQuality=0
r.PostProcessAAQuality=3
r.BloomQuality=1
r.EyeAdaptationQuality=0
r.AmbientOcclusionLevels=0
r.SSR.Quality=1
r.DepthOfFieldQuality=0
r.SceneColorFormat=2
r.TranslucencyVolumeBlur=0
r.TranslucencyLightingVolumeDim=4
r.MaxAnisotropy=8
r.LensFlareQuality=0
r.SceneColorFringeQuality=0
r.FastBlurThreshold=0
r.SSR.MaxRoughness=0.1
r.EyeAdaptionQuality=0
r.SSR.MaxRoughness=0
r.rhicmdbypass=0
sg.EffectsQuality=2
sg.PostProcessQuality=0
r.TiledReflectionEnvironmentMinimumCount=10
r.TranslucentSortPolicy=0
r.PostProcessingColorFormat=0
r.DontLimitOnBattery=1
r.ScreenPercentage=100
vr.SteamVR.UsePostPresentHandoff=0
r.MaxQualityMode=0
r.DefaultFeature.LensFlare=0
t.UnacceptableFrameTimeThreshold=20
t.TargetFrameTimeThreshold=12.5
t.HitchFrameTimeThreshold=22.8
r.DefaultFeature.AutoExposure=False
r.TextureStreaming=False

[/Script/Engine.PhysicsSettings]
DefaultGravityZ=-980.000000
Expand Down Expand Up @@ -83,3 +78,4 @@ AsyncSceneSmoothingFactor=0.990000
InitialAverageFrameRate=0.016667
PhysXTreeRebuildRate=10


90 changes: 90 additions & 0 deletions Config/DefaultScalability.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@

[AntiAliasingQuality@0]
r.PostProcessAAQuality=0

[AntiAliasingQuality@1]
r.PostProcessAAQuality=2

[AntiAliasingQuality@2]
r.PostProcessAAQuality=3

[AntiAliasingQuality@3]
r.PostProcessAAQuality=3

;-----------------------------------------------------------------------------------------------------------------

[PostProcessQuality@0]
r.MotionBlurQuality=0
r.AmbientOcclusionLevels=0
r.LensFlareQuality=0
r.SceneColorFringeQuality=0
r.DepthOfFieldQuality=0
r.BloomQuality=1
r.FastBlurThreshold=0

[PostProcessQuality@1]
r.MotionBlurQuality=0
r.AmbientOcclusionLevels=0
r.LensFlareQuality=0
r.SceneColorFringeQuality=0
r.DepthOfFieldQuality=0
r.BloomQuality=2
r.FastBlurThreshold=0

[PostProcessQuality@2]
r.MotionBlurQuality=0
r.AmbientOcclusionLevels=0
r.LensFlareQuality=0
r.SceneColorFringeQuality=0
r.DepthOfFieldQuality=0
r.BloomQuality=3
r.FastBlurThreshold=0

[PostProcessQuality@3]
r.MotionBlurQuality=0
r.AmbientOcclusionLevels=0
r.LensFlareQuality=0
r.SceneColorFringeQuality=0
r.DepthOfFieldQuality=0
r.BloomQuality=4
r.FastBlurThreshold=0

;-----------------------------------------------------------------------------------------------------------------

[TextureQuality@0]
r.MaxAnisotropy=0

[TextureQuality@1]
r.MaxAnisotropy=2

[TextureQuality@2]
r.MaxAnisotropy=4

[TextureQuality@3]
r.MaxAnisotropy=8

;-----------------------------------------------------------------------------------------------------------------

[EffectsQuality@0]
r.TranslucencyVolumeBlur=0
r.TranslucencyLightingVolumeDim=4
r.SceneColorFormat=2
r.SSR.Quality=0

[EffectsQuality@1]
r.TranslucencyVolumeBlur=0
r.TranslucencyLightingVolumeDim=4
r.SceneColorFormat=2
r.SSR.Quality=0

[EffectsQuality@2]
r.TranslucencyVolumeBlur=0
r.TranslucencyLightingVolumeDim=8
r.SceneColorFormat=2
r.SSR.Quality=0

[EffectsQuality@3]
r.TranslucencyVolumeBlur=0
r.TranslucencyLightingVolumeDim=16
r.SceneColorFormat=2
r.SSR.Quality=0
Binary file modified Content/Blueprints/BP_Utilities.uasset
Binary file not shown.
Binary file modified Content/Levels/L_HitTest.umap
Binary file not shown.
Binary file modified Content/Levels/L_MotionControllers.umap
Binary file not shown.
Binary file modified Content/Levels/L_SpatialMapping.umap
Binary file not shown.
4 changes: 0 additions & 4 deletions Plugins/README.md

This file was deleted.

22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
# Stereolabs ZED - UE4 Samples

This repository contains Unreal sample projects that demonstrate how to create advanced Mixed Reality application using the ZED SDK and Unreal.
This repository contains Unreal sample projects that demonstrate how to create advanced Mixed Reality application using the ZED SDK and Unreal.

To build and run the samples, you will need to download Stereolabs custom modification of the engine. Read the [documentation](https://www.stereolabs.com/documentation/mixed-reality/unreal/getting-started.html) to learn how.
## How to use it ?

To open the samples project, use the 'ZEDSamples.uproject' file.
First you need to have our custom engine installed and ready to use (otherwise you can follow our [installation guide](https://docs.stereolabs.com/mixed-reality/unreal/getting-started/)).

Then you can follow these steps:
- Download this repository.
- Go to your new root project folder. Create a new folder called **Plugins**.
- Drop the Stereolabs folder within the plugin download into this folder. If you haven’t downloaded the plugin yet, you can get it [here](https://github.com/stereolabs/zed-unreal-plugin).
- Right click on the *ZEDSamples.uproject*, select *switch Unreal Engine version...* and choose our custom engine you previously installed in the list.
- Open the *ZEDSamples.sln* new file with Visual Studio 2015.
- Build the solution by pressing **Ctrl + F5**. Once the build is done, it will start the project in the UE4 Editor.

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

## Inside the Editor

You can find several maps in content. Each map show you how to use the plugin for a specific use. Don't hesitate to try them all !

We have more documentation available on [lights and shadows](https://docs.stereolabs.com/mixed-reality/unreal/lighting/) or on [spatial mapping](https://docs.stereolabs.com/mixed-reality/unreal/spatial-mapping/) if you are interested in.
13 changes: 7 additions & 6 deletions Source/ZEDSamples/Private/SamplesBlueprintFunctionLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ EHMDType USamplesBlueprintFunctionLibrary::GetHMDType()
{
if (GEngine->StereoRenderingDevice.IsValid())
{
EHMDDeviceType::Type Type = GEngine->XRSystem->GetHMDDevice()->GetHMDDeviceType();
FName Type = GEngine->XRSystem->GetSystemName();

switch (Type)
if (Type == TEXT("OculusHMD"))
{
case EHMDDeviceType::DT_OculusRift:
return EHMDType::T_Oculus;
case EHMDDeviceType::DT_SteamVR:
return EHMDType::T_Vive;
return EHMDType::T_Oculus;
}
else if (Type == TEXT("SteamVR"))
{
return EHMDType::T_Vive;
}
}
}
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": "{A1C3A588-4D08-7F1E-EC6F-FA8560EAC2D1}",
"EngineAssociation": "{7B05A245-4A50-1943-B927-DC89AABBDDBD}",
"Category": "",
"Description": "",
"Modules": [
Expand Down

0 comments on commit 81fbb32

Please sign in to comment.