[go: up one dir, main page]

CN107369205B - A mobile terminal city 2D and 3D linkage display method - Google Patents

A mobile terminal city 2D and 3D linkage display method Download PDF

Info

Publication number
CN107369205B
CN107369205B CN201710536521.2A CN201710536521A CN107369205B CN 107369205 B CN107369205 B CN 107369205B CN 201710536521 A CN201710536521 A CN 201710536521A CN 107369205 B CN107369205 B CN 107369205B
Authority
CN
China
Prior art keywords
dimensional
point
scene
view
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201710536521.2A
Other languages
Chinese (zh)
Other versions
CN107369205A (en
Inventor
王慧青
周建飞
焦越
杨燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Southeast University
Original Assignee
Southeast University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Southeast University filed Critical Southeast University
Priority to CN201710536521.2A priority Critical patent/CN107369205B/en
Publication of CN107369205A publication Critical patent/CN107369205A/en
Application granted granted Critical
Publication of CN107369205B publication Critical patent/CN107369205B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/04Texture mapping

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Computer Graphics (AREA)
  • Remote Sensing (AREA)
  • Processing Or Creating Images (AREA)

Abstract

本发明公开了一种移动终端城市二三维联动显示方法,包括如下步骤:1、对三维文件数据进行解析和组织,建立三维场景,显示三维视图;2、获取三维场景中当前视角点和方向点,实时传递给二维视图;3、二维视图解析二维矢量数据、结合三维场景中当前视角点和方向点在水平面的投影值,实时绘制二维视图。该方法可以实现二三维的联动显示,发挥二维地图在位置定位方面的优势,实现优势互补,在浏览三维城市场景的同时,可以在二维场景上看到当前视角的定位和观察方向。

Figure 201710536521

The invention discloses a method for displaying two-dimensional and three-dimensional linkage of a city on a mobile terminal, comprising the following steps: 1. Analyzing and organizing three-dimensional file data, establishing a three-dimensional scene, and displaying a three-dimensional view; 2. Obtaining a current perspective point and a direction point in the three-dimensional scene , and transmit it to the two-dimensional view in real time; 3. The two-dimensional view analyzes the two-dimensional vector data, and draws the two-dimensional view in real time by combining the projection values of the current perspective point and the direction point in the three-dimensional scene on the horizontal plane. This method can realize the linkage display of 2D and 3D, give full play to the advantages of 2D map in location positioning, and realize complementary advantages. While browsing the 3D urban scene, the current perspective positioning and observation direction can be seen on the 2D scene.

Figure 201710536521

Description

一种移动终端城市二三维联动显示方法A mobile terminal city 2D and 3D linkage display method

技术领域technical field

本发明属于虚拟现实领域,具体涉及一种在移动终端进行二三维联动显示的方法。The invention belongs to the field of virtual reality, and in particular relates to a method for performing 2D and 3D linked display on a mobile terminal.

背景技术Background technique

近年来,虽然移动三维GIS的不断发展进一步提升了地理信息的表达水平,但是其仍处于发展阶段,一些问题的解决从成熟的二维GIS入手更合适。这就需要实现二三维集成,充分发挥二维GIS和三维GIS的各自优势。同时随着“智慧城市”、“数字地球”等概念的提出,移动端的三维城市可视化技术研究显得尤为重要。In recent years, although the continuous development of mobile 3D GIS has further improved the expression level of geographic information, it is still in the development stage, and it is more appropriate to start with mature 2D GIS to solve some problems. This requires the realization of 2D and 3D integration, giving full play to the respective advantages of 2D GIS and 3D GIS. At the same time, with the introduction of concepts such as "smart city" and "digital earth", the research on 3D city visualization technology on mobile terminals is particularly important.

二维显示窗口与三维显示窗口联动的原理是通过某种消息的响应机制来实现的。而实现二维地图坐标和三维场景坐标的一一映射是响应的基本前提,同时二维电子地图的投影参考坐标系应该与三维场景建设的坐标系保持一致。系统通过二三维坐标互传来实现二维三维窗口显示的同步。为了充分体现出二维GIS和三维GIS的各自优势,在实现GIS二三维联动显示的研究过程中,需要充分考虑一些相关技术要求,主要的要求如下所列:The principle of linkage between the two-dimensional display window and the three-dimensional display window is realized through a certain message response mechanism. Realizing the one-to-one mapping of two-dimensional map coordinates and three-dimensional scene coordinates is the basic premise of the response, and the projected reference coordinate system of the two-dimensional electronic map should be consistent with the coordinate system of the three-dimensional scene construction. The system realizes the synchronization of 2D and 3D window display through the mutual transmission of 2D and 3D coordinates. In order to fully reflect the respective advantages of 2D GIS and 3D GIS, some related technical requirements need to be fully considered in the research process of realizing GIS 2D and 3D linkage display. The main requirements are listed as follows:

(1)数据要求(1) Data requirements

二三维联动显示中的数据模型设计、数据组织及存储方面必须充分考虑到二维、三维特点,最好能够做到源数据共用一套地理空间数据。在部分显示场合中,至少也必须要求二维数据和三维数据能够有关联关系,对应的比例要一致。The data model design, data organization and storage in the 2D and 3D linkage display must fully consider the characteristics of 2D and 3D, and it is best to share a set of geospatial data with the source data. In some display situations, at least two-dimensional data and three-dimensional data must be required to be related, and the corresponding proportions must be consistent.

(2)显示操控要求(2) Display control requirements

二维和三维场景可视化操控中应该使用同样的规则以及同样的人机交互模块,需要保持二维和三维显示环境下场景范围和场景操控的一致性。场景的操作包括前进、后退、旋转、放大、缩小等,当进行可视化操作时,场景的视角、内容、范围都在变化,另一窗口的各项指标也要跟着改变。The same rules and the same human-computer interaction modules should be used in the visualization and manipulation of 2D and 3D scenes, and the consistency of scene scope and scene manipulation in 2D and 3D display environments should be maintained. The operation of the scene includes forward, backward, rotation, zoom in, zoom out, etc. When the visualization operation is performed, the perspective, content, and scope of the scene change, and the indicators of the other window also change accordingly.

当然,在二三维联动的过程中需要保持一致的内容还有很多,但由于移动端平台能力相对有限,过多地考虑一致性的内容必然将引起实时交互的流畅性,应针对应用特点重点研究必要的联动需求。目前实现二三维联动的现有技术存在主要问题有:1、实现平台主要以桌面端为主,移动端则相对较少;2、大部分二三维联动显示软件的开发借助了第三方平台,依赖性较强,实现过程不透明,数据组织不清晰。Of course, there are still many contents that need to be consistent in the process of 2D and 3D linkage. However, due to the relatively limited capabilities of the mobile terminal platform, too much consideration of consistent content will inevitably lead to the smoothness of real-time interaction, and should focus on application characteristics. necessary linkage requirements. At present, the main problems of the existing technologies for realizing 2D and 3D linkage are: 1. The realization platform is mainly based on the desktop terminal, and the mobile terminal is relatively small; 2. Most of the 2D and 3D linkage display software is developed with the help of third-party platforms, relying on It is highly flexible, the implementation process is not transparent, and the data organization is not clear.

发明内容SUMMARY OF THE INVENTION

发明目的:针对现有技术中存在的问题,本发明提供了一种移动终端城市二三维联动显示方法,该方法可以在移动终端实现二三维的联动显示,针对“高楼林立、遮天蔽日”的城市场景特点,发挥二维地图在位置定位方面的优势,实现优势互补,在浏览三维城市场景的同时,可以在二维场景上看到当前视角的定位和观察方向。Purpose of the invention: In view of the problems existing in the prior art, the present invention provides a mobile terminal city 2D and 3D linkage display method, which can realize 2D and 3D linkage display on the mobile terminal, aiming at "high-rise buildings, covering the sky and sun" Based on the characteristics of urban scenes, the advantages of two-dimensional maps in location positioning are used to achieve complementary advantages. While browsing three-dimensional urban scenes, you can see the positioning and observation direction of the current perspective on the two-dimensional scene.

技术方案:本发明采用如下技术方案:一种移动终端城市二三维联动显示方法,包括如下步骤:Technical scheme: The present invention adopts the following technical scheme: a method for displaying two-dimensional and three-dimensional linkage of a mobile terminal city, comprising the following steps:

(1)对三维文件数据进行解析和组织,建立三维场景,显示三维视图;(1) Analyze and organize 3D file data, build 3D scenes, and display 3D views;

(2)获取三维场景中当前视角点和方向点,实时传递给二维视图;(2) Obtain the current perspective point and direction point in the 3D scene, and transfer it to the 2D view in real time;

(3)二维视图解析二维矢量数据;结合三维场景中当前视角点和方向点在水平面的投影位置,实时绘制二维视图。(3) The two-dimensional view analyzes the two-dimensional vector data; combines the projection position of the current viewpoint point and the direction point in the three-dimensional scene on the horizontal plane, and draws the two-dimensional view in real time.

三维文件数据包括三维坐标数据,三维坐标数据在水平面上的投影值与二维矢量数据成对应比例关系。The three-dimensional file data includes three-dimensional coordinate data, and the projection value of the three-dimensional coordinate data on the horizontal plane is in a corresponding proportional relationship with the two-dimensional vector data.

三维文件数据由GIS二维矢量地图得到;在ArcGIS中添加高度属性,并利用SketchUp插件拉伸为三维模型文件,在Sketch Up中打开进行模型编辑,添加纹理,导出三维通用的obj格式文件作为三维文件数据。The 3D file data is obtained from the GIS 2D vector map; add the height attribute in ArcGIS, and use the SketchUp plug-in to stretch it into a 3D model file, open it in SketchUp for model editing, add textures, and export a 3D universal obj format file as a 3D model file. file data.

本发明中步骤(1)采用OpenGL ES建立三维场景,显示三维视图。步骤(2)具体包括如下步骤:In the present invention, step (1) adopts OpenGL ES to establish a three-dimensional scene and display a three-dimensional view. Step (2) specifically includes the following steps:

(2.1)根据OpenGL ES设置的投影视锥体的参数和摄像机参数,选取近平面的下界中心点作为传递的视角点,选取摄像机的方向点作为传递的方向点;(2.1) According to the parameters of the projection view cone and the camera parameters set by OpenGL ES, select the lower bound center point of the near plane as the transmitted perspective point, and select the direction point of the camera as the transmitted direction point;

(2.2)利用场景变换矩阵的逆矩阵计算出与当前视角点和方向点对应的未变换的三维位置坐标;(2.2) using the inverse matrix of the scene transformation matrix to calculate the untransformed three-dimensional position coordinates corresponding to the current point of view and the direction point;

(2.3)将步骤(2.2)计算得到的三维原始位置坐标在水平面的投影值传递给二维视图。(2.3) The projection value of the three-dimensional original position coordinates calculated in step (2.2) on the horizontal plane is passed to the two-dimensional view.

三维视图的显示与二维视图的显示由不同线程完成;步骤(2)通过单例类实现线程间通信,将获取到的三维场景中当前视角点和方向点实时传递给二维视图显示线程。The display of the 3D view and the display of the 2D view are completed by different threads; step (2) realizes inter-thread communication through a singleton class, and transmits the current viewpoint point and direction point in the acquired 3D scene to the 2D view display thread in real time.

上述移动终端为基于Android系统或者IOS系统的移动嵌入式设备。The above mobile terminal is a mobile embedded device based on an Android system or an IOS system.

有益效果:与现有技术相比,本发明公开的移动终端城市二三维联动显示方法具有以下优点:1、二三维联动显示,可以发挥二维地图在位置定位方面的优势,实现优势互补,在浏览三维城市场景的同时,可以在二维场景上看到当前视角的定位和观察方向;2、可以在二维矢量地图上,实时地标记出当前城市三维场景漫游过程中的位置和视角方向。Beneficial effects: Compared with the prior art, the mobile terminal city 2D and 3D linkage display method disclosed in the present invention has the following advantages: 1. Two-dimensional and 3D linkage display can give full play to the advantages of the two-dimensional map in location positioning, and realize complementary advantages. While browsing the 3D city scene, you can see the positioning and viewing direction of the current perspective on the 2D scene; 2. On the 2D vector map, you can mark the position and perspective direction of the current city 3D scene roaming process in real time.

附图说明Description of drawings

图1为移动终端城市二三维场景联动显示框图;Fig. 1 is a block diagram of a mobile terminal city two-dimensional scene linkage display;

图2为二三维场景联动实现流程图;Fig. 2 is the flow chart of 2D and 3D scene linkage realization;

图3为移动终端二三维联动显示效果图;Fig. 3 is a two-dimensional three-dimensional linkage display effect diagram of a mobile terminal;

图4为基于二维矢量地图和三维建模软件实现三维城市模型的流程图;Fig. 4 is the flow chart of realizing 3D city model based on 2D vector map and 3D modeling software;

图5为传递的视角点示意图;FIG. 5 is a schematic diagram of a transmitted perspective point;

图6为三维原始坐标与二维矢量坐标比例缩放示意图;6 is a schematic diagram of the scaling of three-dimensional original coordinates and two-dimensional vector coordinates;

具体实施方式Detailed ways

本发明公开了一种移动终端城市二三维联动显示方法,包括如下步骤:The invention discloses a mobile terminal city two-dimensional linkage display method, comprising the following steps:

(1)对三维文件数据进行解析和组织,建立三维场景,显示三维视图;(1) Analyze and organize 3D file data, build 3D scenes, and display 3D views;

(2)获取三维场景中当前视角点和方向点,实时传递给二维视图;(2) Obtain the current perspective point and direction point in the 3D scene, and transfer it to the 2D view in real time;

(3)二维视图解析二维矢量数据;结合三维场景中当前视角点和方向点在水平面的投影位置,实时绘制二维视图。(3) The two-dimensional view analyzes the two-dimensional vector data; combines the projection position of the current viewpoint point and the direction point in the three-dimensional scene on the horizontal plane, and draws the two-dimensional view in real time.

本实施例通过在移动终端构建二三维联动显示界面来进一步阐明本发明。如图1所示,在移动终端建立三维视图显示线程和二维视图显示线程,然后对二维窗口和三维窗口分别进行显示的初始化工作,同时也将分别解析二维SHP数据和三维obj数据并组织至系统内存中。初始化工作完毕后,便会进入实时刷新绘制阶段。正常情况下,二维窗口的实时绘制利用二维数据,三维窗口实时绘制利用三维数据,彼此之间互不干扰。在场景二三维联动中,三维视图线程每一次绘制对应的场景时,都需要对视角进行解算并传递到二维实时绘制的线程中,并由二维视图实时地绘制出当前的视角点,实现它们之间的场景联动。本实施例中通过单例类实现线程间通信,将获取到的三维场景中当前视角点和方向点实时传递给二维视图显示线程。This embodiment further illustrates the present invention by constructing a 2D and 3D linkage display interface on the mobile terminal. As shown in Figure 1, a 3D view display thread and a 2D view display thread are established on the mobile terminal, and then the initialization of the 2D window and the 3D window is performed respectively, and the 2D SHP data and the 3D obj data are also analyzed respectively. Organized into system memory. After the initialization work is completed, it will enter the real-time refresh drawing stage. Under normal circumstances, two-dimensional data is used for real-time rendering of a two-dimensional window, and three-dimensional data is used for real-time rendering of a three-dimensional window without interfering with each other. In the 2D and 3D linkage of the scene, every time the 3D view thread draws the corresponding scene, it needs to solve the perspective and transfer it to the 2D real-time rendering thread, and the 2D view will draw the current perspective point in real time. Realize the scene linkage between them. In this embodiment, the communication between threads is implemented through a singleton class, and the acquired current perspective point and direction point in the 3D scene are transmitted to the 2D view display thread in real time.

本发明采用OpenGL ES建立三维场景,显示三维视图。OpenGL ES是OpenGL三维图形API的子集,专门针对手机、PDA和游戏主机等嵌入式设备而设计,而基于OpenGL ES建立三维场景也是移动端设备进行三维开发的有效手段,也充分发挥了移动端灵活便捷的特点。The present invention uses OpenGL ES to establish a three-dimensional scene and display a three-dimensional view. OpenGL ES is a subset of OpenGL 3D graphics API. It is specially designed for embedded devices such as mobile phones, PDAs and game consoles. Building 3D scenes based on OpenGL ES is also an effective method for 3D development on mobile devices, and it also gives full play to mobile devices. Flexible and convenient features.

获取三维场景中当前视角点和方向点,实时传递给二维视图,具体步骤为:Obtain the current perspective point and direction point in the 3D scene and transfer it to the 2D view in real time. The specific steps are:

(2.1)根据OpenGL ES设置的投影视锥体的参数和摄像机参数,选取近平面的下界中心点作为传递的视角点,选取摄像机的方向点作为传递的方向点;(2.1) According to the parameters of the projection view cone and the camera parameters set by OpenGL ES, select the lower bound center point of the near plane as the transmitted perspective point, and select the direction point of the camera as the transmitted direction point;

(2.2)利用场景变换矩阵的逆矩阵计算出与当前视角点和方向点对应的未变换的三维位置坐标;(2.2) using the inverse matrix of the scene transformation matrix to calculate the untransformed three-dimensional position coordinates corresponding to the current point of view and the direction point;

(2.3)将步骤(2.2)计算得到的三维原始位置坐标在水平面的投影值传递给二维视图。(2.3) The projection value of the three-dimensional original position coordinates calculated in step (2.2) on the horizontal plane is passed to the two-dimensional view.

二维视图根据二维矢量数据、三维场景中当前视角点和方向点在水平面的投影值,绘制二维视图,如图2所示。The two-dimensional view draws a two-dimensional view according to the two-dimensional vector data, the projection value of the current viewpoint point and the direction point in the three-dimensional scene on the horizontal plane, as shown in Figure 2.

如图3所示,为本实施例所实现的移动终端城市二三维联动显示效果图,右图为实时的三维场景,左图为实时的二维场景,同时二维场景中通过圆点标记当前的三维视角点,箭头标记当前的视角点观察的方向。As shown in FIG. 3 , the effect diagram of the urban 2D and 3D linkage display effect of the mobile terminal implemented in this embodiment, the right picture is a real-time 3D scene, the left picture is a real-time 2D scene, and the current 2D scene is marked by a dot in the 2D scene. The three-dimensional view point, the arrow marks the current viewing direction of the view point.

如图4所示,本实施例所使用的三维数据文件,可以为常用的三维数据格式——obj文件;文件中坐标数据的XOZ平面,即水平面的投影和二维矢量数据要有对应比例关系。本实施例结合了GIS二维矢量地图和三维建模软件实现三维城市模型的建立。在ArcGIS中添加高度属性,并利用Sketch Up插件拉伸为三维模型文件,在Sketch Up中打开进行模型编辑,添加纹理,导出三维通用的obj格式文件。As shown in Figure 4, the three-dimensional data file used in this embodiment can be a commonly used three-dimensional data format - obj file; the XOZ plane of the coordinate data in the file, that is, the projection of the horizontal plane and the two-dimensional vector data must have a corresponding proportional relationship . This embodiment combines the GIS two-dimensional vector map and the three-dimensional modeling software to realize the establishment of the three-dimensional city model. Add the height attribute in ArcGIS, and use the Sketch Up plug-in to stretch it into a 3D model file, open it in Sketch Up for model editing, add textures, and export a 3D universal obj format file.

如图5所示,为了贴合实际情况,本实施例选取并计算近平面的下界中心点作为传递的视角点。图5中1为观察方向,2为摄像机视点,3为近平面,4为远平面,5为方向点在近平面的投影,6为近平面的下界中心点。As shown in FIG. 5 , in order to fit the actual situation, this embodiment selects and calculates the lower bound center point of the near plane as the transmitted perspective point. In Figure 5, 1 is the observation direction, 2 is the camera viewpoint, 3 is the near plane, 4 is the far plane, 5 is the projection of the direction point on the near plane, and 6 is the lower bound center point of the near plane.

因为三维视图最终显示的是锥体内场景在近平面3上的投影,所以如果将摄像机的位置作为传递的视角点,那么二维视图中显示的视角点位必然在当前三维视图的后面,有着很大的误差。本实施例采用这样选取的原则也非常符合交互者的视觉原理,也避免了一定的误差。Because the 3D view finally displays the projection of the scene inside the cone on the near plane 3, if the position of the camera is used as the transmitted perspective point, then the perspective point displayed in the 2D view must be behind the current 3D view. big error. This embodiment adopts such a selection principle, which is also very consistent with the visual principle of the interactor, and also avoids certain errors.

如图6所示,本实施例中三维原始坐标在XOZ平面,即水平面的投影与二维矢量坐标满足对应关系,即三维场景的水平投影的最小包络矩形和二维场景的最小包络矩形之间具有一定的比例关系。本实施例在获取了三维场景的原始坐标系下的位置后,计算该位置距三维场景在水平面投影的最小包络矩形左边和下边的距离△X和△Z,并进行比例缩放,形成的△X′和△Y″;△X′和△Y′即为距二维矢量图的最小包络矩形左边和下边的距离;由此可以得出三维场景中的视角点、方向点在二维矢量地图中对应的位置坐标。As shown in FIG. 6 , in this embodiment, the three-dimensional original coordinates are on the XOZ plane, that is, the projection of the horizontal plane and the two-dimensional vector coordinates satisfy the corresponding relationship, that is, the minimum envelope rectangle of the horizontal projection of the three-dimensional scene and the minimum envelope rectangle of the two-dimensional scene There is a certain proportional relationship between them. In this embodiment, after the position in the original coordinate system of the 3D scene is obtained, the distances ΔX and ΔZ from the position to the left and lower sides of the minimum envelope rectangle projected by the 3D scene on the horizontal plane are calculated, and scaled to form ΔX and ΔZ. X' and △Y"; △X' and △Y' are the distances from the left and bottom of the minimum envelope rectangle of the two-dimensional vector diagram; from this, it can be concluded that the perspective point and direction point in the three-dimensional scene are in the two-dimensional vector The corresponding location coordinates in the map.

Claims (5)

1.一种移动终端城市二三维联动显示方法,其特征在于,包括如下步骤:1. a mobile terminal city two-dimensional linkage display method, is characterized in that, comprises the steps: (1)对三维文件数据进行解析和组织,建立三维场景,显示三维视图;(1) Analyze and organize 3D file data, build 3D scenes, and display 3D views; (2)获取三维场景中当前视角点和方向点,实时传递给二维视图;(2) Obtain the current perspective point and direction point in the 3D scene, and transfer it to the 2D view in real time; (3)二维视图解析二维矢量数据;结合三维场景中当前视角点和方向点在水平面的投影位置,实时绘制二维视图;(3) The two-dimensional view analyzes the two-dimensional vector data; combines the projection position of the current perspective point and the direction point in the three-dimensional scene on the horizontal plane, and draws the two-dimensional view in real time; 步骤(1)中采用OpenGL ES建立三维场景,显示三维视图;步骤(2)具体包括如下步骤:In step (1), OpenGL ES is used to establish a three-dimensional scene, and a three-dimensional view is displayed; step (2) specifically includes the following steps: (2.1)根据OpenGL ES设置的投影视锥体的参数和摄像机参数,选取近平面的下界中心点作为传递的视角点,选取摄像机的方向点作为传递的方向点;(2.1) According to the parameters of the projection view cone and the camera parameters set by OpenGL ES, select the lower bound center point of the near plane as the transmitted perspective point, and select the direction point of the camera as the transmitted direction point; (2.2)利用场景变换矩阵的逆矩阵计算出与当前视角点和方向点对应的未变换的三维位置坐标;(2.2) using the inverse matrix of the scene transformation matrix to calculate the untransformed three-dimensional position coordinates corresponding to the current point of view and the direction point; (2.3)将步骤(2.2)计算得到的三维原始位置坐标在水平面的投影值传递给二维视图。(2.3) The projection value of the three-dimensional original position coordinates calculated in step (2.2) on the horizontal plane is passed to the two-dimensional view. 2.根据权利要求1所述的移动终端城市二三维联动显示方法,其特征在于,三维文件数据包括三维坐标数据,所述三维坐标数据在水平面上的投影值与二维矢量数据成对应比例关系。2. The urban 2D and 3D linkage display method for a mobile terminal according to claim 1, wherein the 3D file data comprises 3D coordinate data, and the projection value of the 3D coordinate data on the horizontal plane is in a corresponding proportional relationship with the 2D vector data . 3.根据权利要求1所述的移动终端城市二三维联动显示方法,其特征在于,所述三维文件数据由GIS二维矢量地图得到;在ArcGIS中添加高度属性,并利用Sketch Up插件拉伸为三维模型文件,在Sketch Up中打开进行模型编辑,添加纹理,导出三维通用的obj格式文件作为三维文件数据。3. mobile terminal city two-dimensional linkage display method according to claim 1, is characterized in that, described three-dimensional file data is obtained by GIS two-dimensional vector map; In ArcGIS, add height attribute, and utilize Sketch Up plug-in to stretch as. 3D model files, open in Sketch Up for model editing, add textures, and export 3D universal obj format files as 3D file data. 4.根据权利要求1所述的移动终端城市二三维联动显示方法,其特征在于,三维视图的显示与二维视图的显示由不同线程完成;步骤(2)通过单例类实现线程间通信,将获取到的三维场景中当前视角点和方向点实时传递给二维视图显示线程。4. mobile terminal city two-dimensional linkage display method according to claim 1 is characterized in that, the display of three-dimensional view and the display of two-dimensional view are completed by different threads; Step (2) realizes inter-thread communication by singleton class, Pass the acquired current viewpoint point and direction point in the 3D scene to the 2D view display thread in real time. 5.根据权利要求1-4中任一项所述的移动终端城市二三维联动显示方法,其特征在于,所述移动终端为基于Android系统或者IOS系统的移动嵌入式设备。5 . The urban 2D and 3D linkage display method for a mobile terminal according to claim 1 , wherein the mobile terminal is a mobile embedded device based on an Android system or an IOS system. 6 .
CN201710536521.2A 2017-07-04 2017-07-04 A mobile terminal city 2D and 3D linkage display method Expired - Fee Related CN107369205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710536521.2A CN107369205B (en) 2017-07-04 2017-07-04 A mobile terminal city 2D and 3D linkage display method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710536521.2A CN107369205B (en) 2017-07-04 2017-07-04 A mobile terminal city 2D and 3D linkage display method

Publications (2)

Publication Number Publication Date
CN107369205A CN107369205A (en) 2017-11-21
CN107369205B true CN107369205B (en) 2020-10-16

Family

ID=60306522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710536521.2A Expired - Fee Related CN107369205B (en) 2017-07-04 2017-07-04 A mobile terminal city 2D and 3D linkage display method

Country Status (1)

Country Link
CN (1) CN107369205B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108269304B (en) * 2017-12-22 2022-03-11 中国科学院电子学研究所苏州研究院 A scene fusion visualization method under the multi-geographic information platform
CN108269305A (en) * 2017-12-27 2018-07-10 武汉网信安全技术股份有限公司 A kind of two dimension, three-dimensional data linkage methods of exhibiting and system
CN108762492B (en) * 2018-05-14 2021-03-09 歌尔光学科技有限公司 Method, device and equipment for realizing information processing based on virtual scene and storage medium
CN108986212B (en) * 2018-06-21 2022-05-13 东南大学 A method of generating 3D virtual terrain LOD model based on crack elimination
CN109582752A (en) * 2018-12-02 2019-04-05 甘肃万维信息技术有限责任公司 One kind realizing two three-dimensional linkage methods based on map
CN109885369B (en) * 2019-02-22 2022-04-29 北京知道创宇信息技术股份有限公司 Image linkage method and device
CN110222111B (en) * 2019-05-30 2023-08-01 东南大学 A Visual Analysis System of Object Characteristic Database
CN111643897B (en) * 2020-04-26 2023-10-13 完美世界(北京)软件科技发展有限公司 Information processing method, device, system and equipment
US12204032B2 (en) * 2020-10-12 2025-01-21 SZ DJI Technology Co., Ltd. Representation data generation of three-dimensional mapping data
CN112269618B (en) * 2020-11-12 2024-01-26 中煤航测遥感集团有限公司 Station two-dimensional scene switching method, device, equipment and storage medium
CN114693820B (en) * 2022-03-31 2025-04-01 广州极飞科技股份有限公司 Object extraction method, device, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929969A (en) * 2012-10-15 2013-02-13 北京师范大学 Real-time searching and combining technology of mobile end three-dimensional city model based on Internet
CN103399928A (en) * 2013-08-07 2013-11-20 中国水电顾问集团成都勘测设计研究院 Method for achieving linkage between two-dimensional map and three-dimensional map on Web page
CN104685541A (en) * 2012-09-17 2015-06-03 感官运动仪器创新传感器有限公司 Method and apparatus for determining a point of gaze on a three-dimensional object
WO2016106358A1 (en) * 2014-12-22 2016-06-30 Robert Bosch Gmbh System and methods for interactive hybrid-dimension map visualization
CN106197377A (en) * 2016-06-30 2016-12-07 西安电子科技大学 A kind of unmanned plane targeted surveillance over the ground and the display system of two dimension three-dimensional linkage
CN106296815A (en) * 2015-06-24 2017-01-04 程昊 The structure of a kind of interactive three-dimensional digital city and display packing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8909771B2 (en) * 2011-09-15 2014-12-09 Stephan HEATH System and method for using global location information, 2D and 3D mapping, social media, and user behavior and information for a consumer feedback social media analytics platform for providing analytic measurements data of online consumer feedback for global brand products or services of past, present or future customers, users, and/or target markets

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104685541A (en) * 2012-09-17 2015-06-03 感官运动仪器创新传感器有限公司 Method and apparatus for determining a point of gaze on a three-dimensional object
CN102929969A (en) * 2012-10-15 2013-02-13 北京师范大学 Real-time searching and combining technology of mobile end three-dimensional city model based on Internet
CN103399928A (en) * 2013-08-07 2013-11-20 中国水电顾问集团成都勘测设计研究院 Method for achieving linkage between two-dimensional map and three-dimensional map on Web page
WO2016106358A1 (en) * 2014-12-22 2016-06-30 Robert Bosch Gmbh System and methods for interactive hybrid-dimension map visualization
CN106296815A (en) * 2015-06-24 2017-01-04 程昊 The structure of a kind of interactive three-dimensional digital city and display packing
CN106197377A (en) * 2016-06-30 2016-12-07 西安电子科技大学 A kind of unmanned plane targeted surveillance over the ground and the display system of two dimension three-dimensional linkage

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"2D and 3D GIS-based geological and geomechanical survey during tunnel excavation";Laurent Thum 等;《Engineering Geology》;20150618;第192卷;19-25 *

Also Published As

Publication number Publication date
CN107369205A (en) 2017-11-21

Similar Documents

Publication Publication Date Title
CN107369205B (en) A mobile terminal city 2D and 3D linkage display method
CN114677467B (en) Terrain image rendering method, apparatus, device, and computer-readable storage medium
CN110349261B (en) The method of generating three-dimensional heat map based on GIS
CN107038745B (en) A 3D tourist landscape roaming interaction method and device
CN107274469A (en) The coordinative render method of Virtual reality
CN105894570A (en) Virtual reality scene modeling method and device
CN103337093B (en) A kind of method that realizes the real-time temperature effect of three-dimensional machine room based on Unity3D tinter
CN103886631A (en) Three-dimensional virtual indoor display system based on mobile equipment
CN107729707B (en) Engineering construction lofting method based on mobile augmented reality technology and BIM
CN103399928A (en) Method for achieving linkage between two-dimensional map and three-dimensional map on Web page
CN109448137A (en) Exchange method, interactive device, electronic equipment and storage medium
CN104574488A (en) Method for optimizing three-dimensional model for mobile augmented reality browser
KR20150124112A (en) Method for Adaptive LOD Rendering in 3-D Terrain Visualization System
CN116051713B (en) Rendering method, electronic device and computer-readable storage medium
CN101477701A (en) Built-in real tri-dimension rendering process oriented to AutoCAD and 3DS MAX
CN114756937A (en) Visualization system and method based on UE4 engine and Cesium framework
CN106530400A (en) Interactive virtual campus roaming system based on intelligent wearing device
CN104680532A (en) Object labeling method and device
CN108804061A (en) The virtual scene display method of virtual reality system
CN115937389A (en) Shadow rendering method, device, storage medium and electronic equipment
CN108043027A (en) Storage medium, electronic device, the display methods of game picture and device
CN102663802B (en) A kind of game landform road generates method and apparatus
CN109741431A (en) A kind of two three-dimensional integratedization electronic map frames
CN111951407A (en) An Augmented Reality Model Superposition Method with Real Position Relationship
CN105069841B (en) A kind of extra large land engagement method for visualizing based on OSG d engines

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201016