This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Контроль версий
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Player-ноды
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Материалы и шейдеры
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
API
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Учебные материалы

VR Project Migration

Upgrading your VR project in SDK Browser using the Upgrade option is not enough to build it — additional manual operations are required.

Essentially, you'll need to create a new 2.18 VR project and copy the required files to your project that has been upgraded to 2.18 from a n earlier version. Before copying files from a template project, you need to delete identical and unnecessary files from your project (otherwise, new files won't be added properly).

Notice
This version of the article reviews the process of upgrading of C++ VR projects only. You can switch to the C# version in the upper right corner of this page.

Now let's go step by step.

Migrating a VR Project
#

  1. Create a new 2.18 VR project using the VR Template. If your project initially was based on the VR Sample demo project, create a new VR project using the 2.18 VR Sample demo as well.
  2. Export vr_template/VR.node from the empty project as a package.
  3. In SDK Browser, click Upgrade for your project to upgrade assets in your project to 2.18.

  4. Open your project in Editor and close the world.
  5. You can try to import the package you exported from the empty 2.18 template project at Step 1. You'll see the assets highlighted red (they actually duplicate the ones that exist in your project) — delete duplicate *.prop assets from your project, then cancel importing the package.

    Namely, delete the following folders and files:

    • vr_template/

      • VR.node
    • vr_template/properties/

      • AttachToHead.prop
      • HandMenuSampleGui.prop
      • MeshSkinnedHandMapper.prop
      • NodeSwitchEnableByGesture.prop
      • NodeSwitchEnableByKey.prop
      • vr_player_spawner.prop
    Notice
    If you modified any of these and other files to be updated, make a backup to modify the updated files later.
  6. Import the package you exported from the empty 2.18 template project at Step 1.
  7. Replace the source/Framework folder by the same folder from the new template project.

    If your project initially has been created based on the VR Sample demo project, you'll also need to replace the source/Demo folder content.

  8. Open the project in IDE and add new files such as AttachToHand and MIxedRealitySampleGui to the solution.
  9. Then build the project and fix it by processing the error messages. Update the code (written by you) that interacts with the template components that have been changed.

Launching App in VR Mode
#

Launching in IDE
#

Running a VR project from the IDE requires adding command-line arguments. For example, in Visual Studio you can do this way:

  1. Open the project Debug Properties:

  2. In Command line arguments, add -vr_app openvr at the end of the line:

Notice
Make sure to remove any arguments running the outdated VR plugins (such as
-extern_plugin UnigineOpenVR).
Last update: 27.02.2024
Build: ()