- add "Tracked Device Physics Raycaster" to your main camera
- then your 3d object reacts to vr selection ray (for example if it implements IPointerClickHandler, IPointerEnterHandler, IPointerExitHandler)
add "Tracked Device Graphic Raycaster" component to canvas
can check what ray hits: Window > Analysis > XR Interaction Debugger
Probably its on wrong layer (in xr sample scenes, default layer is used)
Find: Teleport Interactor (under each hand, adjust Raycast mask)
It seems to be link connection alone that hangs, headset view is stuck on 180 view.
From OculusDebugTool.exe try: Video Codec: H.264 Sliced Encoding: Off Asynchronous Spacewarp: Disabled
Tip. You can also kill ovr from meta quest desktop app, settings/developer/crash button
at (wrapper managed-to-native) OVRPlugin+OVRP_1_1_0.ovrp_GetInitialized()"
work around: rename meta.xr.mrutilitykit.dll to meta.xr.mrutilitykit.dllx in the server managed folder. But better if remove the package or asset in scene or project (Meta Immersive debugger or old OVR canvas).
check what port server uses: sudo ss -uapn | grep vfserver (its probably 7777, which is wrong)
need to force it in running args: (newer NGO version has bool force arg method?) ./yourapp.x86_64 -port 55000
Oculus overlay keyboard is disabled, add 'oculus.software.overlay_keyboard' feature request to your Android manifest.
From OVRManager in scene:
- Enable focus awareness.
- From the Hierarchy view, select OVRCameraRig to open settings in the Inspector view.
- Under OVR Manager, in the Quest Features section, select Require System Keyboard.
- https://developers.meta.com/horizon/documentation/unity/unity-keyboard-overlay/
MetaXRSimulator.exe - This application could not be started This application requires the Windows App Runtime Version 1.5 (MSIX package version >= 0.0.0.0)
run installer bat from C:\Program Files\MetaXRSimulator\v85.0\WindowsAppRuntime
- scale the CANVAS (not the elements!!), so canvas is 1000x600, but its scaled down.. instead of setting canvas to 3x2meters.
need to enable vr for Desktop platform also, even though you are in android or meta platform! (so playing happens through using link)
- install Meta Core SDK and apply all fixes
- install this in device https://www.meta.com/en-gb/experiences/2372625889463779/?utm_source=developer.oculus.com&utm_medium=oculusredirect
- then run it from there or from commandline adb shell am start omms://app
- dominand hand switches sometimes??
- can use raw button access for Right, Left trigger:
- OVRInput.RawButton , OVRInput.RawTouch https://communityforums.atmeta.com/t5/Unity-VR-Development/Primary-and-Secondary-Hands/td-p/736255
if (EventSystem.current.IsPointerOverGameObject()) return; if (EventSystem.current.currentSelectedGameObject != null) return; (note primary button sometimes switches to other hand!)
- enable Oculus plugin for Desktop platform! (in project xr settings)
"If you're running games on the Quest device directly, you have to use forward rendering as neither the Quest or Quest 2 are powerful enough to use deferred rendering."
- and verifying your account with google auth. doesnt make you verified
- add your old fb account into https://accountscenter.meta.com/profiles/
- add 2FA method (phone), then LOGOUT in mobile app and login again
- restart oculus app then it shows enable dev button (instead of "get started")
- disable airlink
- sometimes Developer mode goes off? after updates, check answer above
- https://forum.unity.com/threads/oculus-quest-not-showing-up-in-run-device.1214934/#post-8341308
- try another headset, if that one is not logged in or dev mode in this pc?
- Oculus PC program now has a beta option you can toggle on to enable Passthrough and Hand tracking API on PC. And it works with any OpenXR game/app as long as it supports the hand tracking extension
- https://www.reddit.com/r/oculus/comments/ewj8mn/comment/iilyzjm/?utm_source=reddit&utm_medium=web2x&context=3
- use OculusMirror app from oculus diagnostics folder
- https://twitter.com/BlenderBrit/status/1521477582318981120
- reinstall it again (or do repair install) for this user (problem is that it was installed to another user)
- run this manually c:\Program Files\Oculus\Support\oculus-drivers\oculus-driver.exe
- https://forums.oculusvr.com/t5/Oculus-Quest-2-and-Quest/Oculus-Air-Link-won-t-connect-to-my-computer/m-p/892980/highlight/true#M44237
- at TeleportTargetHandlerPhysical component, set physics layers that block ray
- enable LocomotionSampleSupport.cs in your scene
- delete orientation gameobject inside "TeleportDestination" prefab
- then fix null references where it tries to access that
- dont press thumb sticks as button? or release thumb from touch to teleport
- disable character controller component
- disable CharacterCameraConstraint component from player
- remove line from LocomotionTeleport.cs: destPosition.y += character.height * 0.5f;
- comment out screenfade from the one script that uses it (see oculus screen fade component and who calls the static singleton)
- set 0,0,0 for Character Camera constraint component (those override and min,max values)
- then set capsule size 1m, at 0.5m
- it doesnt have VR enabled in unity build
- also doesnt show exit app then
- from the mobile app
- settings, connect to headset, more settings: developer mode
https://forum.unity.com/threads/90hz-for-quest-2.1006934/#post-6531572
- its downloading/installing some update
https://twitter.com/ShaneDoherty/status/1255469495608651784
https://www.reddit.com/r/oculus/comments/8uf1sm/oculushomeless_use_dash_without_home_20/
- assign CenterEyeAnchor as RayTransform in OVR input module
- assign OVRGazePointer as Cursor in ovr input module
- because Oculus SDK breaks it.. restart unity, create new scene, add eventsystem there
- or copy it from oculus scenes UI.scene
- you can drag the tool bar with controller
- also hold home key down to reset view
- https://forums.oculusvr.com/community/discussion/73374/oculus-menu-shows-too-high-up
- copy SampleSupport gameobject also
- need to be in correct order in hierarchy:
- OVRPlayerController
- OVRCameraRig
- TrackingArea..
- LocalAvatar..
- TrackingArea..
- OVRCameraRig
Oculus > Tools > OVR Performance Lint Tool, and it will suggest changes that might improve CPU/GPU in VR. https://forum.unity.com/threads/oculus-quests-framerate-oculus-gos-framerate-for-the-same-app.804471/#post-5352237
- disable character collider from player
- null ref in NullReferenceException: Object reference not set to an instance of an object 12-12 11:05:31.609 26559 26573 E Unity : at LocomotionTeleport.DoTeleport ()
- because removed rotation marker (just assing dummy empty object to it)
- restart device, or kill unity, or unpluck
- press thumbstick forward to show teleporter (instead of press click)
- also had disabled character controller in player
- ray is probably hitting player, set walkable areas to different layer and set layermask in teleport target script inspector
- click button to show them!
- needs app id https://forum.unity.com/threads/oculus-local-avatar-hands-not-visible.730457/#post-4872206
- can set fake app id: "In Unity you can set any app id (like 12345), it doesn't have to be a valid one. There just needs to be some app id set to show the hands. " still not working: test with ControllerModels scene, works there then open locomotion scene again, play, look around, hands will appear. https://forum.unity.com/threads/oculus-local-avatar-hands-not-visible.730457/#post-5195405
https://forum.unity.com/threads/oculus-integration-teleportation-not-working.642862/#post-5198525
Texture compression
- ASTC
need to add runtime permissions manually: adb shell pm grant <package_name> android.permission.READ_EXTERNAL_STORAGE adb shell pm grant <package_name> android.permission.WRITE_EXTERNAL_STORAGE https://forums.oculusvr.com/developer/discussion/78412/accessing-local-files#latest
########### unauthorized Need to click allow in the device when you do first Build & Run. If doesnt appear, from Oculus mobile app, disable developer mode and enable again, then connect device to pc, click Always allow in the dialog popup.
https://developer.oculus.com/blog/down-the-rabbit-hole-w-oculus-quest-developer-best-practices-the-store/ https://developer.oculus.com/documentation/quest/latest/concepts/unity-perf/ https://www.reddit.com/r/oculus/comments/bay1im/optimizing_your_game_for_the_oculus_quest_14_tips/
- use compressed textures
- no overdraw
- ztest helps (if big close objects get drawn first)
- "resolve" means copying from fast gpu ram into system ram
- "unresolve" means copying from system ram to gpu ram (slow)
https://www.youtube.com/watch?v=JvMQUz0g_Tk
- add physics raycaster to OVRCameraRig
- add UIHelpers prefab to scene
- EventSystem, Assign Raytransform: RightHandAnchor
- LaserPointer GO: Enable LineRenderer
- Add OVRRaycaster into Canvas
- https://www.youtube.com/watch?v=8fT478uopco
setup correct camera height:
