查看: 485|回复: 7

[平台开发] 【Android Vulkan Mobile Render | Unreal Engine】

[复制链接]

1

主题

342

帖子

7万

积分

管理员

Rank: 9Rank: 9Rank: 9

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



【虚幻4翻译文档-Android Vulkan Mobile Render | Unreal Engine】[虚幻4中文文档]



本页面的内容:

      
Enabling Vulkan Preview Rendering in Editor

Enabling the Vulkan Mobile Preview Render
     
Unreal Engine 4 (UE4) now offers support for the Vulkan API. Vulkan is a low-overhead, cross-platform 3D graphics library that allows developers more control over the GPU and lower level CPU usage for their Android base mobile projects. In the following document we will go over how you can enable and use Vulkan in your UE4 Android projects.

Vulkan is currently under heavy development and should be considered an experimental feature at this point in time. If you wish to build and deploy a mobile project using Vulkan you will need to download and compile UE 4.12 from Github.
Enabling Vulkan Preview Rendering in Editor
You can enable the ability to use the Vulkan render while inside of the UE4 Editor, you will need to do the following in your project.

From the Main Toolbar go to the Edit option and then select the Editor Preferences option from the menu.

【虚幻4翻译文档-Android Vulkan Mobile Render | Unreal Engine】[虚幻4中文文档]



In the General section under the Experimental category, expand the Rendering section and click on the checkmark box next to the Enable Metal/Vulkan/High-end mobile Preview Rendering Level in editor.

<  src="./images/Platforms/Android/VulkanMobileRenderer/VMP_03.jpg[/img]
【虚幻4翻译文档-Android Vulkan Mobile Render | Unreal Engine】[虚幻4中文文档]


After doing this, the Editor will need to recompile the entire shader cache to include the required Vulkan options. Depending on the size of your project and power of your development computer, this process could take anywhere from a few minutes to an hour or more to complete.

If you see the following two items listed in the lower right-hand corner of the Level preview Feature Level: ES3_1 and Level: Vulkin_Rendering(Persistent) then everything is setup correctly and you are now seeing what your project will look like when viewed on a device that supports the Vulkan API.

<  src="./images/Platforms/Android/VulkanMobileRenderer/VMP_04.jpg[/img]
【虚幻4翻译文档-Android Vulkan Mobile Render | Unreal Engine】[虚幻4中文文档]

Enabling the Vulkan Mobile Preview Render
To enable the ability to use the Vulkan render with the mobile preview render, you will need to do the following in your project.

From the Main Toolbar go to the Edit option and then select the Editor Preferences option from the menu.




In the General section under the Experimental category, expand the PIE section then click on the checkmark box next to the Allow Vulkan Mobile Preview option.

<  src="./images/Platforms/Android/VulkanMobileRenderer/VMP_01.jpg[/img]
【虚幻4翻译文档-Android Vulkan Mobile Render | Unreal Engine】[虚幻4中文文档]


Back in the Main Toolbar, change the Play Mode from Play this level in the selected viewport to the Vulkan Mobile Preview (PIE) option by clicking on the small white triangle next to the play button and selecting the Vulkan Mobile Preview (PIE) from the dropdown list.




Click on the Play button that is on the Main Toolbar to launch your UE4 project in a new preview window with the Vulkan render enabled. If everything has been setup successfully, you should see something similar to the image below.

<  src="./images/Platforms/Android/VulkanMobileRenderer/VMP_05.jpg[/img]
【虚幻4翻译文档-Android Vulkan Mobile Render | Unreal Engine】[虚幻4中文文档]


If you do not see (SF_VULKAN_ES31) at the top of the preview window next to the project name then that means the project is not using the Vulkan API.
回复

使用道具 举报

0

主题

871

帖子

2916

积分

vip会员

Rank: 1

积分
2916
发表于 2016-7-2 20:50:15 来自手机 | 显示全部楼层
感谢分享,学习一下!
回复 支持 反对

使用道具 举报

0

主题

856

帖子

2837

积分

vip会员

Rank: 1

积分
2837
发表于 2016-7-4 03:30:33 | 显示全部楼层
支持一下,3q
回复 支持 反对

使用道具 举报

0

主题

812

帖子

2678

积分

vip会员

Rank: 1

积分
2678
发表于 2016-7-4 04:12:31 | 显示全部楼层
不错的资源啊,可以研究研究
回复 支持 反对

使用道具 举报

0

主题

885

帖子

2862

积分

vip会员

Rank: 1

积分
2862
发表于 2016-7-4 13:59:44 来自手机 | 显示全部楼层
谢谢楼主分享
回复 支持 反对

使用道具 举报

0

主题

825

帖子

2721

积分

vip会员

Rank: 1

积分
2721
发表于 2016-7-23 09:21:31 | 显示全部楼层
搬运工 辛苦了
回复 支持 反对

使用道具 举报

九鬼嘉 该用户已被删除
发表于 2016-7-23 12:07:02 来自手机 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

0

主题

844

帖子

2780

积分

vip会员

Rank: 1

积分
2780
发表于 2016-7-27 05:12:42 | 显示全部楼层
这就是为什么春哥在天朝这么火的原因啊!
回复 支持 反对

使用道具 举报

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

本版积分规则

 
 



邮件留言:


 
返回顶部