爱招飞帮助手册 爱招飞帮助手册
首页
  • 学习手册

    • 基本入门
    • 功能介绍
    • 控件说明
    • 功能用法
    • 专用模板
    • 开发流程
    • 函数程序
  • 学习手册

    • 基本入门
    • 功能介绍
    • 控件说明
    • 系统工具
    • 系统管理
    • 数据库工具
    • 专用模板
    • 外部功能
    • 开发流程
    • 函数代码
  • 开发手册
  • 学习手册

    • 基本入门
    • 功能介绍
    • 控件说明
    • 功能用法
    • 专用模板
    • 开发流程
    • 函数程序
  • 开发手册
  • 学习手册

    • 基本入门
    • 功能介绍
    • 控件说明
    • 功能用法
    • 专用模板
    • 开发流程
    • 函数程序
  • 开发手册
  • 学习手册

    • 安装配置
    • 快速上手
    • 界面介绍
    • 功能介绍
    • 报表设计
  • 学习手册

    • 安装配置
    • 快速上手
    • 界面介绍
    • 功能介绍
    • RestAPI
    • WebSocket
  • 学习手册

    • 安装配置
    • 快速上手
    • 程序架构
    • 界面介绍
    • 功能介绍
  • 学习手册

    • 安装配置
    • 快速上手
    • 界面介绍
    • 功能介绍
  • 学习手册

    • 安装配置
    • 快速上手
    • 界面介绍
    • 功能介绍
    • 预设资料
    • RestAPI说明
    • WebSocket说明
    • MQTT说明
    • Python说明
    • 自定程序
    • 运行卫士
    • 自动化作业
    • 函数程序
    • 控件使用
  • 开发手册
  • FastERP
  • FastWeb
  • Smart
  • PinToo
  • Flying
  • TARS
  • 通用功能

    • Report
    • Script
    • Echarts
    • Chart
    • DB Install
    • HiDesk
    • HiNAT
    • FastBPM
    • ReportBuilder
首页
  • 学习手册

    • 基本入门
    • 功能介绍
    • 控件说明
    • 功能用法
    • 专用模板
    • 开发流程
    • 函数程序
  • 学习手册

    • 基本入门
    • 功能介绍
    • 控件说明
    • 系统工具
    • 系统管理
    • 数据库工具
    • 专用模板
    • 外部功能
    • 开发流程
    • 函数代码
  • 开发手册
  • 学习手册

    • 基本入门
    • 功能介绍
    • 控件说明
    • 功能用法
    • 专用模板
    • 开发流程
    • 函数程序
  • 开发手册
  • 学习手册

    • 基本入门
    • 功能介绍
    • 控件说明
    • 功能用法
    • 专用模板
    • 开发流程
    • 函数程序
  • 开发手册
  • 学习手册

    • 安装配置
    • 快速上手
    • 界面介绍
    • 功能介绍
    • 报表设计
  • 学习手册

    • 安装配置
    • 快速上手
    • 界面介绍
    • 功能介绍
    • RestAPI
    • WebSocket
  • 学习手册

    • 安装配置
    • 快速上手
    • 程序架构
    • 界面介绍
    • 功能介绍
  • 学习手册

    • 安装配置
    • 快速上手
    • 界面介绍
    • 功能介绍
  • 学习手册

    • 安装配置
    • 快速上手
    • 界面介绍
    • 功能介绍
    • 预设资料
    • RestAPI说明
    • WebSocket说明
    • MQTT说明
    • Python说明
    • 自定程序
    • 运行卫士
    • 自动化作业
    • 函数程序
    • 控件使用
  • 开发手册
  • FastERP
  • FastWeb
  • Smart
  • PinToo
  • Flying
  • TARS
  • 通用功能

    • Report
    • Script
    • Echarts
    • Chart
    • DB Install
    • HiDesk
    • HiNAT
    • FastBPM
    • ReportBuilder
  • FastWeb帮助主页
  • 学习手册

    • 基本入门

    • 功能介绍

    • 控件说明

    • 系统工具

    • 系统管理

    • 云服务工具

    • 数据库工具

    • 专用模板

    • 外部功能

    • 开发流程

      • 开发案例
      • 纺织印染业ERP设计实务
      • 页面布局
      • URLFrame与JS的交互
      • 自定控件扩展

        • 多用途-圆形-指针仪表盘
        • 多用途-半圆形-指针仪表盘1
        • 多用途-半圆形-指针仪表盘2
        • 温度-垂直-刻度计
        • 方向-圆形-指南针
        • 3D物体实景-自转浏览
        • 3D物体实景-公转浏览
        • 3D平移实景-室内浏览
        • 3D平移实景-室外浏览
        • 互动-SVG-HMI组件
        • 浏览-照片-显示组件
        • 气压-圆形-指针气压计1
        • 3D圆柱实景-风景浏览
        • 3D球形实景-热点追踪
        • 3D球形实景-全景视频
        • 3D球形全景-汽车内饰
        • 3D球形实景-全景漫游
          • 1. 下载示例
          • 2. 确认参数
          • 3. 修改模板
            • 3.1. 本地化处理
      • RestAPI扩展

      • IsoBean开发

    • 函数程序

  • 开发手册

目录

3D球形实景-全景漫游

# FastWeb 3D球形实景-全景漫游

  3D球形实景-全景漫游使用的是pano2vr生成的HTML项目。通过下列的方式可以带大家了解如何在FastWeb中引入此类型的项目。

# 1. 下载示例

  此项目会包含在library/js/obj2vr/vroffice中,如有需要可从中复制此目录中的文件进行操作。此目录中的

# 2. 确认参数

  使用的在线示例的样式内容如下:

<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" /> 
		<title></title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black" />
		<meta name="mobile-web-app-capable" content="yes" />
		<style type="text/css" title="Default">
			/* fullscreen */
			html {
				height:100%;
			}
			body {
				height:100%;
				margin: 0px;
				overflow:hidden; /* disable scrollbars */
				-webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* remove highlight on tab for iOS/Android */
			}
			/* fix for scroll bars on webkit & >=Mac OS X Lion */ 
			::-webkit-scrollbar {
				background-color: rgba(0,0,0,0.5);
				width: 0.75em;
			}
			::-webkit-scrollbar-thumb {
    			background-color:  rgba(255,255,255,0.5);
			}
		</style>	
	</head>
	<body>
<!-- - - - - - - 8<- - - - - - cut here - - - - - 8<- - - - - - - -->
		<script type="text/javascript" src="pano2vr_player.js">
		</script>
		<script type="text/javascript" src="skin.js">
		</script>
		<script src="webxr/three.min.js"></script>
		<script src="webxr/webxr-polyfill.min.js"></script>
		<div id="container" style="width:100%;height:100%;overflow:hidden;">
		<br>Loading...<br><br>
		</div>
		<script type="text/javascript">
	
			// create the panorama player with the container
			pano=new pano2vrPlayer("container");
			// add the skin object
			skin=new pano2vrSkin(pano);
			// load the configuration
		
			window.addEventListener("load", function() {
				pano.readConfigUrlAsync("pano.xml");
			});
			if (window.navigator.userAgent.match(/AppleWebKit/i)) {
				// fix for white borders, rotation on iPhone
				function iosHfix(e) {
					window.scrollTo(0, 1);
					var container=document.getElementById("container");
					var oh=container.offsetHeight;
					document.documentElement.style.setProperty('height', '100vh');
					if (oh!=container.offsetHeight) {
						container.style.setProperty('height',"100%");
					} else {
						container.style.setProperty('height',window.innerHeight+"px");
					}
					window.scrollTo(0, 0);
					pano.setViewerSize(container.offsetWidth, container.offsetHeight);
				};
				setTimeout(iosHfix,0);	
				setTimeout(iosHfix,100);	
				window.addEventListener("resize", function() {
					setTimeout(iosHfix,0);
					// hide toolbar on iPad happens with a delay
					setTimeout(iosHfix,500);
					setTimeout(iosHfix,1000);
					setTimeout(iosHfix,2000);
				});
			}
		</script>
		<noscript>
			<p><b>Please enable Javascript!</b></p>
		</noscript>
<!-- - - - - - - 8<- - - - - - cut here - - - - - 8<- - - - - - - --> 
	</body>
</html>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85

# 3. 修改模板

# 3.1. 本地化处理

  由于需要引入到jQuery组件中,需要对部分链接的地址进行修改,修改后的地址如下:

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="mobile-web-app-capable" content="yes" />
    <style type="text/css" title="Default">
      /* fullscreen */
      html {
        height:100%;
      }
      body {
        height:100%;
        margin: 0px;
        overflow:hidden; /* disable scrollbars */
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* remove highlight on tab for iOS/Android */
      }
      /* fix for scroll bars on webkit & >=Mac OS X Lion */
      ::-webkit-scrollbar {
        background-color: rgba(0,0,0,0.5);
        width: 0.75em;
      }
      ::-webkit-scrollbar-thumb {
          background-color:  rgba(255,255,255,0.5);
      }
    </style>  
  </head>
  <body>
<!-- - - - - - - 8<- - - - - - cut here - - - - - 8<- - - - - - - -->
    <script type="text/javascript" src="library/js/obj2vr/vroffice/pano2vr_player.js">
    </script>
    <script type="text/javascript" src="library/js/obj2vr/vroffice/skinlib.js">
    </script>
    <script src="library/js/obj2vr/vroffice/webxr/three.min.js"></script>
    <script src="library/js/obj2vr/vroffice/webxr/webxr-polyfill.min.js"></script>
    <div id="container" style="width:100%;height:100%;overflow:hidden;">
    <br>Loading...<br><br>
    </div>
    <script type="text/javascript">
  
      /* create the panorama player with the container */
      pano=new pano2vrPlayer("container");
      /* add the skin object */
      skin=new pano2vrSkin(pano);
      /* load the configuration */
    
      window.addEventListener("load", function() {
      /*下面的地址处请修改为FastWeb相对的地址*/
        pano.readConfigUrlAsync("library/js/obj2vr/vroffice/pano.xml");
      });
      if (window.navigator.userAgent.match(/AppleWebKit/i)) {
        /* fix for white borders, rotation on iPhone */
        function iosHfix(e) {
          window.scrollTo(0, 1);
          var container=document.getElementById("container");
          var oh=container.offsetHeight;
          document.documentElement.style.setProperty('height', '100vh');
          if (oh!=container.offsetHeight) {
            container.style.setProperty('height',"100%");
          } else {
            container.style.setProperty('height',window.innerHeight+"px");
          }
          window.scrollTo(0, 0);
          pano.setViewerSize(container.offsetWidth, container.offsetHeight);
        };
        setTimeout(iosHfix,0);  
        setTimeout(iosHfix,100);  
        window.addEventListener("resize", function() {
          setTimeout(iosHfix,0);
          /* hide toolbar on iPad happens with a delay */
          setTimeout(iosHfix,500);
          setTimeout(iosHfix,1000);
          setTimeout(iosHfix,2000);
        });
      }
    </script>
    <noscript>
      <p><b>Please enable Javascript!</b></p>
    </noscript>
<!-- - - - - - - 8<- - - - - - cut here - - - - - 8<- - - - - - - -->
  </body>
</html>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86

  在上文对应的vroffice文件夹中找到skin.js,复制新增此文件,并修改其名称为skinlib.js,使用文本编辑器搜索其中的images/preview_nodeimage_,将所有的显示为上述内容的部分修改替换为library/js/obj2vr/vroffice/images/preview_nodeimage_。修改完成后保存文件。

  通过上述方式创建完成后,可进入JQueryFrame组件管理界面,将上述html的内容填写入模板中,建议使用URLFrame容器引入。

3D球形全景-汽车内饰
视频监控-登录

← 3D球形全景-汽车内饰 视频监控-登录→

Copyright © 2021-2025 爱招飞IsoFace | ALL Rights Reserved
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式