all AI news
Part 6 — Follow Device
June 16, 2024, 12:41 p.m. | kurohuku
DEV Community dev.to
Follow the HMD
Overlay following the HMD
Remove the position code
First, remove the absolute position code we added in the previous part.
private void Start()
{
InitOpenVR();
overlayHandle = CreateOverlay("WatchOverlayKey", "WatchOverlay");
var filePath = Application.streamingAssetsPath + "/sns-icon.jpg";
SetOverlayFromFile(overlayHandle, filePath);
SetOverlaySize(overlayHandle, 0.5f);
- var position = new Vector3(0, 2, 3);
- var rotation = Quaternion.Euler(0, 0, 45);
- SetOverlayTransformAbsolute(overlayHandle, position, rotation);
ShowOverlay(overlayHandle);
...
Device Index
In SteamVR, connected devices are identified with Device Index that automatically allocates from the system. …
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
AI Focused Biochemistry Postdoctoral Fellow
@ Lawrence Berkeley National Lab | Berkeley, CA
Senior Data Engineer
@ Displate | Warsaw
Solutions Engineer
@ Stability AI | United States
Lead BizOps Engineer
@ Mastercard | O'Fallon, Missouri (Main Campus)
Senior Solution Architect
@ Cognite | Kuala Lumpur
Senior Front-end Engineer
@ Cognite | Bengaluru