我可以使用在Hololens上运行的HTML制作通用应用程序吗? [英] Can I make a universal app using HTML that runs on Hololens?

查看:117
本文介绍了我可以使用在Hololens上运行的HTML制作通用应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我相信这些说法是正确的:

I believe these statement are true:

1)所有通用应用都可以用作全息图

1) All Universal Apps Work As Holograms

2)可以使用HTML/JS构建通用应用

2) Universal Apps can be built using HTML/JS

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

Does this mean I can build a holographic universal app using web technologies? For example a holographic visualizations dashboard in D3.js?

推荐答案

确切地说还为时过早,但是我可以找到一些信息.

It's still too early to say definitively, but here is some info I could find.

更新:现在有一个名为HoloJS的库,它使开发人员可以用html编写应用程序.

UPDATE: There is now a library called HoloJS which allows devs to write apps in html.

首先,您的假设1和2是正确的.有一些方法可以在javascript/html中构建UWP(通用Windows平台)应用程序.这意味着您可以编写一个UWP JS应用程序,该应用程序可以在环境中某个位置的2D窗口中运行webgl.您也可以在Microsoft Edge上运行您的应用.

First your assumptions 1 and 2 are correct. There are ways to build UWP (Universal Windows Platform) apps in javascript/html. This means you could write a UWP JS app which can run webgl in a 2D window placed somewhere in your environment. You could also run your app on Microsoft Edge.

因此,如果您要做的只是在3D房间中显示2D仪表盘,是的,这看起来很有可能.如果您希望应用程序在整个用户范围内渲染3D对象,则需要解决一些问题.

So if all you want to do is display a 2D dashboard in a 3D room, yes it looks very possible. If you want the application to render 3D objects all around the user, there are some problems you will need to work around.

引自 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的困境.但是可能有办法...

So you're kind of stuck with either Unity or DirectX if you want 3D visualizations that surround the user. BUT there could be a way...

此页面底部的用户

因此,您可能会全屏显示应用程序,或者找到某种方法来确保它位于用户的面前,然后使用服务器将API调用从hololens定向到您的网络应用程序,从而围绕用户.

So, you could perhaps fullscreen your app or find some way to ensure it is in front of your user's face and then use a server to direct API calls from the hololens to your web-app in order to transform your geometry around the user.

如果需要全息可视化,可能值得将D3可视化集成到threejs应用程序中. https://www.youtube.com/watch?v=bWjn1N4SJsk

It might be worth it to look into integrating D3 visualizations inside a threejs app if you want the holographic visualizations. https://www.youtube.com/watch?v=bWjn1N4SJsk

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

If you just want a 2D screen in the environment then develop as normal and use Edge inside the hololens.

这篇关于我可以使用在Hololens上运行的HTML制作通用应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆