MRTK V2 - 旁观者视角:看不到动态纹理

MRTK V2 - Spectator View: Can't see Dynamic Textures

设置:
我正在使用 nativ render plugin to display webcontant on a texture and not overload the main thread. Unity side passes a texture into the plugin and the code changes the pixels of it each frame. This is done by using Texture.GetNativeTexturePtr:

private void CreateTextureAndPassToPlugin()
{
    // Create a texture
    Texture2D tex = new Texture2D(1280, 720);
    tex.filterMode = FilterMode.Point;

    // Call Apply() so it's actually uploaded to the GPU
    tex.Apply();

    // Set texture onto material
    GetComponent<Renderer>().material.mainTexture = tex;

    // Pass texture pointer to the plugin
    SetTextureFromUnity (connID, tex.GetNativeTexturePtr(), tex.width, tex.height);
}

我根据 Microsoft 的指南设置了整个 Specator 视图。我可以用我的 HoloLens 做一些事情,另一个人可以通过 android 设备看到我的互动。问题是旁观者在 android 设备上看不到我的 texture/webcontent.

我想要的:
sb 知道如何告诉 unity 纹理已更改且需要更新吗?我在这方面的知识非常有限。据我了解,问题似乎是旁观者,旁观者没有提供解决问题的方法。

我的规格:
Unity 2019.2.0f1
Visual Studio 2017
本机插件:Unity Bitbucket Github

旁观者视图目前不支持动态纹理。

如果您尝试拍摄体验以提供第二个视角,则不太理想的解决方法是在视频中伪造此内容。理论上,您可以在全息透镜设备上将此纹理内容记录为 mp4,然后将您的内容替换为 mp4 以用于拍摄目的。

如果您需要实时更新内容,您可以使用 MixedReality-WebRTC 存储库之类的东西来获取内容并将其同步到 android 设备。我个人并没有花很多时间使用 WebRTC,也不确定这样做的相关成本。

无论如何,这是一个合理的功能请求,我已打开以下问题进行跟踪: https://github.com/microsoft/MixedReality-SpectatorView/issues/224