CN113284259B - Method and device for three-dimensional display of building - Google Patents
Method and device for three-dimensional display of building Download PDFInfo
- Publication number
- CN113284259B CN113284259B CN202010106806.4A CN202010106806A CN113284259B CN 113284259 B CN113284259 B CN 113284259B CN 202010106806 A CN202010106806 A CN 202010106806A CN 113284259 B CN113284259 B CN 113284259B
- Authority
- CN
- China
- Prior art keywords
- outdoor
- building
- indoor
- model
- dimensional
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000009877 rendering Methods 0.000 claims abstract description 108
- 238000003384 imaging method Methods 0.000 claims abstract description 28
- 239000000463 material Substances 0.000 claims description 28
- 238000004590 computer program Methods 0.000 claims description 10
- 239000003086 colorant Substances 0.000 claims description 2
- 230000000007 visual effect Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 12
- 230000000694 effects Effects 0.000 description 11
- 230000008569 process Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000004308 accommodation Effects 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000002932 luster Substances 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000012089 stop solution Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/20—Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/10—Geometric effects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2219/00—Indexing scheme for manipulating 3D models or images for computer graphics
- G06T2219/20—Indexing scheme for editing of 3D models
- G06T2219/2008—Assembling, disassembling
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Graphics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Geometry (AREA)
- Software Systems (AREA)
- Architecture (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
- Image Generation (AREA)
Abstract
The invention discloses a method and a device for three-dimensional display of a building, and relates to the technical field of computers. One embodiment of the method comprises the following steps: generating an indoor three-dimensional model of the building according to the imaging angle data, the light source data and the indoor rendering object; generating a transparent outdoor three-dimensional model of the building according to the imaging angle data, the light source data and the outdoor rendering object; and adding the indoor three-dimensional model and the transparent outdoor three-dimensional model into a main scene to obtain the three-dimensional model of the building. According to the embodiment, the appearance and the indoor layout of the building can be rendered at the same time, so that the appearance and the indoor layout of the building can be presented at the same time, and the visual experience of building display is improved.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for three-dimensional display of a building.
Background
Three-dimensional display buildings are more intuitive to move than two-dimensional display buildings, are widely used in many internet map products in recent years, and are mostly used for regional display. In the existing three-dimensional display technical scheme, the integrity of the indoor and outdoor of the building is not strong, and the indoor and outdoor modules cannot be rendered at the same time, so that the appearance and indoor layout of the building cannot be presented at the same time.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a method and an apparatus for three-dimensional display of a building, which can simultaneously render the appearance and the indoor layout of the building, so that the appearance and the indoor layout of the building can be simultaneously presented, and the visual experience of the display of the building is improved.
To achieve the above object, according to one aspect of the embodiments of the present invention, there is provided a method for three-dimensional exhibition of a building, including:
Generating an indoor three-dimensional model of the building according to the imaging angle data, the light source data and the indoor rendering object;
Generating a transparent outdoor three-dimensional model of the building according to the imaging angle data, the light source data and the outdoor rendering object;
and adding the indoor three-dimensional model and the transparent outdoor three-dimensional model into a main scene to obtain the three-dimensional model of the building.
Optionally, before adding the indoor three-dimensional model and the transparent outdoor three-dimensional model to the main scene, the method further comprises:
extracting an outdoor frame outline object of the building; generating an outdoor border model of the building according to the imaging angle data, the light source data and the outdoor border outline object; and adding the outdoor frame model into the transparent outdoor three-dimensional model.
Optionally, before generating the indoor three-dimensional model, the method further comprises: generating the indoor rendering object according to the vertex data and the texture data in the building room;
before generating the transparent outdoor three-dimensional model, further comprising: and generating the outdoor rendering object according to the outdoor vertex data and the outdoor texture data by the building.
Optionally, generating the indoor rendering object according to the vertex data and the texture data in the building room comprises: generating an indoor three-dimensional wire frame model according to the indoor vertex data of the building, and generating indoor material data of the building according to the indoor texture data of the building; generating the indoor rendering object according to the indoor three-dimensional wire frame model and the indoor material data;
Generating the outdoor rendering object according to the vertex data and the texture data outside the building, comprising: generating an outdoor three-dimensional wire frame model according to the outdoor vertex data of the building, and generating outdoor material data of the building according to the outdoor texture data of the building; and generating the outdoor rendering object according to the outdoor three-dimensional wire frame model and the outdoor material data.
Optionally, generating an indoor three-dimensional wire frame model according to the indoor vertex data of the building comprises: generating triangular surfaces in the building according to the vertex data in the building, extracting the edges of the triangular surfaces in each building, and performing de-duplication treatment on the edges of the triangular surfaces in all the extracted building to obtain the indoor three-dimensional wire frame model;
Generating an outdoor three-dimensional wire frame model from vertex data outside a building, comprising: and generating a triangular surface of the outdoor building according to the vertex data of the outdoor building, extracting the side of each triangular surface of the outdoor building, and performing de-duplication treatment on the sides of all the extracted triangular surfaces of the outdoor building to obtain the outdoor three-dimensional wire frame model.
Optionally, the transparency of the outdoor border model and the transparent outdoor three-dimensional model are different.
Optionally, the outdoor border model and the transparent outdoor three-dimensional model are different in color.
According to a second aspect of an embodiment of the present invention, there is provided an apparatus for three-dimensional display of a building, comprising:
The indoor rendering module is used for generating an indoor three-dimensional model of the building according to the imaging angle data, the light source data and the indoor rendering object;
The outdoor rendering module is used for generating a transparent outdoor three-dimensional model of the building according to the imaging angle data, the light source data and the outdoor rendering object;
and the integral rendering module is used for adding the indoor three-dimensional model and the transparent outdoor three-dimensional model into a main scene to obtain the three-dimensional model of the building.
Optionally, the device of the embodiment of the present invention further includes: the frame rendering module is used for: extracting an outdoor border outline object of the building before the integral rendering module adds the indoor three-dimensional model and the transparent outdoor three-dimensional model to a main scene; generating an outdoor border model of the building through rendering operation according to the imaging angle data, the light source data and the outdoor border outline object; and adding the outdoor frame model into the transparent outdoor three-dimensional model.
Optionally, the indoor rendering module is further configured to: before generating an indoor three-dimensional model, generating an indoor rendering object according to indoor vertex data and texture data of a building;
The outdoor rendering module is further configured to: and before the transparent outdoor three-dimensional model is generated, generating the outdoor rendering object according to the outdoor vertex data and the texture data of the building.
Optionally, the indoor rendering module generates the indoor rendering object according to vertex data and texture data in a building room, including: generating an indoor three-dimensional wire frame model according to the indoor vertex data of the building, and generating indoor material data of the building according to the indoor texture data of the building; generating the indoor rendering object according to the indoor three-dimensional wire frame model and the indoor material data;
the outdoor rendering module generates the outdoor rendering object according to the outdoor vertex data and the outdoor texture data of the building, and the outdoor rendering module comprises: generating an outdoor three-dimensional wire frame model according to the outdoor vertex data of the building, and generating outdoor material data of the building according to the outdoor texture data of the building; and generating the outdoor rendering object according to the outdoor three-dimensional wire frame model and the outdoor material data.
Optionally, the indoor rendering module generates an indoor three-dimensional wire frame model according to indoor vertex data of a building, and the indoor three-dimensional wire frame model comprises: generating triangular surfaces in the building according to the vertex data in the building, extracting the edges of the triangular surfaces in each building, and performing de-duplication treatment on the edges of the triangular surfaces in all the extracted building to obtain the indoor three-dimensional wire frame model;
The outdoor rendering module generates an outdoor three-dimensional wire frame model according to outdoor vertex data of a building, and the outdoor rendering module comprises: and generating a triangular surface of the outdoor building according to the vertex data of the outdoor building, extracting the side of each triangular surface of the outdoor building, and performing de-duplication treatment on the sides of all the extracted triangular surfaces of the outdoor building to obtain the outdoor three-dimensional wire frame model.
Optionally, the transparency of the outdoor border model and the transparent outdoor three-dimensional model are different.
Optionally, the outdoor border model and the transparent outdoor three-dimensional model are different in color.
According to a third aspect of an embodiment of the present invention, there is provided an electronic device for three-dimensional exhibition of a building, including:
one or more processors;
storage means for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method provided by the first aspect of the embodiments of the present invention.
According to a fourth aspect of embodiments of the present invention, there is provided a computer readable medium having stored thereon a computer program which when executed by a processor implements the method provided by the first aspect of embodiments of the present invention.
One embodiment of the above invention has the following advantages or benefits: through rendering the outdoor rendering object into a transparent three-dimensional model, the appearance and indoor layout of the building can be rendered simultaneously, the technical effect of simultaneously displaying the indoor and outdoor states of the building is achieved, and the visual experience of three-dimensional display is improved.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic flow diagram of a method for three-dimensional display of a building according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the architecture of a method of three-dimensional display of a building according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of the main modules of a device for three-dimensional display of a building according to an embodiment of the present invention;
FIG. 4 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
Fig. 5 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
According to one aspect of an embodiment of the present invention, a method for three-dimensional display of a building is provided.
Fig. 1 is a schematic flow chart of a method for three-dimensional exhibition of a building according to an embodiment of the present invention, and as shown in fig. 1, the method for three-dimensional exhibition of a building includes:
s101, generating an indoor three-dimensional model of a building according to imaging angle data, light source data and an indoor rendering object;
Step S102, generating a transparent outdoor three-dimensional model of the building according to the imaging angle data, the light source data and the outdoor rendering object;
and step S103, adding the indoor three-dimensional model and the transparent outdoor three-dimensional model into a main scene to obtain the three-dimensional model of the building.
The imaging angle data refers to data representing the projection angle of a building on a display screen or the like. The corresponding three-dimensional models of the same building under different projection angles are different. The light source data is data indicating the relation of the light source in the projection process of the building, such as the position of the light source, the luminous brightness, the luminous color, etc. A three-dimensional model is a polygonal representation of an object, typically displayed with a computer or other video device. The displayed object may be a real world entity or an imaginary object. The main scene refers to a scene formed by everything except the building in the picture showing the building, such as streets under the night, snow scenes wrapped by silverware, and the like.
According to the embodiment of the invention, aiming at the problem that the integrity of the indoor and outdoor of the building is not strong, the perspective effect is adopted to enable the appearance and indoor layout of the building to be rendered simultaneously, so that the technical effect of simultaneously displaying the indoor and outdoor states of the building is achieved, and the visual experience of three-dimensional display is improved.
Optionally, before adding the indoor three-dimensional model and the transparent outdoor three-dimensional model to the main scene, the method further comprises: extracting an outdoor frame outline object of the building; generating an outdoor border model of the building according to the imaging angle data, the light source data and the outdoor border outline object; and adding the outdoor frame model into the transparent outdoor three-dimensional model. By independently rendering the outdoor frame model, the display effect of the finally obtained three-dimensional model can be improved. Further, the transparency of the outdoor border model and the transparency of the transparent outdoor three-dimensional model may be different. The outdoor frame model is transparent, shielding of the outdoor frame to indoor layout can be avoided, and the display effect of the outdoor frame of the building can be improved by enabling the transparency of the outdoor frame model to be different from that of the transparent outdoor three-dimensional model. In the practical application process, the colors of the outdoor frame model and the transparent outdoor three-dimensional model can be different. For example, the transparent outdoor three-dimensional model is lighter in color than the outdoor border model to highlight the outdoor contour of the building.
The indoor rendering object refers to a three-dimensional body which needs to be displayed in three dimensions in a building room, and the outdoor rendering object refers to a three-dimensional body which needs to be displayed in three dimensions outside the building room. Optionally, before generating the indoor three-dimensional model, the method further comprises: generating the indoor rendering object according to the vertex data and the texture data in the building room; before generating the transparent outdoor three-dimensional model, further comprising: and generating the outdoor rendering object according to the vertex data and the texture data outside the building. Vertex data refers to data representing vertices of a three-dimensional volume. Textures, also called maps, are graphic image files. By separately generating the indoor rendering object and the outdoor rendering object, generation parameters of the indoor rendering object and the outdoor rendering object, such as texture data, are convenient to adjust according to actual situations.
Optionally, generating the indoor rendering object according to the vertex data and the texture data in the building room comprises: generating an indoor three-dimensional wire frame model according to the indoor vertex data of the building, and generating indoor material data of the building according to the indoor texture data of the building; generating the indoor rendering object according to the indoor three-dimensional wire frame model and the indoor material data;
Generating the outdoor rendering object according to the vertex data and the texture data outside the building, comprising: generating an outdoor three-dimensional wire frame model according to the outdoor vertex data of the building, and generating outdoor material data of the building according to the outdoor texture data of the building; and generating the outdoor rendering object according to the outdoor three-dimensional wire frame model and the outdoor material data.
The three-dimensional wire frame model represents the outline of the frame of the three-dimensional body, and the material data are used for defining the properties of color, luster, transparency, concave-convex and the like of the surface of the three-dimensional body. Generating texture data according to texture data, and generating a corresponding rendering object according to the texture data and the three-dimensional wire frame model, so that the display effect of the generated rendering object can be improved.
Optionally, generating an indoor three-dimensional wire frame model according to the indoor vertex data of the building comprises: generating triangular surfaces in the building according to the vertex data in the building, extracting the edges of the triangular surfaces in each building, and performing de-duplication treatment on the edges of the triangular surfaces in all the extracted building to obtain the indoor three-dimensional wire frame model;
Generating an outdoor three-dimensional wire frame model from vertex data outside a building, comprising: and generating a triangular surface of the outdoor building according to the vertex data of the outdoor building, extracting the side of each triangular surface of the outdoor building, and performing de-duplication treatment on the sides of all the extracted triangular surfaces of the outdoor building to obtain the outdoor three-dimensional wire frame model.
The deduplication process refers to the removal of duplicate and similar edges. For example, there is a repeating edge between two adjacent triangular faces. The similarity determination may be selectively set according to the actual situation, for example, for one side a, a side parallel to the side a and having a distance from the side a smaller than a preset distance threshold is determined as a similar side. Through the repeated processing, the calculated amount of the subsequent steps can be reduced on the basis of guaranteeing the three-dimensional display effect, and the response speed of three-dimensional display is improved.
Fig. 2 is a schematic diagram of the architecture of a method of three-dimensional display of a building according to an embodiment of the present invention. In the drawings, each unit is explained as follows:
Texture unit: the unit is responsible for loading picture or vector data of the required materials of the building.
Material unit: the unit generates the required material of the building according to the loaded picture or vector data of the material. This process is a three-dimensional modeling process (i.e., a process or method of attaching a bitmap to a three-dimensional graphic) that projects a two-dimensional image onto a surface of a three-dimensional model for texture mapping.
Face3 triangle unit: the unit obtains all points from the Vertex unit and then generates the most basic triangular surface needed in the three-dimensional scene.
Vertex data unit of Vertex: the unit generates and records data for each vertex of the three-dimensional model.
Geometry dotted line-plane data unit: the unit records the dotted plane data of the model for rendering by the subsequent module. The unit performs deduplication processing on duplicate and similar edges. The unit simultaneously records the frame data of the model.
Mesh rendering object unit: the unit generates a three-dimensional rendering object according to the point-line-plane data recorded by the Geometry unit and the Material data generated by the Material unit, and the three-dimensional rendering object comprises wire frame data and Material data of the object.
Camera unit: the unit defines imaging angle data that determines which angle of the object in the scene will be displayed.
Light source unit: the unit defines light source data (the light source data is considered to be defined, and the data such as the position of a light source, the luminous brightness color and the like can be configured through parameters) in the three-dimensional Scene, and provides the light source data for Scene for composite rendering.
Scene unit: the unit contains all elements in the three-dimensional scene: imaging angle data from the Camera unit, light source data of the Light unit, and a rendering object of the Mesh unit. The unit removes the point-line-surface data which does not need to be displayed after orthogonal or perspective projection transformation is completed according to the instruction of the user, and then displays the three-dimensional object. Including both perspective projection cameras and orthogonal projection cameras. The perspective projection belongs to the center projection. Perspective projection views, which are simply referred to as perspective views or perspectives, are the patterns obtained by projecting an object from a certain projection center onto a single projection surface. Orthographic projection refers to projection of mutually orthogonal subspaces of the image space U and the null space W.
Renderer rendering unit: the unit uses a renderer, and combines the Camera unit and the Scene unit to obtain a three-dimensional model of the building, namely a final result picture. The renderer is used for placing the pictures shot by the Camera unit into an imaging container for display.
In this example, outdoor rendering objects are rendered separately, and the generated outdoor three-dimensional model is made transparent by modifying Alpha channels of the rendering process. Alpha channel refers to the transparency and translucency of a picture. When the outdoor border model is generated, only the border of the model is rendered and the color and Alpha channels are distinguished from the outdoor three-dimensional model, so that the color and the transparency of the outdoor border model are different from those of the outdoor three-dimensional model. In the embodiment of the invention, aiming at the problem of weak integrity of indoor and outdoor of a building, the technical means of independently rendering and perspective displaying an outdoor three-dimensional model is adopted for the outdoor frame model, so that the appearance and indoor layout of the building can be simultaneously rendered, the technical effect of simultaneously displaying the indoor and outdoor states of the building is achieved, and the visual experience of three-dimensional display is improved.
The building in the embodiment of the invention can be a commercial building, a transportation hub, a scenic spot and park, a hospital, an office building and the like. The three-dimensional display method of the embodiment of the invention can be applied to the following scenes:
(1) Commercial building: the complex shelves in markets and supermarkets can accurately display the scenes of the commodities, and the consumers can not get lost when searching the commodities by combining the three-dimensional model lifting effect.
(2) Transportation junction: three-dimensional maps of traffic places such as airports, railway stations, subway stations, and parking lots. Accurate display of areas such as a landing zone, a store, public facilities, a waiting zone and the like can help passengers to easily cope with stressful trips.
(3) Scenic spots and parks: a set of beautiful and fine three-dimensional indoor and outdoor models are perfectly matched with one-stop solution for accommodation, travel, catering and entertainment provided for customers.
(4) Public services and offices: the indoor map of the hospital provides registration areas, triage areas, hospitalization areas and inspection areas which are concerned by the public for hospitalization, and accurately prompts various route guidance. The three-dimensional indoor map with each feature can be customized for large-scale enterprise office buildings and different scale company office areas.
According to a second aspect of an embodiment of the present invention, there is provided an apparatus for implementing the above method.
Fig. 3 is a schematic block diagram of an apparatus for three-dimensional display of a building according to an embodiment of the present invention, and as shown in fig. 3, an apparatus 300 for three-dimensional display of a building includes:
the indoor rendering module 301 generates an indoor three-dimensional model of the building according to the imaging angle data, the light source data and the indoor rendering object;
the outdoor rendering module 302 generates a transparent outdoor three-dimensional model of the building according to the imaging angle data, the light source data and the outdoor rendering object;
and the integral rendering module 303 is used for adding the indoor three-dimensional model and the transparent outdoor three-dimensional model into a main scene to obtain the three-dimensional model of the building.
Optionally, the device of the embodiment of the present invention further includes: the frame rendering module is used for: extracting an outdoor border outline object of the building before the integral rendering module adds the indoor three-dimensional model and the transparent outdoor three-dimensional model to a main scene; generating an outdoor border model of the building through rendering operation according to the imaging angle data, the light source data and the outdoor border outline object; and adding the outdoor frame model into the transparent outdoor three-dimensional model.
Optionally, the indoor rendering module is further configured to: before generating an indoor three-dimensional model, generating an indoor rendering object according to indoor vertex data and texture data of a building;
The outdoor rendering module is further configured to: and before the transparent outdoor three-dimensional model is generated, generating the outdoor rendering object according to the outdoor vertex data and the texture data of the building.
Optionally, the indoor rendering module generates the indoor rendering object according to vertex data and texture data in a building room, including: generating an indoor three-dimensional wire frame model according to the indoor vertex data of the building, and generating indoor material data of the building according to the indoor texture data of the building; generating the indoor rendering object according to the indoor three-dimensional wire frame model and the indoor material data;
the outdoor rendering module generates the outdoor rendering object according to the outdoor vertex data and the outdoor texture data of the building, and the outdoor rendering module comprises: generating an outdoor three-dimensional wire frame model according to the outdoor vertex data of the building, and generating outdoor material data of the building according to the outdoor texture data of the building; and generating the outdoor rendering object according to the outdoor three-dimensional wire frame model and the outdoor material data.
Optionally, the indoor rendering module generates an indoor three-dimensional wire frame model according to indoor vertex data of a building, and the indoor three-dimensional wire frame model comprises: generating triangular surfaces in the building according to the vertex data in the building, extracting the edges of the triangular surfaces in each building, and performing de-duplication treatment on the edges of the triangular surfaces in all the extracted building to obtain the indoor three-dimensional wire frame model;
The outdoor rendering module generates an outdoor three-dimensional wire frame model according to outdoor vertex data of a building, and the outdoor rendering module comprises: and generating a triangular surface of the outdoor building according to the vertex data of the outdoor building, extracting the side of each triangular surface of the outdoor building, and performing de-duplication treatment on the sides of all the extracted triangular surfaces of the outdoor building to obtain the outdoor three-dimensional wire frame model.
Optionally, the transparency of the outdoor border model and the transparent outdoor three-dimensional model are different.
Optionally, the outdoor border model and the transparent outdoor three-dimensional model are different in color.
According to a third aspect of an embodiment of the present invention, there is provided an electronic device for three-dimensional exhibition of a building, including:
one or more processors;
storage means for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method provided by the first aspect of the embodiments of the present invention.
According to a fourth aspect of embodiments of the present invention, there is provided a computer readable medium having stored thereon a computer program which when executed by a processor implements the method provided by the first aspect of embodiments of the present invention.
Fig. 4 illustrates an exemplary system architecture 400 of a method of three-dimensional exhibition of a building or an apparatus of three-dimensional exhibition of a building to which embodiments of the present invention may be applied.
As shown in fig. 4, the system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405. The network 404 is used as a medium to provide communication links between the terminal devices 401, 402, 403 and the server 405. The network 404 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 405 via the network 404 using the terminal devices 401, 402, 403 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 401, 402, 403.
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 405 may be a server providing various services, such as a background management server (by way of example only) providing support for shopping-type websites browsed by users using the terminal devices 401, 402, 403. The background management server may perform analysis and other processing on the received data such as the building three-dimensional model query request, and feed back the processing result (for example, the building three-dimensional model—only an example) to the terminal device.
It should be noted that, the method for three-dimensional exhibition of a building provided by the embodiment of the present invention is generally executed by the server 405, and accordingly, the device for three-dimensional exhibition of a building is generally disposed in the server 405.
It should be understood that the number of terminal devices, networks and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 5, there is illustrated a schematic diagram of a computer system 500 suitable for use in implementing an embodiment of the present invention. The terminal device shown in fig. 5 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, and the like; an output portion 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as needed so that a computer program read therefrom is mounted into the storage section 508 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 509, and/or installed from the removable media 511. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 501.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor comprising: the indoor rendering module is used for generating an indoor three-dimensional model of the building according to the imaging angle data, the light source data and the indoor rendering object; the outdoor rendering module is used for generating a transparent outdoor three-dimensional model of the building according to the imaging angle data, the light source data and the outdoor rendering object; and the integral rendering module is used for adding the indoor three-dimensional model and the transparent outdoor three-dimensional model into a main scene to obtain a three-dimensional model of the building. The names of these modules do not constitute a limitation on the module itself in some cases, and for example, an indoor rendering module may also be described as "a module that generates a transparent outdoor three-dimensional model through a rendering operation".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include: generating an indoor three-dimensional model according to the imaging angle data, the first light source data and the indoor rendering object; generating a transparent outdoor three-dimensional model according to the imaging angle data, the light source data and the outdoor rendering object; and adding the indoor three-dimensional model and the transparent outdoor three-dimensional model into a main scene to obtain a three-dimensional model of the building.
According to the technical scheme provided by the embodiment of the invention, the outdoor rendering object is rendered into the transparent three-dimensional model, so that the appearance and indoor layout of the building can be rendered simultaneously, the technical effect of simultaneously displaying the indoor and outdoor states of the building is achieved, and the visual experience of three-dimensional display is improved.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.
Claims (9)
1. A method of three-dimensional display of a building, comprising:
Generating an indoor three-dimensional model of the building according to the imaging angle data, the light source data and the indoor rendering object;
Generating a transparent outdoor three-dimensional model of the building according to the imaging angle data, the light source data and the outdoor rendering object;
Adding the indoor three-dimensional model and the transparent outdoor three-dimensional model into a main scene to obtain a three-dimensional model of the building;
before adding the indoor three-dimensional model and the transparent outdoor three-dimensional model to a main scene, further comprising: extracting an outdoor frame outline object of the building; generating an outdoor border model of the building according to the imaging angle data, the light source data and the outdoor border outline object; adding the outdoor border model to the transparent outdoor three-dimensional model; when the outdoor border model is generated, only the border of the model is rendered, and the color and Alpha channels are distinguished from the outdoor three-dimensional model, so that the color or transparency of the outdoor border model is different from that of the outdoor three-dimensional model.
2. The method of claim 1, further comprising, prior to generating the indoor three-dimensional model: generating the indoor rendering object according to the vertex data and the texture data of the indoor building;
Before generating the transparent outdoor three-dimensional model, further comprising: and generating the outdoor rendering object according to the vertex data and the texture data of the outdoor building.
3. The method of claim 2, wherein generating the indoor rendering object from vertex data and texture data within a building room comprises: generating an indoor three-dimensional wire frame model according to the indoor vertex data of the building, and generating indoor material data of the building according to the indoor texture data of the building; generating the indoor rendering object according to the indoor three-dimensional wire frame model and the indoor material data;
Generating the outdoor rendering object according to the vertex data and the texture data outside the building, comprising: generating an outdoor three-dimensional wire frame model according to the outdoor vertex data of the building, and generating outdoor material data of the building according to the outdoor texture data of the building; and generating the outdoor rendering object according to the outdoor three-dimensional wire frame model and the outdoor material data.
4. A method as claimed in claim 3, wherein generating an indoor three-dimensional wire frame model from vertex data within a building room comprises: generating triangular surfaces in the building according to the vertex data in the building, extracting the edges of the triangular surfaces in each building, and performing de-duplication treatment on the edges of the triangular surfaces in all the extracted building to obtain the indoor three-dimensional wire frame model;
Generating an outdoor three-dimensional wire frame model from vertex data outside a building, comprising: and generating a triangular surface of the outdoor building according to the vertex data of the outdoor building, extracting the side of each triangular surface of the outdoor building, and performing de-duplication treatment on the sides of all the extracted triangular surfaces of the outdoor building to obtain the outdoor three-dimensional wire frame model.
5. The method of claim 1, wherein the transparency of the outdoor border model and the transparent outdoor three-dimensional model are different.
6. The method of claim 1, wherein the outdoor border model and the transparent outdoor three-dimensional model are different colors.
7. A device for three-dimensional display of a building, comprising:
The indoor rendering module is used for generating an indoor three-dimensional model of the building according to the imaging angle data, the light source data and the indoor rendering object;
the outdoor rendering module is used for generating a transparent outdoor three-dimensional model of the building according to the imaging angle data, the light source data and the outdoor rendering object;
the integral rendering module is used for adding the indoor three-dimensional model and the transparent outdoor three-dimensional model into a main scene to obtain a three-dimensional model of the building;
the apparatus further comprises: the frame rendering module is used for: extracting an outdoor border outline object of the building before the integral rendering module adds the indoor three-dimensional model and the transparent outdoor three-dimensional model to a main scene; generating an outdoor border model of the building according to the imaging angle data, the light source data and the outdoor border outline object; adding the outdoor border model to the transparent outdoor three-dimensional model; when the outdoor border model is generated, only the border of the model is rendered, and the color and Alpha channels are distinguished from the outdoor three-dimensional model, so that the color or transparency of the outdoor border model is different from that of the outdoor three-dimensional model.
8. An electronic device for three-dimensional display of a building, comprising:
one or more processors;
storage means for storing one or more programs,
When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-6.
9. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010106806.4A CN113284259B (en) | 2020-02-20 | 2020-02-20 | Method and device for three-dimensional display of building |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010106806.4A CN113284259B (en) | 2020-02-20 | 2020-02-20 | Method and device for three-dimensional display of building |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113284259A CN113284259A (en) | 2021-08-20 |
CN113284259B true CN113284259B (en) | 2024-06-14 |
Family
ID=77275334
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010106806.4A Active CN113284259B (en) | 2020-02-20 | 2020-02-20 | Method and device for three-dimensional display of building |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113284259B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101763656A (en) * | 2010-01-28 | 2010-06-30 | 北京航空航天大学 | Construction and display control method for floor and house division model of three-dimensional urban building |
CN106127850A (en) * | 2016-06-28 | 2016-11-16 | 武汉联图时空信息科技有限公司 | The three-dimensional visualization method of a kind of mobile terminal indoor and outdoor integration and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6009359A (en) * | 1996-09-18 | 1999-12-28 | National Research Council Of Canada | Mobile system for indoor 3-D mapping and creating virtual environments |
CN1664884A (en) * | 2005-03-02 | 2005-09-07 | 西安四维航测遥感中心 | Method for making metropolitan area three-dimensional visible and measurable hypsometric maps |
US9135743B2 (en) * | 2012-11-07 | 2015-09-15 | Google Inc. | Visualize the obscure object in 3D space |
CN103824327B (en) * | 2014-03-10 | 2016-09-14 | 武汉大学 | A kind of indoor and outdoor integration organization method of city scene data |
CN105654545A (en) * | 2014-11-18 | 2016-06-08 | 苏州美谷视典软件科技有限公司 | Construction and hierarchical display control method for 3D interactive villa type |
-
2020
- 2020-02-20 CN CN202010106806.4A patent/CN113284259B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101763656A (en) * | 2010-01-28 | 2010-06-30 | 北京航空航天大学 | Construction and display control method for floor and house division model of three-dimensional urban building |
CN106127850A (en) * | 2016-06-28 | 2016-11-16 | 武汉联图时空信息科技有限公司 | The three-dimensional visualization method of a kind of mobile terminal indoor and outdoor integration and device |
Also Published As
Publication number | Publication date |
---|---|
CN113284259A (en) | 2021-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10593098B2 (en) | Smooth draping layer for rendering vector data on complex three dimensional objects | |
WO2021176422A1 (en) | Systems and methods for building a virtual representation of a location | |
US20200098140A1 (en) | Soft-Occlusion for Computer Graphics Rendering | |
WO2017092303A1 (en) | Virtual reality scenario model establishing method and device | |
WO2016177288A1 (en) | Method for displaying three-dimensional simulation scene image | |
US9224238B2 (en) | Seamless texturing of 3D meshes of objects from multiple views | |
JPH02287776A (en) | Method for adopting hierarchical display list in global rendering | |
US20150325048A1 (en) | Systems, methods, and computer-readable media for generating a composite scene of a real-world location and an object | |
JP7277548B2 (en) | SAMPLE IMAGE GENERATING METHOD, APPARATUS AND ELECTRONIC DEVICE | |
Jian et al. | Augmented virtual environment: fusion of real-time video and 3D models in the digital earth system | |
CN109978753A (en) | The method and apparatus for drawing panorama thermodynamic chart | |
Sandnes | Sketching 3D immersed experiences rapidly by hand through 2D cross sections | |
US20200059633A1 (en) | Method and system for employing depth perception to alter projected images on various surfaces | |
CN113284259B (en) | Method and device for three-dimensional display of building | |
CN114170381A (en) | Three-dimensional path display method and device, readable storage medium and electronic equipment | |
US9330486B1 (en) | Optimizations of three-dimensional (3D) geometry | |
Kolivand et al. | A quadratic spline approximation using detail multi-layer for soft shadow generation in augmented reality | |
CN112423142A (en) | Image processing method, image processing device, electronic equipment and computer readable medium | |
Fukuda et al. | Citizen participatory design method using VR and a Blog as a media in the process | |
WO2023081453A1 (en) | Systems and methods to generate an interactive environment using a 3d model and cube maps | |
JP2023542598A (en) | Character display methods, devices, electronic devices, and storage media | |
Gong et al. | Three-dimensional reconstruction of indoor whole elements based on mobile LiDAR point cloud data | |
CN113204657B (en) | Integrated combined intelligent display system | |
Jo et al. | Simple Method of Video Mapping of Multiple Targets | |
Shihan et al. | Adaptive volumetric light and atmospheric scattering |
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 |