使用 html5/two.js 开发 3D 虚拟旅游
我正在看这个例子, http://gardengnomesoftware.com/samples/pano2vr_3/mozart/< /a> 我对它是如何完成的非常感兴趣。
您认为使用现有的 webgl 引擎之一开发这样的功能会很复杂吗?全景图像只是圆柱形模型上的纹理吗?全景图是如何“剪切”的?
也许它只是一个以图像作为纹理的立方体?当加载缓慢时,您可以看到面孔。
I was taking a look at this example, http://gardengnomesoftware.com/samples/pano2vr_3/mozart/ and I was really interested in how it was done.
Do you think it would be complicated to develop such a function using one of the webgl engines out there? Is the panorama image just a texture on a cylindrical model? How is the panorama "cut?"
Perhaps it is just a cube with the images as a texture? You can kind of see the faces when it is loading slowly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,在这种情况下,它只是一个“相机”居中的立方体。它与 天空盒。
我没有经验如何从照片创建立方体贴图,但维基百科文章链接到一些可能有帮助的工具,包括 Hugin
Yes, in this case it is simply a cube that the "camera" is centered in. It's basically the same concept as a skybox in many video games.
How to create a cube-map from photos the way they've done isn't something I have experience with, but the wikipedia article links to some tools that may help, including Hugin