Virtual building model generation method and device, equipment, medium and program

By obtaining and using building structure parameters to generate spatial geometry and performing structural division, the problems of low accuracy and poor adaptability of building model generation in the prior art are solved, and efficient and accurate virtual building model generation is achieved.

CN119538364AActive Publication Date: 2025-02-28NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411548970.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-02-28
Estimated Expiration
2044-10-31

AI Technical Summary

Technical Problem

In the prior art, the accuracy of building model generation is low, and the programmatic generation method has poor adaptability to different types of buildings, so it is impossible to generate refined building profiles.

Method used

By obtaining architectural structure parameters, including spatial profile parameters, structural control parameters and placement parameters of virtual connected entity models, the spatial geometry is generated, structural division is performed, a virtual segmented entity model is generated, and the virtual connected entity model is loaded to generate a high-precision virtual architectural model.

Benefits of technology

It improves the efficiency and accuracy of the generation of architectural models, realizes diversified generation of different parameter models, and expands the scenario of building model generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119538364A_ABST
    Figure CN119538364A_ABST
Patent Text Reader

Abstract

The invention provides a virtual building model generation method and device, equipment, a medium and a program, and relates to the technical field of games. The method comprises the following steps: acquiring at least one group of building structure parameters, wherein the building structure parameters at least comprise a space contour parameter, a structure control parameter and a placement parameter of a virtual connected entity model; generating a space geometry by adopting the space contour parameters; performing structure division on the space geometry by adopting the structure control parameters to obtain a plurality of space regions; generating a virtual segmentation entity model at a target position of a first space region in the plurality of space regions to obtain a basic model of each space region; according to the placement parameters of the virtual connected entity model, the virtual connected entity model is loaded to the basic model of the second space area in the multiple space areas, and a virtual building model corresponding to the building structure parameters is obtained. Therefore, the building model generation precision is improved, and the building model generation scene is expanded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of game technology, and in particular to a method, device, equipment, medium and program for generating a virtual building model. Background Art

[0002] In the traditional game model production process, steps such as manual implementation of game models, mapping, and importing into the game are required.

[0003] There are also methods of programmatically generating buildings in the prior art, but such programmatic generation methods can only generate fixed buildings and are not adaptable to other types of buildings. Moreover, most programmatic generation methods only generate the appearance of the building without a refined building outline.

[0004] Therefore, a building generation method with high adaptability and high precision is urgently needed. Summary of the invention

[0005] In view of this, the embodiments of the present application provide a method, device, equipment, medium and program for generating a virtual building model to solve the problem of low accuracy in generating a building model.

[0006] In a first aspect, an embodiment of the present application provides a method for generating a virtual building model, the method comprising:

[0007] Acquire at least one set of building structure parameters, wherein the building structure parameters at least include: space outline parameters, structure control parameters, and placement parameters of a virtual connected entity model;

[0008] Using the spatial contour parameters, generating a spatial geometric body;

[0009] Using the structural control parameters, structurally dividing the spatial geometric body to obtain a plurality of spatial regions;

[0010] generating a virtual segmentation entity model at a target position of a first spatial region among the plurality of spatial regions to obtain a basic model of each spatial region;

[0011] According to the placement parameters of the virtual connected entity model, the virtual connected entity model is loaded onto a basic model of a second space area among the multiple space areas to obtain a virtual building model corresponding to the building structure parameters.

[0012] In a second aspect, an embodiment of the present application provides a virtual building model generation device, the device comprising:

[0013] An acquisition module is used to acquire at least one set of building structure parameters, where the building structure parameters at least include: space outline parameters, structure control parameters, and placement parameters of a virtual connected entity model;

[0014] A generating module, used for generating a spatial geometric body by using the spatial contour parameters;

[0015] A division module, used to perform structural division on the spatial geometric body by using the structural control parameters to obtain a plurality of spatial regions;

[0016] A segmentation module, used for generating a virtual segmentation entity model at a target position of a first spatial region among the multiple spatial regions to obtain a basic model of each spatial region;

[0017] The loading module is used to load the virtual connected entity model onto the basic model of the second space area among the multiple space areas according to the placement parameters of the virtual connected entity model, so as to obtain a virtual building model corresponding to the building structure parameters.

[0018] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the virtual building model generation method as described in any one of the first aspects.

[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the virtual building model generation method as described in any one of the first aspects are executed.

[0020] In a fifth aspect, an embodiment of the present application provides a computer program instruction, which, when executed by a processor, implements the steps of the virtual building model generation method as described in any one of the first aspects.

[0021] Compared with the prior art, this application has the following beneficial effects:

[0022] The present application provides a method, device, equipment, medium and program for generating a virtual building model. The method obtains at least one set of building structure parameters, which at least include: space outline parameters, structure control parameters, and placement parameters of a virtual connected entity model; uses the space outline parameters to generate a space geometry; uses the structure control parameters to perform structural division on the space geometry to obtain multiple space regions; generates a virtual segmented entity model at a target position of a first space region among multiple space regions to obtain a basic model of each space region; and according to the placement parameters of the virtual connected entity model, loads the virtual connected entity model onto the basic model of a second space region among multiple space regions to obtain a virtual building model corresponding to the building structure parameters. Thus, by randomly setting the building structure parameters, the generation efficiency of the building model is improved, the generation accuracy of the building model is improved, and models with different parameters are generated in a diversified manner, expanding the building model generation scenario. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0024] Figure 1 A flowchart of a method for generating a virtual building model provided in an embodiment of the present application;

[0025] Figure 2 A schematic flow chart of a method for structural division of a spatial geometric body is also provided for the embodiment of the present application;

[0026] Figure 3 A schematic diagram of the spatial geometric body segmentation provided in an embodiment of the present application;

[0027] Figure 4 A schematic flow chart of a space merging method is also provided for the embodiment of the present application;

[0028] Figure 5 A schematic flow chart of a wall setting method is also provided for the embodiment of the present application;

[0029] Figure 6 A schematic flow chart of a door and window setting method is also provided for the embodiment of the present application;

[0030] Figure 7 A flowchart of a virtual scene generation method is also provided for the embodiment of the present application;

[0031] Figure 8A schematic diagram of a virtual building model generating device provided in an embodiment of the present application;

[0032] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0033] Icons: 801 - acquisition module, 802 - generation module, 803 - division module, 804 - segmentation module, 805 - loading module, 901 - processor, 902 - storage medium, 903 - bus. DETAILED DESCRIPTION

[0034] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0035] In one embodiment of the present application, a virtual building model generation method can be run on a local terminal device or a server. When a virtual building model generation method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.

[0036] In a possible implementation, an embodiment of the present invention provides a method for generating a virtual building model, providing a user interface through a terminal device, wherein the terminal device may be the local terminal device mentioned above, or may be a client device in the cloud interaction system mentioned above.

[0037] Before explaining the virtual building model generation method provided in the embodiment of the present application, some professional terms are first introduced.

[0038] A "model" in a game is a complete representation of a virtual object, be it a character, a car, or a house. These models are made up of many small three-dimensional points, which are called "vertices". Vertices are connected together to form triangles, and then these triangles are combined to form the shape of the object. So, the relationship between models and vertices is like a statue is made up of many small parts.

[0039] Procedural Content Generation (PCG) refers to the indirect control of generated content through logic and parameters, bypassing direct control.

[0040] Houdini: A 3D software that is completely designed based on the node model. Its structure, operation method, etc. are very different from other 3D software.

[0041] UV: Texture coordinates, used in game development to identify the position of each vertex on the model on the texture map. Imagine a texture map is placed on the surface of the model. The UV coordinates tell the program how to map the texture map to the model, just like putting a sticker on the surface of the model. UV coordinates are expressed in the form of (U, V), where U represents the horizontal position and V represents the vertical position.

[0042] Figure 1 A flowchart of a method for generating a virtual building model provided in an embodiment of the present application.

[0043] like Figure 1 As shown, the method includes:

[0044] S101. Obtain at least one set of building structure parameters.

[0045] At least one set of building structure parameters at least includes: space outline parameters, structure control parameters, and placement parameters of the virtual connected entity model.

[0046] By acquiring at least one set of randomly set building structure parameters, at least one virtual building model can be generated in a subsequent step to make the building model more diverse.

[0047] The spatial outline parameters control the overall size of the building.

[0048] Structural control parameters control the division of the building's internal structure into several parts.

[0049] The placement parameters of the virtual connected entity model are the location and number of windows and doors.

[0050] S102. Generate a spatial geometric body using spatial contour parameters.

[0051] Using the spatial contour parameters, a spatial geometry is generated through a box to obtain a geometry with a certain size.

[0052] For example, using the spatial contour parameters, a spatial geometry is generated through a box to obtain a geometry with a certain size. For PCG buildings, a spatial geometry composed of points, lines and surfaces is used to describe the basic structure of the building. In Houdini software, these points, lines and surfaces can be controlled using spatial contour parameters. It can be understood as using surfaces to represent walls and using points to represent doors and windows on the wall.

[0053] S103, using structural control parameters to perform structural division on the spatial geometric body to obtain multiple spatial regions.

[0054] According to the structural control parameters, it can be determined how many parts the spatial geometric body is divided into and how to perform structural division on the spatial geometric body.

[0055] It should be noted that in actual buildings, some spatial areas are empty areas. For example, the second floor of a building has rooms and an empty platform.

[0056] In this embodiment, an attribute emptyspace is defined, which means empty space. By setting emptyspace, an empty space area can be generated. For example, when emptyspaces[] = {"1_4", "2_1"} is defined, the corresponding 1-layer 4 area and 2-layer 1 area will become empty areas.

[0057] S104 , generating a virtual segmentation entity model at a target position of a first spatial region among the multiple spatial regions to obtain a basic model of each spatial region.

[0058] The target position of the first space area may be a wall position, a ceiling position, or a floor position of a building. The virtual segmentation entity model is a wall, a ceiling, and a floor.

[0059] For example, the first spatial area is the area where "walls, ceilings, and floors" are placed. "Walls, ceilings, and floors" can form the basic framework of the entire building model. In other words, the first spatial area forms the basic framework of the entire building model. That is, the basic model of each spatial area obtained has a fixed size and contains the building model of walls, ceilings, and floors.

[0060] S105. According to the placement parameters of the virtual connected entity model, the virtual connected entity model is loaded onto the basic model of the second space area among the multiple space areas to obtain a virtual building model corresponding to the building structure parameters.

[0061] The second spatial area is the area other than the first spatial area in the entire spatial area. The second spatial area is the location where the virtual connected entity model can be set. By loading the virtual connected entity model onto the base model of the second spatial area in the plurality of spatial areas, the obtained virtual building model includes the content of the building structure parameters, and the entire virtual building model is more three-dimensional.

[0062] Thus, by randomly setting the building structure parameters, the generation efficiency of the building model is improved, the generation accuracy of the building model is improved, and models with different parameters are generated in a diversified manner, which expands the building model generation scenarios.

[0063] In summary, in this embodiment, at least one set of building structure parameters is obtained, and the building structure parameters at least include: space outline parameters, structure control parameters, and placement parameters of virtual connected entity models; the space outline parameters are used to generate a space geometry; the structure control parameters are used to structurally divide the space geometry to obtain multiple space regions; a virtual segmentation entity model is generated at a target position of a first space region among multiple space regions to obtain a basic model of each space region; according to the placement parameters of the virtual connected entity model, the virtual connected entity model is loaded onto the basic model of a second space region among multiple space regions to obtain a virtual building model corresponding to the building structure parameters. Thus, by randomly setting the building structure parameters, the generation efficiency of the building model is improved, the generation accuracy of the building model is improved, and models with different parameters are generated in a diversified manner, expanding the building model generation scene.

[0064] In the above Figure 1 On the basis of the corresponding embodiments, the embodiments of the present application also provide a method for structural division of a spatial geometric body. Figure 2 A flowchart of a method for structural division of a spatial geometric body is also provided for the embodiment of the present application.

[0065] like Figure 2 As shown, the structural control parameter is a position parameter of a preset segmentation point. In S103, the structural control parameter is used to perform structural division on the spatial geometric body to obtain multiple spatial regions, including:

[0066] S201. Based on position parameters of preset segmentation points, generate a plurality of segmentation surfaces passing through preset segmentation points on a spatial geometric body.

[0067] In a three-dimensional model, a division point is determined, and three division planes can be determined along the horizontal, vertical, and vertical directions of the division point. If multiple division point positions are determined, multiple division planes can be determined along the horizontal, vertical, and vertical directions of multiple division points.

[0068] S202. Structural division is performed on the spatial geometric body along multiple segmentation planes to obtain multiple spatial regions.

[0069] According to the position of a segmentation point, three segmentation planes are determined, and the spatial geometric body is structurally divided along the three segmentation planes to obtain eight spatial regions. According to the positions of multiple segmentation points, multiple segmentation planes are determined, and the spatial geometric body is structurally divided along the multiple segmentation planes to obtain multiple spatial regions.

[0070] A space area can be used as a room, living room, dining room, etc.

[0071] For example, taking a South American residential style building as an example, when one segmentation point is determined, the spatial geometry is usually divided into 2*2*2, that is, three segmentation planes are determined along the segmentation point in the horizontal, longitudinal and vertical directions, and three segmentations are performed. When two segmentation points are determined, the spatial geometry is usually divided into 2*2*3, that is, four segmentation planes are determined along the segmentation point in the horizontal, longitudinal and vertical directions, and four segmentations are performed.

[0072] Figure 3 This is a schematic diagram of the spatial geometric body segmentation provided in the embodiment of the present application. Figure 3 As shown, three dividing surfaces can be determined by one dividing point, thereby dividing the spatial geometric body into eight spatial regions.

[0073] In summary, in this embodiment, the structural control parameter is the position parameter of the preset segmentation point, and based on the position parameter of the preset segmentation point, multiple segmentation planes passing through the preset segmentation point are generated on the spatial geometric body; along the multiple segmentation planes, the spatial geometric body is structurally divided to obtain multiple spatial regions. Thus, the structural division of the spatial geometric body is efficiently achieved.

[0074] In the above Figure 1 On the basis of the corresponding embodiments, in another embodiment of the present application, the placement parameters of the virtual connected entity model include: the placement parameters of the internal connected entity model, and the placement parameters of the external connected entity model; the second space area includes: the internal space area, and the external space area.

[0075] In S105, according to the placement parameters of the virtual connected entity model, the virtual connected entity model is loaded onto the basic model of the second space area among the multiple space areas to obtain a virtual building model corresponding to the building structure parameters, including:

[0076] According to the placement parameters of the internal connected entity model and the placement parameters of the external connected entity model, the internal connected entity model and the external connected entity model are loaded onto the basic models of the internal space area and the external space area to obtain the target virtual building model.

[0077] The internal space area is the area where the building model has no physical contact with the outside, for example, the space area between the inner wall, ceiling, and floor, that is, the internal space area is a closed area. The external space area is the area where the building model has physical contact with the outside, for example, the space area outside the outer wall, that is, the external space area is an open area. Thus, the interior and exterior of the entire virtual building model are more three-dimensional.

[0078] In summary, in this embodiment, the placement parameters of the virtual connected entity model include: the placement parameters of the internal connected entity model and the placement parameters of the external connected entity model; the second space area includes: the internal space area and the external space area; according to the placement parameters of the internal connected entity model and the placement parameters of the external connected entity model, the internal connected entity model and the external connected entity model are loaded onto the basic models of the internal space area and the external space area to obtain the target virtual building model. Thus, the interior and exterior of the entire virtual building model are made more three-dimensional.

[0079] On the basis of the above embodiment, in another embodiment of the present application, the internal connection entity model includes: a first virtual door and window and / or a virtual internal connection channel.

[0080] The external connection entity model includes: a second virtual door and window and / or a virtual external connection channel.

[0081] For example, the connecting passage is a staircase. By setting doors, windows and stairs, the entire building model is made more three-dimensional.

[0082] The model of the connecting passage is prepared in advance, and its bbox information is obtained. First, remove all spaces that are not large enough to place the stairs, and then find the longer side in this space as the area for placing the stairs. After that, hollow out the upper floor to leave space for the stairs. This step is completed using the boolean node. Finally, use the copy to point method to place the stairs to this position. At this point, a fully connected passage has been generated inside.

[0083] In the above Figure 1 Based on the corresponding embodiments, the embodiments of the present application also provide a space merging method. Figure 4 A flow chart of a space merging method is also provided for the embodiment of the present application.

[0084] like Figure 4 As shown, the second spatial area includes: the merged spatial area. Before loading the virtual connected entity model onto the base model of the second spatial area in the plurality of spatial areas according to the placement parameters of the virtual connected entity model in S105 to obtain a virtual building model corresponding to the building structure parameters, the method further includes:

[0085] S301. Determine types of multiple spatial regions according to spatial marking information of multiple spatial regions.

[0086] The spatial area obtained by segmenting the spatial geometric body in the above segmentation method cannot meet the personalized needs of different buildings. For example, some buildings need large rooms inside, and some buildings have living rooms larger than rooms. If the space is segmented uniformly, the demand for large internal spaces cannot be met.

[0087] The types of spatial regions are divided into two types: merged and unmerged.

[0088] S302: Determine, according to the types of the plurality of spatial regions, whether adjacent spatial regions meet a preset region merging condition of a corresponding type.

[0089] The preset region merging conditions are: the type is merge and adjacent spatial regions are merged.

[0090] S303: If the adjacent spatial regions meet the preset region merging condition, the adjacent spatial regions are merged according to the types of the adjacent spatial regions to obtain a merged spatial region.

[0091] By merging some spatial areas, more diverse spatial areas can be obtained and diversified architectural models can be realized.

[0092] For example, in Houdini software, a box node can be used to generate a larger box surrounding the two empty areas as the merged area.

[0093] For example, for the merged space area, by judging the heights of its vertices, the lowest surface can be separated as the bottom surface, and the floor can be generated using this surface.

[0094] In summary, in this embodiment, the second spatial area includes: the merged spatial area; determining the types of the multiple spatial areas according to the placement parameters of the virtual connected entity model and the spatial marking information of the multiple spatial areas; determining whether the adjacent spatial areas meet the preset regional merging conditions of the corresponding types according to the types of the multiple spatial areas; if the adjacent spatial areas meet the preset regional merging conditions, merging the adjacent spatial areas according to the types of the adjacent spatial areas to obtain the merged spatial area. Thus, by merging some spatial areas, more diversified spatial areas can be obtained to realize diversified architectural models.

[0095] On the basis of the above embodiment, in another embodiment of the present application, if the external connected entity model further includes: second virtual doors and windows, it indicates that a connecting passage is formed between the building model and the external space area of ​​the building model through the second virtual doors and windows, and a virtual platform needs to be set outside the connecting passage to make the building model more three-dimensional. The method also includes:

[0096] Generate a preset virtual fence at a target position on the base model of the first external space area to form a first virtual platform corresponding to the first external space area. And / or,

[0097] A preset support entity is generated at a target position on the base model of the second external space area to form a second virtual platform corresponding to the second external space area.

[0098] The first virtual platform is a balcony, and a preset virtual fence is set at the edge of the balcony. The second virtual platform is a yard, and a preset supporting entity (wall column) is set under the eaves of the yard to support the eaves or the second floor of the building. Thus, a more diverse building model is achieved.

[0099] For example, for the bottom surface of the balcony, use the normal direction of the bottom surface to separate the three front edges, and then use the copy to point node in Houdini software to generate the fence. For the bottom surface of the yard, use the same operation to generate the wall column.

[0100] In summary, in this embodiment, a preset virtual fence is generated at a target position on the basic model of the first external space area to form a first virtual platform corresponding to the first external space area; and / or a preset support entity is generated at a target position on the basic model of the second external space area to form a second virtual platform corresponding to the second external space area. Thus, a more diverse building model is achieved.

[0101] In the above Figure 1 On the basis of the corresponding embodiments, the embodiments of the present application also provide a wall setting method. Figure 5 A flow chart of a wall setting method is also provided for the embodiment of the present application.

[0102] like Figure 5 As shown, the virtual segmentation entity model includes: a preset virtual wall model, generating a virtual segmentation entity model at a target position of a first spatial area in multiple spatial areas in S104, and obtaining a basic model of each spatial area, including:

[0103] S401: Generate at least one region segmentation reference line for a first spatial region.

[0104] The area division reference line is the reference position for placing walls.

[0105] S402: Determine at least one first reference position point on at least one region segmentation reference line.

[0106] The at least one first reference position point is used to accurately determine the placement position of the preset virtual wall model.

[0107] S403: placing a preset virtual wall model at at least one first reference position point to obtain a basic model of each spatial area.

[0108] The preset virtual wall model is determined according to the width, height and orientation.

[0109] For example, in Houdini, a line carrying height can generate a wall. Houdini has a copyto point node, which has two inputs: model A and point B. The function is to place model A at the position of point B. At the same time, if point B has normal, size and other information, model A will also make corresponding rotation and scaling according to the normal, size and other information.

[0110] For example, determine the midpoint of the region segmentation reference line, and make the midpoint slightly offset toward the two sides of the region segmentation reference line to obtain two reference points. Rays are emitted downward along the two reference points to determine whether they successfully intersect with the entire floor surface. If both are successful, then this region segmentation reference line is an internal line. Alternatively, rays are emitted upward along the two reference points to determine whether they successfully intersect with the entire ceiling surface. If both are successful, then this region segmentation reference line is an internal line.

[0111] In summary, in this embodiment, the virtual segmentation entity model includes: presetting a virtual wall model; generating at least one region segmentation reference line of the first spatial region; determining at least one first reference position point on at least one region segmentation reference line; placing the presetting virtual wall model at at least one first reference position point to obtain a basic model of each spatial region. Thus, walls are added to the building in a diversified manner.

[0112] Based on the above embodiments, the embodiments of the present application also provide a method for setting doors and windows. Figure 6 A flow chart of a door and window setting method is also provided for the embodiment of the present application.

[0113] like Figure 6 As shown, in S403, the preset virtual wall model is placed at at least one first reference position point to obtain a basic model of each space area, including:

[0114] S501: Determine a second reference position point on a regional reference line of the target wall model according to size parameters of a target wall model in each spatial region where a preset virtual wall model is placed.

[0115] The second reference position point is used to fix the preset virtual door and window model.

[0116] S502: Place the preset virtual door and window model at a second reference position point to obtain a basic model of each space area.

[0117] For example, a door has a set width. Based on the width of the wall, you can first lay out where the door can be placed. In Houdini, there is a Boolean node that can add or subtract two models. Therefore, through the boolean, a hole the size of the door is dug in the wall, and then the door is embedded in it.

[0118] For example, the doors of South American residential buildings are only generated in the front. Therefore, when the box space is generated at the beginning, a 'front' feature value is added to represent the front, so that the front edge is separated as the area with the probability of generating a door, so that these areas will generate at least one wall with a door.

[0119] The placement method of windows is the same as that of doors, but the placement is slightly different. First, the placement of windows requires a height setting. Second, windows are mainly generated on exterior walls, but not on interior walls.

[0120] Furthermore, for the front-facing windows, window eaves are generated to make the building model more diverse.

[0121] In summary, in this embodiment, according to the size parameters of the target wall model in each spatial area where the preset virtual wall model is placed, the second reference position point is determined on the regional reference line of the target wall model; the preset virtual door and window model is placed at the second reference position point to obtain the basic model of each spatial area. Thus, doors and windows are added to the building in a diversified manner.

[0122] In the above Figure 1 On the basis of the corresponding embodiment, in another embodiment of the present application, the architectural structure parameters further include: rendering map parameters; the method further includes:

[0123] The rendering mapping parameters are used to render the target entity model corresponding to the rendering mapping parameters on the target virtual building model.

[0124] For example, the target virtual building model is generated programmatically. After the target virtual building model is generated, its rendering map parameters (UV, texture coordinates, used to identify the position of each vertex on the model on the texture map in game development, U represents the horizontal position, and V represents the vertical position) need to be processed to correctly paste the map display effect. By projecting the UV according to the position in the world space, the average correct UV can be obtained. In game development, four-sided continuous maps are mostly used for walls. This kind of map can be connected left and right, up and down, and is suitable for repeated tiling on the surface.

[0125] For example, a secondary wall is rendered under the wall for decorative purposes. A decorative strip similar to a dividing line is also generated between houses to simulate reality.

[0126] In summary, in this embodiment, the building structure parameters also include: rendering map parameters; using the rendering map parameters, the target entity model corresponding to the rendering map parameters on the target virtual building model is rendered, thereby making the building model more diversified.

[0127] Based on the above embodiment, the rendering mapping parameters at least include: at least one mapping parameter among texture mapping parameters, material mapping parameters, and light mapping parameters.

[0128] In the above Figure 1 On the basis of the corresponding embodiment, in another embodiment of the present application, obtaining at least one set of building structure parameters in S101 includes:

[0129] According to the configuration parameters of the preset architectural style, an architectural structure parameter generation algorithm of the preset architectural style is adopted to generate at least one set of architectural structure parameters.

[0130] For example, the preset architectural style can be a South American residential style. The architectural structure parameter generation algorithm is a random function rand(s), where s is a random seed. By inputting a random seed, rand(s) will return an unordered value as the random value we get, as multiple sets of random architectural structure parameters. Thus, the architectural model is more diverse.

[0131] In summary, in this embodiment, according to the configuration parameters of the preset architectural style, the architectural structure parameter generation algorithm of the preset architectural style is adopted to generate at least one set of architectural structure parameters, thereby making the architectural model more diversified.

[0132] In the above Figure 1 On the basis of the corresponding embodiments, the embodiments of the present application also provide a virtual scene generation method. Figure 7 A flowchart of a virtual scene generation method is also provided for the embodiment of the present application.

[0133] like Figure 7 As shown, the method also includes:

[0134] S601: In response to a selection operation of a virtual building model inputted for at least one virtual building model corresponding to at least one set of building structure parameters, a target virtual building model selected by the selection operation is loaded into a preset virtual scene.

[0135] The generated virtual building model can be placed in the preset virtual scene to meet the design requirements in the virtual scene and improve design efficiency.

[0136] S602: Adjust the size of the target virtual building model in the preset virtual scene.

[0137] The target virtual building model can be adjusted according to design requirements to make the virtual scene more diverse.

[0138] In summary, in this embodiment, in response to a selection operation of a virtual building model inputted from a plurality of virtual building models corresponding to at least one set of building structure parameters, the target virtual building model selected by the selection operation is loaded into a preset virtual scene; and the size of the target virtual building model is adjusted in the preset virtual scene.

[0139] The following is a description of a virtual building model generation device, equipment, storage medium and program provided by the present application for execution. The specific implementation process and technical effects are mentioned above and will not be repeated below.

[0140] Figure 8 A schematic diagram of a virtual building model generation device provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the device comprises:

[0141] The acquisition module 801 is used to acquire at least one set of building structure parameters, which include at least: space outline parameters, structure control parameters, and placement parameters of the virtual connected entity model.

[0142] The generation module 802 is used to generate a spatial geometric body using spatial contour parameters.

[0143] The division module 803 is used to perform structural division on the spatial geometric body by using the structural control parameters to obtain multiple spatial regions.

[0144] The segmentation module 804 is used to generate a virtual segmentation entity model at a target position of a first spatial region among the multiple spatial regions to obtain a basic model of each spatial region.

[0145] The loading module 805 is used to load the virtual connected entity model onto the basic model of the second space area among the multiple space areas according to the placement parameters of the virtual connected entity model, so as to obtain a virtual building model corresponding to the building structure parameters.

[0146] Furthermore, the division module 803 is specifically used for structural control parameters that are position parameters of preset division points, and adopts the structural control parameters to perform structural division on the spatial geometric body to obtain multiple spatial regions, including: based on the position parameters of the preset division points, generating multiple division surfaces on the spatial geometric body that pass through the preset division points; and performing structural division on the spatial geometric body along the multiple division surfaces to obtain multiple spatial regions.

[0147] Furthermore, the loading module 805 is specifically used for the placement parameters of the virtual connected entity model, including: the placement parameters of the internal connected entity model, and the placement parameters of the external connected entity model; the second spatial area includes: the internal spatial area, and the external spatial area; according to the placement parameters of the virtual connected entity model, the virtual connected entity model is loaded onto the basic model of the second spatial area among the multiple spatial areas to obtain a virtual building model corresponding to each building structure parameter, including: according to the placement parameters of the internal connected entity model and the placement parameters of the external connected entity model, the internal connected entity model and the external connected entity model are loaded onto the basic models of the internal spatial area and the external spatial area to obtain the target virtual building model.

[0148] Furthermore, the loading module 805 is specifically used for the internal connection entity model including: first virtual doors and windows and / or virtual internal connection channels; the external connection entity model includes: second virtual doors and windows and / or virtual external connection channels.

[0149] Furthermore, the loading module 805 is specifically used for the second spatial area to include: the merged spatial area; according to the placement parameters of the virtual connected entity model, the virtual connected entity model is loaded onto the basic model of the second spatial area among the multiple spatial areas to obtain a virtual building model corresponding to the building structure parameters. The method also includes: determining the types of the multiple spatial areas according to the spatial marking information of the multiple spatial areas; according to the types of the multiple spatial areas, determining whether adjacent spatial areas meet the preset area merging conditions of the corresponding types; if the adjacent spatial areas meet the preset area merging conditions, the adjacent spatial areas are merged according to the types of the adjacent spatial areas to obtain the merged spatial area.

[0150] Furthermore, the loading module 805 is specifically used for if the external connected entity model also includes: second virtual doors and windows, the method also includes: generating a preset virtual fence at the target position on the basic model of the first external space area to form a first virtual platform corresponding to the first external space area; and / or generating a preset supporting entity at the target position on the basic model of the second external space area to form a second virtual platform corresponding to the second external space area.

[0151] Furthermore, the loading module 805 is specifically used for the virtual segmentation entity model, including: presetting a virtual wall model, generating a virtual segmentation entity model at a target position of a first spatial area among multiple spatial areas, and obtaining a basic model of each spatial area, including: generating at least one area segmentation reference line for the first spatial area; respectively determining at least one first reference position point on at least one area segmentation reference line; placing the preset virtual wall model at at least one first reference position point, and obtaining a basic model of each spatial area.

[0152] Furthermore, the loading module 805 is specifically used to place the preset virtual wall model at at least one first reference position point to obtain a basic model of each spatial area, including: determining a second reference position point on the regional reference line of the target wall model according to the size parameters of the target wall model in each spatial area where the preset virtual wall model is placed; placing the preset virtual door and window model at the second reference position point to obtain the basic model of each spatial area.

[0153] Furthermore, the loading module 805 is specifically used for the building structure parameters and further includes: rendering map parameters; the method further includes: using the rendering map parameters to render the target entity model corresponding to the rendering map parameters on the target virtual building model.

[0154] Furthermore, the loading module 805 is specifically used for rendering mapping parameters including at least one of texture mapping parameters, material mapping parameters, and light mapping parameters.

[0155] Furthermore, the acquisition module 801 is specifically used to acquire at least one set of building structure parameters, including: generating building structure parameters according to the configuration parameters of the preset building style and using the building structure parameter generation algorithm of the preset building style.

[0156] Furthermore, the loading module 805 is also used to respond to a selection operation of a virtual building model inputted for at least one virtual building model corresponding to at least one set of building structure parameters, load the target virtual building model selected by the selection operation into a preset virtual scene; and adjust the size of the target virtual building model in the preset virtual scene.

[0157] Through the above method, at least one set of building structure parameters is obtained, and the building structure parameters at least include: space outline parameters, structure control parameters, and placement parameters of virtual connected entity models; the space outline parameters are used to generate a space geometry; the structure control parameters are used to divide the space geometry into multiple space regions; a virtual segmentation entity model is generated at a target position of a first space region in multiple space regions to obtain a basic model of each space region; according to the placement parameters of the virtual connected entity model, the virtual connected entity model is loaded onto the basic model of a second space region in multiple space regions to obtain a virtual building model corresponding to the building structure parameters. Thus, by randomly setting the building structure parameters, the generation efficiency of the building model is improved, the generation accuracy of the building model is improved, and models with different parameters are generated in a diversified manner, expanding the building model generation scene.

[0158] Fig. 9A structural diagram of an electronic device provided in an embodiment of the present application includes: a processor 901, a storage medium 902 and a bus 903, the storage medium 902 stores machine-readable instructions executable by the processor 901, the processor 901 communicates with the storage medium 902 via the bus 903, and the processor 901 executes the machine-readable instructions to execute the above method.

[0159] At least one set of building structure parameters is obtained, and the building structure parameters at least include: space outline parameters, structure control parameters, and placement parameters of the virtual connected entity model.

[0160] Use space contour parameters to generate space geometry.

[0161] The spatial geometric body is divided into multiple spatial regions by using structural control parameters.

[0162] A virtual segmentation entity model is generated at a target position of a first spatial region among the multiple spatial regions to obtain a basic model of each spatial region.

[0163] According to the placement parameters of the virtual connected entity model, the virtual connected entity model is loaded onto the basic model of the second space area among the multiple space areas to obtain a virtual building model corresponding to the building structure parameters.

[0164] Optionally, the structural control parameter is a position parameter of a preset segmentation point. The structural control parameter is used to perform structural division on the spatial geometric body to obtain multiple spatial regions, including:

[0165] Based on the position parameters of the preset segmentation points, a plurality of segmentation surfaces passing through the preset segmentation points are generated on the spatial geometric body;

[0166] The spatial geometric body is structurally divided along multiple dividing planes to obtain multiple spatial regions.

[0167] Optionally, the placement parameters of the virtual connected entity model include: placement parameters of the internal connected entity model, and placement parameters of the external connected entity model; the second space area includes: an internal space area, and an external space area;

[0168] According to the placement parameters of the virtual connected entity model, the virtual connected entity model is loaded onto the basic model of the second space area among the multiple space areas to obtain a virtual building model corresponding to the building structure parameters, including:

[0169] According to the placement parameters of the internal connected entity model and the placement parameters of the external connected entity model, the internal connected entity model and the external connected entity model are loaded onto the basic models of the internal space area and the external space area to obtain the target virtual building model.

[0170] Optionally, the internally connected entity model includes: first virtual doors and windows and / or virtual internal connection passages;

[0171] The external connection entity model includes: a second virtual door and window and / or a virtual external connection channel.

[0172] Optionally, the second spatial area includes: a merged spatial area; before loading the virtual connected entity model onto a basic model of the second spatial area in the plurality of spatial areas according to the placement parameters of the virtual connected entity model to obtain a virtual building model corresponding to the building structure parameters, the method further includes:

[0173] Determining types of the multiple spatial regions according to the spatial marking information of the multiple spatial regions;

[0174] Determining, according to the types of the plurality of spatial regions, whether adjacent spatial regions meet a preset region merging condition of a corresponding type;

[0175] If the adjacent spatial regions meet the preset region merging condition, the adjacent spatial regions are merged according to the types of the adjacent spatial regions to obtain a merged spatial region.

[0176] Optionally, if the external connected entity model further includes: a second virtual door and window, the method further includes:

[0177] Generating a preset virtual fence at a target position on the base model of the first external space area to form a first virtual platform corresponding to the first external space area; and / or.

[0178] A preset support entity is generated at a target position on the base model of the second external space area to form a second virtual platform corresponding to the second external space area.

[0179] Optionally, the virtual segmentation entity model includes: presetting a virtual wall model, generating a virtual segmentation entity model at a target position of a first spatial area in the plurality of spatial areas, and obtaining a basic model of each spatial area, including:

[0180] generating at least one region segmentation reference line of the first spatial region;

[0181] Determine at least one first reference position point on at least one region segmentation reference line;

[0182] The preset virtual wall model is placed at at least one first reference position point to obtain a basic model of each spatial area.

[0183] Optionally, placing a preset virtual wall model at at least one first reference position point to obtain a basic model of each spatial area includes:

[0184] According to the size parameters of the target wall model in each spatial region where the preset virtual wall model is placed, a second reference position point is determined on the regional reference line of the target wall model;

[0185] Place the preset virtual door and window models at the second reference position point to obtain the basic model of each spatial area.

[0186] Optionally, the building structure parameters further include: rendering map parameters; and the method further includes:

[0187] The rendering mapping parameters are used to render the target entity model corresponding to the rendering mapping parameters on the target virtual building model.

[0188] Optionally, the rendering mapping parameters include at least one mapping parameter of a texture mapping parameter, a material mapping parameter, and a light mapping parameter.

[0189] Optionally, obtaining at least one set of building structure parameters includes:

[0190] According to the configuration parameters of the preset architectural style, an architectural structure parameter generation algorithm of the preset architectural style is adopted to generate at least one set of architectural structure parameters.

[0191] Optionally, the method further comprises:

[0192] In response to a selection operation of a virtual building model inputted for at least one virtual building model corresponding to at least one set of building structure parameters, the target virtual building model selected by the selection operation is loaded into a preset virtual scene;

[0193] The target virtual building model is resized in a preset virtual scene.

[0194] Through the above method, at least one set of building structure parameters is obtained, and the building structure parameters at least include: space outline parameters, structure control parameters, and placement parameters of virtual connected entity models; the space outline parameters are used to generate a space geometry; the structure control parameters are used to divide the space geometry into multiple space regions; a virtual segmentation entity model is generated at a target position of a first space region in multiple space regions to obtain a basic model of each space region; according to the placement parameters of the virtual connected entity model, the virtual connected entity model is loaded onto the basic model of a second space region in multiple space regions to obtain a virtual building model corresponding to the building structure parameters. Thus, by randomly setting the building structure parameters, the generation efficiency of the building model is improved, the generation accuracy of the building model is improved, and models with different parameters are generated in a diversified manner, expanding the building model generation scene.

[0195] The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above method embodiment is executed.

[0196] At least one set of building structure parameters is obtained, and the building structure parameters at least include: space outline parameters, structure control parameters, and placement parameters of the virtual connected entity model.

[0197] Use space contour parameters to generate space geometry.

[0198] The spatial geometric body is divided into multiple spatial regions by using structural control parameters.

[0199] A virtual segmentation entity model is generated at a target position of a first spatial region among the multiple spatial regions to obtain a basic model of each spatial region.

[0200] According to the placement parameters of the virtual connected entity model, the virtual connected entity model is loaded onto the basic model of the second space area among the multiple space areas to obtain a virtual building model corresponding to the building structure parameters.

[0201] Optionally, the structural control parameter is a position parameter of a preset segmentation point. The structural control parameter is used to perform structural division on the spatial geometric body to obtain multiple spatial regions, including:

[0202] Based on the position parameters of the preset segmentation points, a plurality of segmentation surfaces passing through the preset segmentation points are generated on the spatial geometric body;

[0203] The spatial geometric body is structurally divided along multiple dividing planes to obtain multiple spatial regions.

[0204] Optionally, the placement parameters of the virtual connected entity model include: placement parameters of the internal connected entity model, and placement parameters of the external connected entity model; the second space area includes: an internal space area, and an external space area;

[0205] According to the placement parameters of the virtual connected entity model, the virtual connected entity model is loaded onto the basic model of the second space area among the multiple space areas to obtain a virtual building model corresponding to the building structure parameters, including:

[0206] According to the placement parameters of the internal connected entity model and the placement parameters of the external connected entity model, the internal connected entity model and the external connected entity model are loaded onto the basic models of the internal space area and the external space area to obtain the target virtual building model.

[0207] Optionally, the internally connected entity model includes: first virtual doors and windows and / or virtual internal connection passages;

[0208] The external connection entity model includes: a second virtual door and window and / or a virtual external connection channel.

[0209] Optionally, the second spatial area includes: a merged spatial area; before loading the virtual connected entity model onto a basic model of the second spatial area in the plurality of spatial areas according to the placement parameters of the virtual connected entity model to obtain a virtual building model corresponding to the building structure parameters, the method further includes:

[0210] Determining types of the multiple spatial regions according to the spatial marking information of the multiple spatial regions;

[0211] Determining, according to the types of the plurality of spatial regions, whether adjacent spatial regions meet a preset region merging condition of a corresponding type;

[0212] If the adjacent spatial regions meet the preset region merging condition, the adjacent spatial regions are merged according to the types of the adjacent spatial regions to obtain a merged spatial region.

[0213] Optionally, if the external connected entity model further includes: a second virtual door and window, the method further includes:

[0214] generating a preset virtual fence at a target position on the base model of the first external space area to form a first virtual platform corresponding to the first external space area; and / or,

[0215] A preset support entity is generated at a target position on the base model of the second external space area to form a second virtual platform corresponding to the second external space area.

[0216] Optionally, the virtual segmentation entity model includes: presetting a virtual wall model, generating a virtual segmentation entity model at a target position of a first spatial area in the plurality of spatial areas, and obtaining a basic model of each spatial area, including:

[0217] generating at least one region segmentation reference line of the first spatial region;

[0218] Determine at least one first reference position point on at least one region segmentation reference line;

[0219] The preset virtual wall model is placed at at least one first reference position point to obtain a basic model of each spatial area.

[0220] Optionally, placing a preset virtual wall model at at least one first reference position point to obtain a basic model of each spatial area includes:

[0221] According to the size parameters of the target wall model in each spatial region where the preset virtual wall model is placed, a second reference position point is determined on the regional reference line of the target wall model;

[0222] Place the preset virtual door and window models at the second reference position point to obtain the basic model of each spatial area.

[0223] Optionally, the building structure parameters further include: rendering map parameters; and the method further includes:

[0224] The rendering mapping parameters are used to render the target entity model corresponding to the rendering mapping parameters on the target virtual building model.

[0225] Optionally, the rendering mapping parameters include at least one mapping parameter of a texture mapping parameter, a material mapping parameter, and a light mapping parameter.

[0226] Optionally, obtaining at least one set of building structure parameters includes:

[0227] According to the configuration parameters of the preset architectural style, an architectural structure parameter generation algorithm of the preset architectural style is adopted to generate at least one set of architectural structure parameters.

[0228] Optionally, the method further comprises:

[0229] In response to a selection operation of a virtual building model inputted for at least one virtual building model corresponding to at least one set of building structure parameters, the target virtual building model selected by the selection operation is loaded into a preset virtual scene;

[0230] The target virtual building model is resized in a preset virtual scene.

[0231] Through the above method, at least one set of building structure parameters is obtained, and the building structure parameters at least include: space outline parameters, structure control parameters, and placement parameters of virtual connected entity models; the space outline parameters are used to generate a space geometry; the structure control parameters are used to divide the space geometry into multiple space regions; a virtual segmentation entity model is generated at a target position of a first space region in multiple space regions to obtain a basic model of each space region; according to the placement parameters of the virtual connected entity model, the virtual connected entity model is loaded onto the basic model of a second space region in multiple space regions to obtain a virtual building model corresponding to the building structure parameters. Thus, by randomly setting the building structure parameters, the generation efficiency of the building model is improved, the generation accuracy of the building model is improved, and models with different parameters are generated in a diversified manner, expanding the building model generation scene.

[0232] In the embodiment of the present application, the computer program can also execute other machine-readable instructions when run by the processor to execute other methods described in the embodiment. For the specific execution method steps and principles, please refer to the description of the embodiment, which will not be repeated here.

[0233] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0234] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0235] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0236] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0237] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0238] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for generating a virtual building model, characterized in that: The method comprises: Acquire at least one set of building structure parameters, wherein the building structure parameters at least include: space outline parameters, structure control parameters, and placement parameters of a virtual connected entity model; Using the spatial contour parameters, generating a spatial geometric body; Using the structural control parameters, structurally dividing the spatial geometric body to obtain a plurality of spatial regions; generating a virtual segmentation entity model at a target position of a first spatial region among the plurality of spatial regions to obtain a basic model of each spatial region; According to the placement parameters of the virtual connected entity model, the virtual connected entity model is loaded onto a basic model of a second space area among the multiple space areas to obtain a virtual building model corresponding to the building structure parameters.

2. The method according to claim 1, characterized in that The structural control parameter is a position parameter of a preset segmentation point. The structural control parameter is used to perform structural division on the spatial geometric body to obtain a plurality of spatial regions, including: Based on the position parameters of the preset segmentation points, generating a plurality of segmentation surfaces passing through the preset segmentation points on the spatial geometric body; The spatial geometric body is structurally divided along the multiple dividing surfaces to obtain the multiple spatial regions.

3. The method according to claim 1, characterized in that The placement parameters of the virtual connected entity model include: placement parameters of the internal connected entity model, and placement parameters of the external connected entity model; the second space area includes: an internal space area, and an external space area; The method of loading the virtual connected entity model onto a base model of a second space area in the plurality of space areas according to the placement parameters of the virtual connected entity model to obtain a virtual building model corresponding to the building structure parameters comprises: According to the placement parameters of the internal connected entity model and the placement parameters of the external connected entity model, the internal connected entity model and the external connected entity model are loaded onto the basic models of the internal space area and the external space area to obtain the target virtual building model.

4. The method according to claim 3, characterized in that The internal connection entity model includes: first virtual doors and windows and / or virtual internal connection channels; The external connection entity model includes: a second virtual door and window and / or a virtual external connection channel.

5. The method according to claim 1, characterized in that The second spatial area includes: a merged spatial area; before loading the virtual connected entity model onto a base model of the second spatial area in the plurality of spatial areas according to the placement parameters of the virtual connected entity model to obtain a virtual building model corresponding to the building structure parameters, the method further includes: Determining types of the multiple spatial regions according to the spatial marking information of the multiple spatial regions; Determining, according to the types of the multiple spatial regions, whether adjacent spatial regions meet a preset region merging condition of a corresponding type; If the adjacent spatial regions meet the preset region merging condition, the adjacent spatial regions are merged according to the types of the adjacent spatial regions to obtain the merged spatial region.

6. The method according to claim 4, characterized in that If the external connected entity model further includes: the second virtual door and window, the method further includes: generating a preset virtual fence at a target position on the base model of the first external space area to form a first virtual platform corresponding to the first external space area; and / or, A preset support entity is generated at a target position on the base model of the second external space area to form a second virtual platform corresponding to the second external space area.

7. The method according to claim 1, characterized in that The virtual segmentation entity model includes: a preset virtual wall model, generating a virtual segmentation entity model at a target position of a first spatial area among the multiple spatial areas, and obtaining a basic model of each spatial area, including: generating at least one region segmentation reference line for the first spatial region; Determine at least one first reference position point on the at least one region segmentation reference line; The preset virtual wall model is placed at the at least one first reference position point to obtain a basic model of each spatial area.

8. The method according to claim 7, characterized in that Placing the preset virtual wall model at the at least one first reference position point to obtain the basic model of each space area includes: According to the size parameters of the target wall model in each spatial region where the preset virtual wall model is placed, determining a second reference position point on the regional reference line of the target wall model; The preset virtual door and window model is placed at the second reference position point to obtain the basic model of each spatial area.

9. The method according to claim 1, characterized in that: The architectural structure parameters also include: rendering map parameters; the method also includes: The rendering map parameters are used to render the target entity model corresponding to the rendering map parameters on the target virtual building model.

10. The method according to claim 9, characterized in that The rendering mapping parameters include at least one mapping parameter among texture mapping parameters, material mapping parameters, and light mapping parameters.

11. The method according to claim 1, characterized in that: The obtaining of at least one set of building structure parameters comprises: According to the configuration parameters of a preset architectural style, an architectural structure parameter generation algorithm of the preset architectural style is adopted to generate at least one set of the architectural structure parameters.

12. The method according to claim 1, characterized in that The method further comprises: In response to a selection operation of a virtual building model inputted for at least one virtual building model corresponding to at least one set of the building structure parameters, the target virtual building model selected by the selection operation is loaded into a preset virtual scene; The target virtual building model is resized in the preset virtual scene.

13. A virtual building model generating device, characterized in that: The device comprises: An acquisition module, used to acquire at least one set of random building structure parameters, wherein the building structure parameters at least include: space outline parameters, structure control parameters, and placement parameters of a virtual connected entity model; A generating module, used for generating a spatial geometric body by using the spatial contour parameters; A division module, used to perform structural division on the spatial geometric body by using the structural control parameters to obtain a plurality of spatial regions; A segmentation module, configured to generate a virtual segmentation entity model at a target position of a first spatial region among the plurality of spatial regions, to obtain a basic model of each spatial region; The loading module is used to load the virtual connected entity model onto the basic model of the second space area among the multiple space areas according to the placement parameters of the virtual connected entity model, so as to obtain a virtual building model corresponding to the building structure parameters.

14. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the steps of the virtual building model generation method as described in any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for generating a virtual building model according to any one of claims 1 to 12 are executed.

16. A computer program instruction, characterized in that When the program instructions are executed by a processor, the steps of the method for generating a virtual building model as claimed in any one of claims 1 to 12 are implemented.

Citation Information

Patent Citations

  • Indoor space planning system and method

    CN106294903A

  • Virtual building generation method and device, storage medium and electronic equipment

    CN115147548A

  • Virtual scene generation method and device, readable medium and electronic equipment

    CN116416404A

  • Method, device, storage medium and system for generating three-dimensional virtual scene

    CN116503550A

  • Virtual building construction method and device, electronic equipment and storage medium

    CN117095143A