查看: 753|回复: 8

[平台开发] 【2. Google VR Project Setup | Unreal Engine】

[复制链接]

1

主题

342

帖子

7万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
75866
发表于 2016-6-29 00:42:34 | 显示全部楼层 |阅读模式


Previous Step


   Next Step


   Google VR Quick Start

In this part of the Google VR Quick Start, we will go over setting up your UE4 project so that it can be used with Google VR.

Once the UE4 Editor has loaded, from the Main Toolbar, open the Edit tab and select the Plugins menu item.

【虚幻4翻译文档-2. Google VR Project Setup | Unreal Engine】[虚幻4中文文档]



Inside of the Plugins menu, go the Virtual Reality section and make sure that Google VR is enabled.

【虚幻4翻译文档-2. Google VR Project Setup | Unreal Engine】[虚幻4中文文档]



The Google VR plugin should be enabled by default. If it is not enabled, it can be enabled by clicking on the checkmark box next to Enabled. When you do this will be prompted to restart the UE4 Editor so that the changes can take place. Failing to re-start the UE4 editor after enabling the Google VR plugin could result in the plugin not working correctly.

Inside of the Content Browser create a new Material, named MAT_Floor and open it up by double-clicking on it.

【虚幻4翻译文档-2. Google VR Project Setup | Unreal Engine】[虚幻4中文文档]



Inside the Material Graph, add a Constant Material Expression node with a value of 0.5 and plug it's output into the Base Color input and then press the Apply button to compile the Material.

【虚幻4翻译文档-2. Google VR Project Setup | Unreal Engine】[虚幻4中文文档]



Drag the Mat_Floor Material from the Content Browser to the Floor static mesh that is placed in the level to apply the Material to the Static Mesh.

From the Main Toolbar, select the File option and then click on the Save option to bring up the Save Level As window.

【虚幻4翻译文档-2. Google VR Project Setup | Unreal Engine】[虚幻4中文文档]



From the Save Level As window under the Name section, name the level EntryLevel and then press the Save button.

【虚幻4翻译文档-2. Google VR Project Setup | Unreal Engine】[虚幻4中文文档]



Back on the Main Toolbar select the Edit menu option and then select the Project Settings menu option.

【虚幻4翻译文档-2. Google VR Project Setup | Unreal Engine】[虚幻4中文文档]



From the Project Settings menu go to the Maps  Modes section and under the Default Maps section, change the Editor Startup Map and Game Default Map to the EntryLevel map to make sure that the EntryLevel map is the map that will be loaded when the project is run.

【虚幻4翻译文档-2. Google VR Project Setup | Unreal Engine】[虚幻4中文文档]



Back in the Project Settings, under the Target Hardware section, make sure that Target Hardware class has been set to Mobile / Tablet and the graphics level set to Scalable 3D or 2D.

【虚幻4翻译文档-2. Google VR Project Setup | Unreal Engine】[虚幻4中文文档]



If you see the Restart Editor button under the Pending Changes section make sure to press it to re-start the editor so the changes that are made will be applied. Failing to do this could result in your project not working with Google VR.
【虚幻4翻译文档-2. Google VR Project Setup | Unreal Engine】[虚幻4中文文档]



In the Rendering section make sure that Mobile HDR is disabled as this is necessary for correct stereoscopic rendering.

【虚幻4翻译文档-2. Google VR Project Setup | Unreal Engine】[虚幻4中文文档]



Under the Input section in the Mobile category, remove the DefaultVirtualJoysticks from the Default Touch Interface by clicking on the small white triangle next to the DefaultVirtualJoysticks and selecting the Clear option from the drop-down list.

In the Platforms section under the Android section press the Configure Now button in the APKPackaging and Google Play Services sections to ensure that our project can .

【虚幻4翻译文档-2. Google VR Project Setup | Unreal Engine】[虚幻4中文文档]



Under the APKPackaging section change the Minimum SDK Version and Target SDK Version to 21 and enable the Enable FullScreen Immersive on KitKat and above devices option to hide any on-screen buttons that would otherwise be visible when the project is viewed in a VR headset.

【虚幻4翻译文档-2. Google VR Project Setup | Unreal Engine】[虚幻4中文文档]



In the Advanced APKPackaging section and enable the Configure GoogleVR for sustained performance mode option.

【虚幻4翻译文档-2. Google VR Project Setup | Unreal Engine】[虚幻4中文文档]



Sustained Performance: Puts the device into sustained performance mode, which throttles performance to a level where the performance will not overheat the device, causing vastly decreased performance.  It is recommended that you enable this for apps that are meant to be run for significant periods of time.

In the Android SDK section under the SDKConfig section set both the SDK API Level and NDK API Level to android-21 instead of their defaults to ensure that your project will be compiled against the most recent Android SDK.

【虚幻4翻译文档-2. Google VR Project Setup | Unreal Engine】[虚幻4中文文档]



In the next section of the Google VR Quick Start, we will go over what you have to do to package your UE4 project so it will run on a Google VR device.


  Previous Step


   Next Step


   Google VR Quick Start
回复

使用道具 举报

0

主题

888

帖子

2952

积分

vip会员

Rank: 1

积分
2952
发表于 2016-7-2 20:56:15 | 显示全部楼层
楼主真是好人吖~~非常感谢
回复 支持 反对

使用道具 举报

独自飘零 该用户已被删除
发表于 2016-7-3 15:01:17 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

0

主题

889

帖子

2966

积分

vip会员

Rank: 1

积分
2966
发表于 2016-7-4 08:56:35 来自手机 | 显示全部楼层
好东西 一定要分析那个
回复 支持 反对

使用道具 举报

0

主题

854

帖子

2810

积分

vip会员

Rank: 1

积分
2810
发表于 2016-7-12 05:56:07 来自手机 | 显示全部楼层
这样的人是业界良心 有时在人人下个东西学比取经还难
回复 支持 反对

使用道具 举报

0

主题

856

帖子

2824

积分

vip会员

Rank: 1

积分
2824
发表于 2016-7-16 10:09:12 来自手机 | 显示全部楼层
好资源,谢谢
回复 支持 反对

使用道具 举报

0

主题

860

帖子

2817

积分

vip会员

Rank: 1

积分
2817
发表于 2016-7-18 11:38:52 来自手机 | 显示全部楼层
挺不错的!就是不知道价格
回复 支持 反对

使用道具 举报

0

主题

914

帖子

3055

积分

vip会员

Rank: 1

积分
3055
发表于 2016-7-24 11:10:31 来自手机 | 显示全部楼层
谢谢分享,顶一个
回复 支持 反对

使用道具 举报

0

主题

859

帖子

2836

积分

vip会员

Rank: 1

积分
2836
发表于 2016-7-26 21:26:37 来自手机 | 显示全部楼层
看看这个好不好啊
回复 支持 反对

使用道具 举报

*滑块验证:
您需要登录后才可以回帖 登录 | enginedx注册

本版积分规则

 
 



邮件留言:


 
返回顶部