Carla: Carla Virtual reality

Created on 4 Feb 2019  路  8Comments  路  Source: carla-simulator/carla

Is it possible to compile carla for VR headset and how ?

feature request stale ue4

Most helpful comment

Hey, I managed to get Carla 0.8.3 working in VR mode on Windows using the UE4Editor, here are the steps I followed

  1. Add the suitable VR plugin to UE4 Plugins>SteamVR/OculusVR depending on your device, restart the UE4Editor
  2. Execute the following commands via editor or blueprint, to switch to VR mode
    r.VSync 0 , vr.bEnableHMD 1, vr.bEnableStereo 1, r.SetRes 1920x1080f
  3. Setup the Player or Spectator camera to desired location and test using the VR Preview mode that can be found in the dropdown under Play button in th editor.
    Note : You may need to add "HeadMountedDisplay" module in the PrivateModule Section of Carla.Build.cs file, if you wish to run HMD module code from inside the Carla Plugin.

All 8 comments

Hi, @moh3th1 . We haven't done CARLA thinking about that possibility. But we don't discard doing in the future because is very interesting. If you want to try it and share is welcome.

Hey, I managed to get Carla 0.8.3 working in VR mode on Windows using the UE4Editor, here are the steps I followed

  1. Add the suitable VR plugin to UE4 Plugins>SteamVR/OculusVR depending on your device, restart the UE4Editor
  2. Execute the following commands via editor or blueprint, to switch to VR mode
    r.VSync 0 , vr.bEnableHMD 1, vr.bEnableStereo 1, r.SetRes 1920x1080f
  3. Setup the Player or Spectator camera to desired location and test using the VR Preview mode that can be found in the dropdown under Play button in th editor.
    Note : You may need to add "HeadMountedDisplay" module in the PrivateModule Section of Carla.Build.cs file, if you wish to run HMD module code from inside the Carla Plugin.

Hi @shriram17,
Thanks for share with us how to use VR with Carla. We haven't worked yet with this technology. But we have it in mind for our plans for the future.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Hey, I managed to get Carla 0.8.3 working in VR mode on Windows using the UE4Editor, here are the steps I followed

  1. Add the suitable VR plugin to UE4 Plugins>SteamVR/OculusVR depending on your device, restart the UE4Editor
  2. Execute the following commands via editor or blueprint, to switch to VR mode
    r.VSync 0 , vr.bEnableHMD 1, vr.bEnableStereo 1, r.SetRes 1920x1080f
  3. Setup the Player or Spectator camera to desired location and test using the VR Preview mode that can be found in the dropdown under Play button in th editor.
    Note : You may need to add "HeadMountedDisplay" module in the PrivateModule Section of Carla.Build.cs file, if you wish to run HMD module code from inside the Carla Plugin.

Could you please give a more detailed set of instructions? Does this work at an arbitrary camera that we define in carla as well?

Hey, I managed to get Carla 0.8.3 working in VR mode on Windows using the UE4Editor, here are the steps I followed

  1. Add the suitable VR plugin to UE4 Plugins>SteamVR/OculusVR depending on your device, restart the UE4Editor
  2. Execute the following commands via editor or blueprint, to switch to VR mode
    r.VSync 0 , vr.bEnableHMD 1, vr.bEnableStereo 1, r.SetRes 1920x1080f
  3. Setup the Player or Spectator camera to desired location and test using the VR Preview mode that can be found in the dropdown under Play button in th editor.
    Note : You may need to add "HeadMountedDisplay" module in the PrivateModule Section of Carla.Build.cs file, if you wish to run HMD module code from inside the Carla Plugin.

Hi @shriram17 ,

I am also trying to get VR working. Could you please tell me if you can manually control a vehicle/pedestrain using VR in your set up?

Thanks!

Can someone guide to a script or some comments or more development on this? Thanks.

Is there some new stuff or suggestion for the VR mode?
I'm try to following @shriram17 but it's not so clear

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cstamatiadis picture cstamatiadis  路  3Comments

kartikye picture kartikye  路  3Comments

hc167 picture hc167  路  4Comments

AftermathK picture AftermathK  路  3Comments

tgrel picture tgrel  路  3Comments