lgsvl / simulator

A ROS/ROS2 Multi-robot Simulator for Autonomous Vehicles
Other
2.3k stars 780 forks source link

Problems about VR in LGSVL #1452

Open wobushigaoying opened 3 years ago

wobushigaoying commented 3 years ago

Hellow,

I am using Unity3D version 2019.4.18f1, and LGSVL 2021.01.

LGSVL is developed based on Unity3D where Unity3D provides the original support for the Oculus VR helmet.

I want to deploy the immersive driving experience, and is it feasible to employ VR helmets in LGSVL. I mean does the VR helmet work correctly and effectively in LGSVL?

Many thanks.

EricBoiseLGSVL commented 3 years ago

Yes, but with some work. I recommend adding VR rig as a sensor plugin and enable VR in the Unity settings of the project. Let us know if you have issues.

JimWest commented 3 years ago

I tried to add a VR Rig (Steam VR), it's working but it not rendering anything except the skybox. I first have to change the Shader of every object (just click on the same shader), than it starts to appear. I don't know why, if I drag a object in the scene when the level has loaded, everything is fine. At this point I don't know if its a unity bug or a lgsvl bug: vr_problems

EricBoiseLGSVL commented 3 years ago

Does this work with the default Unity VR rig? Steam and Oculus SDK can cause problems in a project. Do you have VR enabled in the project settings? This might be an HDRP issue. See here. You can try a few things:

Hope this helps. Please post what other issues/solutions you find