Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jQuery:如何创建360视图表单照片_Jquery_Html_360 Degrees_360 Panorama_Virtual Tour - Fatal编程技术网

jQuery:如何创建360视图表单照片

jQuery:如何创建360视图表单照片,jquery,html,360-degrees,360-panorama,virtual-tour,Jquery,Html,360 Degrees,360 Panorama,Virtual Tour,我正在尝试创建产品的360/3D视图 为了实现这一点,我从使用3dEye开始。有了这个jQuery插件,我所要做的就是将普通照片转储到一个文件夹中。Ej,photos/cup-1/,photos/cup-2/和photos/car/ <!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" />

我正在尝试创建产品的360/3D视图

为了实现这一点,我从使用3dEye开始。有了这个jQuery插件,我所要做的就是将普通照片转储到一个文件夹中。Ej,
photos/cup-1/
photos/cup-2/
photos/car/

<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title>3D Products</title>

    <script type="text/javascript" src="jquery-1.9.1.js"></script>
    <script type="text/javascript" src="3deye.min.js"></script>
    <script>
    $(document).ready(function(){
        $("#cup-1").vc3dEye({
        imagePath: "photos/cup-1/",
        totalImages: 7,
        imageExtension: "jpg"
        });

        $("#cup-2").vc3dEye({
        imagePath: "photos/cup-2/",
        totalImages: 13,
        imageExtension: "jpg"
        });

        $("#car").vc3dEye({
        imagePath: "photos/car/",
        totalImages: 51,
        imageExtension: "png"
        });
    });
    </script>
</head>
<body>
    <h1>Sample of 360-view products</h1>
    <h2>Move the object with the mouse</h2>

    <br /><br />
    <div id="cup-1"></div>
    <div id="cup-2"></div>
    <div id="car"></div>
</body>
</html>

3D产品
$(文档).ready(函数(){
$(“#杯-1”).vc3dEye({
imagePath:“照片/cup-1/”,
总计图像:7,
图像扩展:“jpg”
});
$(“#杯-2”).vc3dEye({
imagePath:“photos/cup-2/”,
总数:13,
图像扩展:“jpg”
});
$(“#车”).vc3dEye({
imagePath:“照片/汽车/”,
总数:51,
图像扩展:“png”
});
});
360视图产品示例
用鼠标移动对象


现场样品:

然而,3dEye有很多缺点

  • 同一页上只能有一个对象。如果我添加更多页面,它将用绿色覆盖覆盖其他对象,加载标签将保留
  • 它没有缩放选项
  • 无移动控件(如自动播放、向左移动按钮、向右移动按钮)
  • 等等
你知道我可以用一个非常好的jQuery插件(或其他解决方案)来实现这一点吗? 它必须是移动友好型,并允许屏幕滑动(用手指)

另外,如果我能在全景和虚拟旅游中使用相同的解决方案,那就太好了……但如果不行,我发现它适合移动和桌面使用。其响应速度快,具有自动播放功能,并可根据需要进行控制。唯一缺少的是缩放,但您可以使用js自己缩放图像。