CN113470171B - Visual construction method for urban three-dimensional building, terminal equipment and storage medium - Google Patents

Visual construction method for urban three-dimensional building, terminal equipment and storage medium Download PDF

Info

Publication number
CN113470171B
CN113470171B CN202110768990.3A CN202110768990A CN113470171B CN 113470171 B CN113470171 B CN 113470171B CN 202110768990 A CN202110768990 A CN 202110768990A CN 113470171 B CN113470171 B CN 113470171B
Authority
CN
China
Prior art keywords
dimensional building
building
data
dimensional
city
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
Application number
CN202110768990.3A
Other languages
Chinese (zh)
Other versions
CN113470171A (en
Inventor
李涛
吴闽华
姜坤
卫宣安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xi'an Zhenyou Communication Technology Co ltd
Original Assignee
Xi'an Zhenyou Communication Technology 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 Xi'an Zhenyou Communication Technology Co ltd filed Critical Xi'an Zhenyou Communication Technology Co ltd
Priority to CN202110768990.3A priority Critical patent/CN113470171B/en
Publication of CN113470171A publication Critical patent/CN113470171A/en
Application granted granted Critical
Publication of CN113470171B publication Critical patent/CN113470171B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/04Architectural design, interior design

Abstract

The invention discloses a visual construction method, terminal equipment and storage medium for urban three-dimensional buildings, wherein the method comprises the following steps: acquiring original three-dimensional building data, and compressing the original three-dimensional building data to obtain compressed three-dimensional building data; decoding the compressed three-dimensional building data and constructing vertex information of a building geometric object; and building an urban three-dimensional building model according to the vertex information, and performing visual processing on the urban three-dimensional building model. The invention can realize the visual display of the three-dimensional building in the city and improve the third dimension of the building effect.

Description

Visual construction method for urban three-dimensional building, terminal equipment and storage medium
Technical Field
The invention relates to the technical field of three-dimensional display, in particular to a visual construction method, terminal equipment and storage medium for urban three-dimensional buildings.
Background
In a webgis system of smart city service, three-dimensional buildings are required to serve as basic elements of a visual scene, but building data constructed in a modeling mode is usually too large in data quantity, and the scheme is not suitable for application under the condition of unstable data transmission speed of a Web end, and the use experience of application can be seriously affected by too long data transmission time. Under the condition that the high-performance rendering requirements of the webgis system on the three-dimensional visualization are increasingly increased, a solution capable of solving the problems of automatic construction and rendering of compressed building data and web-end high-performance rendering of the three-dimensional building is needed.
Accordingly, there is a need for improvement and advancement in the art.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a visual construction method, terminal equipment and storage medium for urban three-dimensional buildings, which aim to solve the problems of automatic construction and rendering of compressed building data and web-end high-performance rendering three-dimensional buildings and improve the third dimension of building effects.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a method for constructing a three-dimensional building visualization of a city, wherein the method comprises:
acquiring original three-dimensional building data, and compressing the original three-dimensional building data to obtain compressed three-dimensional building data;
decoding the compressed three-dimensional building data and constructing vertex information of a building geometric object;
and building an urban three-dimensional building model according to the vertex information, and performing visual processing on the urban three-dimensional building model.
In one implementation, the obtaining three-dimensional building data and compressing the three-dimensional building data to obtain compressed three-dimensional building data includes:
acquiring original three-dimensional building data, wherein the original three-dimensional building data is building longitude and latitude profile data in a Geojson format;
the raw three-dimensional building data is converted to a serialized compact binary Pbf format by a compression tool.
In one implementation, the decoding the compressed three-dimensional building data and constructing vertex information of the building geometric object includes:
acquiring the compressed three-dimensional building data in an ajax mode;
decoding the compressed three-dimensional building data by a pbf data decoding technology to obtain longitude and latitude profile data;
and constructing vertex information of the building geometric object according to the longitude and latitude profile data.
In one implementation manner, the decoding the compressed three-dimensional building data by using the pbf data decoding technology to obtain longitude and latitude profile data includes:
decoding the compressed three-dimensional building data from a compact binary Pbf format to a Geojson format.
In one implementation manner, the building an urban three-dimensional building model according to the vertex information, and performing visualization processing on the urban three-dimensional building model, includes:
converting longitude and latitude profile coordinate data into Web ink card support coordinates based on a plane;
according to the vertex information, taking the vertex of the first building, which is close to the ground, of the first building as an origin of a local coordinate origin of the building group;
sequentially traversing and calculating vertex coordinates of each building under a local coordinate system to obtain local coordinates of the three-dimensional building model of the city, and constructing geometric information of the three-dimensional building model of the city;
and carrying out visualization processing on the urban three-dimensional building model according to the geometric information.
In one implementation, the building geometric information of the city three-dimensional building model includes:
synchronously assembling preset color values and texture coordinate values into the geometric objects, and performing color data assembly according to building top and bottom assignment to obtain geometric information of the urban three-dimensional building model, wherein the geometric information comprises vertexes, colors and texture coordinate values of building data.
In one implementation manner, the visualizing the city three-dimensional building model according to the geometric information includes:
constructing a material of a building;
and rendering the three-dimensional building model by using a three. Js material three. Merephongmaterial and starting vertex coloring parameters.
In a second aspect, an embodiment of the present invention further provides an apparatus for constructing a three-dimensional building visualization of a city, where the apparatus includes:
the three-dimensional building data compression module is used for acquiring original three-dimensional building data, compressing the original three-dimensional building data and obtaining compressed three-dimensional building data;
the vertex information construction module is used for decoding the compressed three-dimensional building data and constructing vertex information of the building geometric object;
and the model visualization processing module is used for constructing an urban three-dimensional building model according to the vertex information and performing visualization processing on the urban three-dimensional building model.
In a third aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a three-dimensional city building visualization construction program stored in the memory and capable of running on the processor, and when the processor executes the three-dimensional city building visualization construction program, the steps of the three-dimensional city building visualization construction method according to any one of the above schemes are implemented.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a three-dimensional city building visualization building program is stored, where the three-dimensional city building visualization building program, when executed by a processor, implements the steps of the three-dimensional city building visualization building method according to any one of the above schemes.
The beneficial effects are that: compared with the prior art, the invention provides a visual construction method of an urban three-dimensional building, which comprises the steps of firstly obtaining original three-dimensional building data, and compressing the original three-dimensional building data to obtain compressed three-dimensional building data; then decoding the compressed three-dimensional building data and constructing vertex information of a building geometric object; and finally, building an urban three-dimensional building model according to the vertex information, and carrying out visual processing on the urban three-dimensional building model. The invention can provide a solution for automatically constructing and rendering the three-dimensional building by compressing building data and high-performance rendering at the web end, can realize the visual display of the three-dimensional building in the city and improves the third dimension of the building effect.
Drawings
Fig. 1 is a flowchart of a specific implementation of a method for constructing a three-dimensional building visualization of a city according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of building a triangular surface of a building geometry in the method for constructing a three-dimensional building visualization of a city according to an embodiment of the present invention.
Fig. 3 is a display effect diagram of a visual construction method of a three-dimensional city building according to an embodiment of the present invention.
Fig. 4 is a schematic block diagram of an apparatus for constructing a three-dimensional building visualization of a city according to an embodiment of the present invention.
Fig. 5 is a schematic block diagram of an internal structure of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and more specific, the present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In a webgis system of smart city service, three-dimensional buildings are required to serve as basic elements of a visual scene, but building data constructed in a modeling mode is usually too large in data quantity, and the scheme is not suitable for application under the condition of unstable data transmission speed of a Web end, and the use experience of application can be seriously affected by too long data transmission time. Under the condition that the high-performance rendering requirements of the webgis system on the three-dimensional visualization are increasingly increased, a solution capable of solving the problems of automatic construction and rendering of compressed building data and web-end high-performance rendering of the three-dimensional building is needed.
In order to solve the problems in the prior art, the embodiment of the invention also provides a visual construction method of the urban three-dimensional building, and by the method of the embodiment, a solution for automatically constructing and rendering the urban three-dimensional building by compressing building data and rendering the three-dimensional building at a web end with high performance can be provided, so that visual display of the urban three-dimensional building can be realized, and the third dimension of the building effect is improved. When the method is implemented, the original three-dimensional building data are firstly obtained, and the original three-dimensional building data are compressed to obtain compressed three-dimensional building data; then decoding the compressed three-dimensional building data and constructing vertex information of a building geometric object; and finally, building an urban three-dimensional building model according to the vertex information, and carrying out visual processing on the urban three-dimensional building model.
Exemplary method
As shown in fig. 1, the method for constructing the urban three-dimensional building visualization of the present embodiment can be applied to terminal devices, such as computers, mobile phones, tablets and other terminal products. The visual construction method of the urban three-dimensional building comprises the following steps:
and step S100, acquiring original three-dimensional building data, and compressing the original three-dimensional building data to obtain compressed three-dimensional building data.
In specific implementation, the embodiment first selects a suitable development environment tool. Specifically, the present embodiment selects mapbox gl. Js and three. Js as development tools.
Both mapbox gl. Js and three. Js are world-level open source graphics engines. mapbox gl. Js is a map open source engine in the webgis domain, used as a geographic communications system. the thread. Js is a web-end general engine, has rich community development components and accumulation, and is highly abstract and graphical drawing and rich interface expansion. The webgis system can be built in the shortest time by adopting the open source technology, and the system has quite high maturity and expansibility. The mapbox gl. Js can be used as a layer to be independently rendered in a map, the rich interfaces of the three. Js support the development of a graphics bottom layer interface webgl, and the parallel rendering strength calculation of the GPU (graphics accelerator) can be called by utilizing the pipeline programming of the webgl to simulate a vivid simulated special effect, so that the webgis system built by the mapbox gl. Js has the capability of being directly connected with the bottom layer, and the GPU (graphics accelerator) is used for rendering the efficient and stable special effect.
Because the three-dimensional building constructed by modeling already contains complete vertex, normal vector, color, texture coordinates, etc., the amount of data for the city level is obviously unsuitable for use at the web end, and thus the building data transmitted to the front end needs to be compressed. The present embodiment first acquires the original three-dimensional building data. The three-dimensional building data adopted in the embodiment are building longitude and latitude profile data in a Geojson format, and the Geojson data are converted into a compact binary Pbf format in a serialization manner through a compression tool, so that compressed three-dimensional building data are obtained. Compared with Geojson data which is used under normal conditions, the pbf data used in the embodiment can reduce the data volume to one tenth of the original data volume, and the data volume of the urban three-dimensional building outline can be controlled to be within 2MB as a whole, so that the problem of data transmission at the web end is greatly improved.
And step 200, decoding the compressed three-dimensional building data and constructing vertex information of the building geometric object.
After the compressed three-dimensional building data is obtained, the front end of the embodiment obtains the compressed three-dimensional building data in an ajax mode, because the JavaScript language adopts a single-thread model, the data is obtained and decoded by adopting a WebWorker technology in order to not influence the normal operation of a main interface of the application, the WebWorker can create a multithread environment for Javascript, a main line Cheng Chuangjian sub-thread is allowed, a task with larger calculation amount is distributed to the sub-thread operation, and the conventional web application can cause the problem of main interface operation blocking of the web application in the main thread for a large amount of calculation, so that the embodiment can greatly reduce the influence on the problem. After the data is acquired, the embodiment decodes the compressed three-dimensional building data through a Pbf data decoding technology to obtain longitude and latitude profile data, namely decodes the compressed three-dimensional building data from a compact binary Pbf format to a Geojson format. And then constructing vertex information of the building geometric object according to the longitude and latitude profile data.
In order to simplify the data amount of the building geometric object, in the case that the number of sides of a single building contour is N, a total of N rectangular sides are formed with the addition of top and bottom N sides, each rectangular side is formed with two triangular sides, the top and bottom N sides are formed with 2 x (N-2) triangular sides in total by disassembly, thus each building body is formed with 2 x N+2 x (N-2) triangular sides, and the triangular sides of the building geometric body with the number of 4 single contour sides are formed as shown in FIG. 2.
And step S300, building a three-dimensional building model of the city according to the vertex information, and carrying out visualization processing on the three-dimensional building model of the city.
Specifically, after the vertex information is obtained, the embodiment converts longitude and latitude profile coordinate data into Web ink card support coordinates based on a plane, so that the whole building group can be used as a grid model object for improving the rendering efficiency, and the communication times of a CPU and a GPU can be greatly reduced, and the rendering performance is improved. According to the vertex information, sequentially traversing and calculating the vertex coordinates of each building under the local coordinate system by taking the vertex of the first building, which is close to the ground, of the building group as the origin to obtain the local coordinates of the three-dimensional building model of the city, and constructing the geometric information of the three-dimensional building model of the city. Specifically, the embodiment synchronously assembles preset color values and texture coordinate values into the geometric object, and the color data assembly obtains geometric information of the urban three-dimensional building model according to the top and bottom assignment of the building, wherein the geometric information comprises vertex, color and texture coordinate values of the building data.
Because the geometric information of the building group is already constructed in the steps, namely the skeleton of the building group is already constructed, the building materials are also required to be constructed at the moment; and then rendering the three-dimensional building model by using three. Js material three. MeraphongMaterial material and starting vertex coloring parameters. The building can interpolate and render gradient colors from the bottom vertexes to the top vertexes, thereby improving the stereoscopic impression of the building effect, and the effect diagram is shown in fig. 3.
To sum up, in this embodiment, first, original three-dimensional building data is obtained, and the original three-dimensional building data is compressed, so as to obtain compressed three-dimensional building data; then decoding the compressed three-dimensional building data and constructing vertex information of a building geometric object; and finally, building an urban three-dimensional building model according to the vertex information, and carrying out visual processing on the urban three-dimensional building model. The invention can provide a solution for automatically constructing and rendering the three-dimensional building by compressing building data and high-performance rendering at the web end, can realize the visual display of the three-dimensional building in the city and improves the third dimension of the building effect.
Exemplary apparatus
Based on the above embodiments, the present invention provides an apparatus for constructing a three-dimensional building visualization of a city, as shown in fig. 4, comprising: three-dimensional building data compression module 10, vertex information construction module 20, and model visualization processing module 30. Specifically, the three-dimensional building data compression module 10 is configured to obtain original three-dimensional building data, and compress the original three-dimensional building data to obtain compressed three-dimensional building data. The vertex information construction module 20 is configured to decode the compressed three-dimensional building data and construct vertex information of a building geometric object; the model visualization processing module 30 is configured to construct a three-dimensional building model of the city according to the vertex information, and perform visualization processing on the three-dimensional building model of the city.
In one implementation, the three-dimensional building data compression module 10 includes:
the building longitude and latitude profile data acquisition unit acquires original three-dimensional building data, wherein the original three-dimensional building data is building longitude and latitude profile data in a Geojson format;
and the data compression unit is used for converting the original three-dimensional building data into a serialized compact binary Pbf format through a compression tool.
In specific implementation, the embodiment first selects a suitable development environment tool. Specifically, the present embodiment selects mapbox gl. Js and three. Js as development tools.
Both mapbox gl. Js and three. Js are world-level open source graphics engines. mapbox gl. Js is a map open source engine in the webgis domain, used as a geographic communications system. the thread. Js is a web-end general engine, has rich community development components and accumulation, and is highly abstract and graphical drawing and rich interface expansion. The webgis system can be built in the shortest time by adopting the open source technology, and the system has quite high maturity and expansibility. The mapbox gl. Js can be used as a layer to be independently rendered in a map, the rich interfaces of the three. Js support the development of a graphics bottom layer interface webgl, and the parallel rendering strength calculation of the GPU (graphics accelerator) can be called by utilizing the pipeline programming of the webgl to simulate a vivid simulated special effect, so that the webgis system built by the mapbox gl. Js has the capability of being directly connected with the bottom layer, and the GPU (graphics accelerator) is used for rendering the efficient and stable special effect.
Because the three-dimensional building constructed by modeling already contains complete vertex, normal vector, color, texture coordinates, etc., the amount of data for the city level is obviously unsuitable for use at the web end, and thus the building data transmitted to the front end needs to be compressed. The present embodiment first acquires the original three-dimensional building data. The three-dimensional building data adopted in the embodiment are building longitude and latitude profile data in a Geojson format, and the Geojson data are converted into a compact binary Pbf format in a serialization manner through a compression tool, so that compressed three-dimensional building data are obtained. Compared with Geojson data which is used under normal conditions, the pbf data used in the embodiment can reduce the data volume to one tenth of the original data volume, and the data volume of the urban three-dimensional building outline can be controlled to be within 2MB as a whole, so that the problem of data transmission at the web end is greatly improved.
In one implementation, the vertex information construction module 20 includes:
the data acquisition unit is used for acquiring the compressed three-dimensional building data in an ajax mode;
the data decoding unit is used for decoding the compressed three-dimensional building data through a pbf data decoding technology to obtain longitude and latitude profile data;
and the vertex information acquisition unit is used for constructing vertex information of the building geometric object according to the longitude and latitude profile data.
Specifically, after the compressed three-dimensional building data is obtained, the front end of the embodiment obtains the compressed three-dimensional building data in an ajax mode, because the JavaScript language adopts a single-thread model, in order not to influence the normal operation of a main interface of an application, the WebWorker technology is adopted to obtain and decode the data, the WebWorker can create a multi-thread environment for JavaScript, a main line Cheng Chuangjian sub-thread is allowed, tasks with larger calculation amount are distributed to the sub-thread operation, and the conventional web application can cause the problem of main interface operation blocking of the web application in a large amount of calculation of the main thread, so that the embodiment can greatly reduce the influence on the problem. After the data is acquired, the embodiment decodes the compressed three-dimensional building data through a Pbf data decoding technology to obtain longitude and latitude profile data, namely decodes the compressed three-dimensional building data from a compact binary Pbf format to a Geojson format. And then constructing vertex information of the building geometric object according to the longitude and latitude profile data.
In order to simplify the data amount of the building geometric object, in the case that the number of sides of a single building contour is N, a total of N rectangular sides are formed with the addition of top and bottom N sides, each rectangular side is formed with two triangular sides, the top and bottom N sides are formed with 2 x (N-2) triangular sides in total by disassembly, thus each building body is formed with 2 x N+2 x (N-2) triangular sides, and the triangular sides of the building geometric body with the number of 4 single contour sides are formed as shown in FIG. 2.
In one implementation, the model visualization processing module 30 includes:
the coordinate conversion unit is used for converting longitude and latitude profile coordinate data into Web ink Carpesium coordinates based on a plane;
the origin setting unit is used for taking the local coordinate origin of the building group as the origin by taking the first vertex of the first building close to the ground according to the vertex information;
the geometric information construction unit is used for sequentially traversing and calculating vertex coordinates of each building under a local coordinate system to obtain local coordinates of the urban three-dimensional building model, and constructing geometric information of the urban three-dimensional building model;
and the visualization processing unit is used for carrying out visualization processing on the urban three-dimensional building model according to the geometric information.
Specifically, after the vertex information is obtained, the embodiment converts longitude and latitude profile coordinate data into Web ink card support coordinates based on a plane, so that the whole building group can be used as a grid model object for improving the rendering efficiency, and the communication times of a CPU and a GPU can be greatly reduced, and the rendering performance is improved. According to the vertex information, sequentially traversing and calculating the vertex coordinates of each building under the local coordinate system by taking the vertex of the first building, which is close to the ground, of the building group as the origin to obtain the local coordinates of the three-dimensional building model of the city, and constructing the geometric information of the three-dimensional building model of the city. Specifically, the embodiment synchronously assembles preset color values and texture coordinate values into the geometric object, and the color data assembly obtains geometric information of the urban three-dimensional building model according to the top and bottom assignment of the building, wherein the geometric information comprises vertex, color and texture coordinate values of the building data.
Because the geometric information of the building group is already constructed in the steps, namely the skeleton of the building group is already constructed, the building materials are also required to be constructed at the moment; and then rendering the three-dimensional building model by using three. Js material three. MeraphongMaterial material and starting vertex coloring parameters. The building can interpolate and render gradient colors from the bottom vertexes to the top vertexes, thereby improving the stereoscopic impression of the building effect, and the effect diagram is shown in fig. 3.
Based on the above embodiment, the present invention also provides a terminal device, and a functional block diagram thereof may be shown in fig. 5. The terminal equipment comprises a processor, a memory, a network interface, a display screen and a temperature sensor which are connected through a system bus. Wherein the processor of the terminal device is adapted to provide computing and control capabilities. The memory of the terminal device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the terminal device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method for visual construction of urban three-dimensional buildings. The display screen of the terminal equipment can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the terminal equipment is preset in the terminal equipment and is used for detecting the running temperature of the internal equipment.
It will be appreciated by persons skilled in the art that the functional block diagram shown in fig. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the terminal device to which the present inventive arrangements are applied, and that a particular terminal device may include more or fewer components than shown, or may combine some of the components, or may have a different arrangement of components.
In one embodiment, there is provided a terminal device including a memory, a processor, and a city three-dimensional building visualization building program stored in the memory and executable on the processor, the processor implementing the following operation instructions when executing the city three-dimensional building visualization building program:
acquiring original three-dimensional building data, and compressing the original three-dimensional building data to obtain compressed three-dimensional building data;
decoding the compressed three-dimensional building data and constructing vertex information of a building geometric object;
and building an urban three-dimensional building model according to the vertex information, and performing visual processing on the urban three-dimensional building model.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
In summary, the invention discloses a visual construction method, terminal equipment and storage medium for urban three-dimensional buildings, wherein the method comprises the following steps: acquiring original three-dimensional building data, and compressing the original three-dimensional building data to obtain compressed three-dimensional building data; decoding the compressed three-dimensional building data and constructing vertex information of a building geometric object; and building an urban three-dimensional building model according to the vertex information, and performing visual processing on the urban three-dimensional building model. The invention can realize the visual display of the three-dimensional building in the city and improve the third dimension of the building effect.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for visual construction of a three-dimensional building in a city, the method comprising:
acquiring original three-dimensional building data, and compressing the original three-dimensional building data to obtain compressed three-dimensional building data;
decoding the compressed three-dimensional building data and constructing vertex information of a building geometric object;
building an urban three-dimensional building model according to the vertex information, and performing visual processing on the urban three-dimensional building model;
building a three-dimensional building model of the city according to the vertex information, and performing visualization processing on the three-dimensional building model of the city, wherein the method comprises the following steps:
converting longitude and latitude profile coordinate data into Web ink card support coordinates based on a plane;
according to the vertex information, taking the vertex of the first building, which is close to the ground, of the first building as an origin of a local coordinate origin of the building group;
sequentially traversing and calculating vertex coordinates of each building under a local coordinate system to obtain local coordinates of the three-dimensional building model of the city, and constructing geometric information of the three-dimensional building model of the city;
and carrying out visualization processing on the urban three-dimensional building model according to the geometric information.
2. The method for constructing the three-dimensional building visualization of the city according to claim 1, wherein the steps of obtaining the original three-dimensional building data, compressing the original three-dimensional building data, and obtaining the compressed three-dimensional building data, comprise:
acquiring original three-dimensional building data, wherein the original three-dimensional building data is building longitude and latitude profile data in a Geojson format;
the raw three-dimensional building data is converted to a serialized compact binary Pbf format by a compression tool.
3. The method for constructing a three-dimensional building visualization of a city according to claim 1, wherein the decoding the compressed three-dimensional building data and constructing vertex information of a building geometric object comprises:
acquiring the compressed three-dimensional building data in an ajax mode;
decoding the compressed three-dimensional building data by a pbf data decoding technology to obtain longitude and latitude profile data;
and constructing vertex information of the building geometric object according to the longitude and latitude profile data.
4. The method for constructing the three-dimensional building visualization of the city according to claim 3, wherein the decoding the compressed three-dimensional building data by pbf data decoding technology to obtain longitude and latitude profile data comprises:
decoding the compressed three-dimensional building data from a compact binary Pbf format to a Geojson format.
5. The method for constructing a three-dimensional building visualization of a city according to claim 1, wherein the constructing geometric information of the three-dimensional building model of the city comprises:
synchronously assembling preset color values and texture coordinate values into the geometric objects, and performing color data assembly according to building top and bottom assignment to obtain geometric information of the urban three-dimensional building model, wherein the geometric information comprises vertexes, colors and texture coordinate values of building data.
6. The method for constructing the three-dimensional building of the city according to claim 1, wherein the step of performing the visualization processing on the three-dimensional building model of the city according to the geometric information comprises the steps of:
constructing a material of a building;
and rendering the three-dimensional building model by using a three. Js material three. Merephongmaterial and starting vertex coloring parameters.
7. An urban three-dimensional building visualization construction device, characterized in that it comprises:
the three-dimensional building data compression module is used for acquiring original three-dimensional building data, compressing the original three-dimensional building data and obtaining compressed three-dimensional building data;
the vertex information construction module is used for decoding the compressed three-dimensional building data and constructing vertex information of the building geometric object;
the model visualization processing module is used for constructing an urban three-dimensional building model according to the vertex information and performing visualization processing on the urban three-dimensional building model;
the model visualization processing module comprises:
the coordinate conversion unit is used for converting longitude and latitude profile coordinate data into Web ink Carpesium coordinates based on a plane;
the origin setting unit is used for taking the local coordinate origin of the building group as the origin by taking the first vertex of the first building close to the ground according to the vertex information;
the geometric information construction unit is used for sequentially traversing and calculating vertex coordinates of each building under a local coordinate system to obtain local coordinates of the urban three-dimensional building model, and constructing geometric information of the urban three-dimensional building model;
and the visualization processing unit is used for carrying out visualization processing on the urban three-dimensional building model according to the geometric information.
8. A terminal device, characterized in that it comprises a memory, a processor and a three-dimensional building visualization construction program for city stored in the memory and operable on the processor, the processor implementing the steps of the three-dimensional building visualization construction method for city according to any one of claims 1-6 when executing the three-dimensional building visualization construction program for city.
9. A computer readable storage medium, wherein a three-dimensional building visualization construction program for a city is stored on the computer readable storage medium, and when the three-dimensional building visualization construction program for a city is executed by a processor, the steps of the three-dimensional building visualization construction method for a city according to any one of claims 1-6 are implemented.
CN202110768990.3A 2021-07-07 2021-07-07 Visual construction method for urban three-dimensional building, terminal equipment and storage medium Active CN113470171B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110768990.3A CN113470171B (en) 2021-07-07 2021-07-07 Visual construction method for urban three-dimensional building, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110768990.3A CN113470171B (en) 2021-07-07 2021-07-07 Visual construction method for urban three-dimensional building, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113470171A CN113470171A (en) 2021-10-01
CN113470171B true CN113470171B (en) 2024-01-30

Family

ID=77878870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110768990.3A Active CN113470171B (en) 2021-07-07 2021-07-07 Visual construction method for urban three-dimensional building, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113470171B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364310A (en) * 2007-08-07 2009-02-11 北京灵图软件技术有限公司 Three-dimensional model image generating method and apparatus
WO2010013854A1 (en) * 2008-07-30 2010-02-04 Woodai Cals Co, . Ltd Three dimensional geographical information client apparatus, server apparatus and three dimensional geographical information system having the same
KR101659780B1 (en) * 2016-02-23 2016-09-27 (주)이지스 Method for Representing Global Spherical Space of 2 Dimentional Drawing data in GIS
CN106384371A (en) * 2016-09-20 2017-02-08 国家基础地理信息中心 Map drawing method based on vector tile
CN110889888A (en) * 2019-10-29 2020-03-17 桂林理工大学 Three-dimensional model visualization method integrating texture simplification and fractal compression
CN111739140A (en) * 2020-08-10 2020-10-02 成都四方伟业软件股份有限公司 3D data city model construction method and device
CN112419483A (en) * 2020-11-24 2021-02-26 中电科新型智慧城市研究院有限公司 Three-dimensional model data transmission method and server
CN112926119A (en) * 2021-03-05 2021-06-08 厦门泛卓信息科技有限公司 Building model compression processing method, device, equipment and medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364310A (en) * 2007-08-07 2009-02-11 北京灵图软件技术有限公司 Three-dimensional model image generating method and apparatus
WO2010013854A1 (en) * 2008-07-30 2010-02-04 Woodai Cals Co, . Ltd Three dimensional geographical information client apparatus, server apparatus and three dimensional geographical information system having the same
KR101659780B1 (en) * 2016-02-23 2016-09-27 (주)이지스 Method for Representing Global Spherical Space of 2 Dimentional Drawing data in GIS
CN106384371A (en) * 2016-09-20 2017-02-08 国家基础地理信息中心 Map drawing method based on vector tile
CN110889888A (en) * 2019-10-29 2020-03-17 桂林理工大学 Three-dimensional model visualization method integrating texture simplification and fractal compression
CN111739140A (en) * 2020-08-10 2020-10-02 成都四方伟业软件股份有限公司 3D data city model construction method and device
CN112419483A (en) * 2020-11-24 2021-02-26 中电科新型智慧城市研究院有限公司 Three-dimensional model data transmission method and server
CN112926119A (en) * 2021-03-05 2021-06-08 厦门泛卓信息科技有限公司 Building model compression processing method, device, equipment and medium

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
Ke Chen et al..Automatic building information model reconstruction in high-density urban areas: Augmenting multi-source data with architectural knowledge.《Automation in Construction》.2018,(第93期),22-34. *
Linlu Gan.Hybrid organization and visualization of the DSM combined with 3D building model .《2017 2nd International Conference on Image, Vision and Computing (ICIVC)》.2017,全文. *
刘屹林.数字三维仿真城市的研究与设计.《中国优秀硕士学位论文全文数据库信息科技辑》.2009,(第9期),I138-832. *
李道远等.大范围城市三维模型管理技术研究.《测绘科学》.2011,第36卷(第05期),70-72. *
陈举平等.矢量瓦片地图关键技术研究.《地理空间信息》.2017,第15卷(第08期),44-47+10. *

Also Published As

Publication number Publication date
CN113470171A (en) 2021-10-01

Similar Documents

Publication Publication Date Title
WO2022193941A1 (en) Image rendering method and apparatus, device, medium, and computer program product
CN109840931B (en) Batch rendering method, device and system for skeletal animation and storage medium
US9589386B2 (en) System and method for display of a repeating texture stored in a texture atlas
KR20120096119A (en) Graphic processor and early visibility testing method
US20190114821A1 (en) Uv mapping and compression
CN115439609B (en) Three-dimensional model rendering method, system, equipment and medium based on map service
CN110910504A (en) Method and device for determining three-dimensional model of region
CN112365598A (en) Method, device and terminal for converting oblique photography data into three-dimensional data
CN111091620B (en) Map dynamic road network processing method and system based on graphics and computer equipment
CN110428504B (en) Text image synthesis method, apparatus, computer device and storage medium
CN113470171B (en) Visual construction method for urban three-dimensional building, terminal equipment and storage medium
US7830386B1 (en) Register transfer level simulation using a graphics processor
CN114037792B (en) Method for dynamically generating million-magnitude underground pipeline model under Unreal Engine platform
CN111324658A (en) Ocean temperature visual analysis method, intelligent terminal and storage medium
CN110599576A (en) File rendering system and method and electronic equipment
CN111681307B (en) Implementation method of dynamic three-dimensional coordinate axis applied to three-dimensional software
CN115375812A (en) CAD data rendering method and device, electronic equipment and storage medium
CN114820853A (en) Vector graphics processing method and device, computer equipment and storage medium
CN110619675B (en) OsgEarth-based surface vector data loading method
CN113379814A (en) Three-dimensional space relation judgment method and device
CN103544675B (en) Seimic wave propagation methods of exhibiting
CN112843700A (en) Terrain image generation method and device, computer equipment and storage medium
CN114328769A (en) WebGL-based Beidou grid drawing method and device
CN113674419B (en) Three-dimensional display method and device for meteorological cloud data, electronic equipment and storage medium
CN113487708B (en) Flow animation implementation method based on graphics, storage medium and terminal equipment

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