HTC Vive打包的UE4游戏全屏,铺满窗口的方法
2016-10-17 20:27
971 查看
未修改前,打包的游戏窗口两边会有黑边,修改后可以让游戏内容铺满窗口
要求使用源码版本的引擎打包
定位到Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private\SteamVRFunctionLibrary.cpp
将
改为
RendererModule->DrawRectangle( RHICmdList, 0, 0, ViewportWidth, ViewportHeight,
0.0f, 0.3f, 0.4f, 0.4f, FIntPoint(ViewportWidth, ViewportHeight), FIntPoint(1, 1),
*VertexShader, EDRF_Default);
编译打包项目即可。
要求使用源码版本的引擎打包
定位到Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private\SteamVRFunctionLibrary.cpp
将
<pre name="code" class="cpp">RendererModule->DrawRectangle( RHICmdList, ViewportWidth / 4, 0, ViewportWidth / 2, ViewportHeight, 0.1f, 0.2f, 0.3f, 0.6f, FIntPoint(ViewportWidth, ViewportHeight), FIntPoint(1, 1), *VertexShader, EDRF_Default);
改为
RendererModule->DrawRectangle( RHICmdList, 0, 0, ViewportWidth, ViewportHeight,
0.0f, 0.3f, 0.4f, 0.4f, FIntPoint(ViewportWidth, ViewportHeight), FIntPoint(1, 1),
*VertexShader, EDRF_Default);
编译打包项目即可。
相关文章推荐
- UE4 打包设置全屏模式方法--GameUserSettings的使用
- 窗口开启即全屏、最大化的几种方法
- 【UE4游戏开发】安装UE4时报SU-PQR1603错误的解决方法
- 实现浏览器全屏窗口的几种方法
- HTML,img,video无法铺满屏幕解决方法,同视频做网页背景无法全屏的解决方法
- win7玩cf不能全屏,win7游戏不能全屏的解决方法(图文说明)
- .NET 中 对窗口中某一控件全屏显示的方法二则
- QT中全屏显示子窗口的方法
- 实现浏览器全屏窗口的几种方法
- UE4中实例化游戏对象的方法
- C#写的64位windows窗口应用程序打包安装后提示“未能加载文件或程序集‘System.Data.SQLite’”解决方法
- win7玩cf不能全屏,win7游戏不能全屏的解决方法(图文说明)
- 游戏窗口模式和全屏模式的区别在哪?
- UE4-Android-如何通过无线将打包好的游戏安装到手机上
- 背景图片铺满全屏的方法
- Win7下有些游戏不能全屏的解决方法
- UE4打包的exe运行未响应解决方法
- 虚幻UE4 添加窗口小部件3D---无需点击运行(Play)即可改变场景中游戏物体的形状
- android 中去掉窗口全屏显示的简单方法
- Windows7下游戏全屏问题通用解决方法