Building 3D sand table rendering method and device

By generating and rendering the 3D sand table of the real estate, using vector data and building data, the problem of insufficient expressiveness of 3D sand tables in the existing technology is solved, and the user experience and generation efficiency is improved, allowing users to intuitively understand the differences in house attributes.

CN118967906AInactive Publication Date: 2024-11-15BEIJING FANGTIANXIA JIAJU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410969083.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing 3D sand tables of real estate can only display three-dimensional outlines, and have weak expressiveness and cannot provide reasonable reference data for home buyers, resulting in a lower user experience.

Method used

By obtaining the vector data and building data of the property, a two-dimensional outline is generated based on geographical coordinates, a 3D sand table is generated based on building elements, and the three-dimensional structure of the house is rendered according to the attributes selected by the user (such as lighting, building spacing, house type, price). , noise) to visualize the differences, and use the Three.js library to achieve interactive control and lighting rendering.

Benefits of technology

It improves the efficiency and user experience of 3D sand tables, allowing users to intuitively understand the attribute differences of each house, and provides a more favorable reference for buying a house.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118967906A_ABST
    Figure CN118967906A_ABST
Patent Text Reader

Abstract

The invention discloses a 3D sand table rendering method and device for a building. The method comprises the following steps: obtaining vector data and building data of the building; determining a two-dimensional contour of each building in the target modeling scene based on the geographic coordinates of each building; generating a 3D sand table of the building based on the building elements and the two-dimensional contour of each building; and rendering the three-dimensional structure of each house so as to visualize the difference of each house in the target attribute. According to the method, the 3D sand table is generated based on the vector data and the building data of the buildings, so that the generation efficiency of the 3D sand table is obviously improved, and the three-dimensional structure of each house is rendered to visualize the difference of each house in the target attribute, so that a user can visually and clearly know the difference of each house in the target attribute from the 3D sand table, and the user experience is improved. And a more favorable reference basis is provided for the user to purchase the house, so that the user experience of the 3D sand table is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer graphics processing, and in particular to a 3D sand table rendering method and device for a building. Background Art

[0002] In order to take care of home buyers, real estate developers usually make 3D sand tables of real estate projects so that users can view the 3D sand tables of real estate projects from various angles for reference. However, the existing 3D sand tables can only show the three-dimensional outline of real estate projects. For home buyers, the 3D sand tables of real estate projects show less content and weaker expression, and cannot provide reasonable reference data for home purchases, resulting in a low user experience. Summary of the invention

[0003] The present application provides a 3D sand table rendering method and device for a real estate project, the purpose of which is to render display content for 3D sand table that is helpful for home purchase reference, so as to improve the user experience.

[0004] In order to achieve the above objectives, this application provides the following technical solutions:

[0005] A 3D sand table rendering method for a building, comprising:

[0006] Obtaining vector data and building data of a building complex; the vector data represents the geographic coordinates of each building in the building complex; the building data includes building elements for describing each building;

[0007] Based on the geographic coordinates of each of the buildings, determine the two-dimensional outline of each building in the target modeling scene; the target modeling scene is generated based on the Three.js library;

[0008] Based on the architectural elements and two-dimensional outlines of each of the buildings, a 3D sand table of the building is generated; the 3D sand table includes a 3D model of each of the buildings; the 3D model includes three-dimensional structures and properties of multiple houses;

[0009] The three-dimensional structures of the houses are rendered to visualize the differences between the houses in the target attributes; the target attributes are attributes triggered and selected by the user.

[0010] Optionally, in a display screen corresponding to the target attribute, the three-dimensional structure of each of the houses is rendered to visualize the difference between the houses in the target attribute, including:

[0011] Obtaining the value of each of the houses under the target attribute;

[0012] Based on the value of each of the houses under the target attribute, the material matched by each of the houses is determined; wherein, multiple houses with the same value of the target attribute use the same material.

[0013] The three-dimensional structures of the houses are rendered using the materials matched to the houses, so as to visualize the differences between the houses in the target attributes.

[0014] Optionally, rendering the three-dimensional structure of each of the houses to visualize the difference between the houses in the target attribute includes:

[0015] If the target attribute is daylighting, obtain the daylighting value of each house at multiple time nodes in the specified time period;

[0016] Based on a preset correspondence between the daylight value and the material, determining the material matched by each of the houses at a plurality of time nodes shown in the specified time period;

[0017] According to the materials matched by each of the houses at multiple time nodes shown in the specified time period, the three-dimensional structure of each of the houses is rendered to visualize the lighting differences of each of the houses at multiple time nodes shown in the specified time period.

[0018] Optionally, the method further includes:

[0019] A preset lighting engine is called to perform shadow rendering on the 3D models of each of the buildings to visualize changes in the shadows of each of the buildings at multiple time nodes shown in the specified time period.

[0020] Optionally, rendering the three-dimensional structure of each of the houses to visualize the difference between the houses in the target attribute includes:

[0021] If the target attribute is the distance between buildings, determining the distance between the buildings based on the geographic coordinates of the buildings;

[0022] A top view of the 3D sand table is displayed, and the distances between the buildings are marked on the top view to visualize the differences in the distances between the buildings.

[0023] Optionally, rendering the three-dimensional structure of each of the houses to visualize the difference between the houses in the target attribute includes:

[0024] If the target attribute is house type, obtain the building area of ​​each house;

[0025] Based on the preset correspondence between the building area and the material, determining the material that matches the house type of each house;

[0026] According to the materials matched with each of the houses, the three-dimensional structure of each of the houses is rendered to visualize the differences in the house types of each of the houses.

[0027] Optionally, rendering the three-dimensional structure of each of the houses to visualize the difference between the houses in the target attribute includes:

[0028] If the target attribute is price, obtain the selling price of each house;

[0029] Based on the selling price of each of the houses, generating a sticker matching each of the houses;

[0030] According to the maps matched to the houses, the three-dimensional structures of the houses are rendered to visualize the differences in the selling prices of the houses.

[0031] Optionally, rendering the three-dimensional structure of each of the houses to visualize the difference between the houses in the target attribute includes:

[0032] If the target attribute is noise, obtaining the noise value of each of the houses;

[0033] Determining the material matching each of the houses based on a preset correspondence between the noise value and the material;

[0034] According to the materials matched by each of the houses, the three-dimensional structure of each of the houses is rendered to visualize the noise difference of each of the houses.

[0035] Optionally, the method further includes:

[0036] Calling the interactive control component of the Three.js library to generate an interactive event corresponding to the triggering operation of the user;

[0037] According to the interactive event, the 3D sandbox or the 3D model of any building is operated to visualize the display effects of each of the houses at different observation angles.

[0038] A 3D sand table rendering device for a building, comprising:

[0039] A data collection unit, used to obtain vector data and building data of a building; the vector data represents the geographic coordinates of each building in the building; the building data includes building elements for describing each building;

[0040] A contour determination unit, used to determine the two-dimensional contour of each building in a target modeling scene based on the geographic coordinates of each of the buildings; the target modeling scene is generated based on the Three.js library;

[0041] A model generation unit, for generating a 3D sand table of the building complex based on the architectural elements and two-dimensional outlines of each of the buildings; the 3D sand table includes a 3D model of each of the buildings; the 3D model includes three-dimensional structures and properties of multiple houses;

[0042] The model rendering unit is used to render the three-dimensional structure of each of the houses to visualize the difference between the houses in the target attribute; the target attribute is the attribute triggered and selected by the user.

[0043] Optionally, the model rendering unit is specifically used for:

[0044] Obtaining the value of each of the houses under the target attribute;

[0045] Based on the value of each of the houses under the target attribute, determine the material matched by each of the houses; wherein the multiple houses with the same value of the target attribute use the same material;

[0046] The three-dimensional structures of the houses are rendered using the materials matched to the houses, so as to visualize the differences between the houses in the target attributes.

[0047] Optionally, the model rendering unit is specifically used for:

[0048] If the target attribute is daylighting, obtain the daylighting value of each house at multiple time nodes in the specified time period;

[0049] Based on a preset correspondence between the daylight value and the material, determining the material matched by each of the houses at a plurality of time nodes shown in the specified time period;

[0050] According to the materials matched by each of the houses at multiple time nodes shown in the specified time period, the three-dimensional structure of each of the houses is rendered to visualize the lighting differences of each of the houses at multiple time nodes shown in the specified time period.

[0051] Optionally, the model rendering unit is further used for:

[0052] A preset lighting engine is called to perform shadow rendering on the 3D models of each of the buildings to visualize changes in the shadows of each of the buildings at multiple time nodes shown in the specified time period.

[0053] Optionally, the model rendering unit is specifically used for:

[0054] If the target attribute is the distance between buildings, determining the distance between the buildings based on the geographic coordinates of the buildings;

[0055] A top view of the 3D sand table is displayed, and the distances between the buildings are marked on the top view to visualize the differences in the distances between the buildings.

[0056] Optionally, the model rendering unit is specifically used for:

[0057] If the target attribute is house type, obtain the building area of ​​each house;

[0058] Based on the preset correspondence between the building area and the material, determining the material that matches the house type of each house;

[0059] According to the materials matched with each of the houses, the three-dimensional structure of each of the houses is rendered to visualize the differences in the house types of each of the houses.

[0060] Optionally, the model rendering unit is specifically used for:

[0061] If the target attribute is price, obtain the selling price of each house;

[0062] Based on the selling price of each of the houses, generating a sticker matching each of the houses;

[0063] According to the maps matched to the houses, the three-dimensional structures of the houses are rendered to visualize the differences in the selling prices of the houses.

[0064] Optionally, the model rendering unit is specifically used for:

[0065] If the target attribute is noise, obtaining the noise value of each of the houses;

[0066] Determining the material matching each of the houses based on a preset correspondence between the noise value and the material;

[0067] According to the materials matched by each of the houses, the three-dimensional structure of each of the houses is rendered to visualize the noise difference of each of the houses.

[0068] Optionally, the device further comprises:

[0069] The model interaction unit is used to call the interaction control component of the Three.js library to generate an interaction event corresponding to the user's triggering operation; according to the interaction event, the 3D sand table or the 3D model of any building is operated to visualize the display effect of each of the houses under different observation angles.

[0070] The technical solution provided by the present application obtains the vector data and building data of the real estate, determines the two-dimensional outline of each building in the target modeling scene based on the geographic coordinates of each building, generates a 3D sand table of the real estate based on the architectural elements and two-dimensional outline of each building, and renders the three-dimensional structure of each house to visualize the difference between each house in the target attributes. The present application generates a 3D sand table based on the vector data and building data of the real estate, so that the generation efficiency of the 3D sand table is significantly improved, and renders the three-dimensional structure of each house to visualize the difference between each house in the target attributes, so that users can intuitively and clearly understand the difference in the target attributes of each house from the 3D sand table, providing users with a more favorable reference basis for purchasing houses, thereby effectively improving the user experience of the 3D sand table. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0072] Figure 1 A schematic diagram of a flow chart of a 3D sand table rendering method for a building provided in an embodiment of the present application;

[0073] Figure 2 A schematic diagram of a flow chart of another 3D sand table rendering method for a building provided in an embodiment of the present application;

[0074] Figure 3 A schematic diagram of a flow chart of another 3D sand table rendering method for a building provided in an embodiment of the present application;

[0075] Figure 4 A schematic diagram of a flow chart of another 3D sand table rendering method for a building provided in an embodiment of the present application;

[0076] Figure 5 A schematic diagram of a flow chart of another 3D sand table rendering method for a building provided in an embodiment of the present application;

[0077] Figure 6 A schematic diagram of a flow chart of another 3D sand table rendering method for a building provided in an embodiment of the present application;

[0078] Figure 7 A schematic diagram of a flow chart of another 3D sand table rendering method for a building provided in an embodiment of the present application;

[0079] Figure 8A schematic diagram of the architecture of a 3D sand table rendering device for a building provided in an embodiment of the present application. DETAILED DESCRIPTION

[0080] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0081] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "comprise one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0082] like Figure 1 As shown, it is a flow chart of a 3D sand table rendering method of a building provided in an embodiment of the present application, which can be applied to the front end and includes the steps shown below.

[0083] S101: Obtain vector data and building data of a building.

[0084] The vector data represents the geographic coordinates of each building in the building complex, and the building data includes the building elements used to describe each building.

[0085] It should be noted that the front end can access the back end through the Internet, so as to obtain the vector data and building data of the building from the database of the back end.

[0086] In a possible implementation, the front end includes a browser or application running on a PC or a mobile terminal.

[0087] In some examples, the vector data of a building may be map data provided by a map provider, and the map data includes the geographic coordinates of each building in the building. The so-called geographic coordinates may be understood as longitude and latitude coordinates.

[0088] In some examples, the architectural elements shown in the architectural data of a real estate project include, but are not limited to, building boundaries, building height, floor height, number of floors, door and window locations, and other elements.

[0089] In a possible implementation manner, the data source of the building data may be a real estate developer or designer.

[0090] S102: Determine the two-dimensional outline of each building in the target modeling scene based on the geographic coordinates of each building.

[0091] Among them, the target modeling scene is generated based on the Three.js library.

[0092] It should be noted that the Three.js library is an easy-to-use and lightweight 3D library based on the webGL package. The Three.js library is a 3D engine that can run in the browser, and three-dimensional scenes can be created through the Three.js library. WebGL can be called a web graphics library, which is a JavaScript API that can render interactive 2D and 3D graphics in any compatible web browser.

[0093] It should be noted that the vector data of the building exists in a variety of data formats, such as SVG, GeoJSON and other formats. Before using the target modeling scene provided by the Three.js library to generate a two-dimensional outline that matches the geographic coordinates of the building, it is necessary to convert the vector data format and convert the vector data of the building into data that can be recognized by the Three.js library, so that the Three.js library can recognize the geographic coordinates of each building.

[0094] In some examples, the geographic coordinates of each building may be determined in the target modeling scene, and the coordinate points matched by each geographic coordinate may be connected using the Three.js library to obtain a two-dimensional outline of each building.

[0095] S103: Generate a 3D sand table of the building based on the architectural elements and two-dimensional outlines of each building.

[0096] Among them, the 3D sandbox includes 3D models of various buildings, and the 3D models include three-dimensional structures and properties of multiple houses.

[0097] In some examples, the geometry function or buffer geometry function of the Three.js library may be used to generate a 3D model of each building based on the two-dimensional outline of each building and in combination with the architectural elements of each building.

[0098] It should be noted that the attributes of each house can be directly displayed or hidden, and the types of attributes include but are not limited to lighting, building spacing, apartment type, price, noise, house number, etc. It is understandable that the various attributes of a house are information that buyers refer to when purchasing a house.

[0099] In some examples, the properties of a house may be derived from the building data of a real estate project. By analyzing the architectural elements of each building shown in the architectural data, various properties of all the houses in each building may be obtained.

[0100] It can be understood that the 3D sand table generated by the Three.js library requires less data and is a lightweight modeling. When the vector data and building data of the building are updated, a new 3D sand table can be regenerated based on the updated vector data and building data, thereby improving the timeliness and reliability of the 3D sand table. Moreover, the modeling process is lightweight, and the front-end generates the 3D sand table more efficiently, which reduces the user's waiting time, thereby effectively improving the user experience of the 3D sand table.

[0101] In a possible implementation, the three-dimensional structure of the house may be a geometric body, such as a cuboid or a cube.

[0102] In a possible implementation, the 3D model of the building may be a geometric body, such as a cuboid or a cube.

[0103] In a possible implementation, the three-dimensional structures of all houses under the same building can be combined into a 3D model of the same building.

[0104] S104: Rendering the three-dimensional structures of the houses to visualize the differences in target attributes of the houses.

[0105] The target attribute is the attribute selected by the user.

[0106] It can be understood that the so-called rendering can be to change the material of the three-dimensional structure (such as color, texture, smoothness, transparency, etc.). By rendering the three-dimensional structure of each house, the changes in the target attributes of different houses can be visualized, so that users can intuitively view the purchase value of different houses, providing users with an effective reference for buying a house.

[0107] In some examples, the Three.js library may be used to pre-determine a corresponding material mapping mechanism, which is used to determine the material that matches each house based on the value of each house on the target attribute.

[0108] It should be noted that after determining the materials that match each house, the materials that match each house can be rendered into the three-dimensional structure of each house through the rendering function of the Three.js library.

[0109] Optionally, render the 3D structure of each house to visualize the differences in the target attributes of each house. Figure 2 Steps shown and explanations of the steps.

[0110] It should be noted that in order to facilitate users to view the 3D sand table or the 3D model of any building from various perspectives, thereby improving the user experience, the Three.js library can be used to design corresponding interactive effects for the 3D sand table.

[0111] Optionally, after generating a 3D sand table of a real estate project, the interactive control component of the Three.js library may be called to generate interactive events corresponding to the user's triggering operations. According to the interactive events, the 3D sand table or the 3D model of any building may be operated to visualize the display effects of each house at different observation angles.

[0112] It is understandable that users trigger operations (such as mouse operations or touch screen click operations) to send different interactive events to the 3D sandbox to visualize the display effects of each house at different observation angles. The integration of the interactive control component of the Three.js library enables users to freely roam, zoom and pan the 3D sandbox. In addition, the LOD technology, scene culling and GPU acceleration provided in the interactive control component can also ensure smooth rendering performance under various hardware and network conditions.

[0113] Combination Figure 2-Figure 7 The method shown has the following beneficial effects for the 3D sand table generated by using the Three.js library: first, by parsing and converting the vector data and architectural data of the building, the production time of the 3D sand table is shortened; second, manual intervention is reduced, and the design flexibility and efficiency are improved; third, the design of lighting and shadows is intervened to enhance the authenticity and visual effects of the 3D sand table; fourth, the interaction optimization and performance are reasonably optimized.

[0114] The process shown in S101-S104 above generates a 3D sand table based on the vector data and building data of the real estate, so that the efficiency of generating the 3D sand table is significantly improved, and the three-dimensional structure of each house is rendered to visualize the differences in target attributes of each house, so that users can intuitively and clearly understand the differences in target attributes of each house from the 3D sand table, providing users with a more favorable reference basis for purchasing a house, thereby effectively improving the user experience of the 3D sand table.

[0115] like Figure 2 As shown, it is a flow chart of another method for 3D sand table rendering of a building provided in an embodiment of the present application, including the following steps.

[0116] S201: Obtain the value of each house under the target attribute.

[0117] The value of each house under the target attribute can be directly obtained from the backend, or the value of each house under the target attribute can be read from the locally cached building data.

[0118] S202: Determine the material that matches each house based on the value of each house under the target attribute.

[0119] Among them, multiple houses with the same target attribute value use the same material.

[0120] In some examples, for each type of attribute, a corresponding material relationship table (the material relationship table includes materials corresponding to multiple attribute values) can be pre-formulated, and the material relationship table corresponding to each type of attribute can be stored in the back end. The front end can directly obtain the target material relationship table corresponding to the target attribute from the back end, and query the target material relationship table to determine the materials that match each house, or determine the materials that match each house based on the back end query of the target material relationship table and feedback to the front end.

[0121] S203: Rendering the three-dimensional structures of the houses using the materials matched to the houses, so as to visualize the differences in target attributes of the houses.

[0122] Among them, the three-dimensional structure of each house is rendered using the materials that match each house to visualize the differences in target attributes of each house. This can provide users with display content that is helpful for home purchase reference. Users can intuitively feel the houses that meet their own home purchase intentions, which effectively improves the user experience of the 3D sand table of the real estate project.

[0123] Optionally, for scenes where the target attribute is daylighting, the rendering process of each house can be found in Figure 3 Steps shown and explanations of the steps.

[0124] Optionally, for scenes where the target attribute is the distance between buildings, the rendering process of each house can be found in Figure 4 Steps shown and explanations of the steps.

[0125] Optionally, for scenes where the target attribute is house type, the rendering process of each house can be found in Figure 5 Steps shown and explanations of the steps.

[0126] Optionally, for a scenario where the target attribute is price, the rendering process of each house can be seen in Figure 6 Steps shown and explanations of the steps.

[0127] Optionally, for scenes where the target attribute is noise, the rendering process of each house can be seen in Figure 7 Steps shown and explanations of the steps.

[0128] The process shown in the above S201-S203, by rendering the material matching the value of each house on the target attribute on the three-dimensional structure of each house in the 3D sand table, enables the user to intuitively and clearly understand the difference in the target attribute of each house from the 3D sand table, and provides a more favorable reference basis for the user to buy a house, thereby effectively improving the user experience of the 3D sand table.

[0129] like Figure 3 As shown, it is a flow chart of another method for 3D sand table rendering of a building provided in an embodiment of the present application, including the following steps.

[0130] S301: If the target attribute is daylighting, obtain the daylighting values ​​of each house at multiple time nodes shown in a specified time period.

[0131] Among them, the daylighting value can represent the daylighting effect of the house. In a possible implementation method, the higher the daylighting value, the better the daylighting effect of the house, and the deeper the user's purchase intention; the lower the daylighting value, the worse the daylighting effect of the house, and the shallower the user's purchase intention.

[0132] In some examples, the specified time period can be used to represent different seasons. The sunshine time in different seasons is different. Therefore, different seasons can be set so that users can know the lighting value of each house in different seasons.

[0133] In possible implementations, the types of designated time periods may include the vernal equinox, the summer solstice, the autumnal equinox, and the winter solstice.

[0134] In some examples, the multiple time nodes shown in the specified time period may be 15 hours from 5 am to 7 pm (ie, the time from when the sun rises to when it sets).

[0135] In some examples, the architectural data of a building may include the daylighting values ​​of each house at multiple time nodes shown in a specified time period. After obtaining the architectural data of the building, the daylighting values ​​of each house at multiple time nodes shown in the specified time period can be obtained by parsing the architectural data.

[0136] S302: Based on a preset correspondence between the daylight value and the material, determine the material matched by each house at multiple time nodes shown in the specified time period.

[0137] The so-called material includes but is not limited to a combination of color, texture, smoothness, transparency, and brightness.

[0138] In some examples, the material matched at 7 a.m. during the spring equinox is yellow with a brightness of 20, the material matched at 12 noon during the spring equinox is yellow with a brightness of 80, and the material matched at 7 a.m. during the winter solstice is yellow with a brightness of 5.

[0139] S303: Rendering the three-dimensional structure of each house according to the material matched by each house at multiple time nodes shown in the specified time period, so as to visualize the difference in lighting of each house at multiple time nodes shown in the specified time period.

[0140] Among them, in the specified display interface, any building in the 3D sandbox can support browsing operations from an independent perspective. By setting the clock to show time changes, any building can change with time and display the matching materials at multiple time nodes shown in a specified time period, so as to visualize the lighting differences of each house in any building at multiple time nodes shown in a specified time period.

[0141] It can be understood that by visualizing the differences in lighting for each house at multiple time nodes shown in a specified time period, users can more clearly understand the lighting advantages of each house, providing a more favorable reference for users to buy a house.

[0142] S304: calling a preset lighting engine to perform shadow rendering on the 3D models of each building to visualize changes in the shadows of each building at multiple time nodes shown in a specified time period.

[0143] Among them, the preset lighting engine is an engine developed based on the physical rendering characteristics of the Three.js library. Based on the physical rendering characteristics of the Three.js library, the lighting information contained in the vector data can be used to render the shadow of the 3D model to simulate the shadow changes of the building under different lighting and enhance the realism of the 3D model.

[0144] It should be noted that in the specified display interface, any building in the 3D sandbox can support browsing operations from an independent perspective, and different lighting can be set through the lighting engine to simulate the shadow changes of any building under different lighting.

[0145] The process shown in the above S301-S304 simulates the lighting of each house in the 3D sand table at different time nodes, and the shadow changes of any building under different lighting, so that users can intuitively and clearly understand the lighting effect of each house from the 3D sand table, providing users with a more favorable reference basis for purchasing a house, thereby effectively improving the user experience of the 3D sand table.

[0146] like Figure 4 As shown, it is a flow chart of another method for 3D sand table rendering of a building provided in an embodiment of the present application, including the following steps.

[0147] S401: If the target attribute is the distance between buildings, determine the distance between the buildings based on the geographic coordinates of the buildings.

[0148] Among them, the distance between buildings represents the distance between buildings. Appropriate distance between buildings is also an important reference for users when buying a house.

[0149] It is understandable that after the geographic coordinates of each building are determined based on the vector data, the distances between the buildings can be calculated through corresponding calculation logic.

[0150] S402: Displaying a top view of the 3D sand table, and marking the distances between the buildings on the top view to visualize the differences in the distances between the buildings.

[0151] The overhead view of the 3D sand table is used to display the distance between each building. As an intuitive perspective, the overhead view can observe the distance between each building from a bird's-eye view, which is objective and reliable. In addition, the building number of each building and the apartment type included in each building can also be marked on the overhead view, providing users with more reference information.

[0152] The process shown in S401-S402 above, by marking the distance between each building on the top view of the 3D sand table, allows the user to intuitively and clearly understand the distance between each building from the 3D sand table, providing a more favorable reference for the user to buy a house, thereby effectively improving the user experience of the 3D sand table.

[0153] like Figure 5 As shown, it is a flow chart of another method for 3D sand table rendering of a building provided in an embodiment of the present application, including the following steps.

[0154] S501: If the target attribute is house type, obtain the building area of ​​each house.

[0155] Among them, the house type represents the style of the house and is the most important reference for users when buying a house.

[0156] In some examples, different apartment types correspond to different building areas, or different apartment types may correspond to the same building area. The building area is merely a way to characterize the apartment type. Other methods shown in apartment type terms, such as north-south orientation, two bedrooms and one living room, etc., can also be used instead of the building area to characterize the apartment type of the house.

[0157] S502: Based on the preset correspondence between the building area and the material, determine the material that matches each house in terms of the house type.

[0158] Among them, the materials matched by multiple houses belonging to the same building area can be the same, and the materials matched by houses with different building areas are different.

[0159] In some examples, the material that matches a house of 100 square meters may be blue, and the material that matches a house of 140 square meters may be red.

[0160] S503: Rendering the three-dimensional structure of each house according to the material matched with each house, so as to visualize the difference between the house types of each house.

[0161] Among them, in the designated display interface, any building in the 3D sandbox can support browsing operations from an independent perspective. According to the materials matched by each house, the three-dimensional structure of each house is rendered to visualize the differences in the house types of each house in any building.

[0162] It is understandable that by visualizing the building area of ​​each house, users can more clearly understand the differences in the layout of each house, providing users with a more favorable reference for purchasing a house.

[0163] The process shown in the above S501-S503, by rendering the corresponding materials matching the layout of each house on the three-dimensional structure of each house in the 3D sand table, allows the user to intuitively and clearly understand the difference in layout of each house from the 3D sand table, providing a more favorable reference basis for the user to buy a house, thereby effectively improving the user experience of the 3D sand table.

[0164] like Figure 6 As shown, it is a flow chart of another method for 3D sand table rendering of a building provided in an embodiment of the present application, including the following steps.

[0165] S601: If the target attribute is price, obtain the selling price of each house.

[0166] Among them, the selling price of each house can be obtained from the construction data of the real estate project.

[0167] In some examples, if the house has been purchased by someone else, the selling price may be set to sold out, indicating that the house has been sold.

[0168] In some examples, the selling price of a house may be set to the average price per square meter of the house, for example, RMB 22,500 per square meter.

[0169] S602: Generate a map matching each house based on the selling price of each house.

[0170] Among them, the so-called stickers may include a text description of the selling price, which is used to visually display the selling price of the house.

[0171] S603: Rendering the three-dimensional structure of each house according to the texture matched with each house, so as to visualize the difference in selling price of each house.

[0172] Here, the three-dimensional structure of the house is rendered according to the map matched with the house, which can be understood as covering the outer surface of the three-dimensional structure with the map so that the selling price of the house can be directly displayed.

[0173] The process shown in S601-S603 above renders a map of the selling price of each house on the three-dimensional structure of each house in the 3D sand table, so that the user can clearly and intuitively understand the price difference of each house from the 3D sand table, providing a more favorable reference for the user to buy a house, thereby effectively improving the user experience of the 3D sand table.

[0174] like Figure 7 As shown, it is a flow chart of another method for 3D sand table rendering of a building provided in an embodiment of the present application, including the following steps.

[0175] S701: If the target attribute is noise, obtain the noise value of each house.

[0176] Among them, the so-called noise, as an indicator of housing comfort, is also an important reference for users when buying a house.

[0177] Generally speaking, the noise level of each house can be obtained from the building data of the complex.

[0178] S702: Determine the material that matches each house based on the preset correspondence between the noise value and the material.

[0179] Among them, the materials matched by multiple houses with the same noise value are the same, and the materials matched by houses with different noise values ​​are different.

[0180] S703: Rendering the three-dimensional structure of each house according to the material matched with each house, so as to visualize the noise difference of each house.

[0181] Among them, in the designated display interface, any building in the 3D sandbox can support browsing operations from an independent perspective. According to the materials matched by each house, the three-dimensional structure of each house is rendered to visualize the noise differences of each house in any building.

[0182] It is understandable that by visualizing the noise values ​​of each house, users can more clearly understand the noise differences of each house, providing users with a more favorable reference basis for purchasing a house.

[0183] The process shown in S701-S703 above renders materials that match the noise value of each house on the three-dimensional structure of each house in the 3D sand table, so that users can clearly and intuitively understand the noise difference of each house from the 3D sand table, providing users with a more favorable reference for purchasing a house, thereby effectively improving the user experience of the 3D sand table.

[0184] like Figure 8 As shown, it is a schematic diagram of the architecture of a 3D sand table rendering device of a building provided in an embodiment of the present application, including the units shown below.

[0185] The data collection unit 100 is used to obtain vector data and building data of a building complex; the vector data represents the geographic coordinates of each building in the building complex; the building data includes building elements for describing each building.

[0186] The outline determination unit 200 is used to determine the two-dimensional outline of each building in the target modeling scene based on the geographic coordinates of each building; the target modeling scene is generated based on the Three.js library.

[0187] The model generation unit 300 is used to generate a 3D sand table of the building based on the architectural elements and two-dimensional outlines of each building; the 3D sand table includes a 3D model of each building; the 3D model includes three-dimensional structures and properties of multiple houses.

[0188] The model rendering unit 400 is used to render the three-dimensional structure of each house to visualize the difference between each house in target attributes; the target attribute is the attribute triggered and selected by the user.

[0189] Optionally, the model rendering unit 400 is specifically used to: obtain the value of each house under the target attribute; determine the material matched by each house based on the value of each house under the target attribute; wherein multiple houses with the same value of the target attribute use the same material; and render the three-dimensional structure of each house using the material matched by each house to visualize the difference between the houses in the target attribute.

[0190] Optionally, the model rendering unit 400 is specifically used to: if the target attribute is lighting, obtain the lighting value of each house at multiple time nodes shown in the specified time period; determine the material matched by each house at multiple time nodes shown in the specified time period based on a preset correspondence between the lighting value and the material; render the three-dimensional structure of each house according to the material matched by each house at the multiple time nodes shown in the specified time period, so as to visualize the lighting differences of each house at the multiple time nodes shown in the specified time period.

[0191] Optionally, the model rendering unit 400 is further used to call a preset lighting engine to perform shadow rendering on the 3D model of each building to visualize changes in the shadow of each building at multiple time nodes shown in a specified time period.

[0192] Optionally, the model rendering unit 400 is specifically used to: if the target attribute is the distance between buildings, determine the distance between each building based on the geographic coordinates of each building; display a top view of the 3D sand table, and mark the distance between each building on the top view to visualize the difference in the distance between each building.

[0193] Optionally, the model rendering unit 400 is specifically used to: if the target attribute is house type, obtain the building area of ​​each house; determine the material that matches each house in the house type based on a preset correspondence between the building area and the material; and render the three-dimensional structure of each house according to the material that matches each house to visualize the differences in the house types of each house.

[0194] Optionally, the model rendering unit 400 is specifically used to: if the target attribute is price, obtain the selling price of each house; based on the selling price of each house, generate a map matching each house; according to the map matching each house, render the three-dimensional structure of each house to visualize the difference in the selling price of each house.

[0195] Optionally, the model rendering unit 400 is specifically used to: if the target attribute is noise, obtain the noise value of each house; determine the material matched by each house based on a preset correspondence between the noise value and the material; and render the three-dimensional structure of each house according to the material matched by each house to visualize the noise difference of each house.

[0196] The model interaction unit 500 is used to call the interaction control component of the Three.js library to generate an interaction event corresponding to the user's triggering operation; according to the interaction event, the 3D sand table or the 3D model of any building is operated to visualize the display effects of each house under different observation angles.

[0197] Each unit shown above generates a 3D sand table based on the vector data and building data of the real estate, which significantly improves the efficiency of 3D sand table generation, and renders the three-dimensional structure of each house to visualize the differences in target attributes of each house, so that users can intuitively and clearly understand the differences in target attributes of each house from the 3D sand table, providing users with a more favorable reference basis for purchasing a house, thereby effectively improving the user experience of the 3D sand table.

[0198] The present application also provides a computer-readable storage medium, which includes a stored program, wherein the program executes the 3D sand table rendering method of the building provided by the present application.

[0199] The present application also provides an electronic device, including: a processor, a memory and a bus. The processor and the memory are connected via a bus, the memory is used to store programs, and the processor is used to run the programs, wherein the 3D sand table rendering method of the building provided by the present application is executed when the programs are run.

[0200] In addition, the functions described above in the embodiments of the present application may be at least partially performed by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0201] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

[0202] Although several specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present application. Certain features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination.

[0203] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. A 3D sand table rendering method for a building, characterized in that: include: Obtain vector data and building data of the property; The vector data represents the geographic coordinates of each building in the building; The building data includes building elements for describing each of the buildings; Determine the two-dimensional outline of each building in the target modeling scene based on the geographic coordinates of each of the buildings; The target modeling scene is generated based on the Three.js library; Based on the architectural elements and two-dimensional outlines of each of the buildings, a 3D sand table of the building is generated; the 3D sand table includes a 3D model of each of the buildings; the 3D model includes three-dimensional structures and properties of multiple houses; Rendering the three-dimensional structure of each of the houses to visualize the differences between the houses in terms of the target attributes; The target attribute is an attribute triggered and selected by the user.

2. The method according to claim 1, characterized in that In a display screen corresponding to the target attribute, the three-dimensional structure of each of the houses is rendered to visualize the difference between the houses in the target attribute, including: Obtaining the value of each of the houses under the target attribute; Based on the value of each of the houses under the target attribute, determine the material matched by each of the houses; wherein the multiple houses with the same value of the target attribute use the same material; The three-dimensional structures of the houses are rendered using the materials matched to the houses, so as to visualize the differences between the houses in the target attributes.

3. The method according to claim 1, characterized in that Rendering the three-dimensional structures of the houses to visualize the differences between the houses in the target attributes includes: If the target attribute is daylighting, obtain the daylighting value of each house at multiple time nodes in the specified time period; Based on a preset correspondence between the daylight value and the material, determining the material matched by each of the houses at a plurality of time nodes shown in the specified time period; According to the materials matched by each of the houses at multiple time nodes shown in the specified time period, the three-dimensional structure of each of the houses is rendered to visualize the lighting differences of each of the houses at multiple time nodes shown in the specified time period.

4. The method according to claim 3, characterized in that The method further comprises: A preset lighting engine is called to perform shadow rendering on the 3D models of each of the buildings to visualize changes in the shadows of each of the buildings at multiple time nodes shown in the specified time period.

5. The method according to claim 1, characterized in that Rendering the three-dimensional structures of the houses to visualize the differences between the houses in the target attributes includes: If the target attribute is the distance between buildings, determining the distance between the buildings based on the geographic coordinates of the buildings; A top view of the 3D sand table is displayed, and the distances between the buildings are marked on the top view to visualize the differences in the distances between the buildings.

6. The method according to claim 1, characterized in that Rendering the three-dimensional structures of the houses to visualize the differences between the houses in the target attributes includes: If the target attribute is house type, obtain the building area of ​​each house; Based on the preset correspondence between the building area and the material, determining the material that matches the house type of each house; According to the materials matched with each of the houses, the three-dimensional structure of each of the houses is rendered to visualize the differences in the house types of each of the houses.

7. The method according to claim 1, characterized in that Rendering the three-dimensional structures of the houses to visualize the differences between the houses in the target attributes includes: If the target attribute is price, obtain the selling price of each house; Based on the selling price of each of the houses, generating a sticker matching each of the houses; According to the maps matched to the houses, the three-dimensional structures of the houses are rendered to visualize the differences in the selling prices of the houses.

8. The method according to claim 1, characterized in that Rendering the three-dimensional structures of the houses to visualize the differences between the houses in the target attributes includes: If the target attribute is noise, obtaining the noise value of each of the houses; Determining the material matching each of the houses based on a preset correspondence between the noise value and the material; According to the materials matched by each of the houses, the three-dimensional structure of each of the houses is rendered to visualize the noise difference of each of the houses.

9. The method according to claim 1, characterized in that: The method further comprises: Calling the interactive control component of the Three.js library to generate an interactive event corresponding to the triggering operation of the user; According to the interactive event, the 3D sandbox or the 3D model of any building is operated to visualize the display effects of each of the houses at different observation angles.

10. A 3D sand table rendering device for a building, characterized in that: include: A data collection unit, used to obtain vector data and building data of a building; The vector data represents the geographic coordinates of each building in the building; The building data includes building elements for describing each of the buildings; A contour determination unit, used to determine the two-dimensional contour of each building in the target modeling scene based on the geographic coordinates of each of the buildings; The target modeling scene is generated based on the Three.js library; A model generation unit, for generating a 3D sand table of the building complex based on the architectural elements and two-dimensional outlines of each of the buildings; the 3D sand table includes a 3D model of each of the buildings; the 3D model includes three-dimensional structures and properties of multiple houses; A model rendering unit, used for rendering the three-dimensional structure of each of the houses to visualize the difference between the houses in the target attributes; The target attribute is an attribute triggered and selected by the user.