CN107705363B - Road three-dimensional visual modeling method and device - Google Patents
Road three-dimensional visual modeling method and device Download PDFInfo
- Publication number
- CN107705363B CN107705363B CN201710984233.3A CN201710984233A CN107705363B CN 107705363 B CN107705363 B CN 107705363B CN 201710984233 A CN201710984233 A CN 201710984233A CN 107705363 B CN107705363 B CN 107705363B
- Authority
- CN
- China
- Prior art keywords
- data
- traffic marking
- texture
- road
- texture mapping
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
- G06T17/05—Geographic models
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Geometry (AREA)
- Software Systems (AREA)
- Remote Sensing (AREA)
- Computer Graphics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Generation (AREA)
- Instructional Devices (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a road three-dimensional visualization modeling method and device, and relates to the technical field of road visualization to improve the accuracy of roads in a loaded electronic map. The road three-dimensional visualization modeling method comprises the following steps: presetting vector road classification data; and processing the vector road classification data, rendering a processing result, and completing the three-dimensional visual modeling of the road. The road three-dimensional visual modeling device is used for realizing the road three-dimensional visual modeling method provided by the technical scheme. The road three-dimensional visual modeling method and the device provided by the invention are used for loading roads in an electronic map.
Description
Technical Field
The invention relates to the technical field of road visualization, in particular to a road three-dimensional visualization modeling method and device.
Background
The electronic map is a common travel navigation tool in daily life of people, people can conveniently acquire a required navigation scheme by using the electronic map, and great convenience is brought to travel of users.
At present, road information displayed in an electronic map is obtained by three-dimensionally modeling existing road data to obtain a three-dimensional road model, and then loading the three-dimensional road model on a webpage through a map interface program (hereinafter referred to as a map API), so that roads in the loaded electronic map can be displayed at any view angle in a three-dimensional direction, and a user can roam the roads in a three-dimensional space. However, in the process of three-dimensional modeling of the existing road data, some detail data in the existing road data, such as the road turning angle data, needs to be discarded, so that the deviation ratio of the road in the loaded electronic map with respect to the actual road is large.
Disclosure of Invention
The invention aims to provide a road three-dimensional visual modeling method and a road three-dimensional visual modeling device so as to improve the accuracy of roads in a loaded electronic map.
In order to achieve the above purpose, the invention provides the following technical scheme:
a road three-dimensional visualization modeling method comprises the following steps:
presetting vector road classification data; the vector road classification data comprises linear traffic marking data, texture mapping traffic marking data and pavement data;
performing data assignment on the linear traffic marking data to obtain linear traffic marking assigned data;
obtaining texture coordinates of the texture mapping traffic marking corresponding to the texture mapping traffic marking data according to the texture mapping traffic marking data;
rendering the assigned data of the linear traffic marking, the texture coordinates of the texture mapping traffic marking and the road surface data to finish the three-dimensional visual modeling of the road.
Compared with the prior art, in the road three-dimensional visual modeling method provided by the invention, the preset vector road classification data comprises linear traffic marking data, texture mapping traffic marking data and pavement data, and the linear traffic marking data is subjected to data assignment to obtain linear traffic marking assigned data; obtaining texture coordinates of the texture mapping traffic marking corresponding to the texture mapping traffic marking data according to the texture mapping traffic marking data; on the basis, rendering is carried out on assigned data of the linear traffic marking, texture coordinates of the texture mapping traffic marking and road surface data, and road three-dimensional visual modeling is completed; therefore, in the road three-dimensional visual modeling method provided by the invention, after the vector road classification data is preset, the detail data in the vector road classification data is not discarded, the data used for rendering are all vector data, the data capacity is small, and the detail data in the vector road classification data is not discarded, so that the requirement on the network broadband is reduced; therefore, compared with the prior art, the road three-dimensional visual modeling method provided by the invention not only can improve the accuracy and loading speed of the road in the loaded electronic map, but also has lower requirements on network broadband.
The invention also provides a road three-dimensional visual modeling device, which comprises:
the preset module is used for presetting vector road classification data; the vector road classification data comprises linear traffic marking data, texture mapping traffic marking data and pavement data;
the processing module is used for carrying out data assignment on the linear traffic marking data to obtain linear traffic marking assigned data; obtaining texture coordinates of the texture mapping traffic marking corresponding to the texture mapping traffic marking data according to the texture mapping traffic marking data;
and the rendering module is used for rendering the assigned data of the linear traffic marking, the texture coordinates of the texture mapping traffic marking and the road surface data.
Compared with the prior art, the beneficial effects of the road three-dimensional visualization modeling device provided by the embodiment of the invention are the same as those of the road three-dimensional visualization modeling method provided by the technical scheme, and the detailed description is omitted here.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a three-dimensional visualization modeling method for a road according to an embodiment of the present invention;
FIG. 2 is a flowchart of the exemplary embodiment of the present invention for presetting vector road classification data;
FIG. 3 is a flowchart illustrating the processing of the vector road classification data according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of the texture coordinate distribution of zebra stripes;
FIG. 5 is a texture map of a zebra crossing;
FIG. 6 is a rendered view of a pavement after an image of a pavement surface has been simulated;
FIG. 7 is a flowchart illustrating rendering of the processed vector road classification data according to an embodiment of the present invention;
fig. 8 is a road rendering map in an electronic map loaded by the road three-dimensional visualization modeling method according to the embodiment of the present invention;
fig. 9 is a structural block diagram of a three-dimensional road visualization modeling apparatus according to an embodiment of the present invention;
FIG. 10 is a block diagram of a default module according to an embodiment of the present invention;
FIG. 11 is a block diagram of a processing module in an embodiment of the invention;
FIG. 12 is a block diagram of a rendering module according to an embodiment of the present invention;
fig. 13 is a hardware structure diagram of a road three-dimensional visualization modeling terminal provided in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The road three-dimensional visualization modeling method and device provided by the embodiment of the invention can be realized by applying a map API (application programming interface) so as to realize the road three-dimensional visualization; the types of map APIs are many, such as WebGL (Web Graphics Library) and OpenGL (Open Graphics Library).
As shown in fig. 1 and fig. 3, the three-dimensional visualization modeling method for a road provided by the embodiment of the invention includes the following steps:
step S100: presetting vector road classification data; the vector road classification data comprises linear traffic marking data, texture mapping traffic marking data and pavement data;
step S200: the method for processing the vector road classification data specifically comprises the following parallel steps:
step S200 a: performing data assignment on the linear traffic marking data to obtain linear traffic marking assigned data;
illustratively, the linear traffic marking assignment data contains color data, length data, and width data of the linear traffic marking;
step S200 b: obtaining texture coordinates of the texture mapping traffic marking corresponding to the texture mapping traffic marking data according to the texture mapping traffic marking data;
step S300: rendering the processed vector road classification data, wherein the specific rendering method comprises the following steps: and rendering the assigned data of the linear traffic marking, the texture coordinates of the texture mapping traffic marking and the road surface data to finish the three-dimensional visual modeling of the road. Illustratively, the rendering tools used in rendering are a vertex shader and a fragment shader.
Based on the road three-dimensional visual modeling method, the preset vector road classification data comprise linear traffic marking data, texture mapping traffic marking data and pavement data, and the linear traffic marking data are subjected to data assignment to obtain linear traffic marking assignment data; obtaining texture coordinates of the texture mapping traffic marking corresponding to the texture mapping traffic marking data according to the texture mapping traffic marking data; on the basis, rendering is carried out on assigned data of the linear traffic marking, texture coordinates of the texture mapping traffic marking and road surface data, and road three-dimensional visual modeling is completed; therefore, in the road three-dimensional visual modeling method provided by the embodiment of the invention, after the vector road classification data is preset, the detail data in the vector road classification data is not discarded, the data used for rendering are all vector data, the data capacity is small, and the detail data in the vector road classification data is not required to be discarded, so that the requirement on the network bandwidth is reduced; therefore, compared with the prior art, the road three-dimensional visualization modeling method provided by the embodiment of the invention can improve the accuracy and loading speed of the road in the loaded electronic map, and has lower requirement on network bandwidth.
It should be noted that, in the above embodiment, the preset vector road classification data is substantially a process of preprocessing the collected road data to classify and index different types of road data, so that each type of road data can be identified in the subsequent processing process to facilitate processing. As for the process of presetting the vector road classification data in the above embodiment, the process may be implemented by the process shown in fig. 2, and specifically includes the following steps:
step S101: acquiring vector road data;
step S102: classifying and assigning attributes to the vector road data to obtain vector road classification data; the vector road data includes linear traffic marking data, texture mapped traffic marking data, and road surface data. The process of classifying the vector road data and assigning the attributes can be carried out simultaneously, and the polarity and the sequence can be changed randomly.
In addition, when the vector road data is classified, the road data can be divided into road surface data and traffic marking data according to whether the vector road data is a road surface, and the traffic marking data can be divided into linear traffic marking data and texture mapping traffic marking data according to whether the vector road data can be linearly drawn or not; the identification of whether the traffic marking can be linearly drawn is to establish the type information of the traffic marking which is defined and can not be linearly drawn into a database, and when the classification is needed, the traffic marking data in the database is called to be compared with various traffic marking data in the vector road data so as to realize the classification of the traffic marking data. For example: and defining the turning traffic marking lines and the zebra stripes as traffic marking lines which cannot be drawn linearly, namely dividing the turning traffic marking line data and the zebra stripe data into texture mapping traffic marking line data when the traffic marking line data in the vector road data contains the turning traffic marking line data and the zebra stripe data.
When the vector road classification data is processed, the advantages of horizontal tiling and longitudinal expansion of the texture mapping are considered, namely longitudinal wireless extension can be carried out, and horizontal repeated tiling is carried out, so that the texture mapping traffic marking line texture coordinates corresponding to the texture mapping traffic marking line data can be obtained according to the texture mapping traffic marking line data by the silkworm pupa three-dimensional texture mapping technology; and in order to make roads in the loaded electronic map conform to a real scene as much as possible, when texture coordinates of the texture map traffic marking corresponding to the texture map traffic marking data are calculated by adopting international standards as much as possible.
The texture coordinates of the texture map traffic marking corresponding to the texture map traffic marking data can be texture coordinates of a position where a key is compared in the texture map traffic marking, such as coordinates for determining the shape of the texture map traffic marking. This is illustrated in fig. 4 and 5.
FIG. 4 is a schematic diagram showing a texture coordinate distribution of a group of zebra stripes; FIG. 5 shows a texture map of the set of zebra stripes; wherein the actual width x of the set of zebra stripes05m, actual length y010m, and the width x of the texture map in the texture map of the zebra crossing12m, texture mapping length y1=5m。
Setting the lower left corner of the group of zebra stripes as a texture coordinate origin O based on the parameters, wherein the corresponding texture coordinate is (0,0), the width direction of the zebra stripes is the width direction of the texture coordinate and is the x-axis direction of the texture coordinate, and the width extension direction of the zebra stripes is the positive direction; the length direction of the zebra stripes is the y-axis direction of the texture coordinates, and the length extending direction of the zebra stripes is the positive direction.
Since the four corners of the set of zebra stripes are points which can determine the dimension of the zebra stripes, when the texture coordinates of the texture map traffic marking corresponding to the texture map traffic marking data are calculated, the texture coordinates of the four corners of the set of zebra stripes can be calculated to determine the outline shape of the zebra stripes. As shown in fig. 4, the four corners of the zebra crossing are respectively indicated as O point, X point, Y point and Z point.
From the length and width of the zebra crossing texture map to be generated and the actual length and width of the zebra crossing, it is known that the texture coordinates of the X point are (2.5,0), the texture coordinates of the Y point are (2,0), and the texture coordinates of the Z point are (2.5, 2).
In order to further improve the accuracy of the road in the electronic map loaded by the road three-dimensional visual modeling method, in the embodiment, after vector road classification data is preset, before texture coordinates of the texture map traffic marking corresponding to the texture map traffic marking data are obtained according to the texture map traffic marking data, the road three-dimensional visual modeling method provided in the embodiment further comprises:
obtaining texture types of the texture mapping traffic marking data according to the vector road classification data;
before rendering linear traffic marking assigned data, texture coordinates of a texture mapped traffic marking and road surface data, and after obtaining the texture coordinates of the texture mapped traffic marking corresponding to the texture mapped traffic marking data according to the texture mapped traffic marking data, as shown in fig. 3, the road three-dimensional visualization modeling method provided in the above embodiment further includes, in parallel with step S200a and step S200b, step S200 c: generating a texture object according to the texture mapping traffic marking data, which specifically comprises the following steps:
step S201 c: establishing a texture object;
step S202 c: recording various texture map traffic line data into the texture object in view of texture3d characteristics of the map API;
step S203 c: and according to the type of the texture mapping traffic marking data, allocating a network address to each type of the texture mapping traffic marking data.
Illustratively, the network address is expressed by a Uniform Resource Locator (URL), which is a compact representation of the location and access method of a Resource available from the internet and is an address of a standard Resource on the internet, and each file on the internet has a unique URL containing information indicating the location of the file and how the browser should process it.
Based on the above texture object generation process, it can be found that in the texture object generation process, the texture map traffic marking data is recorded into the texture object in the embodiment of the present invention, and this process can be regarded as that the texture map traffic marking picture corresponding to the texture map traffic marking data is managed by using one picture data, so that it can be ensured that all kinds of texture map traffic markings can be processed without the problem of data discarding, thereby further improving the accuracy of the road in the electronic map loaded by the road three-dimensional visualization modeling method.
Furthermore, in the road three-dimensional visual modeling method provided by the embodiment of the invention, on the premise of recording various texture mapping traffic marking data to a texture object, a network address is further allocated to each texture mapping traffic marking data according to the type of the texture mapping traffic marking data, so that each texture mapping traffic marking data can be ensured to have an independent network storage position, and when the texture mapping traffic marking data is rendered subsequently, the required texture mapping traffic marking data is called independently by inquiring the network address to render the texture corresponding to the texture mapping traffic marking without influencing other types of texture mapping traffic marking data, therefore, the road three-dimensional visual modeling method provided by the embodiment of the invention can allocate the network address to each texture mapping traffic marking data to realize asynchronous texture rendering of different types of texture mapping traffic marking data, therefore, the speed of the road three-dimensional visual modeling method is increased, and the time is saved. In addition, if a certain texture map traffic marking changes, the changed texture map traffic marking data in the texture object can be updated in a data replacement mode, and texture rendering of other rendered texture traffic marking data is not influenced.
Considering that when the road surface is an overhead bridge road surface, an overhead bridge road surface shadow generally exists in the real scene, but generally the acquired vector road data does not include the overhead bridge road surface shadow, so that the road three-dimensional effect of the electronic map loaded by the road three-dimensional visualization modeling method provided by the embodiment is relatively poor, and in order to improve the road three-dimensional effect of the electronic map loaded by the road three-dimensional visualization modeling method provided by the embodiment, as shown in fig. 3, before rendering linear traffic marking assigned data, texture coordinates of texture map traffic markings and road surface data, after vector road classification data is preset, the road three-dimensional visualization modeling method further includes steps 200a, 200b, S200c and 200 d: the method for simulating the shadow of the road surface specifically comprises the following steps:
step 201 d: extracting height information of the road surface data from the road surface data;
step 202 d: generating simulated layer data serving as simulated shadows on a reference zero surface of the road surface data according to the height information of the road surface data, so that the road surface data contains the simulated layer data, the simulated layer data is loaded into the road surface data, the shadows of a three-dimensional space can be well simulated after the road surface data is rendered, but the rendering efficiency is not greatly reduced, and the rendered road simulated shadows R2 corresponding to the rendered road surface R1 in the loaded electronic map are shown in FIG. 6; the color and the transparency of the imitation layer can be set in the imitation layer data, and the reference zero surface can be seen through the shadow in the real scene, so that the color of the imitation layer is set to be a gray and semitransparent state in the imitation layer data.
Considering the complexity of processing the texture map traffic marking data and the road surface data before processing the data, the triangularization data segmentation can be performed before processing the texture map traffic marking data and the road surface data, and the method adopted by the triangularization data segmentation is generally a graph triangularization method.
Further, as shown in fig. 7, the above embodiment performs position rendering and color rendering on linear traffic marking assigned data, texture coordinates of a texture map traffic marking, and road surface data, and the completing of the road three-dimensional visualization modeling includes:
step S301: performing position rendering on the linear traffic marking corresponding to the linear traffic marking assignment data, performing position rendering on the texture mapping traffic marking corresponding to the texture coordinates of the texture mapping traffic marking, and performing position rendering on the road surface corresponding to the road surface data by using a vertex shader;
step S302: performing rasterization division on the linear traffic marking corresponding to the linear traffic marking assigned data by using a fragment shader, then performing color rendering on each pixel point of the linear traffic marking corresponding to the linear traffic marking assigned data, performing rasterization division on the road surface corresponding to the road surface data in the same way, and then performing color rendering on each pixel point of the road surface corresponding to the road surface data;
determining a network address of the texture mapping traffic marking data corresponding to the texture coordinates of the texture mapping traffic marking according to the attribute assignment of the texture mapping traffic marking data corresponding to the texture coordinates of the texture mapping traffic marking;
according to the network address of the texture mapping traffic marking data corresponding to the texture coordinates of the texture mapping traffic marking, finding the texture mapping traffic marking data corresponding to the texture coordinates of the texture mapping traffic marking;
and performing texture rendering on the texture mapping traffic marking corresponding to the texture coordinate of the texture mapping traffic marking according to the texture mapping traffic marking data corresponding to the texture coordinate of the texture mapping traffic marking.
The specific flow of the road three-dimensional visualization modeling method provided by the above embodiment is implemented by running a computer program, where the road of the loaded electronic map is shown in fig. 8, R1 denotes a rendered road surface, and R2 denotes a rendered road surface imitation shadow; l denotes a rendered linear traffic marking, W denotes a rendered texture map traffic marking, which may be a zebra crossing, a turn indicator. As can be seen from fig. 8, the road rendered by the three-dimensional visualization modeling method based on vector data according to the embodiment of the present invention not only exhibits a good three-dimensional effect, and can be browsed in a three-dimensional direction in a roaming manner, but also can depict the rendered road in more precise detail.
As shown in fig. 1, fig. 3 and fig. 9, an embodiment of the present invention further provides a road three-dimensional visualization modeling apparatus, including:
the preset module is used for presetting vector road classification data; the vector road classification data comprises linear traffic marking data, texture mapping traffic marking data and pavement data;
the processing module is used for carrying out data assignment on the linear traffic marking data to obtain linear traffic marking assigned data; obtaining texture coordinates of the texture mapping traffic marking corresponding to the texture mapping traffic marking data according to the texture mapping traffic marking data;
and the rendering module is used for rendering the assigned data of the linear traffic marking, the texture coordinates of the texture mapping traffic marking and the road surface data.
Compared with the prior art, the beneficial effects of the road three-dimensional visualization modeling device provided by the embodiment of the invention are the same as those of the road three-dimensional visualization modeling method provided by the technical scheme, and the detailed description is omitted here.
Specifically, as shown in fig. 2 and 10, the preset modules in the above embodiments include the following modules:
an acquisition unit 101 configured to acquire vector road data;
the classification unit 102 is configured to classify the vector road data to obtain vector road classification data; the vector road data comprises linear traffic marking data, texture mapping traffic marking data and road surface data;
and the attribute assignment unit 103 is used for performing attribute assignment on the vector road data.
It should be noted that, in the above embodiment, the attribute assigning unit 103 may be executed first, or the classifying unit 102 may be executed first, and only the later executed units are connected to the processing module 200, the height extracting module 700, and the counting module 400.
As shown in fig. 1, fig. 3 and fig. 11, the processing modules in the above embodiments include the following modules:
the data assignment unit 201 is used for performing data assignment on the linear traffic marking data to obtain linear traffic marking assigned data;
and the texture coordinate operation unit 202 is used for obtaining texture coordinates of the texture mapping traffic marking corresponding to the texture mapping traffic marking data according to the texture mapping traffic marking data by adopting a three-dimensional texture mapping technology.
Further, in order to increase the speed of loading the road in the electronic map by the road three-dimensional visualization modeling apparatus provided in the embodiment of the present invention, as shown in fig. 3 and 9, the road three-dimensional visualization modeling apparatus provided in the embodiment of the present invention further includes:
the statistical module 400 is used for obtaining texture types of the texture map traffic marking data according to the vector road classification data;
a texture object establishing module 500, configured to establish a texture object, record and store various texture map traffic marking data in the texture object;
the address assignment module 600 is configured to assign a network address to each type of texture map traffic marking data according to the type of the texture map traffic marking data, and store the network address in the texture object creation module 500.
Optionally, as shown in fig. 7 and 11, the rendering module in the foregoing embodiment includes: the vertex shader 301 is used for performing position rendering on the linear traffic marking corresponding to the linear traffic marking assignment data, performing position rendering on the texture mapping traffic marking corresponding to the texture coordinates of the texture mapping traffic marking, and performing position rendering on the road surface corresponding to the road surface data;
the fragment shader 302 is used for performing color rendering on each pixel point of the linear traffic marking corresponding to the linear traffic marking assigned value data and performing color rendering on each pixel point of the road surface corresponding to the road surface data;
determining a network address of the texture mapping traffic marking data corresponding to the texture coordinates of the texture mapping traffic marking according to the attribute assignment of the texture mapping traffic marking data corresponding to the texture coordinates of the texture mapping traffic marking; according to the network address of the texture mapping traffic marking data corresponding to the texture coordinates of the texture mapping traffic marking, finding the texture mapping traffic marking data corresponding to the texture coordinates of the texture mapping traffic marking; and performing texture rendering on the texture mapping traffic marking corresponding to the texture coordinate of the texture mapping traffic marking according to the texture mapping traffic marking data corresponding to the texture coordinate of the texture mapping traffic marking.
In order to improve the three-dimensional visualization of the road in the electronic map loaded by the three-dimensional visualization modeling apparatus for the road, as shown in fig. 3 and 9, the three-dimensional visualization modeling apparatus for the road provided in the above embodiment further includes:
the height extraction module 700 is used for extracting height information of the road surface data from the road surface data;
and the imitation data loading module 800 is configured to generate imitation layer data serving as an imitation shadow on a reference zero plane of the road surface data according to the height information of the road surface data, so that the road surface data includes the imitation layer data.
The embodiment of the present invention further provides a road three-dimensional visualization modeling terminal, as shown in fig. 13, which specifically includes a processor 901, a transceiver 902, and a memory 903; the processor 901, transceiver 902 and memory 903 communicate with each other over a bus 904.
The memory 903 is configured to store a plurality of instructions to implement the three-dimensional road visualization modeling method provided by the present invention, and the processor 901 executes the plurality of instructions to implement reading of the database to implement the three-dimensional road visualization modeling method.
The processor 901 according to the embodiment of the present invention may be a single processor, or may be a general term for multiple processing elements. For example, the processor 901 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement the embodiments of the present invention, such as: one or more microprocessors (digital signal processors, DSP for short), or one or more Field Programmable Gate arrays (FPGA for short).
The memory 903 may be a storage device or a combination of storage elements, and is used for storing executable program codes and the like. And the memory 903 may include a Random Access Memory (RAM) or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, a Flash memory (Flash), and the like.
The bus 904 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus 904 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 13, but this is not intended to represent only one bus or type of bus.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Wherein the storage medium can be a magnetic disk, an optical disk, a Read-Only memory (Read-Only)
Memory, ROM), or Random Access Memory (RAM), etc.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A road three-dimensional visualization modeling method is characterized by comprising the following steps:
presetting vector road classification data; the vector road classification data comprises linear traffic marking data, texture mapping traffic marking data and pavement data;
performing data assignment on the linear traffic marking data to obtain linear traffic marking assigned data;
obtaining texture coordinates of the texture mapping traffic marking corresponding to the texture mapping traffic marking data according to the texture mapping traffic marking data;
rendering the assigned data of the linear traffic marking, the texture coordinates of the texture mapping traffic marking and the road surface data to finish three-dimensional visual modeling of the road;
the position rendering and the color rendering are carried out on the assigned data of the linear traffic marking, the texture coordinates of the texture mapping traffic marking and the road surface data, and the road three-dimensional visual modeling is completed by the following steps:
performing position rendering on the linear traffic marking corresponding to the linear traffic marking assignment data, performing position rendering on the texture mapping traffic marking corresponding to the texture coordinates of the texture mapping traffic marking, and performing position rendering on the road surface corresponding to the road surface data;
performing color rendering on each pixel point of the linear traffic marking corresponding to the linear traffic marking assigned value data, and performing color rendering on each pixel point of the road surface corresponding to the road surface data;
determining a network address of the texture mapping traffic marking data corresponding to the texture coordinates of the texture mapping traffic marking according to the attribute assignment of the texture mapping traffic marking data corresponding to the texture coordinates of the texture mapping traffic marking;
according to the network address of the texture mapping traffic marking data corresponding to the texture coordinates of the texture mapping traffic marking, finding the texture mapping traffic marking data corresponding to the texture coordinates of the texture mapping traffic marking;
and performing texture rendering on the texture mapping traffic marking corresponding to the texture coordinate of the texture mapping traffic marking according to the texture mapping traffic marking data corresponding to the texture coordinate of the texture mapping traffic marking.
2. The method according to claim 1, wherein the preset vector road classification data comprises:
acquiring vector road data;
classifying and attribute assigning are carried out on the vector road data to obtain vector road classification data; the vector road data includes linear traffic marking data, texture map traffic marking data, and road surface data.
3. The method for three-dimensional visual modeling of a road according to claim 1, wherein said obtaining texture coordinates of a texture mapped traffic marking corresponding to said texture mapped traffic marking data according to said texture mapped traffic marking data comprises:
and obtaining texture coordinates of the texture mapping traffic marking corresponding to the texture mapping traffic marking data according to the texture mapping traffic marking data by adopting a three-dimensional texture mapping technology.
4. The method according to claim 1, wherein after the vector road classification data is preset, before texture coordinates of the texture map traffic marking corresponding to the texture map traffic marking data are obtained according to the texture map traffic marking data, the method further comprises:
obtaining the texture type of the texture mapping traffic marking data according to the vector road classification data;
before rendering the assigned data of the linear traffic marking, the texture coordinates of the texture mapping traffic marking and the road surface data, and after obtaining the texture coordinates of the texture mapping traffic marking corresponding to the texture mapping traffic marking data according to the texture mapping traffic marking data, the three-dimensional visual road modeling method further comprises the following steps:
establishing a texture object;
recording various texture map traffic marking data into the texture object;
and according to the type of the texture mapping traffic marking data, allocating a network address to each type of the texture mapping traffic marking data.
5. The three-dimensional road visualization modeling method according to any one of claims 1 to 4, wherein before rendering the assigned data of the linear traffic marking, the texture coordinates of the texture map traffic marking and the road surface data, and after presetting the vector road classification data, the three-dimensional road visualization modeling method further comprises:
extracting height information of the road surface data from the road surface data;
and generating simulated layer data serving as a simulated shadow on a reference zero plane of the road surface data according to the height information of the road surface data, so that the road surface data contains the simulated layer data.
6. A road three-dimensional visualization modeling device is characterized by comprising:
the preset module is used for presetting vector road classification data; the vector road classification data comprises linear traffic marking data, texture mapping traffic marking data and pavement data;
the processing module is used for carrying out data assignment on the linear traffic marking data to obtain linear traffic marking assigned data; obtaining texture coordinates of the texture mapping traffic marking corresponding to the texture mapping traffic marking data according to the texture mapping traffic marking data;
the rendering module is used for rendering the assigned data of the linear traffic marking, the texture coordinates of the texture mapping traffic marking and the road surface data;
the rendering module includes:
the vertex shader is used for performing position rendering on the linear traffic marking corresponding to the linear traffic marking value data, performing position rendering on the texture mapping traffic marking corresponding to the texture coordinate of the texture mapping traffic marking, and performing position rendering on the road surface corresponding to the road surface data;
the fragment shader is used for performing color rendering on each pixel point of the linear traffic marking corresponding to the linear traffic marking assignment data and performing color rendering on each pixel point of the road surface corresponding to the road surface data;
determining the network address of the texture mapping traffic marking data corresponding to the texture coordinates of the texture mapping traffic marking according to the attribute assignment of the texture mapping traffic marking data corresponding to the texture coordinates of the texture mapping traffic marking; according to the network address of the texture mapping traffic marking data corresponding to the texture coordinates of the texture mapping traffic marking, finding the texture mapping traffic marking data corresponding to the texture coordinates of the texture mapping traffic marking; and performing texture rendering on the texture mapping traffic marking corresponding to the texture coordinate of the texture mapping traffic marking according to the texture mapping traffic marking data corresponding to the texture coordinate of the texture mapping traffic marking.
7. The device for three-dimensional visual modeling of roads according to claim 6, wherein said preset module comprises:
an acquisition unit configured to acquire vector road data;
the classification unit is used for classifying the vector road data to obtain vector road classification data; the vector road data comprises linear traffic marking data, texture mapping traffic marking data and road surface data;
and the attribute assignment unit is used for performing attribute assignment on the vector road data.
8. The apparatus according to claim 6, wherein the processing module comprises:
the data assignment unit is used for performing data assignment on the linear traffic marking data to obtain linear traffic marking assigned data;
and the texture coordinate operation unit is used for obtaining texture coordinates of the texture mapping traffic marking corresponding to the texture mapping traffic marking data according to the texture mapping traffic marking data by adopting a three-dimensional texture mapping technology.
9. The apparatus according to claim 6, wherein the apparatus comprises:
the statistical module is used for obtaining the texture type of the texture mapping traffic marking data according to the vector road classification data;
the texture object establishing module is used for establishing a texture object and recording various texture map traffic marking data into the texture object;
and the address allocation module is used for allocating network addresses to the texture mapping traffic marking data according to the types of the texture mapping traffic marking data.
10. The three-dimensional road visualization modeling device according to any one of claims 6 to 9, comprising:
the height extraction module is used for extracting height information of the road surface data from the road surface data;
and the imitation data loading module is used for generating imitation layer data serving as an imitation shadow on a reference zero surface of the road surface data according to the height information of the road surface data, so that the road surface data contains the imitation layer data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710984233.3A CN107705363B (en) | 2017-10-20 | 2017-10-20 | Road three-dimensional visual modeling method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710984233.3A CN107705363B (en) | 2017-10-20 | 2017-10-20 | Road three-dimensional visual modeling method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107705363A CN107705363A (en) | 2018-02-16 |
CN107705363B true CN107705363B (en) | 2021-02-23 |
Family
ID=61182015
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710984233.3A Active CN107705363B (en) | 2017-10-20 | 2017-10-20 | Road three-dimensional visual modeling method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107705363B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109446286B (en) * | 2018-09-28 | 2022-01-04 | 山东中创软件商用中间件股份有限公司 | Visualization method and device for highway road network map |
CN111104700B (en) * | 2018-10-10 | 2024-01-05 | 北京嘀嘀无限科技发展有限公司 | Method, device, equipment and readable storage medium for three-dimensional modeling of overpass |
CN111238506B (en) * | 2018-11-29 | 2022-10-18 | 沈阳美行科技股份有限公司 | Drawing method and device for elevated road in map and related equipment |
CN109712231B (en) * | 2018-12-24 | 2022-12-06 | 成都四方伟业软件股份有限公司 | Road special effect setting method and device |
CN110689598B (en) * | 2019-04-08 | 2020-10-02 | 滴图(北京)科技有限公司 | Three-dimensional modeling method and system for multilayer road |
CN112489215B (en) * | 2020-11-27 | 2022-09-16 | 之江实验室 | Single-drawing-batch three-dimensional road parametric modeling method with road surface marks |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008045997A2 (en) * | 2006-10-11 | 2008-04-17 | Leica Geosystems Ag | Feature extraction from stereo imagery |
CN101739443A (en) * | 2009-12-29 | 2010-06-16 | 广东威创视讯科技股份有限公司 | System and method for fast response of GIS intelligent analyzing system on large high-definition screen |
CN106096149A (en) * | 2016-06-15 | 2016-11-09 | 东南大学 | The digitized of a kind of microcosmic road table pattern generates method |
CN106780736A (en) * | 2017-01-09 | 2017-05-31 | 网易(杭州)网络有限公司 | Map data processing method and device, three-dimensional map generation method and device |
CN106971040A (en) * | 2017-03-29 | 2017-07-21 | 北京晶众智慧交通科技股份有限公司 | It is a kind of based on the flat three-dimensional road fast modeling method designed in length and breadth |
-
2017
- 2017-10-20 CN CN201710984233.3A patent/CN107705363B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008045997A2 (en) * | 2006-10-11 | 2008-04-17 | Leica Geosystems Ag | Feature extraction from stereo imagery |
CN101739443A (en) * | 2009-12-29 | 2010-06-16 | 广东威创视讯科技股份有限公司 | System and method for fast response of GIS intelligent analyzing system on large high-definition screen |
CN106096149A (en) * | 2016-06-15 | 2016-11-09 | 东南大学 | The digitized of a kind of microcosmic road table pattern generates method |
CN106780736A (en) * | 2017-01-09 | 2017-05-31 | 网易(杭州)网络有限公司 | Map data processing method and device, three-dimensional map generation method and device |
CN106971040A (en) * | 2017-03-29 | 2017-07-21 | 北京晶众智慧交通科技股份有限公司 | It is a kind of based on the flat three-dimensional road fast modeling method designed in length and breadth |
Also Published As
Publication number | Publication date |
---|---|
CN107705363A (en) | 2018-02-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107705363B (en) | Road three-dimensional visual modeling method and device | |
CN110368694B (en) | Game scene data processing method, device, equipment and readable storage medium | |
US8570322B2 (en) | Method, system, and computer program product for efficient ray tracing of micropolygon geometry | |
Greß et al. | GPU‐based collision detection for deformable parameterized surfaces | |
KR101136737B1 (en) | Method of and appartus for processing graphics | |
CN113034657B (en) | Rendering method, device and equipment for illumination information in game scene | |
CN110751620B (en) | Method for estimating volume and weight, electronic device, and computer-readable storage medium | |
CN110990516A (en) | Map data processing method and device and server | |
CN107564077B (en) | method and device for drawing road network | |
CN111583381B (en) | Game resource map rendering method and device and electronic equipment | |
CN110378947B (en) | 3D model reconstruction method and device and electronic equipment | |
CN105574931A (en) | Electronic map road drawing method and device | |
CN109992640A (en) | Determination method and device, equipment and the storage medium of position grid | |
KR101552827B1 (en) | Method Of Dividing Three-dimensional Object Model | |
CN109544672A (en) | A kind of three-dimensional building model texture mapping method and device | |
CN110738626A (en) | Rendering graph optimization method and device and electronic equipment | |
CN114359269A (en) | Virtual food box defect generation method and system based on neural network | |
JP2023540730A (en) | Methods, devices, electronic devices, and readable storage media for constructing topographic maps | |
WO2019088865A1 (en) | Method and system for removing hidden surfaces from a three-dimensional scene | |
CN114119837A (en) | Geometric processing compression method and device in Revit model lightweight rendering process | |
CN117523087A (en) | Three-dimensional model optimization method based on content recognition | |
CN114627206A (en) | Grid drawing method and device, electronic equipment and computer readable storage medium | |
CN116543109A (en) | Hole filling method and system in three-dimensional reconstruction | |
KR20140120156A (en) | Method of generating 3-d graphic data with improved usability for mobile device and application development environment enabling the method | |
CN113379814B (en) | Three-dimensional space relation judging method and device |
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 |