如何使用Pannellum显示全景图像



我有一个全景图像,并尝试通过自动旋转在我的网站上显示它。Pannellul https://pannellum.org/documentation/examples/auto-rotate/工作得很好,但唯一的缺点是它是360。

我正在寻找与此 https://liviucerchez.com/panorama360/example3/类似的东西,但不是wordpress插件。便携的东西。

任何提示或建议都会很棒。每次我谷歌时,只出现360全景,这不是我想要的,我试图让图像只能从左到右,从右到左移动。没有垂直移动。

你可以使用这样的东西:

pannellum.viewer('panorama', {
"type": "equirectangular",
"panorama": "main-image.jpg",
"preview": "preview-image.jpg",
"autoRotate": -2,
"hfov": 100,
"vaov": 100,
"vOffset": 0,
"minPitch": 0,
"maxPitch": 0,
"pitch": 0,
"showZoomCtrl": false,
"keyboardZoom": false,
"mouseZoom": false,
"minHfov":100,
"maxHfov":100,
});

最新更新