当前位置:网站首页>【UE4】Build VR live broadcast in LAN UE4.27
【UE4】Build VR live broadcast in LAN UE4.27
2022-08-03 03:04:00 【North of the city is no longer beautiful】
前言:(英伟达显卡)UE4.27The intranet is built360°Camera live,And use any device on the intranetVR观看,In theory, the performance is sufficient and the effect is better;此处使用的VR设备为Vive,Sorted out the overall construction process,希望能帮到你!多图警告!The picture tutorial is more intuitive
1.准备工作:
- 下载UE和OBSThe required plugins are installed and installed(请提前安装OBS Studio与UE4.27版本)(Be sure to register an account on this website for subsequent authorized use):Live-streaming Toolkit

- 运行Toolkitprogram to install the Unreal plugin:安装到引擎插件Runtime目录,Next-Full installation

- 下载OBS-NDI(github)插件进行安装:(Ladder may be required)

- 下载Win64version of the local area networkRTMP服务程序:MonaServer(need a ladder)
- 新建UE427project and open the plugin(提前安装steamVRUsed by subsequent receivers):Live-streaming Toolkit
The first time you use it, you will be prompted to log in to the web page,注册登录即可

2.各项设置:
- UE项目中:
into the world sceneOWL360Cam Cpature,Create a texture target in the detail bar2D并设置分辨率、类型:

into the world sceneOWLNDISender Manager,Add elements to the array in the details bar,设置Nameand the texture target from the previous step2D,勾选Active(推流),Capture Audio(音效):In case of crash,请重新安装OBS-NDI插件后重启

- OBS中:
Added to the sourceNDI来源:Now you can see the live transmission360°画面


OBS设置中-推流-填入:rtmp://192.168.x.x:xxxx/live(rtmp服务器的IP与端口)
OBSSet the output resolution to correspond to the resolution in the detail bar:
工具-NDI输出设置-Check Main Output:
- UE中:
关卡蓝图中tick设置360cameraposition to followpawn:(Here I just set the location,Avoid dizziness in the audience)
观看VRPlayer Note:
VRThe player as the homeowner blueprint controls noActive NDIsender,Join one in the local area networkPC玩家Active NDIsender,Also set the position to followVRThe homeowner can;
再次新建一个UE4.26项目(RTMPplayer)Used to play the stream:且安装vlc插件(The new version can find me):VlcMedia
且开启steam vr插件


添加VRContent packs to projects,Placed in the ball mesh and content pack in the new mapMotionControllerpawn:
Create a folder in the content directoryPlayer,Create a new streaming media source1,Fill in the server streaming link2,Create a new media player3、Media texture4、编写纹理材质:

The sphere mesh uses the created material:
MotionControlllerPawnAvoid not loading the stream by default in ,Press manually1Trigger the load flow:
Quickly package projects into Win64:
3.开启服务并测试:
- A device on the same network segment acts as a server,管理员身份开启MonaServer:

- 同网段PCThe observation device is turned onOBS推流(/Join the host room online):

- On the server side, you can see that the push stream has been successful:

- The client devices in the same network segment are packaged for runningUE客户端,键盘按下1ready to wearVR设备观看:

4.Project build flow chart:

后言:This tutorial just provides a simple case flow,The online part of it needs to be implemented by yourself,Follow the steps in the flowchart to build the entire service,Multiple clients can be supported,The upper limit depends on bandwidth and device performance,Clients are also availableVRThe all-in-one machine downloads the Android player and fills in the service link.
希望能对你有所帮助!
边栏推荐
猜你喜欢

容联云发送验证码

.NET in-depth analysis of the LINQ framework (four: IQueryable, IQueryProvider interface details)

易购数码类电商商城网页设计与实现项目源码

Topic Modeling of Short Texts: A Pseudo-Document View

韦东山 数码相框 项目学习(五)libjpeg-turbo的移植

EasyGBS播放器优化:设备通道视频播放出现跳屏问题的修复

数据中台建设(八):数据服务体系建设

梅科尔工作室-14天华为培训三

PyCharm中常用的快捷键用法详解

【7.31】代码源 - 【矩阵操作】【宝箱】【New Stone Game】【等差数列】
随机推荐
Violence recursion to dynamic programming 08 (pony go chess)
vs studio 安装opencv 环境
45部署LVS-DR群集
XSS攻击
ES6 新特性:Class 的基本语法
openCV第二篇
Conversational Technology!
Disable the token and update the token function without awareness
20、商品微服务-web层实现
为什么要使用 playwright 做浏览器自动化测试?
高并发基石:多线程、守护线程、线程安全、线程同步、互斥锁,一文扫尽!...
【Swoole系列3.3】单进程管理Process
11-security认证.md
JVM内部结构图及各模块运行机制总结
五大靠谱的婚恋相亲APP详细特点缺点分析!
The Multiversity 的 “非常重要的生命体” NFT 推出
Usage of permute() function in pytorch
qt opengl 使用不同的颜色绘制线框三角形
js垃圾回收机制
MySQL删库不跑路