Method, device and storage medium for generating building model on three-dimensional map

By binding the building size information in the 3D map and performing grid scaling and coloring processing, the problem of the inability to plan the building form and layout with the existing technology is solved, and a more beautiful and practical 3D map building model generation is achieved.

CN113838204BActive Publication Date: 2024-10-29QI AN XIN TECHNOLOGY GROUP INC +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010591304.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-24
Publication Date
2024-10-29
Estimated Expiration
2040-06-24

AI Technical Summary

Technical Problem

The existing UV texture mapping method of building models in three-dimensional maps can only beautify the appearance of the building, and cannot effectively plan the number, location, layout and form distinction of buildings, and cannot meet the diverse needs of users.

Method used

By binding the size information of the target building to the UV coordinates, the grid model on the three-dimensional canvas is scaled, and the color information is determined based on the size information and UV coordinates for coloring processing to achieve morphological differentiation and layout planning of the architectural model. .

Benefits of technology

It realizes the morphological differentiation planning of building models on three-dimensional maps, expands the possibility of building model layout, and generates models that are more beautiful and practical.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113838204B_ABST
    Figure CN113838204B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, device and storage medium for generating a building model on a three-dimensional map, the method comprising: binding the size information of the building to the UV coordinates, scaling the mesh surfaces on each side of the target mesh map on the three-dimensional canvas according to the size information of the target building, obtaining the scaled mesh surfaces on each side, the target mesh model being the mesh model of the target building on the three-dimensional canvas; determining the color information of the mesh surfaces on each side, coloring the scaled mesh surfaces on each side according to the color information and the UV coordinates, obtaining a building model corresponding to the target building. The present invention scales the model on the three-dimensional canvas according to the size information of the building in reality stored in the UV coordinates, and then coloring the scaled mesh surfaces on each side according to the UV coordinates, rendering to obtain a building model corresponding to the target building, thereby achieving a planning effect on the shape and color distinction of the building itself on the three-dimensional map.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of three-dimensional mapping, and in particular to a method, device and storage medium for generating buildings on a three-dimensional map. Background Art

[0002] The building model in the three-dimensional map is usually made up of multiple grids. On each side, it is composed of multiple grids. Therefore, each grid surface needs to be colored to generate a more complete and beautiful building model.

[0003] Usually, the surface of the building model in the 3D map is beautified by UV texture mapping according to user needs. This method only considers the surface beautification of the building appearance, and cannot realize the planning of the number, location layout and morphological distinction of the buildings on the 3D map, and thus cannot meet all the needs of users. Summary of the invention

[0004] In view of the problems existing in the prior art, an embodiment of the present invention provides a method, device and storage medium for generating a building model on a three-dimensional map.

[0005] In a first aspect, an embodiment of the present invention provides a method for generating a building model on a three-dimensional map, comprising:

[0006] Binding the size information of the target building to the UV coordinates, scaling each side mesh surface of the target mesh model on the three-dimensional canvas according to the size information of the target building to obtain scaled each side mesh surface, wherein the target mesh model is the mesh model of the target building on the three-dimensional canvas;

[0007] The color information of each side mesh surface is determined, and the scaled side mesh surfaces are colored according to the color information and UV coordinates to obtain a building model corresponding to the target building.

[0008] Furthermore, scaling each side mesh surface of the target mesh model on the three-dimensional canvas according to the size information of the target building includes:

[0009] The size information of the target building and the size information of the mesh surfaces on each side are converted to obtain conversion data, and the mesh surfaces on each side are scaled according to the conversion data.

[0010] Furthermore, the coloring process is performed on each side mesh surface after scaling according to the color information and UV coordinates, including:

[0011] Determine the coloring rule corresponding to the UV coordinates, and perform coloring processing on each side mesh surface after scaling according to the UV coordinates based on the color information and the coloring rule.

[0012] Furthermore, it also includes: acquiring specification information of the target building, and correspondingly, coloring each side mesh surface after scaling according to the color information, specification information and UV coordinates to obtain a building model corresponding to the target building.

[0013] Furthermore, the coloring process is performed on each side mesh surface after scaling according to the color information, specification information and UV coordinates, including:

[0014] Performing layered planning processing on each side grid surface according to the specification information to determine the layer area of ​​each side grid surface;

[0015] Determine a coloring rule corresponding to the UV coordinates, and color the layer areas on each side mesh surface after scaling according to the UV coordinates based on the color information and the coloring rule.

[0016] Furthermore, it also includes: determining random values ​​of UV coordinates corresponding to each side mesh surface, correspondingly determining new UV coordinates according to the random values, and coloring each side mesh surface after scaling according to the color information and UV coordinates to obtain a building model corresponding to the target building.

[0017] Furthermore, it also includes: obtaining the time attributes required by the building model during the generation process, and accordingly,

[0018] Determine the start time and the end time of the scaling process, and the start time and the end time of the coloring process according to the time attribute;

[0019] The scaling process of each side mesh surface is recorded according to the start time and the end time of the scaling process, and a corresponding animation display screen is generated according to the scaling process;

[0020] The coloring process of each side mesh surface is recorded according to the starting time and the ending time of the coloring process, and the corresponding animation display screen is generated according to the coloring process.

[0021] Furthermore, the method further includes: before scaling the side mesh surfaces, when it is determined that the size information of the target building does not meet a preset condition, deleting the side mesh surfaces of the target mesh diagram on the three-dimensional canvas.

[0022] In a second aspect, an embodiment of the present invention provides a device for generating a building model on a three-dimensional map, comprising:

[0023] A processing module is used to bind the size information of the target building to the UV coordinates, and scale the mesh surfaces of each side of the target mesh model on the three-dimensional canvas according to the size information of the target building to obtain the scaled mesh surfaces of each side, wherein the target mesh model is the mesh model of the target building on the three-dimensional canvas;

[0024] The generation module is used to determine the color information of each side mesh surface, and color the scaled side mesh surfaces according to the color information and UV coordinates to obtain a building model corresponding to the target building.

[0025] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for generating a building model on a three-dimensional map are implemented as described above.

[0026] In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for generating a building model on a three-dimensional map as described above.

[0027] In a fifth aspect, an embodiment of the present invention provides a computer program product, which includes computer executable instructions, and the instructions, when executed, are used to implement the steps of the method for generating a building model on a three-dimensional map as described above.

[0028] The embodiments of the present invention provide a method, device and storage medium for generating a building model on a three-dimensional map. The model on the three-dimensional canvas is scaled according to the size information of the building in reality, and then the scaled side mesh surfaces are colored according to the UV coordinates to obtain a building model corresponding to the target building, thereby achieving a planning effect on the morphological distinction of the building itself on the three-dimensional map and expanding the possibility of building model layout in the three-dimensional map. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0030] Figure 1 The present invention is a flowchart of a method for generating a building model on a three-dimensional map;

[0031] Figure 2 The present invention is a structural diagram of an embodiment of a device for generating a building model on a three-dimensional map;

[0032] Figure 3 It is a schematic diagram of the structure of an electronic device embodiment of the present invention. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0034] Figure 1 A schematic diagram showing a flow chart of a method for generating a building model on a three-dimensional map provided by an embodiment of the present invention is shown. Figure 1 , the method comprising:

[0035] S11, binding the size information of the target building to the UV coordinates, scaling the mesh surfaces on each side of the target mesh model on the three-dimensional canvas according to the size information of the target building, to obtain scaled mesh surfaces on each side, wherein the target mesh model is the mesh model of the target building on the three-dimensional canvas;

[0036] S12, determining the color information of each side mesh surface, and coloring the scaled side mesh surfaces according to the color information and UV coordinates to obtain a building model corresponding to the target building.

[0037] Regarding step S11 and step S12, it should be noted that, in the embodiment of the present invention, the buildings in reality exist in the three-dimensional map as building models, and the building models mostly exist in the form of polygonal cylinders. In the three-dimensional map, the uncolored building model exists as a grid model. By rendering each grid surface of the grid model, the required building model can be generated.

[0038] In an embodiment of the present invention, the method is a building model generation scheme made by the user to complete the three-dimensional map design with "actual building size". The scheme adds the size information of the building, which includes the length, width and height information of the building. The size information of the target building is bound to the UV coordinate.

[0039] Each face of the building consists of four vertices. On the 3D canvas, multiple side mesh faces are generated in the form of a polygonal cylinder of the target building. Due to the configuration of the 3D model generation software, each side mesh face has its own size information. The size information of the mesh face is converted according to the actual size information of the target building on each face, and the scaling of each side mesh face on the 3D canvas can be achieved. That is: if the mesh face is larger, it will be reduced, and if the mesh face is smaller, it will be enlarged.

[0040] The scaled mesh surfaces on each side can correspond to the outline of the actual building. Thus, in the case of multiple building models on the three-dimensional map, the planning effect on the morphological distinction of the building itself can be reflected on the three-dimensional map.

[0041] In an embodiment of the present invention, each side mesh surface needs to be colored after scaling. First, the color information of each side mesh surface needs to be determined. The color information is the color category applied on the mesh surface. For example, red, green or blue. On a three-dimensional canvas, the color information is mainly configured on the four vertices of the mesh surface. When the four vertices are configured with red, the mesh surface is colored all red. When different colors are configured on the four vertices, the mesh surface is colored as a mixture of the four colors.

[0042] The scaled mesh surfaces on each side are colored according to the color information and UV coordinates to obtain a building model corresponding to the target building.

[0043] It should be noted that the UV coordinate is a two-dimensional coordinate, which is a coordinate in the horizontal and vertical directions with a vertex of the mesh surface as the origin, and its value is between 0 and 1. The value on the coordinate can limit the color of the pixel points at different positions on the mesh surface. The use of the UV coordinate is often used in three-dimensional model mapping.

[0044] The following is a specific example. If different colors are configured on the four vertices, the mesh surface will be a mixed color of the four colors after coloring. The mixed color is synthesized in a gradient form. In the range of 0 to 1, the four vertices are all gradients from 0 to 1. At this time, the areas near the four vertices are their respective colors, and the center of the mesh surface is a mixed color of the four colors.

[0045] In a further embodiment of the method of the above embodiment, it is mainly an explanation of coloring the scaled side mesh surfaces according to the color information and UV coordinates, specifically: determining the coloring rule corresponding to the UV coordinates, and coloring the scaled side mesh surfaces according to the UV coordinates based on the color information and the coloring rule.

[0046] It should be noted that the coloring rule indicates the way in which the mesh surface is colored. For example, the coloring rule can be a gradient method, transparency, area coloring, etc. At this time, the range from 0 to 1 defines the color of pixels at different positions on the mesh surface in a regular manner.

[0047] In a further embodiment of the method of the above embodiment, the architectural model generated by coloring in the above embodiment is only distinguished on the three-dimensional map from the actual height and size of the building. If the architectural model needs to be distinguished on the floor, it is necessary to obtain the specification information of the target building, which may include the number of floors of the building. For example, if the actual number of floors of the building is 20, the specification information is 20. At this time, the scaled side mesh surfaces are colored according to the color information, specification information and UV coordinates to obtain the architectural model corresponding to the target building. The architectural model obtained at this time can be a layered colored architectural model.

[0048] Next, the scaled mesh faces on each side are colored according to the color information, specification information, and UV coordinates, including:

[0049] According to the specification information, the mesh surfaces on each side are layered and planned, the layer areas of the mesh surfaces on each side are determined, the coloring rules corresponding to the UV coordinates are determined, and the layer areas on the scaled mesh surfaces on each side are colored according to the UV coordinates based on the color information and the coloring rules.

[0050] It should be noted that since the actual height and number of floors of the target building are known, the height of each floor can be obtained. The grid surface can be planned and layered to determine the layer area of ​​the grid surface.

[0051] At this time, the coloring rule needs to specify the color of each layer area, and then limit each color to the corresponding layer area according to the UV coordinates to complete the coloring and obtain the required building model.

[0052] In a further embodiment of the method of the above embodiment, if the user requires that the color of each mesh surface is different, at this time, the random value of the UV coordinate corresponding to each side mesh surface can be determined, and the new UV coordinate is determined according to the random value. The scaled side mesh surfaces are colored according to the color information and the UV coordinate to obtain a building model corresponding to the target building.

[0053] For example, if the random value is 0.5, the original coordinates (0, 1) are modified to new coordinates (0, 0.5).

[0054] If the UV coordinates corresponding to each mesh surface are changed from the original (0, 1) to new coordinates with different random values, the color of each mesh surface can be different.

[0055] Because different UV coordinates define the colors of pixels at different positions on the grid surface.

[0056] In a further embodiment of the above embodiment method, if one wants to see the animation of the scaling and coloring process of the building model on the three-dimensional canvas, then it is necessary to add a time attribute, because the change of the scaling and coloring process is also a change of time.

[0057] The time attributes required by the building model in the generation process are obtained, and the start and end times of the scaling process and the start and end times of the coloring process are determined according to the time attributes. Then, the scaling process of the mesh surfaces on each side is recorded according to the start and end times of the scaling process, and the corresponding animation display screen is generated according to the scaling process. The coloring process of the mesh surfaces on each side is recorded according to the start and end times of the coloring process, and the corresponding animation display screen is generated according to the coloring process.

[0058] For example, when you zoom in on a mesh surface and add a time attribute, you can see that the vertices of the mesh surface are zoomed in step by step according to a certain expansion frequency.

[0059] If there is no time attribute restriction, the grid map can be expanded from the original size to the required size in one step.

[0060] In a further embodiment of the above-mentioned embodiment method, if a customer requires that a certain building does not need to be displayed on the map, then before scaling the side grid surfaces, if it is determined that the size information of the target building does not meet the preset conditions, the side grid surfaces of the target grid map on the three-dimensional canvas are deleted.

[0061] For example, for buildings smaller than 30 meters, filtering is performed, that is, the corresponding target grid map is deleted so that it is not displayed on the 3D map, thereby reducing the generated data of the model on the 3D map and saving resource space.

[0062] The method for generating a building model on a three-dimensional map provided by an embodiment of the present invention obtains a building model corresponding to a target building by scaling the model on a three-dimensional canvas according to the size information of the building in reality, and then coloring the scaled side mesh surfaces according to UV coordinates, thereby achieving a planning effect on the morphological distinction of the building itself on the three-dimensional map and expanding the possibility of layout of building models in the three-dimensional map.

[0063] Figure 2 A schematic diagram showing the structure of a device for generating a building model on a three-dimensional map according to an embodiment of the present invention is shown. Figure 2 , the device comprises a processing module 21 and a generating module 22, wherein:

[0064] The processing module 21 is used to bind the size information of the target building to the UV coordinates, and scale the mesh models on each side of the target mesh diagram on the three-dimensional canvas according to the size information of the target building to obtain scaled mesh surfaces on each side, wherein the target mesh model is the mesh model of the target building on the three-dimensional canvas;

[0065] The generation module is used to determine the color information of each side mesh surface, and color the scaled side mesh surfaces according to the color information and UV coordinates to obtain a building model corresponding to the target building.

[0066] In another embodiment of the device of the above embodiment, the processing module is specifically used to:

[0067] The size information of the target building and the size information of the mesh surfaces on each side are converted to obtain conversion data, and the mesh surfaces on each side are scaled according to the conversion data.

[0068] In another embodiment of the device of the above embodiment, the generating module is specifically used for:

[0069] Determine the coloring rule corresponding to the UV coordinates, and perform coloring processing on each side mesh surface after scaling according to the UV coordinates based on the color information and the coloring rule.

[0070] In another embodiment of the device of the above embodiment, the specification information of the target building is obtained, and accordingly, the generation module is used to color the scaled side mesh surfaces according to the color information, specification information and UV coordinates to obtain a building model corresponding to the target building.

[0071] In another embodiment of the device of the above embodiment, the generating module is specifically used for:

[0072] Performing layered planning processing on each side grid surface according to the specification information to determine the layer area of ​​each side grid surface;

[0073] Determine a coloring rule corresponding to the UV coordinates, and color the layer areas on each side mesh surface after scaling according to the UV coordinates based on the color information and the coloring rule.

[0074] In another embodiment of the device of the above embodiment, it also includes: determining random values ​​of UV coordinates corresponding to each side mesh surface, the generation module is used to determine new UV coordinates according to the random values, and coloring the scaled side mesh surfaces according to the color information and UV coordinates to obtain a building model corresponding to the target building.

[0075] In another embodiment of the device of the above embodiment, a dynamic module is further included, which is used to obtain the time attribute required by the building model during the generation process, and determine the start time and end time of the scaling process, and the start time and end time of the coloring process according to the time attribute;

[0076] The scaling process of each side mesh surface is recorded according to the start time and the end time of the scaling process, and a corresponding animation display screen is generated according to the scaling process;

[0077] The coloring process of each side mesh surface is recorded according to the starting time and the ending time of the coloring process, and the corresponding animation display screen is generated according to the coloring process.

[0078] In another embodiment of the device of the above embodiment, it also includes a deletion module for deleting the side grid surfaces of the target grid image on the three-dimensional canvas when it is determined that the size information of the target building does not meet the preset conditions before scaling the side grid surfaces.

[0079] Since the principle of the device described in the embodiment of the present invention is the same as that of the method described in the above embodiment, a more detailed explanation will not be repeated here.

[0080] It should be noted that, in the embodiment of the present invention, the relevant functional modules can be implemented by a hardware processor.

[0081] The device for generating a building model on a three-dimensional map provided by an embodiment of the present invention obtains a building model corresponding to a target building by scaling the model on a three-dimensional canvas according to the size information of the building in reality, and then coloring the scaled side mesh surfaces according to UV coordinates, thereby achieving a planning effect on the morphological distinction of the building itself on the three-dimensional map and expanding the possibility of layout of building models in the three-dimensional map.

[0082] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3 As shown, the electronic device may include: a processor 31, a communication interface 32, a memory 33 and a communication bus 34, wherein the processor 31, the communication interface 32 and the memory 33 communicate with each other through the communication bus 34. The processor 31 may call the logic instructions in the memory 33 to execute the following method: bind the size information of the target building to the UV coordinates, scale the mesh surfaces of each side of the target mesh model on the three-dimensional canvas according to the size information of the target building, and obtain scaled mesh surfaces of each side, wherein the target mesh model is the mesh model of the target building on the three-dimensional canvas; determine the color information of the mesh surfaces of each side, and color the scaled mesh surfaces of each side according to the color information and the UV coordinates to obtain a building model corresponding to the target building.

[0083] In addition, the logic instructions in the above-mentioned memory 33 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0084] An embodiment of the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the methods provided by the above embodiments, for example, including: binding the size information of the target building to the UV coordinates, scaling the side mesh surfaces of the target mesh model on the three-dimensional canvas according to the size information of the target building to obtain the scaled side mesh surfaces, wherein the target mesh model is the mesh model of the target building on the three-dimensional canvas; determining the color information of the side mesh surfaces, and coloring the scaled side mesh surfaces according to the color information and the UV coordinates to obtain a building model corresponding to the target building.

[0085] An embodiment of the present invention also provides a computer program product, which includes computer executable instructions. When the instructions are executed, they are implemented to execute the methods provided by the above embodiments, for example, including: binding the size information of the target building to the UV coordinates, scaling the side mesh surfaces of the target mesh model on the three-dimensional canvas according to the size information of the target building to obtain the scaled side mesh surfaces, and the target mesh model is the mesh model of the target building on the three-dimensional canvas; determining the color information of the side mesh surfaces, and coloring the scaled side mesh surfaces according to the color information and the UV coordinates to obtain a building model corresponding to the target building.

[0086] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0087] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating a building model on a three-dimensional map, characterized in that: include: Binding the size information of the target building to the UV coordinates, scaling each side mesh surface of the target mesh model on the three-dimensional canvas according to the size information of the target building, to obtain scaled side mesh surfaces, wherein the target mesh model is a mesh model of the target building on the three-dimensional canvas; the size information of the target building includes length information, width information and height information of the target building; Obtaining specification information of the target building and color information of each side mesh surface, and coloring each side mesh surface after scaling according to the color information, specification information and UV coordinates to obtain a building model corresponding to the target building; The coloring of each side mesh surface after scaling according to the color information, specification information and UV coordinates includes: Performing layered planning processing on each side grid surface according to the specification information to determine the layer area of ​​each side grid surface; Determine a coloring rule corresponding to the UV coordinates, and color the layer areas on each side mesh surface after scaling according to the UV coordinates based on the color information and the coloring rule; The coloring rule is one of setting a gradient mode, transparency, and regional coloring. The range from 0 to 1 represents the color of the pixel points at different positions on the grid surface. The UV coordinates correspond to the colors of the pixel points at different positions on the grid surfaces on each side. If the user requires that the color of each mesh surface is different, the UV coordinates corresponding to each mesh surface will change from the original (0, 1) to new coordinates with different random values; Accordingly, a new UV coordinate is determined according to the random value, and each side mesh surface after scaling is colored according to the color information and the new UV coordinate to obtain a building model corresponding to the target building; If different colors are configured on the four vertices, the mesh surface will be a mixed color of the four colors after coloring; the mixed color is synthesized in a gradient form, and within the range of 0 to 1, the four vertices are all gradually changing from 0 to 1, the areas near the four vertices are their respective colors, and the center of the mesh surface is a mixed color of the four colors; It also includes: obtaining the time attributes required by the building model during the generation process, and accordingly, Determine the start time and the end time of the scaling process, and the start time and the end time of the coloring process according to the time attribute; The scaling process of each side mesh surface is recorded according to the start time and the end time of the scaling process, and a corresponding animation display screen is generated according to the scaling process; The coloring process of each side mesh surface is recorded according to the starting time and the ending time of the coloring process, and the corresponding animation display screen is generated according to the coloring process.

2. The method for generating a building model on a three-dimensional map according to claim 1, characterized in that: The scaling process of each side mesh surface of the target mesh model on the three-dimensional canvas according to the size information of the target building includes: The size information of the target building and the size information of the mesh surfaces on each side are converted to obtain conversion data, and the mesh surfaces on each side are scaled according to the conversion data.

3. The method for generating a building model on a three-dimensional map according to claim 1, characterized in that: Also includes: Before scaling the mesh surfaces on each side, when it is determined that the size information of the target building does not meet the preset conditions, the mesh surfaces on each side of the target mesh diagram on the three-dimensional canvas are deleted.

4. A device for generating a building model on a three-dimensional map, characterized in that: include: A processing module is used to bind the size information of the target building to the UV coordinates, and scale the mesh surfaces of each side of the target mesh model on the three-dimensional canvas according to the size information of the target building to obtain the scaled mesh surfaces of each side, wherein the target mesh model is the mesh model of the target building on the three-dimensional canvas; A generation module is used to obtain the specification information of the target building and the color information of each side mesh surface, and color the scaled side mesh surfaces according to the color information, specification information and UV coordinates to obtain a building model corresponding to the target building; The coloring of each side mesh surface after scaling according to the color information, specification information and UV coordinates includes: Performing layered planning processing on each side grid surface according to the specification information to determine the layer area of ​​each side grid surface; Determine a coloring rule corresponding to the UV coordinates, and color the layer areas on each side mesh surface after scaling according to the UV coordinates based on the color information and the coloring rule; The coloring rule is one of setting a gradient mode, transparency, and regional coloring. The range from 0 to 1 represents the color of the pixel points at different positions on the grid surface. The UV coordinates correspond to the colors of the pixel points at different positions on the grid surfaces on each side. If the user requires that the color of each mesh surface is different, the UV coordinates corresponding to each mesh surface will change from the original (0, 1) to new coordinates with different random values; Accordingly, a new UV coordinate is determined according to the random value, and each side mesh surface after scaling is colored according to the color information and the new UV coordinate to obtain a building model corresponding to the target building; If different colors are configured on the four vertices, the mesh surface will be a mixed color of the four colors after coloring; the mixed color is synthesized in a gradient form, and within the range of 0 to 1, the four vertices are all gradually changing from 0 to 1, the areas near the four vertices are their respective colors, and the center of the mesh surface is a mixed color of the four colors; It also includes: obtaining the time attributes required by the building model during the generation process, and accordingly, Determine the start time and the end time of the scaling process, and the start time and the end time of the coloring process according to the time attribute; The scaling process of each side mesh surface is recorded according to the start time and the end time of the scaling process, and a corresponding animation display screen is generated according to the scaling process; The coloring process of each side mesh surface is recorded according to the starting time and the ending time of the coloring process, and the corresponding animation display screen is generated according to the coloring process.

5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method for generating a building model on a three-dimensional map as claimed in any one of claims 1 to 3 are implemented.

6. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for generating a building model on a three-dimensional map as claimed in any one of claims 1 to 3 are implemented.

7. A computer program product, comprising computer executable instructions, characterized in that: When executed, the instructions are used to implement the steps of the method for generating a building model on a three-dimensional map as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Three-dimensional modeling method for achieving building inside and outside integration in digital map

    CN103150751A

  • Monomer method and system for three-dimensional building model

    CN108648269A

  • 3D model rendering method and apparatus and terminal device

    US20170116771A1