Unreal Engine Pixel Streaming

https://docs.unrealengine.com/en-us/Platforms/PixelStreaming/PixelStreamingIntro

https://docs.unrealengine.com/en-US/Platforms/PixelStreaming/CustomPlayer

UnrealEngine4.21发布的一个新功能,基于WEBRTC技术,在浏览器(chrome/firefox/safari,IOS/Android)里以视频流方式显示3D内容,支持鼠标键盘触摸交互操作。

使用方式很简单:

0.准备:windows10系统,node.js,端口

1.添加pixelstreaming插件,编辑器设置Edit > Editor Preferences...--->Level Editor > Play 下的Additional Launch Parameters 添加-AudioMixer。

2.打包windows桌面版应用程序,alt创建快捷方式,目标里添加-AudioMixer及(-RenderOffScreen)。

3.启动webrtc服务:Engine/Source/Programs/PixelStreaming/WebServers/SignallingWebServe/run.bat;;Engine/Source/Programs/PixelStreaming/WebRTCProxy/bin/Start_WebRTCProxy.bat。

4.两个cmd刷新输出如下:

WebRTC Proxy Server:

LOG: LogDefault     : Connected to UE4
LOG: LogDefault     : Connecting to Cirrus 127.0.0.1:8888
LOG: LogDefault     : Connected to Cirrus
LOG: LogDefault     : Cirrus config: {
    "peerConnectionConfig" : {}
}

 Signaling Server:

proxy connected
config to Proxy: {"peerConnectionConfig":{}}

5.使用本机电脑浏览器连接(127.0.0.1)或其他终端浏览器浏览(电脑局域网ip),效果还不错,应该有30帧以上。共享输入

Each connected device sees the same view of the same Level, all rendered on the same original desktop PC.

By default, all connected devices share control over the Unreal Engine application, forwarding all keyboard, mouse, and touchscreen inputs.

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 8
    评论
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值