当前位置:网站首页>Some problems in the development of unity3d upgraded 2020 VR
Some problems in the development of unity3d upgraded 2020 VR
2022-07-06 10:44:00 【foenix66】
Unity3D upgrade 2020 edition VR Some problems that may be encountered in development
1.Unity3D 2020 edition VR Has been integrated into XR And uniformly provided in the form of plug-in package
stay Unity2020 Version before , open VR The function is to Player Setting The admission Virtual Reality Supported Options , And load the required VR SDK library 
Unity2020 Built in version XR Settings The function has been cancelled , To pass through XR Plugin Management Plug in package 
After installing the plug-in package, you can choose what you need VR library 
In the corresponding VR Set options in the library 
If you don't need to use VR Special functions of plug-ins , There is no need to introduce VR Corresponding development package , Such as StreamVR package ,XR The framework plug-in already contains general VR function
2.Unity3D 2020 edition VR The camera needs to be set separately before it can track the head display position
Unity3D 2020 Before Edition , As long as the camera Target Eye Set to Both, By default, you can track the head display position .
Unity3D 2020 The version needs to load the corresponding components before it can be tracked .


To create a new scene, you can directly select the menu GameObject->XR->Convert Main Camera To XR Rig, The editor automatically helps you set up in the scene VR Camera Components , The upgrade scenario can be created manually by imitating the system creation components
3.Shader Report errors :undeclared identifier 'sampler_CameraDepthTexture’
Shader error in 'Hidden/Post FX/Fog': undeclared identifier 'sampler_CameraDepthTexture' at line 63 (on d3d11)
Compiling Vertex program with STEREO_INSTANCING_ON
Platform defines: SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS
Disabled keywords: FOG_EXP FOG_EXP2 FOG_LINEAR SHADER_API_GLES30 UNITY_ASTC_NORMALMAP_ENCODING UNITY_ENABLE_NATIVE_SHADOW_LOOKUPS UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_FULL_STANDARD_SHADER UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_VIRTUAL_TEXTURING
The question may be Shader I won't support it VR Caused by binocular rendering mode ,XR The plug-in rendering mode supports single pass rendering , hold Multi Pass It is amended as follows Single Pass Instanced That's all right.

4. Report errors :Failed to load openxr runtime loader.
Failed to load openxr runtime loader.
UnityEngine.XR.Management.XRGeneralSettings:AttemptInitializeXRSDKOnLoad () (at Library/PackageCache/com.unity.xr.[email protected]4.2.1/Runtime/XRGeneralSettings.cs:148)
This problem is difficult to find , The solution found after a toss is very simple , Don't put the project under the Chinese path
边栏推荐
- Esp8266 at+cipstart= "", "", 8080 error closed ultimate solution
- Just remember Balabala
- Opencv uses freetype to display Chinese
- Nanny hand-in-hand teaches you to write Gobang in C language
- Pytorch LSTM实现流程(可视化版本)
- API learning of OpenGL (2003) gl_ TEXTURE_ WRAP_ S GL_ TEXTURE_ WRAP_ T
- MNIST implementation using pytoch in jupyter notebook
- 该不会还有人不懂用C语言写扫雷游戏吧
- Copy constructor template and copy assignment operator template
- MySQL29-数据库其它调优策略
猜你喜欢
![[C language] deeply analyze the underlying principle of data storage](/img/d6/1c0cd38c75da0d0cc1df7f36938cfb.png)
[C language] deeply analyze the underlying principle of data storage

Not registered via @enableconfigurationproperties, marked (@configurationproperties use)

Typescript入门教程(B站黑马程序员)

Breadth first search rotten orange

CSDN问答模块标题推荐任务(二) —— 效果优化

Water and rain condition monitoring reservoir water and rain condition online monitoring

Unicode decodeerror: 'UTF-8' codec can't decode byte 0xd0 in position 0 successfully resolved

In fact, the implementation of current limiting is not complicated

CSDN blog summary (I) -- a simple first edition implementation

API learning of OpenGL (2003) gl_ TEXTURE_ WRAP_ S GL_ TEXTURE_ WRAP_ T
随机推荐
MySQL27-索引优化与查询优化
C语言标准的发展
Mysql27 - Optimisation des index et des requêtes
Breadth first search rotten orange
CSDN问答模块标题推荐任务(一) —— 基本框架的搭建
[BMZCTF-pwn] 12-csaw-ctf-2016-quals hungman
在jupyter NoteBook使用Pytorch进行MNIST实现
用于实时端到端文本识别的自适应Bezier曲线网络
CSDN-NLP:基于技能树和弱监督学习的博文难度等级分类 (一)
First blog
ByteTrack: Multi-Object Tracking by Associating Every Detection Box 论文阅读笔记()
[C language foundation] 04 judgment and circulation
Navicat 导出表生成PDM文件
Implement sending post request with form data parameter
[leectode 2022.2.13] maximum number of "balloons"
Security design verification of API interface: ticket, signature, timestamp
Mysql27 index optimization and query optimization
Mysql28 database design specification
Time in TCP state_ The role of wait?
Mysql30 transaction Basics