Unreal Engine abre notas de flujo de píxeles

Este tutorial ignora algunos detalles, pero no es importante. Se requiere una referencia detallada del tutorial https://docs.unrealengine.com/5.2/zh-CN/getting-started-with-pixel-streaming-in-unreal-engine/

1. Habilite el complemento Pixel Streaming Pixel Streaming

2.
Editor de niveles de preferencias del editor: agregue parámetros de inicio adicionales para la reproducción

imagen.png

-AudioMixer -PixelStreamingIP=localhost -PixelStreamingPort=8888
Para parámetros empaquetados, el juego es similar a otros.

3. (Primero asegúrese de que node.js esté instalado)
Vaya a D:\MyEpic\Epic Games\UE_5.2\Engine\Plugins\Media\PixelStreaming\Resources\WebServers y
abra get_ps_server.bat para descargar SignallingWebServer

imagen.png

O descárguelo directamente al local git clone --branch UE5.2 https://github.com/EpicGames/PixelStreamingInfrastructure.git
y luego abra SignalingWebServer adentro
porque, el método anterior de descargar el archivo varias veces hará que el archivo se elimine, sin palabras, y
luego abra \UE_5.2\Engine\Plugins\Media\PixelStreaming\Resources\WebServers\SignallingWebServer\platform_scripts\setup.batla dependencia de descargar node.js relacionado.
El principio es:

pushd %~dp0\..\..\
call platform_scripts\cmd\node\npm install --no-save

Puede ingresar manualmente el espejo de terceros en el directorio package.json A veces, el espejo oficial >npm install --registry=https://registry.npm.taobao.org
es basura.npm set registry https://registry.npmjs.org/

imagen.png

4. La ejecución de Powershell set-executionpolicy remotesignedabre el permiso de ejecución ps1 para evitar que se produzca el error de permiso de ejecución para iniciar el servidor de señalización.Después
de que powershell ejecute ./Start_SignallingServer.ps1 en este directorio

imagen.png

打开编辑器或者编译好的程序带参数打开应该可以进行测试了。
6.这是参数

Running: platform_scripts\cmd\node\node.exe cirrus --peerConnectionOptions="{ \"iceServers\": [{\"urls\": [\"stun:stun.l.google.com:19302\"]}] }" --PublicIp=219.133.101.191
10:18:13.662 configFile D:\UnrealProjects\PixelStreamingInfrastructure\SignallingWebServer\config.json
10:18:13.682 Config file is readonly, skipping writing config...
10:18:13.683 Config: {
        "UseFrontend": false,
        "UseMatchmaker": false,
        "UseHTTPS": false,
        "HTTPSCertFile": "./certificates/client-cert.pem",
        "HTTPSKeyFile": "./certificates/client-key.pem",
        "UseAuthentication": false,
        "LogToFile": true,
        "LogVerbose": true,
        "HomepageFile": "player.html",
        "AdditionalRoutes": {},
        "EnableWebserver": true,
        "MatchmakerAddress": "",
        "MatchmakerPort": 9999,
        "PublicIp": "219.133.101.191",
        "HttpPort": 80,
        "HttpsPort": 443,
        "StreamerPort": 8888,
        "SFUPort": 8889,
        "MaxPlayerCount": -1,
        "DisableSSLCert": true,
        "peerConnectionOptions": "{ \"iceServers\": [{\"urls\": [\"stun:stun.l.google.com:19302\"]}] }"
}

7.修改端口
在服务器目录打开config.json

{
    "UseFrontend": false,
    "UseMatchmaker": false,
    "UseHTTPS": false,
    "UseAuthentication": false,
    "LogToFile": true,
    "LogVerbose": true,
    "HomepageFile": "player.html",
    "AdditionalRoutes": {},
    "EnableWebserver": true,
    "MatchmakerAddress": "",
    "MatchmakerPort": 9999,
    "PublicIp": "localhost",
    "HttpPort": 81,
    "HttpsPort": 443,
    "StreamerPort": 8888,
    "SFUPort": 8889,
    "MaxPlayerCount": -1
}

8.用开发工具运行

image.png

不过实际上还是执行这些平台脚本,window下没有Start_SignalServer.bat执行后报错。

9.关于在关卡编辑器中测试的办法
直接勾选使用远程信令服务器,然后stream 推送必须选,我这里选择推送关卡编辑器,而非完整关卡编辑器。
测试发现ui不见了,也不能进行交互,因此还是选择完整的吧。

image.png

Supongo que te gusta

Origin blog.csdn.net/u010042660/article/details/132079447
Recomendado
Clasificación