Skip to content

Commit

Permalink
Upgraded HandGameplay and plugins to Unreal Engine 5.2
Browse files Browse the repository at this point in the history
- Switched Oculus plugin references to new versions.
- Removed `WITH_OCULUS_ENGINE` defines, since `HandTrackingFilter` no longer requires the Oculus fork.
  • Loading branch information
jasonmeisel committed Aug 1, 2023
1 parent 1857c44 commit 4b43644
Show file tree
Hide file tree
Showing 37 changed files with 340 additions and 260 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ Config/DefaultEditorSettings.ini
Build/Android/res/drawable*/
lfs/
hooks/
.vsconfig
61 changes: 56 additions & 5 deletions Config/DefaultEngine.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ AppliedDefaultGraphicsPerformance=Scalable
[/Script/Engine.Engine]
+ActiveGameNameRedirects=(OldGameName="TP_Blank",NewGameName="/Script/SHOHandRecognition")
+ActiveGameNameRedirects=(OldGameName="/Script/TP_Blank",NewGameName="/Script/SHOHandRecognition")
+ActiveClassRedirects=(OldClassName="TP_BlankGameModeBase",NewClassName="SHOHandRecognitionGameModeBase")
+ActiveGameNameRedirects=(OldGameName="/Script/HandPoseShowcase", NewGameName="/Script/HandGameplay")
+ActiveClassRedirects=(OldClassName="TP_BlankGameModeBase",NewClassName="SHOHandRecognitionGameModeBase")

[/Script/Engine.RendererSettings]
r.Mobile.DisableVertexFog=True
Expand All @@ -28,6 +28,8 @@ r.TextureStreaming=True
Compat.UseDXT5NormalMaps=False
r.VirtualTextures=False
r.VirtualTexturedLightmaps=False
r.VRS.Enable=False
r.VRS.EnableImage=False
r.VT.TileSize=128
r.VT.TileBorderSize=4
r.vt.FeedbackFactor=16
Expand Down Expand Up @@ -117,6 +119,9 @@ r.SupportReversedIndexBuffers=True
r.SupportMaterialLayers=False
r.LightPropagationVolume=False
r.Mobile.AmbientOcclusion=False
r.Mobile.AntiAliasing=3
r.MSAACount=4
r.AntiAliasingMethod=3

[/Script/EngineSettings.GameMapsSettings]
EditorStartupMap=/Game/HandGameplay/Levels/HandGameplayShowcase.HandGameplayShowcase
Expand Down Expand Up @@ -144,7 +149,7 @@ StoreVersionOffsetArm64=0
StoreVersionOffsetX8664=0
ApplicationDisplayName=
VersionDisplayName=1.0
MinSDKVersion=23
MinSDKVersion=29
TargetSDKVersion=29
InstallLocation=Auto
bEnableGradle=True
Expand Down Expand Up @@ -175,7 +180,6 @@ bBundleDensitySplit=True
ExtraApplicationSettings=
ExtraActivitySettings=
bAndroidVoiceEnabled=False
+PackageForOculusMobile=Quest
+PackageForOculusMobile=Quest2
bRemoveOSIG=True
+GoogleVRCaps=Daydream33
Expand Down Expand Up @@ -235,8 +239,8 @@ AutoStreamingThreshold=0.000000
AndroidGraphicsDebugger=None
MaliGraphicsDebuggerPath=(Path="")
bEnableMaliPerfCounters=False
bMultiTargetFormat_ETC2=True
bMultiTargetFormat_DXT=True
bMultiTargetFormat_ETC2=False
bMultiTargetFormat_DXT=False
bMultiTargetFormat_ASTC=True
TextureFormatPriority_ETC2=0.200000
TextureFormatPriority_DXT=0.600000
Expand Down Expand Up @@ -345,3 +349,50 @@ IconPortalPath=(Path="")
[Core.Log]
LogHandPoseRecognition=warning

[/Script/AndroidFileServerEditor.AndroidFileServerRuntimeSettings]
bEnablePlugin=True
bAllowNetworkConnection=True
SecurityToken=8FCC7359434D4251D8FC3DAF8446EBE2
bIncludeInShipping=False
bAllowExternalStartInShipping=False
bCompileAFSProject=False
bUseCompression=False
bLogFiles=False
bReportStats=False
ConnectionType=USBOnly
bUseManualIPAddress=False
ManualIPAddress=

[/Script/OculusXRHMD.OculusXRHMDRuntimeSettings]
bAutoEnabled=False
XrApi=OVRPluginOpenXR
ColorSpace=P3
ControllerPoseAlignment=Default
bSupportsDash=True
bCompositesDepth=True
bHQDistortion=False
bDynamicResolution=False
PixelDensityMin=0.800000
PixelDensityMax=1.200000
SuggestedCpuPerfLevel=SustainedLow
SuggestedGpuPerfLevel=SustainedHigh
FoveatedRenderingMethod=FixedFoveatedRendering
FoveatedRenderingLevel=Off
bDynamicFoveatedRendering=False
bSupportEyeTrackedFoveatedRendering=False
bCompositeDepthMobile=False
bFocusAware=True
bLateLatching=False
bRequiresSystemKeyboard=False
HandTrackingSupport=HandsOnly
HandTrackingFrequency=LOW
HandTrackingVersion=Default
bInsightPassthroughEnabled=False
bAnchorSupportEnabled=False
bSceneSupportEnabled=False
bBodyTrackingEnabled=False
bEyeTrackingEnabled=False
bFaceTrackingEnabled=False
bDeploySoToDevice=False
bSupportExperimentalFeatures=False

10 changes: 8 additions & 2 deletions Config/DefaultInput.ini
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ bUseMouseForTouch=False
bEnableMouseSmoothing=True
bEnableFOVScaling=True
bCaptureMouseOnLaunch=True
bEnableLegacyInputScales=True
bEnableMotionControls=True
bFilterInputByPlatformUser=False
bEnableInputDeviceSubsystem=True
bShouldFlushPressedKeysOnViewportFocusLost=True
bEnableDynamicComponentInputBinding=True
bAlwaysShowTouchInterface=False
bShowConsoleOnFourFingerTap=True
bEnableGestureRecognizer=False
Expand All @@ -124,8 +130,8 @@ DoubleClickTime=0.200000
+ActionMappings=(ActionName="TogglePoseRecording",bShift=False,bCtrl=False,bAlt=False,bCmd=False,Key=Up)
+ActionMappings=(ActionName="TogglePoseRecordingLeft",bShift=False,bCtrl=False,bAlt=False,bCmd=False,Key=Left)
+ActionMappings=(ActionName="TogglePoseRecordingRight",bShift=False,bCtrl=False,bAlt=False,bCmd=False,Key=Right)
DefaultPlayerInputClass=/Script/Engine.PlayerInput
DefaultInputComponentClass=/Script/Engine.InputComponent
DefaultPlayerInputClass=/Script/EnhancedInput.EnhancedPlayerInput
DefaultInputComponentClass=/Script/EnhancedInput.EnhancedInputComponent
DefaultTouchInterface=/Engine/MobileResources/HUD/DefaultVirtualJoysticks.DefaultVirtualJoysticks
-ConsoleKeys=Tilde
+ConsoleKeys=Tilde
Expand Down
15 changes: 11 additions & 4 deletions HandGameplay.uproject
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"FileVersion": 3,
"EngineAssociation": "",
"EngineAssociation": "5.2",
"Category": "",
"Description": "",
"Modules": [
{
"Name": "HandGameplay",
"Type": "Runtime",
"LoadingPhase": "Default",
"AdditionalDependencies": [
"OculusInput"
]
"AdditionalDependencies": []
}
],
"Plugins": [
Expand All @@ -21,6 +19,15 @@
{
"Name": "GooglePAD",
"Enabled": false
},
{
"Name": "OculusXR",
"Enabled": true,
"MarketplaceURL": "com.epicgames.launcher://ue/marketplace/product/8313d8d7e7cf4e03a33e79eb757bccba",
"SupportedTargetPlatforms": [
"Win64",
"Android"
]
}
]
}
32 changes: 32 additions & 0 deletions Platforms/HoloLens/Config/HoloLensEngine.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@


[/Script/HoloLensPlatformEditor.HoloLensTargetSettings]
bBuildForEmulation=False
bBuildForDevice=True
bUseNameForLogo=True
bBuildForRetailWindowsStore=False
bAutoIncrementVersion=False
bShouldCreateAppInstaller=False
AppInstallerInstallationURL=
HoursBetweenUpdateChecks=0
bEnablePIXProfiling=False
TileBackgroundColor=(B=64,G=0,R=0,A=255)
SplashScreenBackgroundColor=(B=64,G=0,R=0,A=255)
+PerCultureResources=(CultureId="",Strings=(PackageDisplayName="",PublisherDisplayName="",PackageDescription="",ApplicationDisplayName="",ApplicationDescription=""),Images=())
TargetDeviceFamily=Windows.Holographic
MinimumPlatformVersion=10.0.18362.0
MaximumPlatformVersionTested=10.0.19041.0
MaxTrianglesPerCubicMeter=500.000000
SpatialMeshingVolumeSize=20.000000
CompilerVersion=Default
Windows10SDKVersion=10.0.18362.0
+CapabilityList=internetClientServer
+CapabilityList=privateNetworkClientServer
+Uap2CapabilityList=spatialPerception
bSetDefaultCapabilities=False
SpatializationPlugin=
SourceDataOverridePlugin=
ReverbPlugin=
OcclusionPlugin=
SoundCueCookQualityIndex=-1

11 changes: 8 additions & 3 deletions Plugins/OculusHandTools/OculusHandTools.uplugin
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"FileVersion": 3,
"Version": 1,
"VersionName": "1.0",
"VersionName": "1.1",
"FriendlyName": "OculusHandTools",
"Description": "",
"Category": "Other",
Expand Down Expand Up @@ -73,8 +73,13 @@
],
"Plugins": [
{
"Name": "OculusVR",
"Enabled": true
"Name": "OculusXR",
"Enabled": true,
"MarketplaceURL": "com.epicgames.launcher://ue/marketplace/product/8313d8d7e7cf4e03a33e79eb757bccba",
"SupportedTargetPlatforms": [
"Win64",
"Android"
]
},
{
"Name": "OculusUtils",
Expand Down
2 changes: 1 addition & 1 deletion Plugins/OculusHandTools/README_HandTrackingFilter.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

To improve the user experience of a hand-tracking based game, the *HandTrackingFilterComponent* is used. This component stabilizes the hand movement while tracking is low quality or lost. You can read more about this technology in [Adding Hand Tracking To First Steps](https://developer.oculus.com/blog/adding-hand-tracking-to-first-steps/) in the "Hand tracking accuracy mitigation" section.

Simply attach this component to the *MotionControllerComponent* within your Character, and your hand tracking will be more stable. Note that this component can only be used in the [Oculus fork of Unreal Engine](https://developer.oculus.com/documentation/unreal/unreal-building-ue4-from-source/).
Simply attach this component to the *MotionControllerComponent* within your Character, and your hand tracking will be more stable.
Loading

0 comments on commit 4b43644

Please sign in to comment.