2022 Developer Survey is open! Take survey.
10 votes
Accepted

Shader / Reconstructing position from DEPTH in VR through Projection Matrix

The approach we'll take depends on whether we're rendering an object in the world (like a screenspace decal volume) or a full-screen blit pass (like a post effect). Object in World ...
user avatar
  • 113k
7 votes

Rendering only a part of the screen in high detail

There are examples of such effects you are talking about in many games. First, there is Depth of field, which makes object at a distance look blurred, just as if the camera is focusing on things only ...
user avatar
7 votes

Check if OpenVR / SteamVR / OculusVR headset is mounted on your head

Yes, OpenVR has events for this: VREvent_TrackedDeviceUserInteractionStarted fires when the devices transitions from Standby -> UserInteraction or Idle -> UserInteraction. ...
user avatar
  • 72.7k
7 votes

How do you create a VR game for a personal VR headset you're making?

Actually, OpenVR (used by both Unity and UE4) is an open platform. If you implement it on your side of things (i.e. the headset), you can use both editors.
user avatar
  • 71
6 votes

Sound Synthesis from object collision in Virtual Reality Environment

When you say 'synthesis' do you mean pure analog/additive/FM synthesis from scratch, or would a sample-based approach be acceptable? If you can't use combinations of real-world audio samples then this ...
user avatar
6 votes
Accepted

What is the difference between AR, VR and MR?

Virtual Reality: where the user is completely ‘immersed’ in a virtual environment. Nothing of the outside world is visible. Augmented Reality: information is added to the real world by overlaying ...
user avatar
  • 3,989
5 votes
Accepted

How to limit and direct player's view in VR?

When someone leads you by your hand, your body can't rotate but your head can. Separate the two interactions of rotating body and rotating head when it comes to the girl grabbing their hand. Make it ...
user avatar
5 votes

How to limit and direct player's view in VR?

I think it's best not to force the players viewpoint to do anything. You'd make users disoriented at best and make them sick at worst. Maybe trying to build some kind of cue similar to what FPS ...
user avatar
  • 251
5 votes

What is the difference between AR, VR and MR?

Virtual Reality and Augmented Reality actually exist on a spectrum, so the definition between them can get blurry. The distinction right now is mostly driven by hardware. The easiest factor to ...
user avatar
  • 72.7k
5 votes

Why is 90 FPS recommended for Virtual Reality games?

I'm going to start by answering your second question, which has a more concrete answer. Why can people get sick when playing on lower frame rates? In the real world, when you turn your head one ...
user avatar
  • 401
4 votes

How to make user move in virtual reality with Google Cardboard and Unity?

No, the user does not walk around while using VR. That would be extremely dangerous as your are effectively blind to your real-world surroundings. You could stub your toe on your coffee table, or fall ...
user avatar
  • 481
4 votes

How to export unity project to play in HTC Vive?

So here is the answer for your different parts of questions(also for beginner VR developer with unity and HTC-Vive): Instead of exporting your project into HTC Vive project you are required to import ...
user avatar
4 votes

Why is text resolution so bad in VR?

Because the resolution is "bad". I'm taking the Vive numbers and some numbers that are very rough estimates, they're pretty much identical to the Oculus Rift. Each eye has a screen with a ...
user avatar
  • 3,203
4 votes

Shader / Reconstructing position from DEPTH in VR through Projection Matrix

I wanted to drop a note here since I referred to this thread multiple times during my process of solving this issue. Linked is my Unity Forum post about this. My implementation differs quite a bit ...
user avatar
4 votes

Shader / Reconstructing position from DEPTH in VR through Projection Matrix

I'd like to provide an updated version of @colourmath's solution for single pass stereo since unity has changed since then and you can use unity_StereoEyeIndex to ...
user avatar
  • 41
4 votes

Correcting projection of 360° content onto a sphere - distortion at the poles

This isn't a matter of codecs and resolution, you just need to match the texture mapping onto the sphere geometry to the mapping used in the video format - in this case equirectangular. ...
user avatar
  • 113k
4 votes

What is the difference between AR, VR and MR?

According to Peter Patterson (XR Architect / Developer), Unity officially stands by the Consumer Technology Association definition of the terms which read as follows. Virtual Reality creates a ...
user avatar
4 votes
Accepted

How can I let players "scrape away" one texture to reveal another?

If you're okay with mesh colliders, take a look at this. The example describes a (primitive) version of what you want. The next step would probably be to write a shader that takes three textures: a "...
user avatar
3 votes

How do I differentiate between the two Vive motion controllers?

At the time of writing, the other C++ solution is no longer correct; there is now a dedicated function for this: ...
user avatar
  • 131
3 votes

How to script enable VR in Unity 5.1

To enable VR for your game builds and the editor, set the “Virtual Reality Supported” option in Player Settings. This means you can activate it via the PlayerSettings either via the UI or via ...
user avatar
3 votes

Unity disable SteamVR

For those looking in 2019, make sure that Automatically Enable VR in Edit > Preferences > SteamVR is off if you need to ...
user avatar
  • 131
3 votes

Unity disable SteamVR

The only way I've found to work is to both uncheck 'Auto Enable VR' on Assets/SteamVR_Resources/Resources/SteamVR_Settings.asset and also uncheck Virtual Reality Supported on the Player Settings.
user avatar
  • 131
3 votes

Good ways to indicate enemy toughness

Design This is the obvious one. The graphical aspect of a monster is very important and should tell the player if an enemy is strong or not (in some cases you want to do the opposite effect but let's ...
user avatar
  • 1,210
3 votes
Accepted

How can I make the X button in the Cardboard XDK exit VR mode?

When clicking ✕ (close), your Unity app should get an escape key press notification & you should be able to handle it the same way as an actual key down event. For example, to quit, you would do ...
user avatar
  • 8,565
3 votes

How to Change position + rotation of a parent while keeping X and Z Rotation

...
user avatar
  • 113k
3 votes

Google street view racing game?

This is, in a way, available from Google via their Google Maps Platform. The data provided by this platform is a combination of aerial, satellite and street view data. I'm not sure how far down the ...
user avatar
  • 72.7k
3 votes

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

I'd recommend that you do not try to develop for a platform you cannot test on. This is a recipe for a long, slow, and confusing development process, and a poor result with terrible experience for ...
user avatar
  • 113k
3 votes
Accepted

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

One solution is to use DLL injection. This technique facilitates attaching and executing a payload (your code) within the address space of another process (the game or graphics driver) by way of a ...
user avatar
  • 8,565
3 votes

Why does today's "Metaverse" look equally or even worse than the 1990s 3D chat worlds?

I believe this is a based on multiple factors: First of, the concept of a Metaverse mainly makes sense in VR, of which the portable headsets have very strict polygon and material budgets. Secondly, in ...
user avatar
  • 281

Only top scored, non community-wiki answers of a minimum length are eligible