当前位置:网站首页>【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.
希望能对你有所帮助!
边栏推荐
猜你喜欢
DJI内推码(2022年8月2日更新)
堆的应用:堆排序和TOP-K问题
Brute force recursion to dynamic programming 07 (516. Longest palindrome subsequence)
Incorrect datetime value: ‘2022-01-01‘ for function str_to_date
Excel 如何比较两列字符串是否相同?
openCV第二篇
Rust Web(三)—— 通过sqlx连接数据库(MySQL)
ROS通信模块:秒懂话题通信
【Swoole系列3.3】单进程管理Process
The LVS load balancing cluster and the deployment of the LVS - NAT experiment
随机推荐
The LVS load balancing cluster and the deployment of the LVS - NAT experiment
常用工具链和虚拟环境-WSL
qt opengl 使用不同的颜色绘制线框三角形
VS2010 组件列表与对应名称
怎么做postgrsql主备?
常用工具链和虚拟环境-TDMGCC
豆瓣评分9.3的好书,文末给大家抽奖送几本!
[@property enhancement in Objective-C language]
开发JSP应用的基础知识
可信的SSL证书颁发机构有哪些
【Arduino】重生之Arduino 学僧(3)----Arduino函数
Qt在选择MSVC 编译器的时候,无法识别出M_PI的问题处理
win下使用vscode+wsl2
JVM internal structure and various modules operation mechanism
能添加任意贴图超级复布局的初级智能文本提示器(超级版)
FLIR E95 在8层楼看马路上行驶的CAR的热成像形态?
[QNX Hypervisor 2.2用户手册]10 虚拟设备参考
ssh(sshd)安全配置
五大靠谱的婚恋相亲APP详细特点缺点分析!
不想当Window的Dialog不是一个好Modal,弹窗翻身记...