Questions tagged [virtual-reality]
Virtual reality is a technology that simulates the physical presence of users in an artificially-generated environment.
208
questions
0
votes
0
answers
13
views
Unity XR Build and Run no longer working
I have connected the meta quest 3 to my computer via USB cable and allowed debugging on the device.
I have opened the default VR template from Unity Hub, without any alterations.
In Unity I select &...
0
votes
0
answers
22
views
How to disable distance-grabbing for XR Grab Interactables?
In the Unity default VR template, with XR Interaction Toolkit 3.0, there is a "XR Grab Interactable" component. This allows the user to grab an object with the controller trigger.
This also ...
0
votes
0
answers
16
views
Unity XR Device Simulator ignores camera position
I am trying out the XR Device Simulator in Unity. When I press PLAY, the camera falls to the floor and ignores the character controller / camera y offset.
Why is this? How to correctly use the XR ...
0
votes
0
answers
54
views
Converting a Rendered Canvas from Overlay to World Space while facing camera
I'm working on converting a 3D game to VR. I've made some progress, but the UI has been challenging.
From my understanding (and use) a canvas rendered in world space is recommended in VR.
Here is a ...
0
votes
0
answers
33
views
For a unity 3D multiplayer game, how to spawn and despawn multiple gameobjects for specific client?
I am working on a Unity 3D multiplayer game. There are 3 gameobjects (table, chair, pen) and apart from host, I have two client - student and teacher, consider them as two roles. I know how to ...
0
votes
0
answers
46
views
Fast way to compare a large set of positions, rotations, velocities, etc. during runtime (possibly every frame)
The Goal
I'm working on a vr gesture recognition system. Normally these systems are dependent on "drawn" gestures, but I want something that compares position, rotation, velocity, angular ...
0
votes
0
answers
56
views
Hide objects behind invisible wall
I am developing a VR application in Unity where I have a 3D object (a plane) flying over the player's head. I am using a Skybox for the background and I want to make the plane "disappear" ...
0
votes
0
answers
90
views
Completely independent dual GPU setup for VR with 100% "SLI efficiency"?
I have a simple (and maybe quite naive) question regarding dual GPU use for Virtual Reality (VR); it nagged me for years now and I couldn't figure out why this can't work, at least in principle:
I ...
0
votes
0
answers
38
views
How do I gradually slow down player rotation in unreal vr
I'm trying to make it so when the right stick is held in a direction to rotate the camera that way, it eases in and out to make it less jarring than being completely linear. What I have so far does ...
1
vote
0
answers
33
views
Voice SDK does not work on the Quest but does in Unity editor
I am making a VR game for the quest with Unity and for a trial I have a microphone with a button that you have to press and say a specific phrase. For that I am using the Voice SDK but I have a ...
1
vote
1
answer
2k
views
Tracking real life object in Virtual Reality
I'm building a VR game (in Unity) in which a user uses a real-life steering wheel to drive around. I want them to be able to grab the steering wheel in real life, while the virtual counter part of ...
0
votes
2
answers
205
views
Unity VR using OpenXR, how to spawn object when you grab a static object
I am trying to create a simple VR card game in Unity using OpenXR, just to learn Unity and also some VR stuff. I made a deck of cards object and a card object. I put both in a scene. The card is ...
0
votes
1
answer
484
views
No "USB Dialog Connection" option when enabling Developer Mode
I am trying to enable Developer Mode on my Meta Quest 3 and am running into a problem while following 2 different official developer docs:
Setup Development Environment & Headset doc; and
Enable ...
1
vote
1
answer
125
views
Techniques for VR controller input smoothing
I work on a zero gravity space VR game where player can hold to an object and rotate around it using their hand. Imagine spacewalk on ISS, grabbing a handle with your extended hand and trying to move ...
0
votes
0
answers
61
views
Red raycast despite valid target in Unity VR
I have a question regarding Unity VR and Interaction Toolkit.
When I point at a UI canvas element, the raycast turns from red to white (indicating that it is a valid target). However, when I create a ...
1
vote
2
answers
53
views
Best way to implement a carrying tray in VR using Unity
I need a way to carry objects on top of other objects in VR without jitterness causing the objects to fall through a tray for example.
I've tested with rigidbodies having very high friction, this does ...
0
votes
0
answers
26
views
Player controller duplicated or changes position when transitioning from another scene
I am experiencing some weird behavior. I am making a VR game in Unity using OVRPlayerController. I have a menu scene that is a full small level with an ...
0
votes
1
answer
380
views
Unity VR Max File Size
I have recently run into errors when building my Unity VR app for the Meta Quest 2 - and I wanted to check my understanding of something - from everything I've found it sounds like there is a max file ...
0
votes
0
answers
104
views
Is it possible to launch the default OpenXR runtime app dynamically?
I have a Unity game that I would like to make compatible with VR and desktop both in the same project.
I have a script that calls ...
0
votes
2
answers
73
views
How do I detect a hit by a swung held object?
I have an XR Grab Interactable wrench and the grab is working fine, as is movement. I'd like to use it to smash some chains, so I figured that I could use an OnCollisionEnter on the chains, and check ...
0
votes
0
answers
53
views
Enable socket interactor only when previous sockets are occupied
There are 3 boxes and 3 socket interactors. I only want the second socket interactor to work when there is a box in socket one and the third to work when there is a box in the first and the second ...
0
votes
0
answers
23
views
How to stretch a cylinder when dragging with a Ray Interactor?
I'm making a VR game in Unity.
I want to select a cylinder with ray interactor and drag it, and as I drag, it should stretch.
This is the code I have currently for 2D:
...
0
votes
0
answers
64
views
Raycaster causes Freezing in Unity Using Oculus SDK and OVRPlayerController
I am creating a scene in Unity using the Oculus SDK and XR Plugin. My scene works well in the Quest 2 including 2 VFX I have added and sound effects. I am following a LinkedIn course about VR UI - and ...
1
vote
0
answers
79
views
VR Controllers in Roblox Studio not working as expected
I am trying to create a Roblox game with VR support. My understanding is that this code should move the hands of the character as the user moves the controllers:
...
0
votes
0
answers
81
views
OpenXR and valve index trigger value
EDIT updated code
I've been looking for quite some time how to get valve index trigger value to be read.
This is the current code
...
0
votes
0
answers
34
views
Verify Unity, Oculus app on server side [duplicate]
Starting with the fact that my background is non-technical, I have used a keystore with my Unity game build that is for Oculus, Rift, etc. Now I want to verify the authenticity of incoming client ...
1
vote
1
answer
143
views
How do I make an interactive visual indicator in Unity?
I have a pad I interact with in my game. How do I make a visual indicator like the one shown in the attached GIF? You see that there is a circle that appears on the tablet showing where the user is ...
2
votes
0
answers
94
views
How should I go about making "tutorial hands" to show users how to interact with objects?
I'm making a game in which players will need to interact with several types of controls (switches, knobs, etc.) in various different ways. For part of the tutorial, I want to show them how to interact ...
0
votes
0
answers
66
views
How to allow a Rigidbody to pass through another Rigidbody without stopping OnCollisionEnter from working
so im using Unity and im aware of the Physics page but it does make the Rigidbody pass through each other but it does not trigger OnCollisionEnter how can make it so the Rigidbody pass through ...
0
votes
0
answers
77
views
VR-Game - Synchronize Transform using Unity 2021, Mirror Network and XR Interaction Toolkit
I am trying to create a simple VR-Game with objects that can be grabbed by the players and placed in a space.
I am using the XR Interaction Toolkit to make the objects grabbable and the Mirror Network ...
1
vote
0
answers
49
views
What vergence angle is commonly used for "infinitely distant" objects in VR?
I posted a very similar question on computer graphics stackexchange, here https://computergraphics.stackexchange.com/q/13399/11224 a while ago, but it hasn't attracted any answers.
I think that VR / ...
0
votes
1
answer
392
views
XR Hands don't appear when I put down controllers
I'm trying to get hand tracking working in Unity using the XR Interaction Toolkit (XRI) and XR Hands.
I'm testing this in the Unity Editor on an Oculus/Meta Quest 2 headset via Oculus Link or Air Link....
0
votes
0
answers
672
views
Unity Mirror Networking and child object transform sync issue (VR co-op)
I'm first time trying to setup multiplayer/co-op game mode for the VR game. Currently just trying to get the avatars to move similar fashion to all clients.
Issue atm is that I can read the head ...
0
votes
1
answer
97
views
Jedi Outcast VR Port - Lightsaber effect
Dr. Beef's VR port of Jedi Outcast has the best implementation of the lightsaber effect I've seen. It's far better than the lightsaber effect in ILM's own Vader Immortal.
The lightsaber in Vader ...
1
vote
0
answers
51
views
How to cut a desired shape out with desired depth of a mesh on VR?
I am creating my first Unity project which is a 𝐕𝐑 𝐬𝐢𝐦𝐮𝐥𝐚𝐭𝐢𝐨𝐧, and I am struggling with a particular issue.
I need to create 𝐚 𝐜𝐨𝐦𝐩𝐥𝐢𝐜𝐚𝐭𝐞𝐝 𝐦𝐞𝐬𝐡 𝐜𝐮𝐭 𝐟𝐞𝐚𝐭𝐮𝐫𝐞 that ...
0
votes
0
answers
117
views
Why do my VR avatar's hands clip through my chair object?
I have spent hours on this task and I feel it's high time I asked. My avatar hands go into my chair GameObject.
I added a box collider to the hands of my avatar and unchecked "Is Trigger". I ...
0
votes
0
answers
63
views
How to scale a room along the z axis so one wall stays in place and only the far wall moves?
I'm a Psychology undergrad working in a spatial navigation lab where we design Unity environments and have people navigate them in VR. There's a lot of stuff we do here that doesn't involve coding, ...
1
vote
1
answer
235
views
Showing something different on screen to what is seen in Oculus
I was tasked with creating a demo for something involving VR. They want people to use the VR headset, but they also want to visualize some of the calculations that go on behind the scene to the ...
0
votes
0
answers
55
views
Making a Chest for VR Game with Hinge - Now I need sound
I am trying to make a litte RPG Game for VR (openXR and Hurricane VR framework in Unity)
The chest works now, but I would like to have an opening and closing sound. Because I dont use an animation for ...
0
votes
0
answers
248
views
Issue with excluding object from post-processing in VR
I wanted to exclude some objects from a specific layer from rendering in the post processing.
I followed both : https://www.youtube.com/watch?v=LAopDQDCwak and https://www.youtube.com/watch?v=...
0
votes
1
answer
290
views
Use Graphics Raycaster do implement pointer control VR
I am trying to figure out how to allow my players to put in a code to join a group room using photon. Unity seems to suggest using a graphics raycaster but in most sample code it uses mouse input for ...
1
vote
1
answer
971
views
Manually trying to start AR Core XR Loader, but its Subsystems won't start?
I'm trying to implement that in one scene I start the Google Cardboard XR Loader, and in the other scene I start the AR Core/AR Kit XR Loader.
This is how I start the loader required for the scene:
<...
1
vote
1
answer
3k
views
Can't play my .apk on Pico VR due to Copyright Verification error
I’m learning to use Unity to create VR applications for my company to use internally. I created an app that worked great on the Quest 2, and decided to try to do this for Pico as well. I followed a ...
1
vote
0
answers
2k
views
Unity VR Detect if object is being held
I am using the XR Interaction Manager in Unity VR. The player can hold objects when pressing the trigger button of the hands (the interactable object has the component XR Grab Interactable).
I want to ...
1
vote
0
answers
92
views
Get Vive Cosmos' proximity sensor state
I'm working on a project with both VR and Desktop modes in the same scene and using Ultraleap.
I was previously using an HTC Vive and SteamVR to detect if the user put the headset on his head with the ...
0
votes
0
answers
86
views
My instantiated prefab is rotating in scene view but not in game view during play mode. Why?
I created "rotate.cs" & attached it to a prefab which gets instantiated during play mode. The gameobject which spawns is supposed to rotate constantly. For some reason, it rotates only ...
0
votes
1
answer
256
views
"Attach socket" with Oculus Interaction SDK
I'm trying to recreate the "attach socket" (XRSocketInteractor) from Unity's XR Interaction Toolkit.
Has anyone had any success? I've read through the documentation but can't come up with a ...
0
votes
1
answer
396
views
Unity VR IK Rig Accurate & Dynamic Proportions For Players
Hope all is well with you! I am messing around with a game idea in Unity. I am working on getting a good IK rig going on for the player since it will be an important part of the gameplay.
I currently ...
2
votes
1
answer
1k
views
How to stream videos from external source in Unity?
I'm working in Unity on a level for a VR project that requires displaying multiple 360 videos in a hall. These videos are large (8K and 60 minutes each) so cannot be contained in the app itself. Is it ...
0
votes
0
answers
479
views
Unity XR toolkit and Mirror networking, grabbing
I am new to both XR toolkit and Mirror and I have this problem that when I try to grab a box in online scene. It didn't work even thought it worked on the offline scene when I test it. anyone got any ...