CN111915711A - Three-tone map spot stereo image acquisition method and device supporting virtual VR - Google Patents

Three-tone map spot stereo image acquisition method and device supporting virtual VR Download PDF

Info

Publication number
CN111915711A
CN111915711A CN202010775261.6A CN202010775261A CN111915711A CN 111915711 A CN111915711 A CN 111915711A CN 202010775261 A CN202010775261 A CN 202010775261A CN 111915711 A CN111915711 A CN 111915711A
Authority
CN
China
Prior art keywords
spot
map
rendering
image
initial geometric
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.)
Pending
Application number
CN202010775261.6A
Other languages
Chinese (zh)
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.)
Beijing Jiwei Space Information Co Ltd
Original Assignee
Beijing Jiwei Space Information Co Ltd
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 Beijing Jiwei Space Information Co Ltd filed Critical Beijing Jiwei Space Information Co Ltd
Priority to CN202010775261.6A priority Critical patent/CN111915711A/en
Publication of CN111915711A publication Critical patent/CN111915711A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

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

Abstract

The invention relates to the technical field of image processing, and discloses a method and a device for acquiring a three-tone map spot stereo image supporting virtual VR (virtual reality), wherein the method comprises the following steps: acquiring vector tile block data corresponding to the three-tone map patches, processing the vector tile block data to acquire a plurality of initial geometric figures and acquiring corresponding geographic types; respectively performing color rendering on the corresponding initial geometric figures according to the geographic types to obtain a plurality of geographical map spots; and combining the land type pattern spots to obtain a two-dimensional texture map, determining a target land type pattern spot, and stretching the target land type pattern spot to generate a three-tone land type pattern spot three-dimensional image. According to the method, vector tile block data is processed to obtain a plurality of initial geometric figures, then color rendering is carried out on each initial geometric figure respectively, target land type patches are obtained, and finally the target land type patches are stretched to generate a three-tone land type patch three-dimensional image which is strong in three-dimensional stereoscopic impression and supports virtual VR display.

Description

Three-tone map spot stereo image acquisition method and device supporting virtual VR
Technical Field
The invention relates to the technical field of image processing, in particular to a method, a device, equipment and a storage medium for acquiring a three-tone map spot stereo image supporting virtual VR.
Background
With the development of society and the progress of science, three-dimensional stereoscopic images are gradually applied to various aspects in life, for example, viewing 3D movies, three-dimensional land images, and the like, and in the prior art, a display mode of land pattern spots is mainly in a terrain texture form, and a vector rasterized image is attached to a terrain surface as a terrain texture, but an image obtained is also a two-dimensional raster image in nature. In the method, the boundary of the map spots of the land type is not obvious, the attributes of the map spots of different land types can be distinguished only by configuring colors or symbol styles, the three-dimensional stereoscopic impression is not strong, and the virtual VR display cannot be supported. Therefore, how to obtain a three-tone map-spot stereo image which has a strong three-dimensional stereoscopic effect and supports virtual VR display is an urgent technical problem to be solved.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium for acquiring a three-tone map spot stereo image supporting virtual VR (virtual reality), and aims to solve the technical problem of how to acquire a three-tone map spot stereo image which has stronger three-dimensional stereoscopic impression and supports virtual VR display.
In order to achieve the above object, the present invention provides a method for acquiring a three-tone type patch stereoscopic image supporting virtual VR, which includes the following steps:
acquiring vector tile block data corresponding to the three-tone map patches, and processing the vector tile block data to obtain an initial geometric image, wherein the initial geometric image comprises a plurality of initial geometric figures;
acquiring a geographical type corresponding to each initial geometric figure;
respectively performing color rendering on the corresponding initial geometric figures according to the geographic types to obtain a plurality of geographical map spots;
combining the land pattern spots to obtain a two-dimensional texture map;
and determining a target land type image spot according to the two-dimensional texture map, and stretching the target land type image spot to generate a three-tone land type image spot three-dimensional image.
Preferably, the step of processing the vector tile block data to obtain an initial geometric image includes:
converting the vector tile block data into spatial data, wherein the spatial data comprises point data, line data and surface data;
and generating an initial geometric image according to the point data, the line data and the surface data.
Preferably, the step of performing color rendering on the corresponding initial geometric figures according to the geographic types to obtain a plurality of geo-based patches includes:
acquiring a triangulation network corresponding to each initial geometric figure through a triangulation network construction algorithm;
generating a basic graph drawing unit according to the triangular net;
respectively searching for a style configuration file corresponding to the geographic type;
and performing color rendering on the corresponding initial geometric figure according to the style configuration file and the basic figure drawing unit to obtain a plurality of geographical map spots.
Preferably, the step of determining a target geographical map spot according to the two-dimensional texture map includes:
taking the geographic type as a key object, and acquiring a target style identifier corresponding to the key object according to a preset key value pair;
and determining a target land type map spot according to the target style identification and the two-dimensional texture map.
Preferably, the step of stretching the target geographical map spots to generate a three-tone geographical map spot stereo image includes:
acquiring a reference vertex coordinate set of the target land type pattern spot;
longitudinally stretching the target land type pattern spots according to a preset coordinate height threshold value to obtain stretched target land type pattern spots;
acquiring a stretching vertex coordinate set corresponding to the stretched target land type image spot;
and generating a three-tone map-spot stereo image according to the reference vertex coordinate set and the stretching vertex coordinate set.
Preferably, the step of generating a three-tone map-patch stereo image according to the reference vertex coordinate set and the extended vertex coordinate set includes:
constructing a side cavity graph area according to the reference vertex coordinate set and the stretching vertex coordinate set;
performing color rendering on the side cavity graphic area to obtain a side texture map;
and generating a three-tone map type three-dimensional image according to the stretched target map type patch and the stretched side texture map.
Preferably, after the step of determining a target region-like pattern spot according to the two-dimensional texture map and stretching the target region-like pattern spot to generate a three-tone region-like pattern spot stereoscopic image, the method further includes:
acquiring position information and a three-tone map spot stereo image corresponding to the logic camera;
determining a position distance of a rendering camera group according to the position information, wherein the rendering camera group comprises a first rendering camera and a second rendering camera;
respectively setting a first rendering viewport corresponding to the first rendering camera and a second rendering viewport corresponding to the second rendering camera according to the position distance;
taking the first rendering viewport and the second rendering viewport as target rendering viewports;
and performing virtual VR display on the three-tone map-spot stereo image through the target rendering viewport.
In addition, to achieve the above object, the present invention further provides a virtual VR-enabled three-tone type patch stereoscopic image capturing apparatus, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring vector tile block data corresponding to a three-tone map spot and processing the vector tile block data to obtain an initial geometric image, and the initial geometric image comprises a plurality of initial geometric figures;
the acquisition module is further used for acquiring the geographic type corresponding to each initial geometric figure;
the rendering module is used for performing color rendering on the corresponding initial geometric figures according to the geographic types respectively to obtain a plurality of geographical map spots;
the combination module is used for combining the land type pattern spots to obtain a two-dimensional texture map;
and the generating module is used for determining a target land type image spot according to the two-dimensional texture map and stretching the target land type image spot to generate a three-tone land type image spot three-dimensional image.
In the invention, vector tile block data corresponding to three-tone map spots are firstly obtained, in order to accelerate the data processing efficiency, the vector tile block data can be processed to obtain a plurality of initial geometric figures, then the geographic type corresponding to each initial geometric figure is obtained, the corresponding initial geometric figures are subjected to color rendering according to the geographic type to obtain a plurality of map spots convenient for distinguishing the geographic type, then the map spots of the land types are combined to obtain a two-dimensional texture map, finally a target map spot is determined according to the two-dimensional texture map, and the target map spot is stretched to generate a three-tone map spot stereo image which has stronger three-dimensional stereoscopic impression and supports virtual VR display.
Drawings
FIG. 1 is a schematic flow chart of a first embodiment of a method for acquiring a three-tone map-spot stereo image supporting virtual VR according to the present invention;
FIG. 2 is a scatter diagram of a preset azimuth pixel coordinate set according to a first embodiment of a method for obtaining a three-tone map spot stereo image supporting virtual VR according to the present invention;
FIG. 3 is a side cavity graphic area diagram of a first embodiment of a method for obtaining a three-tone map-spot stereo image supporting virtual VR according to the present invention;
FIG. 4 is a flowchart illustrating a second embodiment of a method for obtaining a three-tone map-spot stereo image supporting virtual VR according to the present invention;
fig. 5 is a block diagram of a first embodiment of a three-tone map-spot stereo image capturing apparatus supporting virtual VR according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic flow chart of a first embodiment of a method for acquiring a three-tone type speckle stereoscopic image supporting virtual VR according to the present invention, and proposes the first embodiment of the method for acquiring a three-tone type speckle stereoscopic image supporting virtual VR according to the present invention.
In a first embodiment, the method for acquiring a three-tone map-spot stereo image supporting virtual VR includes the following steps:
step S10: obtaining vector tile block data corresponding to the three-tone map patches, and processing the vector tile block data to obtain an initial geometric image, wherein the initial geometric image comprises a plurality of initial geometric figures.
It should be noted that the execution subject of this embodiment is a three-tone spot stereo image acquisition device supporting virtual VR, where the device is a three-tone spot stereo image acquisition device supporting virtual VR having functions of image processing, data processing, network communication, program execution, and the like, and may also be other devices, which is not limited in this embodiment.
The method comprises the steps of firstly, obtaining three-tone land type pattern data according to the three-tone land type pattern, and storing the three-tone land type pattern data in a database in a vector data mode.
In order to accelerate the data display efficiency, the vector data are cut into blocks according to a certain rule to form vector tile blocks. It can be understood that, the current required vector tile coverage is obtained by camera view frustum clipping in the three-dimensional scene, the required vector tile block row and column number is calculated according to the vector tile coverage, and the corresponding vector tile block is obtained, and then the corresponding vector tile block data is requested from the database through the data service and is stored in the system for caching.
In addition, the vector tile block data is converted into spatial data, the spatial data comprises point data, line data and surface data, then the point data, the line data and the surface data are combined to obtain an initial geometric image, namely the vector tile block data is stored in a database in a json _ encode form, after being loaded by a client, the json _ encode data needs to be analyzed, a character string is converted into a memory organization form of the point, the line and the surface, and then the point, the line and the surface are combined to obtain the initial geometric image, wherein the initial geometric image comprises a plurality of initial geometric figures.
Step S20: and acquiring the geographic type corresponding to each initial geometric figure.
The geographic types corresponding to the initial geometric figures may be the same or different, and assuming that the initial geometric figures include a plurality of initial geometric figures, the initial geometric figures are triangles, diamonds, rectangles, and the like, in the present embodiment, the geographic type corresponding to the triangle may be set as a mountain, the geographic type corresponding to the diamond may be a land, the geographic type corresponding to the rectangle may be a river, and the like, in the present embodiment, the geographic type corresponding to the triangle may also be set as a mountain, the geographic type corresponding to the diamond may also be set as a mountain, and the like, in the present embodiment, the geographic type corresponding to the initial geometric figures may also be preset in the database, and the initial geometric figures are matched in the database to obtain the corresponding geographic types, which is not limited in this embodiment.
Step S30: and respectively carrying out color rendering on the corresponding initial geometric figures according to the geographic types to obtain a plurality of geographical map spots.
Respectively searching a style configuration file corresponding to the geographic type, then obtaining a triangulation network corresponding to each initial geometric figure through a triangulation network construction algorithm, then generating a basic figure drawing unit according to the triangulation network, and finally performing color rendering on the corresponding initial geometric figure according to the style configuration file and the basic figure drawing unit to obtain a plurality of geographical type pattern spots.
That is to say, the three-tone map-like patches are expressed in a polygon form, the vector tile block data analyzed by the vector tile block is stored by generating initial geometric figures with points, lines and surfaces, and the initial geometric figures cannot be directly subjected to color rendering through a three-dimensional Application Programming Interface (Application Programming Interface API), so that a corresponding triangulation network needs to be generated for each initial geometric figure through a dironiy (Delaunay) triangulation network construction algorithm, and then a corresponding basic graphic rendering unit is formed according to the triangulation network for the three-dimensional rendering API to call to perform color rendering.
It can be understood that, assuming that the initial geometric figure is a rectangle, a triangle is generated from the rectangle by a Delaunay triangle network construction algorithm, the triangle corresponds to two triangles, then a basic graph drawing unit corresponding to the rectangle is formed according to the obtained triangle, assuming that the initial geometric figure is a triangle, a triangle is generated from the triangle by a Delaunay triangle network construction algorithm, then a basic graph drawing unit corresponding to the triangle is formed according to the obtained triangle, and the like, which is not limited in this embodiment.
The geographic types corresponding to the initial geometric figures are provided with corresponding style identifications, the style identifications are provided with corresponding style configuration files, and the style configuration files are set by a user in a self-defined mode and can comprise colors, symbols, transparency and the like which need to be rendered.
Taking the geographical type corresponding to the initial geometric figure as a key object, then obtaining a style identifier corresponding to the key object according to a preset key value pair, wherein the preset key value pair comprises a geographical type and a style identifier, the corresponding relation between the geographical type and the style identifier is pre-stored in a database in a key value pair form for subsequent calling and use, assuming that the geographical type corresponding to the initial geometric figure is a mountain and the corresponding style identifier is 1, obtaining a style configuration file corresponding to a numerical value 1, namely each geographical type has a corresponding style configuration file, namely rendering color and transparency and the like corresponding to the mountain, or assuming that the geographical type corresponding to the initial geometric figure is water and the corresponding style identifier is 1, selecting configuration information such as rendering color and the like corresponding to the water from the style configuration file (the configuration information corresponding to various geographical types exists in the style configuration file) according to the style identifier, the present embodiment is not limited.
Step S40: and combining the land type pattern spots to obtain a two-dimensional texture map.
The terrain-like pattern spot is an initial geometric figure after color rendering, the initial geometric figures after color rendering are subjected to figure combination to obtain an initial geometric image with color, and then the initial geometric image with color is called a two-dimensional texture map.
Assuming that the initial geometric image includes a triangle, a rectangle and a rhombus, the triangle, the rectangle and the rhombus are colorless graphics, rendering the triangle to be yellow, rendering the yellow triangle and the rectangle to be blue, rendering the blue rectangle and the rhombus to be red, and generating the red rhombus, and then performing graphic combination on the yellow triangle, the blue rectangle and the red rhombus to obtain a two-dimensional texture map, namely a final complete ground-like pattern spot image.
Step S50: and determining a target land type image spot according to the two-dimensional texture map, and stretching the target land type image spot to generate a three-tone land type image spot three-dimensional image.
And taking the geographic type as a key object, acquiring a target style identifier corresponding to the key object according to a preset key value pair, and determining a target land type pattern spot according to the target style identifier and the two-dimensional texture map.
The geographical type and the style identification corresponding to the initial geometric figure are stored in a database in advance, and the geographical type and the style identification are in one-to-one correspondence in a key value pair mode, that is, each geographical type has a corresponding style identification, if the initial geometric figure is a triangle, the corresponding geographical type is a mountain, the corresponding style identification is 1, if the initial geometric figure is a rectangle, the corresponding geographical type is water, the corresponding style identification is 2, and the like.
And determining the target land type pattern spot according to the mode of determining the target land type pattern spot in the two-dimensional texture map, wherein if the target land type pattern spot with the screening style identification of 1 is the target land type pattern spot corresponding to the triangle, the target land type pattern spot can be determined by utilizing the color, and if the user selects the yellow color, the initial geometric figure with the yellow color, namely the land type pattern spot is taken as the target land type pattern spot, and the like.
And acquiring vertex pixel coordinate sets of preset directions corresponding to the initial geometric figures according to the vector tile block data, acquiring normal coordinate sets corresponding to the target geographical pattern spots according to the vertex pixel coordinate sets, acquiring a reference vertex coordinate set of the target geographical pattern spots, and stretching the target geographical pattern spots according to preset coordinate height thresholds, namely setting non-elevation values of vertexes for polygons corresponding to different geographical pattern spots in the same vector tile block respectively so that the geographical pattern spots in different geographical patterns can be staggered in height. The elevation value is only modified, and the pattern spot polygon is always kept on a same plane, so that the normal information does not need to be adjusted, the calculated amount can be reduced, the working efficiency is improved, the stretched target land type pattern spot is obtained, the stretched vertex coordinate set of the stretched target land type pattern spot is obtained, and the three-tone land type pattern three-dimensional image is generated according to the reference vertex coordinate set and the stretched vertex coordinate set.
Further, the step of obtaining the normal coordinate set corresponding to each initial geometric figure according to the vertex pixel coordinate set in the first preset orientation includes that the vector tile block data coordinate is a pixel coordinate set with an upper left corner of the tile as an origin, that is, a vertex pixel coordinate set in a preset orientation, as shown in fig. 2. Fig. 2 is a preset azimuth pixel coordinate set scatter diagram of the first embodiment of the method for acquiring a three-tone map spot stereo image supporting virtual VR in the present invention, wherein the preset azimuth pixel coordinate set can only be used for drawing in a two-dimensional base map, and needs to be drawn in a three-dimensional scene with a depth-of-field effect, and therefore needs to be converted into real geographic coordinates. The coordinate conversion mode can be that through the layer row number and the layer column number of the vector tile block, the longitude and latitude corresponding to the east, the south and the north of the vector tile block are calculated through a first preset formula, then according to the pixel coordinate of each vertex in the vector tile block, the longitude and latitude coordinate of each vertex can be obtained through interpolation, and then according to a second preset formula, the longitude and latitude coordinate is converted into a space rectangular coordinate, so that the space rectangular coordinate is used for rendering a three-dimensional scene. Namely, the vertex pixel coordinate set of the first preset position is subjected to coordinate conversion to obtain a space rectangular coordinate set, and a normal coordinate set corresponding to each initial geometric figure is obtained according to the space rectangular coordinate set.
The first preset formula is as follows:
Figure BDA0002616664050000081
in the formula, L is the hierarchy of the vector tile block, Col is the column number of the vector tile block, Row is the Row number of the vector tile block, TileSize is the longitude and latitude, West is the West warp, East is the East warp, South is the South weft, and North is the North weft.
The second preset formula is as follows:
Figure BDA0002616664050000082
in the formula, Latitude Degree is Latitude coordinate, Longitude Degree is Longitude coordinate, x, y, z are Cartesian space rectangular coordinates, radCosLat is intermediate variable of definition, and radius is earth radius (acquirable value 6378137).
And obtaining a normal coordinate set corresponding to the target land type image spot according to the vertex pixel coordinate set, namely, performing coordinate conversion on the vertex pixel coordinate set to obtain a space rectangular coordinate set, and obtaining the normal coordinate set corresponding to the target land type image spot according to the space rectangular coordinate set.
In order to enable the pure-color vector tiles to have stereoscopic impression in a three-dimensional scene, illumination information needs to be added, and the stereoscopic impression is stronger due to the brightness change formed by the fluctuation of the terrain. The use of illumination is premised on the need for vertices with normal information. Firstly, calculating the surface normal information of each triangle, wherein the calculation method comprises the steps of selecting two sides of each triangle to construct a direction vector, performing cross product on the two vectors to obtain the surface normal of the surface, secondly, assigning the surface normal of the triangle to each vertex of the triangle, wherein one vertex can be shared by a plurality of triangles, recording the normal of the vertex as the accumulated value of all the surface normals of the shared triangles, and finally, normalizing the accumulated normal value of the vertex, converting the accumulated normal value into a unit normal vector and transmitting the unit normal vector into a GPU for illumination calculation.
Referring to fig. 3, fig. 3 is a side cavity graphic region diagram of a first embodiment of a method for obtaining a three-tone map spot stereo image supporting virtual VR according to the present invention, and then color rendering is performed on the side cavity graphic region to obtain a side texture map, and the three-tone map spot stereo image is generated according to the stretched target map spot and the side texture map.
The method includes the steps of performing color rendering on the side cavity graphic region to obtain a side texture map, wherein the step of obtaining the side texture map includes the steps of enabling the side cavity graphic to generate a plurality of triangular meshes from a rectangle through a Delaunay triangular mesh construction algorithm, then forming a basic graphic drawing unit corresponding to the side cavity graphic region according to the obtained triangular meshes, and finally performing color rendering on the side cavity graphic region according to a pattern configuration file corresponding to the side cavity graphic region and the basic graphic drawing unit to obtain the side texture map, wherein colors in the pattern configuration file corresponding to the side cavity graphic region can be set to be grey and the like so that the three-dimensional effect of the three-dimensional image is stronger, and the embodiment is not limited.
In the scheme, the stepped three-dimensional triangular net can be generated by using different map spots in each tile block, the top surface and the side surface need to be respectively mapped, and the integrated mapping can be used for accelerating the rendering efficiency. Specifically, in the process described in the above embodiment, according to a generated grid texture that has been rendered, the texture is mapped to a triangular mesh with high and low undulations as a whole to complete mapping, and a specific mapping relationship requires calculation of texture coordinates of each vertex. The pixel coordinate value which is reserved and takes the upper left corner of the tile as the origin is divided by the size of the vector tile to obtain the normalized coordinate, the coordinate is changed to be taken as the texture coordinate of the vertex, the mapping of the texture coordinate and the triangulation network can be completed, and then the different types of map spots can be lifted to different heights through the setting of the filtering condition, but the sudden lifting is abrupt. Therefore, the height value set by the filtering condition and the current height value of the geographical map spot can be directly interpolated, the height value is adjusted in each rendered frame and approaches to the set target value, so that the height lifting or descending animation effect is achieved, the geographical map spot has a lifting animation process, and the interaction is smoother.
In addition, after the step of determining a target geographical type pattern spot according to the two-dimensional texture map, and stretching the target geographical type pattern spot to generate a three-tone geographical type pattern spot stereoscopic image, position information corresponding to a logic camera and the three-tone geographical type pattern spot stereoscopic image are obtained, a position distance of a rendering camera group is determined according to the position information, the rendering camera group includes a first rendering camera and a second rendering camera, a first rendering viewport corresponding to the first rendering camera and a second rendering viewport corresponding to the second rendering camera are respectively set according to the position distance, and the first rendering viewport and the second rendering viewport are used as target rendering viewports, that is, the three-tone geographical type pattern spot stereoscopic image is subjected to virtual VR display through the target rendering. The specific implementation manner of this embodiment may complete a normal rendering operation in a three-dimensional scene, but in order to support a virtual VR presentation, in addition, the rendering capability of supporting a stereopair needs to be expanded. Thus, three cameras, one logical camera and two rendering cameras may be provided in a three dimensional scene. In the virtual VR display mode, an application program can only control the logic camera, and the three-dimensional interaction and animation processes in the steps are only hooked with the logic camera; the two rendering cameras and the logic camera keep consistent in the direction, and are respectively offset by a certain distance from left to right in position to simulate the interpupillary distance of human eyes. And the rendering cameras respectively set corresponding rendering view ports, wherein the height of each rendering view port is the height of the screen, the width of each rendering view port is half of the width of the screen, and the two view ports are combined to cover the whole rendering screen. When the virtual VR mode is turned off, the rendering camera is removed, the logical camera is switched to the only rendering camera, and the rendering is performed normally in the screen.
In this embodiment, first, vector tile block data corresponding to a three-tone map patch is obtained, in order to speed up data processing efficiency, the vector tile block data may be processed to obtain a plurality of initial geometric figures, then, a geographic type corresponding to each initial geometric figure is obtained, and color rendering is performed on the corresponding initial geometric figures according to the geographic type to obtain a plurality of map patches for distinguishing the geographic types, then, the map patches are combined to obtain a two-dimensional texture map, and finally, a target map patch is determined according to the two-dimensional texture map, and the target map patch is stretched.
In addition, referring to fig. 4, fig. 4 is a first embodiment of a method for acquiring a three-tone type speckle stereoscopic image supporting virtual VR according to the present invention, and a second embodiment of the method for acquiring a three-tone type speckle stereoscopic image supporting virtual VR is proposed.
In the second embodiment, the step S50 of the method for acquiring a three-tone map-spot stereo image supporting virtual VR further includes:
step S501: and acquiring a reference vertex pixel coordinate set of the target land type image spot.
And taking the geographic type as a key object, acquiring a target style identifier corresponding to the key object according to a preset key value pair, and determining a target land type pattern spot according to the target style identifier and the two-dimensional texture map.
The geographical type and the style identification corresponding to the initial geometric figure are stored in a database in advance, and the geographical type and the style identification are in one-to-one correspondence in a key value pair mode, that is, each geographical type has a corresponding style identification, if the initial geometric figure is a triangle, the corresponding geographical type is a mountain, the corresponding style identification is 1, if the initial geometric figure is a rectangle, the corresponding geographical type is water, the corresponding style identification is 2, and the like.
And determining the target land type pattern spot according to the mode of determining the target land type pattern spot in the two-dimensional texture map, wherein if the target land type pattern spot with the screening style identification of 1 is the target land type pattern spot corresponding to the triangle, the target land type pattern spot can be determined by utilizing the color, and if the user selects the yellow color, the initial geometric figure with the yellow color, namely the land type pattern spot is taken as the target land type pattern spot, and the like.
The vector tile block data coordinates are a set of pixel coordinates with the top left corner of the tile as the origin, i.e., a set of vertex pixel coordinates of a preset orientation, as shown in fig. 2. Fig. 2 is a preset azimuth pixel coordinate scattergram according to a first embodiment of the method for acquiring a three-tone map spot stereo image supporting virtual VR in the present invention, wherein a preset azimuth pixel coordinate set can only be used for drawing in a two-dimensional base map, and a depth-of-field effect needs to be drawn in a three-dimensional scene, and therefore needs to be converted into real geographic coordinates. The coordinate conversion mode can be that through the layer row number and the layer column number of the vector tile block, the longitude and latitude corresponding to the east, the south and the north of the vector tile block are calculated through a first preset formula, then according to the pixel coordinate of each vertex in the vector tile block, the longitude and latitude coordinate of each vertex can be obtained through interpolation, and then according to a second preset formula, the longitude and latitude coordinate is converted into a space rectangular coordinate, so that the space rectangular coordinate is used for rendering a three-dimensional scene. Namely, the vertex pixel coordinate set of the first preset position is subjected to coordinate conversion to obtain a space rectangular coordinate set, and a normal coordinate set corresponding to each initial geometric figure is obtained according to the space rectangular coordinate set.
Namely, the step of obtaining the normal coordinate set corresponding to the target land type spot according to the vertex pixel coordinate set includes performing coordinate conversion on the vertex pixel coordinate set to obtain a spatial rectangular coordinate set, and obtaining the normal coordinate set corresponding to the target land type spot according to the spatial rectangular coordinate set.
Referring to fig. 3, the reference vertex pixel coordinate set of the side cavity graph area diagram in the first embodiment of the method for acquiring a three-tone map type spot stereo image supporting virtual VR in the present invention is B0, B1, B2, B3, B4, B5, and B6, that is, the target map type spot is a two-dimensional map type spot, and the reference vertex pixel coordinate set also refers to corresponding polygon vertex pixel coordinates in the target map type spot.
Step S502: and longitudinally stretching the target land type pattern spot according to a preset coordinate height threshold value to obtain the stretched target land type pattern spot.
And stretching the target geographical map spots according to a preset coordinate height threshold value, namely respectively setting the non-elevation values of vertexes of polygons corresponding to different geographical map spots in the same vector tile block, so that the different geographical map spots can be staggered in height. Because only the elevation value is modified, the pattern spot polygon is always kept on a same plane, and therefore the normal information does not need to be adjusted, the calculation amount can be reduced, and the working efficiency is improved. And finally, after the stretching is finished, obtaining the stretched target geographical map spots.
Step S503: and acquiring a stretching vertex coordinate set corresponding to the stretched target land type image spot.
Further, referring to fig. 3, the set of stretched vertex coordinates are T0, T1, T2, T3, T4, T5 and T6, that is, the stretched target geographical map-like patches obtain stretched vertex coordinate values T0, T1, T2, T3, T4, T5 and T6 corresponding to the stretched target geographical map-like patches according to the coordinates B0, B1, B2, B3, B4, B5 and B6 because the height values of the vertices are changed.
The stretched target land type pattern spots and the target land type pattern spots are the same pattern spots, and only the height position is changed.
Step S504: and generating a three-tone map-spot stereo image according to the reference vertex coordinate set and the stretching vertex coordinate set.
Collecting the reference vertex coordinates and the stretching vertex coordinates, namely respectively correspondingly connecting the coordinates B, B and B with the coordinates T, T and T in sequence to obtain a side cavity graphic area, then generating a plurality of triangular nets by a rectangle through a Delaunay triangular net construction algorithm for the side cavity graphic, wherein the coordinates can be in cross connection, B is respectively connected with T and T, and B is respectively connected with T and T, then forming a basic graphic drawing unit corresponding to the side cavity graphic area according to the obtained triangular net, and finally rendering the side cavity graphic area according to a style configuration file corresponding to the side cavity graphic area and the basic graphic drawing unit, and finally, generating a three-tone map-patch three-dimensional image according to the stretched target map-patch and the side texture image.
In this embodiment, a reference vertex coordinate set of the target land type pattern is first obtained, then, in order to improve the working efficiency, the target land type pattern is stretched according to a preset coordinate height threshold to obtain a stretched target land type pattern, a stretched vertex coordinate set corresponding to the stretched target land type pattern is obtained, and finally, the target land type pattern is generated and stretched according to the reference vertex coordinate set and the stretched vertex coordinate set to generate a three-tone land type pattern stereoscopic image with a strong three-dimensional stereoscopic impression.
In addition, referring to fig. 5, fig. 5 is a block diagram illustrating a first embodiment of a three-tone map-based speckle stereo image capturing apparatus supporting virtual VR according to the present invention. As shown in fig. 5, an embodiment of the present invention provides a three-tone map-based stereo image capturing apparatus supporting virtual VR, including: an obtaining module 5001, configured to obtain vector tile block data corresponding to a three-tone map patch, and process the vector tile block data to obtain an initial geometric image, where the initial geometric image includes a plurality of initial geometric figures; the obtaining module 5001 is further configured to obtain a geographic type corresponding to each initial geometric figure; a rendering module 5002, configured to perform color rendering on the corresponding initial geometric figures according to the geographic types, respectively, to obtain a plurality of geo-based patches; the combining module 5003 is configured to combine the geographic map patches to obtain a two-dimensional texture map; a generating module 5004, configured to determine a target land type image spot according to the two-dimensional texture map, and stretch the target land type image spot to generate a three-tone land type image spot stereoscopic image.
The obtaining module 5001 is configured to obtain vector tile block data corresponding to the three-tone map patches, and process the vector tile block data to obtain an initial geometric image, where the initial geometric image includes a plurality of initial geometric figures.
It should be noted that the execution subject of this embodiment is a three-tone spot stereo image acquisition device supporting virtual VR, where the device is a three-tone spot stereo image acquisition device supporting virtual VR having functions of image processing, data processing, network communication, program execution, and the like, and may also be other devices, which is not limited in this embodiment.
The method comprises the steps of firstly, obtaining three-tone land type pattern data according to the three-tone land type pattern, and storing the three-tone land type pattern data in a database in a vector data mode.
In order to accelerate the data display efficiency, the vector data are cut into blocks according to a certain rule to form vector tile blocks. It can be understood that, the current required vector tile coverage is obtained by camera view frustum clipping in the three-dimensional scene, the required vector tile block row and column number is calculated according to the vector tile coverage, and the corresponding vector tile block is obtained, and then the corresponding vector tile block data is requested from the database through the data service and is stored in the system for caching.
In addition, the vector tile block data is converted into spatial data, the spatial data comprises point data, line data and surface data, then the point data, the line data and the surface data are combined to obtain an initial geometric image, namely the vector tile block data is stored in a database in a json _ encode form, after being loaded by a client, the json _ encode data needs to be analyzed, a character string is converted into a memory organization form of the point, the line and the surface, and then the point, the line and the surface are combined to obtain the initial geometric image, wherein the initial geometric image comprises a plurality of initial geometric figures.
The obtaining module 5001 is further configured to obtain a geographic type corresponding to each initial geometric figure.
The geographic types corresponding to the initial geometric figures may be the same or different, and assuming that the initial geometric figures include a plurality of initial geometric figures, the initial geometric figures are triangles, diamonds, rectangles, and the like, in the present embodiment, the geographic type corresponding to the triangle may be set as a mountain, the geographic type corresponding to the diamond may be a land, the geographic type corresponding to the rectangle may be a river, and the like, in the present embodiment, the geographic type corresponding to the triangle may also be set as a mountain, the geographic type corresponding to the diamond may also be set as a mountain, and the like, in the present embodiment, the geographic type corresponding to the initial geometric figures may also be preset in the database, and the initial geometric figures are matched in the database to obtain the corresponding geographic types, which is not limited in this embodiment.
A rendering module 5002, configured to perform color rendering on the corresponding initial geometric figures according to the geographic types, respectively, to obtain a plurality of geo-based patches.
Respectively searching a style configuration file corresponding to the geographic type, then obtaining a triangulation network corresponding to each initial geometric figure through a triangulation network construction algorithm, then generating a basic figure drawing unit according to the triangulation network, and finally performing color rendering on the corresponding initial geometric figure according to the style configuration file and the basic figure drawing unit to obtain a plurality of geographical type pattern spots.
That is to say, the three-tone map-like patches are expressed in a polygon form, the vector tile block data analyzed by the vector tile block is stored by generating initial geometric figures with points, lines and surfaces, and the initial geometric figures cannot be directly subjected to color rendering through a three-dimensional Application Programming Interface (Application Programming Interface API), so that a corresponding triangulation network needs to be generated for each initial geometric figure through a dironiy (Delaunay) triangulation network construction algorithm, and then a corresponding basic graphic rendering unit is formed according to the triangulation network for the three-dimensional rendering API to call to perform color rendering.
It can be understood that, assuming that the initial geometric figure is a rectangle, a triangle is generated from the rectangle by a Delaunay triangle network construction algorithm, the triangle corresponds to two triangles, then a basic graph drawing unit corresponding to the rectangle is formed according to the obtained triangle, assuming that the initial geometric figure is a triangle, a triangle is generated from the triangle by a Delaunay triangle network construction algorithm, then a basic graph drawing unit corresponding to the triangle is formed according to the obtained triangle, and the like, which is not limited in this embodiment.
The geographic types corresponding to the initial geometric figures are provided with corresponding style identifications, the style identifications are provided with corresponding style configuration files, and the style configuration files are set by a user in a self-defined mode and can comprise colors, symbols, transparency and the like which need to be rendered.
Taking the geographical type corresponding to the initial geometric figure as a key object, then obtaining a style identifier corresponding to the key object according to a preset key value pair, wherein the preset key value pair comprises a geographical type and a style identifier, the corresponding relation between the geographical type and the style identifier is pre-stored in a database in a key value pair form for subsequent calling and use, assuming that the geographical type corresponding to the initial geometric figure is a mountain and the corresponding style identifier is 1, obtaining a style configuration file corresponding to a numerical value 1, namely each geographical type has a corresponding style configuration file, namely rendering color and transparency and the like corresponding to the mountain, or assuming that the geographical type corresponding to the initial geometric figure is water and the corresponding style identifier is 1, selecting configuration information such as rendering color and the like corresponding to the water from the style configuration file (the configuration information corresponding to various geographical types exists in the style configuration file) according to the style identifier, the present embodiment is not limited.
And the combining module 5003 is used for combining the land type pattern spots to obtain a two-dimensional texture map.
The terrain-like pattern spot is an initial geometric figure after color rendering, the initial geometric figures after color rendering are subjected to figure combination to obtain an initial geometric image with color, and then the initial geometric image with color is called a two-dimensional texture map.
Assuming that the initial geometric image includes a triangle, a rectangle and a rhombus, the triangle, the rectangle and the rhombus are colorless graphics, rendering the triangle to be yellow, rendering the yellow triangle and the rectangle to be blue, rendering the blue rectangle and the rhombus to be red, and generating the red rhombus, and then performing graphic combination on the yellow triangle, the blue rectangle and the red rhombus to obtain a two-dimensional texture map, namely a final complete ground-like pattern spot image.
A generating module 5004, configured to determine a target land type image spot according to the two-dimensional texture map, and stretch the target land type image spot to generate a three-tone land type image spot stereoscopic image.
And taking the geographic type as a key object, acquiring a target style identifier corresponding to the key object according to a preset key value pair, and determining a target land type pattern spot according to the target style identifier and the two-dimensional texture map.
The geographical type and the style identification corresponding to the initial geometric figure are stored in a database in advance, and the geographical type and the style identification are in one-to-one correspondence in a key value pair mode, that is, each geographical type has a corresponding style identification, if the initial geometric figure is a triangle, the corresponding geographical type is a mountain, the corresponding style identification is 1, if the initial geometric figure is a rectangle, the corresponding geographical type is water, the corresponding style identification is 2, and the like.
And determining the target land type pattern spot according to the mode of determining the target land type pattern spot in the two-dimensional texture map, wherein if the target land type pattern spot with the screening style identification of 1 is the target land type pattern spot corresponding to the triangle, the target land type pattern spot can be determined by utilizing the color, and if the user selects the yellow color, the initial geometric figure with the yellow color, namely the land type pattern spot is taken as the target land type pattern spot, and the like.
And acquiring vertex pixel coordinate sets of preset directions corresponding to the initial geometric figures according to the vector tile block data, acquiring normal coordinate sets corresponding to the target geographical pattern spots according to the vertex pixel coordinate sets, acquiring a reference vertex coordinate set of the target geographical pattern spots, and stretching the target geographical pattern spots according to preset coordinate height thresholds, namely setting non-elevation values of vertexes for polygons corresponding to different geographical pattern spots in the same vector tile block respectively so that the geographical pattern spots in different geographical patterns can be staggered in height. The elevation value is only modified, and the pattern spot polygon is always kept on a same plane, so that the normal information does not need to be adjusted, the calculated amount can be reduced, the working efficiency is improved, the stretched target land type pattern spot is obtained, the stretched vertex coordinate set of the stretched target land type pattern spot is obtained, and the three-tone land type pattern three-dimensional image is generated according to the reference vertex coordinate set and the stretched vertex coordinate set.
Further, the step of obtaining the normal coordinate set corresponding to each initial geometric figure according to the vertex pixel coordinate set in the first preset orientation includes that the vector tile block data coordinate is a pixel coordinate set with an upper left corner of the tile as an origin, that is, a vertex pixel coordinate set in a preset orientation, as shown in fig. 2. Fig. 2 is a preset azimuth pixel coordinate set scatter diagram of the first embodiment of the method for acquiring a three-tone map spot stereo image supporting virtual VR in the present invention, wherein the preset azimuth pixel coordinate set can only be used for drawing in a two-dimensional base map, and needs to be drawn in a three-dimensional scene with a depth-of-field effect, and therefore needs to be converted into real geographic coordinates. The coordinate conversion mode can be that through the layer row number and the layer column number of the vector tile block, the longitude and latitude corresponding to the east, the south and the north of the vector tile block are calculated through a first preset formula, then according to the pixel coordinate of each vertex in the vector tile block, the longitude and latitude coordinate of each vertex can be obtained through interpolation, and then according to a second preset formula, the longitude and latitude coordinate is converted into a space rectangular coordinate, so that the space rectangular coordinate is used for rendering a three-dimensional scene. Namely, the vertex pixel coordinate set of the first preset position is subjected to coordinate conversion to obtain a space rectangular coordinate set, and a normal coordinate set corresponding to each initial geometric figure is obtained according to the space rectangular coordinate set.
The first preset formula is as follows:
Figure BDA0002616664050000171
in the formula, L is the hierarchy of the vector tile block, Col is the column number of the vector tile block, Row is the Row number of the vector tile block, TileSize is the longitude and latitude, West is the West warp, East is the East warp, South is the South weft, and North is the North weft.
The second preset formula is as follows:
Figure BDA0002616664050000172
in the formula, Latitude Degree is Latitude coordinate, Longitude Degree is Longitude coordinate, x, y, z are Cartesian space rectangular coordinates, radCosLat is intermediate variable of definition, and radius is earth radius (acquirable value 6378137).
And obtaining a normal coordinate set corresponding to the target land type image spot according to the vertex pixel coordinate set, namely, performing coordinate conversion on the vertex pixel coordinate set to obtain a space rectangular coordinate set, and obtaining the normal coordinate set corresponding to the target land type image spot according to the space rectangular coordinate set.
In order to enable the pure-color vector tiles to have stereoscopic impression in a three-dimensional scene, illumination information needs to be added, and the stereoscopic impression is stronger due to the brightness change formed by the fluctuation of the terrain. The use of illumination is premised on the need for vertices with normal information. Firstly, calculating the surface normal information of each triangle, wherein the calculation method comprises the steps of selecting two sides of each triangle to construct a direction vector, performing cross product on the two vectors to obtain the surface normal of the surface, secondly, assigning the surface normal of the triangle to each vertex of the triangle, wherein one vertex can be shared by a plurality of triangles, recording the normal of the vertex as the accumulated value of all the surface normals of the shared triangles, and finally, normalizing the accumulated normal value of the vertex, converting the accumulated normal value into a unit normal vector and transmitting the unit normal vector into a GPU for illumination calculation.
Referring to fig. 3, fig. 3 is a side cavity graphic region diagram of a first embodiment of a method for obtaining a three-tone map spot stereo image supporting virtual VR according to the present invention, and then color rendering is performed on the side cavity graphic region to obtain a side texture map, and the three-tone map spot stereo image is generated according to the stretched target map spot and the side texture map.
The method includes the steps of performing color rendering on the side cavity graphic region to obtain a side texture map, wherein the step of obtaining the side texture map includes the steps of enabling the side cavity graphic to generate a plurality of triangular meshes from a rectangle through a Delaunay triangular mesh construction algorithm, then forming a basic graphic drawing unit corresponding to the side cavity graphic region according to the obtained triangular meshes, and finally performing color rendering on the side cavity graphic region according to a pattern configuration file corresponding to the side cavity graphic region and the basic graphic drawing unit to obtain the side texture map, wherein colors in the pattern configuration file corresponding to the side cavity graphic region can be set to be grey and the like so that the three-dimensional effect of the three-dimensional image is stronger, and the embodiment is not limited.
In the scheme, the stepped three-dimensional triangular net can be generated by using different map spots in each tile block, the top surface and the side surface need to be respectively mapped, and the integrated mapping can be used for accelerating the rendering efficiency. Specifically, in the process described in the above embodiment, according to a generated grid texture that has been rendered, the texture is mapped to a triangular mesh with high and low undulations as a whole to complete mapping, and a specific mapping relationship requires calculation of texture coordinates of each vertex. The pixel coordinate value which is reserved and takes the upper left corner of the tile as the origin is divided by the size of the vector tile to obtain the normalized coordinate, the coordinate is changed to be taken as the texture coordinate of the vertex, the mapping of the texture coordinate and the triangulation network can be completed, and then the different types of map spots can be lifted to different heights through the setting of the filtering condition, but the sudden lifting is abrupt. Therefore, the height value set by the filtering condition and the current height value of the geographical map spot can be directly interpolated, the height value is adjusted in each rendered frame and approaches to the set target value, so that the height lifting or descending animation effect is achieved, the geographical map spot has a lifting animation process, and the interaction is smoother.
In addition, after the step of determining a target geographical type pattern spot according to the two-dimensional texture map, and stretching the target geographical type pattern spot to generate a three-tone geographical type pattern spot stereoscopic image, position information corresponding to a logic camera and the three-tone geographical type pattern spot stereoscopic image are obtained, a position distance of a rendering camera group is determined according to the position information, the rendering camera group includes a first rendering camera and a second rendering camera, a first rendering viewport corresponding to the first rendering camera and a second rendering viewport corresponding to the second rendering camera are respectively set according to the position distance, and the first rendering viewport and the second rendering viewport are used as target rendering viewports, that is, the three-tone geographical type pattern spot stereoscopic image is subjected to virtual VR display through the target rendering. The specific implementation manner of this embodiment may complete a normal rendering operation in a three-dimensional scene, but in order to support a virtual VR presentation, in addition, the rendering capability of supporting a stereopair needs to be expanded. Thus, three cameras, one logical camera and two rendering cameras may be provided in a three dimensional scene. In the virtual VR display mode, an application program can only control the logic camera, and the three-dimensional interaction and animation processes in the steps are only hooked with the logic camera; the two rendering cameras and the logic camera keep consistent in the direction, and are respectively offset by a certain distance from left to right in position to simulate the interpupillary distance of human eyes. And the rendering cameras respectively set corresponding rendering view ports, wherein the height of each rendering view port is the height of the screen, the width of each rendering view port is half of the width of the screen, and the two view ports are combined to cover the whole rendering screen. When the virtual VR mode is turned off, the rendering camera is removed, the logical camera is switched to the only rendering camera, and the rendering is performed normally in the screen.
In this embodiment, first, vector tile block data corresponding to a three-tone map patch is obtained, in order to speed up data processing efficiency, the vector tile block data may be processed to obtain a plurality of initial geometric figures, then, a geographic type corresponding to each initial geometric figure is obtained, and color rendering is performed on the corresponding initial geometric figures according to the geographic type to obtain a plurality of map patches for distinguishing the geographic types, then, the map patches are combined to obtain a two-dimensional texture map, and finally, a target map patch is determined according to the two-dimensional texture map, and the target map patch is stretched.
Other embodiments or specific implementation manners of the three-tone map spot stereo image acquisition device supporting virtual VR in the present invention may refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order, but rather the words first, second, third, etc. are to be interpreted as names.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., a Read Only Memory (ROM)/Random Access Memory (RAM), a magnetic disk, an optical disk), and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A method for acquiring a three-tone map spot stereo image supporting virtual VR is characterized by comprising the following steps:
acquiring vector tile block data corresponding to the three-tone map patches, and processing the vector tile block data to obtain an initial geometric image, wherein the initial geometric image comprises a plurality of initial geometric figures;
acquiring a geographical type corresponding to each initial geometric figure;
respectively performing color rendering on the corresponding initial geometric figures according to the geographic types to obtain a plurality of geographical map spots;
combining the land pattern spots to obtain a two-dimensional texture map;
and determining a target land type image spot according to the two-dimensional texture map, and stretching the target land type image spot to generate a three-tone land type image spot three-dimensional image.
2. The method of claim 1, wherein said processing said vector tile block data to obtain an initial geometric image comprises:
converting the vector tile block data into spatial data, wherein the spatial data comprises point data, line data and surface data;
and generating an initial geometric image according to the point data, the line data and the surface data.
3. The method of claim 1, wherein the step of rendering the corresponding initial geometric figure according to the geographic type to obtain a plurality of geo-like patches comprises:
acquiring a triangulation network corresponding to each initial geometric figure through a triangulation network construction algorithm;
generating a basic graph drawing unit according to the triangular net;
respectively searching for a style configuration file corresponding to the geographic type;
and according to the style configuration file, performing color rendering on the initial geometric figure through the basic figure drawing unit to obtain a plurality of geographical map spots.
4. The method of claim 1, wherein the step of determining a target geo-graphic spot from the two-dimensional texture map comprises:
searching a corresponding target style identification in a preset key value pair by taking the geographic type as a key object, wherein the key value pair stores the corresponding relation between the geographic type and the style identification;
and determining a target land type map spot according to the target style identification and the two-dimensional texture map.
5. The method of claim 1, wherein the step of stretching the target geo-graphic patch to generate a tri-tonal geo-graphic-patch stereo image comprises:
acquiring a reference vertex coordinate set of the target land type pattern spot;
longitudinally stretching the target land type pattern spots according to a preset coordinate height threshold value to obtain stretched target land type pattern spots;
acquiring a stretching vertex coordinate set corresponding to the stretched target land type image spot;
and generating a three-tone map-spot stereo image according to the reference vertex coordinate set and the stretching vertex coordinate set.
6. The method of claim 5, wherein the step of generating a trimodal plaque volume image from the set of reference vertex coordinates and the set of stretched vertex coordinates comprises:
constructing a side cavity graph area according to the reference vertex coordinate set and the stretching vertex coordinate set;
performing color rendering on the side cavity graphic area to obtain a side texture map;
and generating a three-tone map type three-dimensional image according to the stretched target map type patch and the stretched side texture map.
7. The method of claim 1, wherein after the steps of determining a target geo-graphic spot from the two-dimensional texture map and stretching the target geo-graphic spot to generate a tri-tonal geo-graphic spot stereo image, further comprising:
acquiring position information and a three-tone map spot stereo image corresponding to the logic camera;
determining a position distance of a rendering camera group according to the position information, wherein the rendering camera group comprises a first rendering camera and a second rendering camera;
respectively setting a first rendering viewport corresponding to the first rendering camera and a second rendering viewport corresponding to the second rendering camera according to the position distance;
taking the first rendering viewport and the second rendering viewport as target rendering viewports;
and performing virtual VR display on the three-tone map-spot stereo image through the target rendering viewport.
8. A virtual VR-enabled three-tone type patch stereoscopic image capturing device, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring vector tile block data corresponding to a three-tone map spot and processing the vector tile block data to obtain an initial geometric image, and the initial geometric image comprises a plurality of initial geometric figures;
the acquisition module is further used for acquiring the geographic type corresponding to each initial geometric figure;
the rendering module is used for performing color rendering on the corresponding initial geometric figures according to the geographic types respectively to obtain a plurality of geographical map spots;
the combination module is used for combining the land type pattern spots to obtain a two-dimensional texture map;
and the generating module is used for determining a target land type image spot according to the two-dimensional texture map and stretching the target land type image spot to generate a three-tone land type image spot three-dimensional image.
CN202010775261.6A 2020-08-04 2020-08-04 Three-tone map spot stereo image acquisition method and device supporting virtual VR Pending CN111915711A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010775261.6A CN111915711A (en) 2020-08-04 2020-08-04 Three-tone map spot stereo image acquisition method and device supporting virtual VR

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010775261.6A CN111915711A (en) 2020-08-04 2020-08-04 Three-tone map spot stereo image acquisition method and device supporting virtual VR

Publications (1)

Publication Number Publication Date
CN111915711A true CN111915711A (en) 2020-11-10

Family

ID=73288033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010775261.6A Pending CN111915711A (en) 2020-08-04 2020-08-04 Three-tone map spot stereo image acquisition method and device supporting virtual VR

Country Status (1)

Country Link
CN (1) CN111915711A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887595A (en) * 2009-05-14 2010-11-17 武汉如临其境科技创意有限公司 Three-dimensional digital earth-space data organizing and rendering method based on quad-tree index
US20130300738A1 (en) * 2011-02-25 2013-11-14 Mitsubishi Electric Corporation Map rendering device
US20140267279A1 (en) * 2013-03-15 2014-09-18 Janne Kontkanen System and method for overlaying two-dimensional map data on a three-dimensional scene
CN105282532A (en) * 2014-06-03 2016-01-27 天津拓视科技有限公司 3D display method and device
CN105740256A (en) * 2014-12-09 2016-07-06 高德信息技术有限公司 Generation method and generation device of three-dimensional map
CN105913485A (en) * 2016-04-06 2016-08-31 北京小小牛创意科技有限公司 Three-dimensional virtual scene generation method and device
CN106133795A (en) * 2014-01-17 2016-11-16 诺基亚技术有限公司 For 3D being rendered the method and apparatus that in application, the media content of geo-location carries out visualization
US20190318536A1 (en) * 2016-06-20 2019-10-17 Ocean Maps GmbH Method for Generating 3D Data Relating to an Object
CN110737737A (en) * 2019-09-19 2020-01-31 中国国土勘测规划院 territorial earth vector data rendering method and system
CN110738718A (en) * 2019-09-04 2020-01-31 中国国土勘测规划院 Three-dimensional visualization method for kinds of homeland data

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887595A (en) * 2009-05-14 2010-11-17 武汉如临其境科技创意有限公司 Three-dimensional digital earth-space data organizing and rendering method based on quad-tree index
US20130300738A1 (en) * 2011-02-25 2013-11-14 Mitsubishi Electric Corporation Map rendering device
US20140267279A1 (en) * 2013-03-15 2014-09-18 Janne Kontkanen System and method for overlaying two-dimensional map data on a three-dimensional scene
CN106133795A (en) * 2014-01-17 2016-11-16 诺基亚技术有限公司 For 3D being rendered the method and apparatus that in application, the media content of geo-location carries out visualization
CN105282532A (en) * 2014-06-03 2016-01-27 天津拓视科技有限公司 3D display method and device
CN105740256A (en) * 2014-12-09 2016-07-06 高德信息技术有限公司 Generation method and generation device of three-dimensional map
CN105913485A (en) * 2016-04-06 2016-08-31 北京小小牛创意科技有限公司 Three-dimensional virtual scene generation method and device
US20190318536A1 (en) * 2016-06-20 2019-10-17 Ocean Maps GmbH Method for Generating 3D Data Relating to an Object
CN110738718A (en) * 2019-09-04 2020-01-31 中国国土勘测规划院 Three-dimensional visualization method for kinds of homeland data
CN110737737A (en) * 2019-09-19 2020-01-31 中国国土勘测规划院 territorial earth vector data rendering method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HAXIANHE: "《VR入门系列教程》之13---相机与立体渲染", pages 1 - 2, Retrieved from the Internet <URL:https://www.cnblogs.com/haxianhe/p/9271168.html> *
郭敬磊: "基于DEM数据的三维地形地类可视化研究", 中国优秀硕士学位论文全文数据库 基础科学辑, no. 3, 15 March 2017 (2017-03-15), pages 008 - 101 *

Similar Documents

Publication Publication Date Title
CN113506370B (en) Three-dimensional geographic scene model construction method and device based on three-dimensional remote sensing image
CN106548516B (en) Three-dimensional roaming method and device
CN113516769B (en) Virtual reality three-dimensional scene loading and rendering method and device and terminal equipment
CN105976426B (en) A kind of quick three-dimensional atural object model building method
CN101477700B (en) Real tri-dimension display method oriented to Google Earth and Sketch Up
US9093006B2 (en) Image shader using style attribute references
KR101591427B1 (en) Method for Adaptive LOD Rendering in 3-D Terrain Visualization System
EP2881918B1 (en) Method for visualizing three-dimensional data
CN115409957A (en) Map construction method based on illusion engine, electronic device and storage medium
KR20170098234A (en) Texture generation system
CN108230430B (en) Cloud layer mask image processing method and device
US9092907B2 (en) Image shader using two-tiered lookup table for implementing style attribute references
CN101511034A (en) Truly three-dimensional stereo display method facing Skyline
CN110930509A (en) Linear quad-tree multilayer model driven DEM (digital elevation model) real-time visualization method
CN111915711A (en) Three-tone map spot stereo image acquisition method and device supporting virtual VR
CN106780693B (en) Method and system for selecting object in three-dimensional scene through drawing mode
CN115409962A (en) Method for constructing coordinate system in illusion engine, electronic equipment and storage medium
KR101031661B1 (en) A method for modeling of 3-dimensional building object using digital aerial photogrammetry
JP7455546B2 (en) Image processing device, image processing method, and program
CN115423917B (en) Real-time drawing method and system for global three-dimensional wind field
CN117557710B (en) Texture rendering method and device, terminal equipment and storage medium
US20240193864A1 (en) Method for 3d visualization of sensor data
CN111340941B (en) Oblique photography dynamic singleization method based on vector graphics under spherical coordinate system
Huang et al. An efficient platform for 3D city model visualization
Song et al. Photorealistic building modeling and visualization in 3-D geospatial information system

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