Questions tagged [virtual-reality]

Virtual reality is a technology that simulates the physical presence of users in an artificially-generated environment.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Why is my rect transform rotating from setting position?

I was trying to track a UI canvas directly to a game object in my scene. I thought getting the screen point from the world and then setting it to the position of the rect transform would just move the ...
1
vote
0answers
21 views

Blending sword motion with sword swing sound in VR

At first, this may seem like an easy problem to solve. I also thought so. (This was a one tick task in my Trello board). But in VR the players' weapon (Sword) swings are unpredictable. The direction ...
0
votes
1answer
25 views

Finding controller's rotation about arbitrary axis

I'm trying to simulate knobs in a virtual reality environment where the user can grab a knob and twist it with the controller. Essentially what I'm trying to do is translate the global rotation of the ...
0
votes
1answer
86 views

Getting XR Grabbable items networked with Unity

I'm trying to get XR Grabbable objects networked in Unity, with the networking framework Mirror. This should be a simple task as Mirror has a component called "NetworkTransform" that simply ...
0
votes
0answers
30 views

Unity Mock HMD not rendering with ARCore installed

I am trying to create a mobile vr game with ARCore in Unity for positional tracking, and I can't get the Mock HMD to render. I tried the Cardboard SDK but it didn't work so I am trying to use Mock HMD....
0
votes
0answers
7 views

Making VR head turn add rotation to player controller

I want to make a control system where, if you look far enough left or right, the controller starts to rotate. To do this, I find the vector (Vh) between L & R hand controllers, then find the angle ...
0
votes
0answers
7 views

How to show ghost controllers as a hint using unity XR plugin

As you may have noticed, Steam VR plugin offers a hint option that shows a ghost version(transparent) of controllers along with the hands at the beginning of the game to help users find out about the ...
0
votes
0answers
194 views

Unity RenderTexture Black when Saving PNG on Oculus Quest/Android

I've scoured the web for a possible solution to my problem with no avail. I'm currently trying to add a screenshot function on the Oculus Quest where a player can take a picture from a secondary ...
0
votes
1answer
110 views

Unity 2020.3.15f2: Choose between VR and Desktop at launch

Lots of games have options for launching in VR or Desktop modes, either through steam launch options ("Play game", or "Play game in VR") or command line flags (...
0
votes
0answers
57 views

Unity XR: Get boundary world position

I'm trying to create something simular to "Everest VR"'s "Stand on the footprint" system. The way it works is the game get's the XR boundary, places a footprints texture in the ...
0
votes
1answer
38 views

package-lock.json file for in Unity?

Since I've been asked to reformat my question, here it is : Under Unity 2020 and behond... 2020.1.12f1 to be precise. I think that my package package-lock.json is corrupted, and block the fabrication ...
0
votes
0answers
60 views

Unity XR Ray / Line renderer on the floor

When using Unity's XR system, the teleport ray / line renderer I'm stuck on the floor. Turning the XR rig also turns the line, so the line is stuck on 0,0,0 on the XR Rig I've played with most ...
0
votes
0answers
24 views

Unity cheap fluids visuals for VR using Post Processing

I'm trying to create a turret in VR that will spray water onto a wall. I need a way that will take the collision of the fluid and transfer that to a splatmap to change the material of the wall. I know ...
0
votes
0answers
90 views

Unity - jagged shadows when export as apk?

Alright, I found this question with the same problem but it's out of date Jagged shadows with default settings My problem is a discrepancy between shadow quality settings in editor vs apk built to ...
0
votes
0answers
34 views

Unable to check Cardboard XR Plugin in Unity

I tried to create a project for Cardboard VR. I imported the git VR package from the Google Cardboard XR Plugin for Unity repository on GitHub. Then, in Project ...
0
votes
0answers
63 views

VR Controller Tooltip in Unity

I'm looking to implement tooltips on VR controllers (e.g. controller highlights, text overlays) in Unity (e.g., Oculus Quest, XR interaction toolkit). I have seen an old solution based on VRTK. How ...
3
votes
1answer
77 views

Is it possible to record video, depth map and 6D pose of any games?

I'm not a game developer, but a researcher working on improving video quality in various contexts. For my current problem, I need to collect videos which have both RGB data as well as depth data. ...
0
votes
2answers
325 views

OpenXR device not present in Start or Awake methods in Unity C# script

I'm developing a VR game using OpenXR in Unity (specifically developing on a Valve Index). When I try to access the input devices through the ...
0
votes
0answers
27 views

Google Cardboard XR Settings

Is there a way to access settings for Google XR Cardboard? I've got a project straight from Google Cardboard for Unity with examples. After building it and running on a phone it shows X and Gear icons ...
1
vote
1answer
39 views

Can I get world-space z-near-plane vertices from projection matrix + z-near distance?

I'm trying to port ShaderToy VR shaders to WebXR (the new browser API for AR/VR devices). ShaderToy VR shaders expect two extra parameters: ray origin (view translation) and ray direction (unit vector ...
0
votes
0answers
103 views

Configure VR support that enables to "look" around and receive user input (Google Cardboard button)

When the user moves the head this means that the phone in the HMD also moves and there are sensors that can detect the direction of the phone so that the image can update correctly. Also to note that ...
0
votes
1answer
59 views

Footstepper with Vr Unity

I have the Footstepper: Complete Footstep Solution from the unity store, and i dont get it working with the Vr, I made the footstep material like official documentation said, Then i put the ...
0
votes
1answer
104 views

How to make my sun appear far away in VR

I am attempting to add VR compatibility to my game, please could you help me figure out how to better control the multiple cameras in my scene regarding the head tracking and movement from VR devices? ...
1
vote
1answer
87 views

What does it mean to develop a VR game from the ground up?

Some virtual reality games are advertised as being created from the ground up for virtual reality. What does this mean exactly? What are some of the differences between developing a 3d pc game and a ...
0
votes
0answers
56 views

Same image in both eyes of VR HMD results in wrong 3D effect

I am trying to mod in VR support for a game without VR support via OpenVR as it proved to be the easiest one to implement with the least amount of issues, i don't think my issue is related to OpenVR ...
1
vote
2answers
341 views

Unity XR Spectator Camera

I would like to have a VR camera (for the player) but also have another camera (spectator). I am using Unity 2019.4.8f1 on the Universal Render Pipeline I have only been able to find outdated articles:...
0
votes
0answers
28 views

Is it possible to use absolute input device like a pointer or VR headset for peeking(looking) in non VR FPS or 3rd person games?

Assume I have a VR headset, which has absolute orientation as output and this orientation is input to a game. In VR Games, your character looks wherever you look by using your headset's absolute ...
-1
votes
1answer
187 views

How i can detect a single ARuco marker among several markers?

Hi everyone i am working on a rehabilitation application that depends on ARuco markers. The idea is to draw an object on a single marker among the four existing ones, then when the patient's hand ...
1
vote
1answer
32 views

Is it a useful strategy for Mobile VR titles to render faster than their simulation loop?

For example - If a title had a very heavy simulation loop (say 20ms), is it desirable to render at a greater rate, say 90hz? This would always a present head pose correct to the view, without being ...
0
votes
0answers
328 views

Can I set the unity camera to have the same position in a real world?

I have a problem about setting the camera in the unity to have the same extrinsic parameters as my real world camera to the origin. So let's me describe my problem step by step. I have a camera in a ...
0
votes
0answers
218 views

Unity IVRRenderModels_006 SteamVR Error

I get this Error in Unity when I imported SteamVR : "Failed to Load IVRRenderModels Interface Version IVRRenderModels_006" I looked after on it but nothing really solved the problem. Why is this ...
0
votes
1answer
28 views

Fix Unity Line Renderer for pointer drawing a jaggy line

I think I'm using the standard Oculus setup from the SDK using the OVRCameraRig. I've also got a LaserPointer. But inside VR on my Rift the line looks like this. Any idea what I'm doing wrong? It ...
0
votes
1answer
439 views

Unity build does not launch and leaves no logs/errors

I have released my first title Audio Infection ( https://store.steampowered.com/app/911580/Audio_Infection/ ) for a bit over a year ago. Recently 1 user has so far encountered an issue where the game ...
3
votes
0answers
461 views

Switching between VR and Desktop (VR Controllers are not tracked in Unity Build)

I am developing a VR App in Unity3D for HTC Vive Pro (Wireless) everything works well with VR in the usual way. (SteamVR Plugin 2.5.0 (SDK 1.8.19)) Except for some requirement reasons in the same ...
1
vote
1answer
630 views

How do I get the Oculus Rift's position and rotation?

I'm looking for the functions to get the position and rotation data of the rift headset itself in Unity. I have the Oculus integration SDK installed and want to avoid using any pre-fabs.
0
votes
1answer
83 views

VR Camera and Hands height

Using the Oculus Rift S, I just added OVRCameraRig and LocalAvatar or OVRPlayerController and when I press play I feel like I'm not as high as I want in my vision and hands, I change the position of Y ...
1
vote
1answer
108 views

How to scale player as they travel between 2 points

I'm doing a VR Project where the player walks down a hallway. The player starts with a size of 10 and is supposed to scale down to a size of 0.5 (well the GameObject in which all the player stuff is ...
0
votes
1answer
44 views

How can velocity be normalized after a collision if a projectile needs to maintain its height?

I want a thrown disc to travel along the same height, even after collisions. The problem is, there's an edge case that I'm not sure how to deal with. The lowest-tech solution would probably be to ...
0
votes
0answers
88 views

Would landscape left/right make difference when developing Google VR CardBoard Game with Unity?

I'm trying to make a simple VR cardboard game using Google VR SDK for Unity. I'm really confused about the problem as my title. Will the values got from ...
0
votes
1answer
188 views

How to develop VR PC games without a Head-Mounted Display of my own?

I am an intermediate student of Unity 3D, and I am not able to purchase heavy and expensive equipment like Oculus Rift, HTC Vive, or other models that are not available in Pakistan. So I'm wondering ...
0
votes
0answers
96 views

How can I push a button with VR hands?

New programmer here. I am currently trying to create a sample game in Unity (2019.2.11f1) where I push a button using the VR hands of my Oculus Rift (the hands follow my controllers). I can't believe ...
0
votes
0answers
57 views

Unity 3D Image Distortion

I'm trying to make a 3D tour for cardboard. I'm putting my 3d image inside a sphere with a shader but I've noticed this problem. And the middle of the image is looking kinda wavey and distorted.
0
votes
0answers
64 views

What is a good algorithm for generating a linear regression of positions in 3D space? (for getting the direction of a thrown object in VR)

I'm trying to get throwing to feel right in my VR game. I don't plan on actually using physics to do this; my idea is to accurately determine the lateral direction of the throw, then move the object ...
0
votes
0answers
40 views

Having trouble with getting an image to fit on a face of a cube

I have a problem with a Unity project that I'm working on. I'm creating an 3D art gallery which will be developed into a VR application in the future. In a 3D scene, I have created a ...
-1
votes
0answers
34 views

How can I convert Input.gyro.attitude into a float? [duplicate]

I am working on a VR project with a 360 video in it. I am trying to set the start rotation of the video to the same rotation as my phones. How can I convert ...
0
votes
1answer
1k views

Set the start orientation of the gyroscope to initial phone orientation

I am making a mobile VR project in Unity, and I have a 360-degree video that starts playing where I can look around using a VR headset. I am trying to set the start rotation of the video to the same ...
1
vote
0answers
90 views

Text is unreadable at fov's edges with HTC Vive

Not sure if this is the good place to ask or if should asked it in photography, sorry if it's not. I was trying stuff in Unity for a vr game based on text but as I tested it I saw that the center of ...
0
votes
1answer
132 views

Multiplayer VR art gallery using different headsets

I'm creating a VR art gallery using Unity3D (like a VR Museum Views with more freedom) and would like to have an environment where 1 or more users can gather together, communicate and move around (...
1
vote
1answer
82 views

How would I run a VR game that depends on external hardware?

I have a VR game idea which is being built on Unity with external hardware (Arduino, Gyroscopes, etc). I have thought of ways to connect the Arduino to Unity but what I am now struggling with is ...
0
votes
1answer
348 views

Fade into scene in Unity / SteamVR

I am using this code below for a gradual fade into a scene/next level in Steam VR (HTC Vive) The whole idea is to cover up the scene loading icon which is viewable for 3-4 seconds, and the default ...