40
UNITY ДЛЯ VR И HOLOLENS Валентин Симонов Field Engineer @ Unity Technologies E-mail: [email protected] Skype: simonov.valentin

Unity 5.3 for Virtual Reality and HoloLens

Embed Size (px)

Citation preview

Page 1: Unity 5.3 for Virtual Reality and  HoloLens

UNITY ДЛЯ VR И HOLOLENSВалентин СимоновField Engineer @ Unity TechnologiesE-mail: [email protected]: simonov.valentin

Page 2: Unity 5.3 for Virtual Reality and  HoloLens

VR ЭТО НЕ НОВИНКА

Page 3: Unity 5.3 for Virtual Reality and  HoloLens
Page 4: Unity 5.3 for Virtual Reality and  HoloLens

2016

Page 5: Unity 5.3 for Virtual Reality and  HoloLens

2016

Page 6: Unity 5.3 for Virtual Reality and  HoloLens

2016

Page 7: Unity 5.3 for Virtual Reality and  HoloLens

2016

Page 8: Unity 5.3 for Virtual Reality and  HoloLens

2016

Page 9: Unity 5.3 for Virtual Reality and  HoloLens

КАК НАЧАТЬ РАЗРАБАТЫВАТЬ VR ИГРУ В UNITY

Page 10: Unity 5.3 for Virtual Reality and  HoloLens

Edit > Project Settings> Player > Other Settings > Rendering > Virtual Reality Supported

Page 11: Unity 5.3 for Virtual Reality and  HoloLens

ПЛАТФОРМЫ

Page 12: Unity 5.3 for Virtual Reality and  HoloLens

ПЛАТФОРМЫ• Windows 7+, Oculus Runtime 0.8• OSX 10.9+, Oculus Runtime 0.5,

разработка приостановлена• Android 5.1+

Page 13: Unity 5.3 for Virtual Reality and  HoloLens

ПЛАТФОРМЫ• VR

• Мобильные (Gear VR, Cardboard, остальные)• PC (Oculus, Vive)• Консоли (Playstation VR)

• AR• Vuforia (любой мобильный)• HoloLens, Meta, Project Tango

Page 15: Unity 5.3 for Virtual Reality and  HoloLens

VR SAMPLE ASSETS

Page 16: Unity 5.3 for Virtual Reality and  HoloLens

VR SAMPLE ASSETS

Page 17: Unity 5.3 for Virtual Reality and  HoloLens

HOLOLENS

Page 18: Unity 5.3 for Virtual Reality and  HoloLens
Page 19: Unity 5.3 for Virtual Reality and  HoloLens

HOLOLENS• Unity 5.4 Technical Preview (editor + UWP runtime)

http://unity3d.com/pages/windows/hololens• Visual Studio 2015 Update 2• HoloLens Emulator• Туториал:

https://developer.microsoft.com/en-us/windows/holographic/holograms_101e

• Форум: http://forum.unity3d.com/forums/hololens.102/

Page 20: Unity 5.3 for Virtual Reality and  HoloLens

HOLOLENS1. Unity проект2. Платформа: Windows Store, SDK: Universal 10, Build Type:

D3D, check Unity C# Projects3. В Player Settings > Windows Store > Publishing Settings >

Capabilities: Microphone, SpatialPerception4. Build, отерываете Visual Studio Solution5. В Visual Studio target: Release, x866. Device > HoloLens Emulator7. Debug -> Start Without debugging

Page 21: Unity 5.3 for Virtual Reality and  HoloLens

ЧТО UNITY ДЕЛАЕТ ЗА ВАС

Page 22: Unity 5.3 for Virtual Reality and  HoloLens

WWW.UNITY3D.COM/UNITY

Page 23: Unity 5.3 for Virtual Reality and  HoloLens

ЧТО UNITY ДЕЛАЕТ ЗА ВАС• Абстрагирует VR платформы• Инициализирует все нужные ресурсы для рендеринга• Перехватывает управление камерами• Обновляет матрицу трансформации камер в

зависимости от положения HMD• Выставляет правильный FOV в зависимости от девайса

Page 24: Unity 5.3 for Virtual Reality and  HoloLens

API: UNITYENGINE.VR• VRSettings – глобальные VR настройки• VRDevice – функционал конкретного VR девайса• InputTracking – VR инпут• VRDeviceType – поддерживаемые VR девайсы• VRSettings.renderScale – размер рендер-текстур глаз

Page 25: Unity 5.3 for Virtual Reality and  HoloLens
Page 26: Unity 5.3 for Virtual Reality and  HoloLens
Page 27: Unity 5.3 for Virtual Reality and  HoloLens

5.4 OPEN BETA

Page 28: Unity 5.3 for Virtual Reality and  HoloLens

ОПТИМИЗАЦИЯ• Тестировать на таргет девайсе• Не использовать стандард шейдер• Запеченный свет и лайт пробы, LOD, атласы• Profiler• Oculus Unity Developer Guide

https://developer.oculus.com/documentation/game-engines/latest/concepts/book-unity/• ARM Guide for Unity developers

http://malideveloper.arm.com/documentation/developer-guides/arm-guide-unity-enhancing-mobile-games/

Page 29: Unity 5.3 for Virtual Reality and  HoloLens

CINEMATIC IMAGE EFFECTSЭффекты пост-процессинга:

• Screenspace Raytraced Reflections (SSRR) • Depth of Field• Tonemapping and Colour Grading• AntiAliasing

https://bitbucket.org/Unity-Technologies/cinematic-image-effects/

Page 30: Unity 5.3 for Virtual Reality and  HoloLens
Page 31: Unity 5.3 for Virtual Reality and  HoloLens

ЭФФЕКТЫ В VR• Depth of field• Lens flare• SSRR (сложный, алиасинг)• Blur• Temporal AA (сложный, шлейфы)• Bloom• Tone mapping, Color grading• Vignette

• Normal Mapping

Page 32: Unity 5.3 for Virtual Reality and  HoloLens

ЭКСПИРИЕНС

Page 33: Unity 5.3 for Virtual Reality and  HoloLens

ЭКСПИРИЕНС• Мы привыкли к VR, обычные пользователи нет• Первый плохой опыт будет последним

• 1m != 1 unit => может сломаться физика, навмеш, GI• Не скейлить парент камеры - изменится расстояние

между глаз – дискомфорт• Не телепортировать резко игрока

Page 34: Unity 5.3 for Virtual Reality and  HoloLens
Page 35: Unity 5.3 for Virtual Reality and  HoloLens

* Visual Summit 2016

Page 36: Unity 5.3 for Virtual Reality and  HoloLens

“Just 13 million PCs worldwide next year will have the graphics capabilities needed to run VR”

— NVIDIA, 2015.

Page 37: Unity 5.3 for Virtual Reality and  HoloLens
Page 38: Unity 5.3 for Virtual Reality and  HoloLens

СОЗДАНИЕ КОНТЕНТА В VR

Page 39: Unity 5.3 for Virtual Reality and  HoloLens
Page 40: Unity 5.3 for Virtual Reality and  HoloLens

ВОПРОСЫ?