我可以使用 HTML 制作一个在 Hololens 上运行的通用应用程序吗?

Can I make a universal app using HTML that runs on Hololens?

我相信这些陈述是正确的:

1) 所有通用应用程序都像全息图一样工作

2) 可以使用 HTML/JS

构建通用应用程序

这是否意味着我可以使用网络技术构建全息通用应用程序?例如 D3.js?

中的全息可视化仪表板

现在下定论还为时过早,但这里有一些我能找到的信息。

更新:现在有一个名为 HoloJS 的库,它允许开发人员在 html.

中编写应用程序

首先你的假设1和2是正确的。 javascript/html 中有多种构建 UWP(通用 Windows 平台)应用程序的方法。这意味着您可以编写一个 UWP JS 应用程序,它可以 运行 webgl 在 2D window 中放置在您的环境中的某个地方。您还可以 运行 Microsoft Edge 上的应用程序。

因此,如果您只想在 3D 房间中显示 2D 仪表板,是的,这看起来很有可能。如果您希望应用程序在用户周围呈现 3D 对象,则需要解决一些问题。

引自https://forums.hololens.com/discussion/80/is-it-possible-to-use-webgl-with-hololens-repost#latest:

 "Holographic apps are powered by the same graphics stack as the rest of the Windows 10 ecosystem. That means that just like the Xbox and Win32 games, apps for HoloLens are built on top of DirectX."

因此,如果您想要围绕用户的 3D 可视化效果,那么您只能使用 Unity 或 DirectX。但是可能有办法...

本页底部的一位用户 http://forums.hololens.com/discussion/80/is-it-possible-to-use-webgl-with-hololens-repost 说:

"That is interesting idea. If I understand correctly, you are trying to hook    your Edge browser with your HoloLens and project 3D graphics with WebGL on your Edge browser based on the REST APIs available from HoloLens"

因此,您也许可以全屏显示您的应用程序或找到某种方法来确保它在您的用户面前,然后使用服务器将 API 呼叫从全息镜头定向到您的网络应用程序,以便按顺序围绕用户变换几何图形。

如果您想要全息可视化,那么考虑将 D3 可视化集成到 threejs 应用程序中可能是值得的。 https://www.youtube.com/watch?v=bWjn1N4SJsk

如果您只想在环境中使用 2D 屏幕,请照常开发并在 hololens 中使用 Edge。