Method and apparatus for generating virtual building group

By receiving generation instructions and obtaining building component sets and splicing information, a virtual building complex is generated, which solves the problem of artists repeatedly creating material balls and templates, realizes modularization of components and efficient splicing, and reduces resource waste and modeling complexity.

CN115019009BActive Publication Date: 2026-05-29ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD
Filing Date
2022-05-31
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

When creating massive virtual building complexes, existing technologies require designers to repeatedly create the same material spheres and building templates, leading to resource waste and increased modeling complexity.

Method used

A method for generating a virtual building complex is provided. By receiving a generation instruction, a set of building components and component splicing information are obtained. Based on this information, the components to be spliced ​​are obtained from the component set and spliced ​​together to generate the target virtual building complex.

Benefits of technology

Effectively control the number of components and materials, reduce redundant creation, lower model and material complexity, and improve generation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115019009B_ABST
    Figure CN115019009B_ABST
Patent Text Reader

Abstract

The application provides a method and device for generating a virtual building group, wherein the method for generating the virtual building group comprises the following steps: receiving a generation instruction for a virtual building group; obtaining a building component set and building group attribute information of the virtual building group in response to the generation instruction, wherein the building group attribute information comprises building component information and component splicing information; obtaining a set of building components to be spliced from the building component set based on the building component information; and splicing the building components in the set of building components to be spliced based on the component splicing information, so as to generate a target virtual building group. Through the method, the workload of an art designer is reduced, the complexity of a model and material is reduced, the building components are spliced into a building model in a splicing manner, and the generation efficiency of the model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method for generating virtual building complexes. This application also relates to an apparatus for generating virtual building complexes, a computing device, and a computer-readable storage medium. Background Technology

[0002] With the development of computer technology, more and more scenarios require the generation of virtual buildings, such as animation production, game production, film production, and so on.

[0003] When creating a massive building complex, multiple artists are needed to create numerous buildings, each responsible for their own section. During the creation process, each artist creates corresponding materials and building content. Some buildings may share the same materials and components. Each artist needs to create many identical materials and building templates when creating their own building, leading to complexity in modeling and materials and wasting resources. Summary of the Invention

[0004] In view of this, embodiments of this application provide a method for generating virtual building complexes. This application also relates to an apparatus for generating virtual building complexes, a computing device, and a computer-readable storage medium, to solve the technical problems existing in the prior art.

[0005] According to a first aspect of the embodiments of this application, a method for generating a virtual building complex is provided, comprising:

[0006] Receive instructions for generating virtual building complexes;

[0007] In response to the generation instruction, the building component set and the building group attribute information of the virtual building group are obtained, wherein the building group attribute information includes building component information and component splicing information;

[0008] Based on the building component information, obtain the set of building components to be assembled from the set of building components;

[0009] Based on the component splicing information, the building components in the set of building components to be spliced ​​are spliced ​​together to generate the target virtual building complex.

[0010] Optionally, in response to the generation instruction, obtaining the building cluster attribute information of the virtual building cluster includes:

[0011] In response to the generation instruction, the building component information and component splicing information of the virtual building complex are obtained, wherein the building component information is used to determine the components of each virtual building, and the component splicing information is used to determine the splicing order of the components of each virtual building;

[0012] The building group attribute information of the virtual building group is generated based on the building component information and the component splicing information.

[0013] Optionally, in response to the generation instruction, a set of building components is obtained, including:

[0014] In response to the generation instruction, a set of general building components, a set of additional building components, and a set of building activity area components are obtained, wherein the components in the set of building activity area components are multi-level detail components.

[0015] Optionally, the method further includes:

[0016] The number of materials of the general building components in the set of general building components is less than or equal to a first preset threshold.

[0017] The number of building component materials in the set of building components is less than or equal to the second preset threshold.

[0018] The number of materials of the building activity area components in the building activity area component set is less than or equal to the third preset threshold.

[0019] Optionally, the building component information includes building component sub-information corresponding to each virtual building;

[0020] Based on the building component information, a set of building components to be assembled is obtained from the set of building components, including:

[0021] Determine the set of building components to be assembled for each virtual building based on the building component sub-information corresponding to each virtual building;

[0022] The set of building components to be assembled is obtained based on the subset of building components to be assembled corresponding to each virtual building.

[0023] Optionally, based on the building component sub-information corresponding to each virtual building, a subset of building components to be assembled is determined for each virtual building, including:

[0024] Identify the target virtual building within the virtual building complex;

[0025] Determine the target building component sub-information corresponding to the target virtual building from the building component information;

[0026] Based on the target building component sub-information, the set of building components to be assembled corresponding to the target virtual building is determined in the set of building components.

[0027] Optionally, the component splicing information includes component splicing sub-information corresponding to each virtual building;

[0028] Based on the component splicing information, the building components in the set of building components to be spliced ​​are spliced ​​together to generate a target virtual building complex, including:

[0029] Each virtual building is generated based on the building components in the set of building components to be assembled and the component splicing sub-information corresponding to each virtual building;

[0030] By piecing together each virtual building, the target virtual building complex is generated.

[0031] Optionally, the building complex attribute information may also include building splicing information;

[0032] By piecing together each virtual building, a target virtual building complex is generated, including:

[0033] Each virtual building is combined based on the building splicing information to generate the target virtual building complex.

[0034] Optionally, the building component set may also include a single component set.

[0035] According to a second aspect of the embodiments of this application, a device for generating a virtual building complex is provided, comprising:

[0036] The receiving module is configured to receive generation instructions for the virtual building complex;

[0037] The information acquisition module is configured to obtain building group attribute information of the building component set and the virtual building group in response to the generation instruction, wherein the building group attribute information includes building component information and component splicing information;

[0038] The component acquisition module is configured to acquire a set of building components to be assembled from the building component set based on the building component information;

[0039] The splicing module is configured to splice building components in the set of building components to be spliced ​​based on the component splicing information to generate a target virtual building complex.

[0040] Optionally, the information acquisition module is further configured to:

[0041] In response to the generation instruction, the building component information and component splicing information of the virtual building complex are obtained, wherein the building component information is used to determine the components of each virtual building, and the component splicing information is used to determine the splicing order of the components of each virtual building;

[0042] The building group attribute information of the virtual building group is generated based on the building component information and the component splicing information.

[0043] Optionally, the component acquisition module is further configured to:

[0044] In response to the generation instruction, a set of general building components, a set of additional building components, and a set of building activity area components are obtained, wherein the components in the set of building activity area components are multi-level detail components.

[0045] Optional:

[0046] The number of materials of the general building components in the set of general building components is less than or equal to a first preset threshold.

[0047] The number of building component materials in the set of building components is less than or equal to the second preset threshold.

[0048] The number of materials of the building activity area components in the building activity area component set is less than or equal to the third preset threshold.

[0049] Optionally, the building component information includes building component sub-information corresponding to each virtual building;

[0050] The component acquisition module is further configured as follows:

[0051] Determine the set of building components to be assembled for each virtual building based on the building component sub-information corresponding to each virtual building;

[0052] The set of building components to be assembled is obtained based on the subset of building components to be assembled corresponding to each virtual building.

[0053] Optionally, the component acquisition module is further configured to:

[0054] Identify the target virtual building within the virtual building complex;

[0055] Determine the target building component sub-information corresponding to the target virtual building from the building component information;

[0056] Based on the target building component sub-information, the set of building components to be assembled corresponding to the target virtual building is determined in the set of building components.

[0057] Optionally, the component splicing information includes component splicing sub-information corresponding to each virtual building;

[0058] The splicing module is further configured as follows:

[0059] Each virtual building is generated based on the building components in the set of building components to be assembled and the component splicing sub-information corresponding to each virtual building;

[0060] By piecing together each virtual building, the target virtual building complex is generated.

[0061] Optionally, the building complex attribute information may also include building splicing information;

[0062] The splicing module is further configured as follows:

[0063] Each virtual building is combined based on the building splicing information to generate the target virtual building complex.

[0064] Optionally, the building component set may also include a single component set.

[0065] According to a third aspect provided in the embodiments of this application, a method for generating a virtual building complex is provided, comprising:

[0066] The system displays a virtual building complex generation interface to the user based on their request.

[0067] Receive the user's command to generate the virtual building complex based on the virtual building complex generation interface;

[0068] The building component set is displayed in response to the generation command;

[0069] The set of building components to be assembled is obtained from the set of building components based on the building component information input by the user.

[0070] Based on the component splicing information input by the user, the building components in the set of building components to be spliced ​​are spliced ​​together to generate the target virtual building complex.

[0071] According to a fourth aspect of the embodiments of this application, a device for generating a virtual building complex is provided, comprising:

[0072] The interface display module is configured to display the virtual building complex generation interface to the user based on the user's call request;

[0073] The receiving module is configured to receive the generation instructions for the virtual building complex input by the user based on the virtual building complex generation interface;

[0074] The component display module is configured to display a collection of building components in response to the generation command;

[0075] The acquisition module is configured to acquire a set of building components to be assembled from the set of building components based on the building component information input by the user.

[0076] The splicing module is configured to splice the building components in the set of building components to be spliced ​​according to the component splicing information input by the user, so as to generate a target virtual building complex.

[0077] According to a fifth aspect of the present application, a computing device is provided, including a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor executes the computer instructions to implement the steps of the method for generating the virtual building complex.

[0078] According to a sixth aspect of the embodiments of this application, a computer-readable storage medium is provided that stores computer instructions, which, when executed by a processor, implement the steps of the method for generating the virtual building complex.

[0079] The method for generating a virtual building complex provided in this application includes receiving a generation instruction for the virtual building complex; obtaining a set of building components and building complex attribute information of the virtual building complex in response to the generation instruction, wherein the building complex attribute information includes building component information and component splicing information; obtaining a set of building components to be spliced ​​from the set of building components based on the building component information; and splicing the building components in the set of building components to be spliced ​​based on the component splicing information to generate a target virtual building complex.

[0080] One embodiment of this application modularizes the components used to generate virtual building complexes, which can effectively control the number of materials and components in the component set, avoid the same materials and components being created multiple times, reduce the workload of artists, reduce the complexity of models and materials, and speed up the model generation efficiency by splicing building components into building models. Attached Figure Description

[0081] Figure 1 This is a flowchart of a method for generating a virtual building complex according to an embodiment of this application;

[0082] Figure 2 This is a schematic diagram of a general component set provided in an embodiment of this application;

[0083] Figure 3 This is a schematic diagram of a virtual building complex provided in one embodiment of this application;

[0084] Figure 4 This is a flowchart illustrating a method for generating a virtual building complex in an animation scene, as provided in one embodiment of this application.

[0085] Figure 5 This is a schematic diagram of the structure of a virtual building complex generation device provided in an embodiment of this application;

[0086] Figure 6 This is a flowchart of another method for generating a virtual building complex according to an embodiment of this application;

[0087] Figure 7This is a schematic diagram of the structure of another virtual building complex generation device provided in an embodiment of this application;

[0088] Figure 8 This is a structural block diagram of a computing device provided in one embodiment of this application. Detailed Implementation

[0089] Many specific details are set forth in the following description to provide a full understanding of this application. However, this application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this application; therefore, this application is not limited to the specific embodiments disclosed below.

[0090] The terminology used in one or more embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the scope of one or more embodiments of this application. The singular forms “a,” “the,” and “the” used in one or more embodiments of this application and in the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” used in one or more embodiments of this application refers to and includes any or all possible combinations of one or more associated listed items.

[0091] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this application, and similarly, second may also be referred to as first. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."

[0092] First, the terms and concepts involved in one or more embodiments of this application will be explained.

[0093] Level of Detail (LOD): This refers to the allocation of rendering resources based on the position and importance of the object model's nodes in the display environment, reducing the face count and detail of unimportant objects, thereby achieving high-efficiency rendering computation.

[0094] This application provides a method for generating a virtual building complex, and also relates to an apparatus for generating a virtual building complex, a computing device, and a computer-readable storage medium, which will be described in detail in the following embodiments.

[0095] Figure 1 A flowchart illustrating a method for generating a virtual building complex according to an embodiment of this application is shown, specifically including the following steps:

[0096] Step 102: Receive the generation instructions for the virtual building complex.

[0097] With the development of computer technology, virtual buildings are being generated in an increasing number of scenarios, such as large-scale games, animation production, and film production. The core of this application's embodiments lies in creating virtual building clusters within virtual scenes. The process of generating building clusters is basically the same for different application scenarios. The following embodiments will describe in detail the process of generating building clusters in a game scene.

[0098] In a game scenario, users can control their game characters to enter a game map where a large number of buildings exist. The virtual building complex mentioned in this application can be understood as a large-scale building complex. A large-scale building complex refers to a building complex that is large in scale and wide in scope, including not only the area occupied by the buildings, but also the extension of the buildings in three-dimensional space.

[0099] If the size of a virtual building complex exceeds a first size threshold, it can be identified as a large-scale virtual building complex; if the size exceeds a second size threshold, it can be identified as an ultra-large-scale virtual building complex. The second size threshold is greater than the first size threshold. The larger the size of the virtual building complex, the more resources and manpower are required to create it.

[0100] During the creation of virtual scenes, it is necessary to build corresponding virtual building groups in advance. At this time, a generation command for building a large-scale virtual building group will be received. This generation command is used to generate the virtual building group.

[0101] Step 104: In response to the generation instruction, obtain the building component set and the building group attribute information of the virtual building group.

[0102] The building group attribute information includes building component information and component splicing information.

[0103] Specifically, the building component collection stores all the components used to compose the virtual building, such as doors, windows, counters, chairs, the main building structure, signs, water tanks, and so on.

[0104] The building group attribute information of a virtual building group specifically refers to the attribute information of the virtual buildings during the generation of the virtual building group. In practical applications, the building group attribute information specifically includes building component information and component splicing information. The building component information specifically records which building components are needed for the virtual buildings in the virtual building group. For example, virtual building A needs door 1, window 2, building body 1, water tank 1, etc. The component splicing information specifically records how the building components of the virtual building should be spliced. For example, for virtual building A, door 1 is on the east side, window 2 is next to the door, water tank 1 is on the top of building body 1, etc.

[0105] Optionally, in response to the generation instruction, obtaining the building cluster attribute information of the virtual building cluster includes:

[0106] In response to the generation instruction, the building component information and component splicing information of the virtual building complex are obtained, wherein the building component information is used to determine the components of each virtual building, and the component splicing information is used to determine the splicing order of the components of each virtual building;

[0107] The building group attribute information of the virtual building group is generated based on the building component information and the component splicing information.

[0108] Among them, building component information and component splicing information can be pre-recorded in the corresponding requirement configuration file. In practical applications, when it is necessary to generate a virtual building group, the scale, shape and style of the virtual building group need to be designed in advance by the designer, and the corresponding requirement configuration file of the virtual building group needs to be generated. The requirement configuration file will record the detailed parameter information of the virtual building group. In response to the generation command, the requirement configuration file can be read. From the specified location in the requirement configuration file, the building component information and component splicing information of the virtual building group can be read. The building component information is used to determine which building components are needed for each virtual building, and the component splicing information is used to determine how the building components corresponding to each virtual building should be spliced.

[0109] After reading the relevant building component information and component splicing information for each virtual building in the requirements configuration file, the building group attribute information can be generated based on the two.

[0110] Optionally, in response to the generation instruction, a set of building components is obtained, including:

[0111] In response to the generation instruction, a set of general building components, a set of additional building components, and a set of building activity area components are obtained, wherein the components in the set of building activity area components are multi-level detail components.

[0112] Specifically, the building component set refers to a pre-generated collection of various building components used to assemble virtual buildings. In practical applications, the building component set is divided into a general building component set, an additional building component set, and a building activity area component set. Among them, the components in the building activity area component set are multi-level detail components.

[0113] The general building component set specifically refers to general components used to generate virtual buildings, such as building structures, doors and windows, chairs, cabinets, etc. The number of materials in the general building component set is less than or equal to a first preset threshold. Controlling the number of materials in the general building component set to be less than or equal to the first preset threshold ensures that the number of materials in the general building components does not exceed the limit, reducing client-side file size. See also... Figure 2 , Figure 2 A schematic diagram of a general component set provided in an embodiment of this application is shown, such as... Figure 2 As shown, the common components include cabinets, the main building structure, doorways, etc. Figure 2 The bottom right corner shows the material spheres in the general building component set. There are 4 material spheres, which means that the material in the general building component set is one of these 4 material spheres. A general component can be identified by the component and the material.

[0114] The building add-on component set specifically refers to components used to attach to virtual buildings. In practical applications, it can be further divided into top components, middle components, and bottom components. Top components include those deployed at the top of the virtual building, such as water tanks and electrical wiring; middle components include those deployed in the middle of the virtual building, such as signs and drainage pipes; and bottom components include those deployed at the bottom of the virtual building, such as storefronts, fire hydrants, and trash cans. It is important to note that the total number of building add-on component materials in the set must be less than or equal to a second preset threshold. In other words, the number of materials in the building add-on component set cannot exceed a certain limit. Therefore, detailed planning of the upper limit of the number of materials in the building add-on component set is necessary to reduce client-side capacity.

[0115] The architectural activity area component set specifically refers to the area components in a virtual scene that require frequent interaction with the user. For example, in a game scene, when a user enters a store and interacts with non-player characters (NPCs), the counters and shelves in the store need more detailed processing. Therefore, the architectural activity area component is made into a multi-level of detail (LOD) component. LOD is short for Levels of Detail, which means multi-level detail. LOD technology refers to determining the resource allocation for object rendering based on the position and importance of the nodes of the object model in the display environment, reducing the face count and detail of unimportant objects, thereby achieving high-efficiency rendering computation.

[0116] In short, for LOD components, the closer the user is to the component, the more detailed the component is displayed, thus providing a better interactive experience. It should be noted that in the embodiments provided in this application, the number of materials in the building activity area component set is less than or equal to a third preset threshold. That is, similar to the requirements for the number of materials in the general building component set and the additional building component set mentioned above, the number of materials in the building activity area component set also needs to be limited.

[0117] By limiting the number of materials in each component set, we can make detailed plans for the upper limit of material IDs in each component set, ensuring that the number of materials in each component set does not exceed the limit, thereby reducing the overall size of the materials in the terminal and effectively reducing the model size.

[0118] In practical applications, the building component set also includes a set of individual components. A set of individual components refers to components that can be used directly in a virtual building without needing to be assembled, such as chairs, lamps, signal lights, etc.

[0119] Step 106: Obtain the set of building components to be assembled from the set of building components based on the building component information.

[0120] After obtaining the building component information, the set of components to be assembled can be obtained from the building component set. The set of building components to be assembled specifically refers to the building components used to assemble the virtual building during the current virtual building generation process. In practical applications, assembling the virtual building will use at least one of the following set of components: the general building component set, the additional building component set, and the building activity area component set, from which the building components to be assembled can be obtained.

[0121] Furthermore, the building component information includes building component sub-information corresponding to each virtual building;

[0122] Based on the building component information, a set of building components to be assembled is obtained from the set of building components, including:

[0123] Determine the set of building components to be assembled for each virtual building based on the building component sub-information corresponding to each virtual building;

[0124] The set of building components to be assembled is obtained based on the subset of building components to be assembled corresponding to each virtual building.

[0125] In practical applications, a virtual building complex contains multiple virtual buildings. The corresponding building component information includes the building component sub-information corresponding to each virtual building. Each building component sub-information corresponds to one virtual building. Based on the building component sub-information corresponding to each virtual building, the set of building components to be assembled corresponding to each virtual building can be determined.

[0126] After obtaining the subset of building components to be assembled for each virtual building, the subsets of building components to be assembled are combined together to obtain the set of building components to be assembled.

[0127] Specifically, based on the building component sub-information corresponding to each virtual building, a subset of building components to be assembled is determined for each virtual building, including:

[0128] Identify the target virtual building within the virtual building complex;

[0129] Determine the target building component sub-information corresponding to the target virtual building from the building component information;

[0130] Based on the target building component sub-information, the set of building components to be assembled corresponding to the target virtual building is determined in the set of building components.

[0131] In one specific embodiment provided in this application, taking virtual building B as an example, the building component sub-information corresponding to virtual building B is determined to be building component sub-information b. The building components required to build virtual building B are recorded in building component sub-information b. Based on the building component sub-information b, the set of building components to be assembled corresponding to virtual building B is determined in the set of building components as (building body 1, building body 2, window 1, roof 1, etc.).

[0132] Furthermore, the single component to be assembled corresponding to the target virtual building can be determined from the set of single components. For example, if a room in the target virtual building needs a bed and a chair, and the bed and chair are single objects that do not need to be assembled, then the corresponding component can be directly selected from the set of single objects to assemble the target virtual building.

[0133] In practical applications, there may also be some mechanical activity components, such as robotic arms, conveyor belts, and assembly lines. For these functional components, it is also necessary to obtain the corresponding component animations or actions to achieve the corresponding dynamic effects, such as the robotic arm's handling and the conveyor belt's transport of items.

[0134] For some material breakage components, the component can be processed based on the material parameters obtained in the breakage test scenario. For example, for a vase, the broken component after the vase breaks can be obtained in the breakage test scenario, and the scene after the vase is broken can be restored based on the broken component to achieve a more refined scene restoration.

[0135] Step 108: Based on the component splicing information, splice the building components in the set of building components to be spliced ​​to generate the target virtual building complex.

[0136] After obtaining the set of building components to be assembled, the components can be assembled according to the component assembly information and the building components in the set of components to be assembled to generate the final target virtual building complex.

[0137] Furthermore, the component splicing information includes component splicing sub-information corresponding to each virtual building;

[0138] Based on the component splicing information, the building components in the set of building components to be spliced ​​are spliced ​​together to generate a target virtual building complex, including:

[0139] Each virtual building is generated based on the building components in the set of building components to be assembled and the component splicing sub-information corresponding to each virtual building;

[0140] By piecing together each virtual building, the target virtual building complex is generated.

[0141] The component splicing information includes component splicing sub-information for each virtual building. This sub-information records how each building component to be spliced ​​within each virtual building is assembled. Each virtual building can be generated by splicing it together based on its corresponding component splicing sub-information and the building components in the set of components to be spliced. Finally, these virtual buildings are spliced ​​together to generate the target virtual building complex.

[0142] In practical applications, the building group attribute information also includes building splicing information;

[0143] By piecing together each virtual building, a target virtual building complex is generated, including:

[0144] Each virtual building is combined based on the building splicing information to generate the target virtual building complex.

[0145] The building stitching information is used to record the location information of each virtual building. For example, virtual building A is adjacent to virtual building B, virtual building A is to the west of virtual building C, and so on. Based on the building stitching information, each virtual building can be placed in its corresponding position to generate the target virtual building group.

[0146] The method for generating a virtual building complex provided in this application includes receiving a generation instruction for the virtual building complex; obtaining a set of building components and building complex attribute information of the virtual building complex in response to the generation instruction, wherein the building complex attribute information includes building component information and component splicing information; obtaining a set of building components to be spliced ​​from the set of building components based on the building component information; and splicing the building components in the set of building components to be spliced ​​based on the component splicing information to generate a target virtual building complex.

[0147] See Figure 3 , Figure 3 A schematic diagram of a virtual building complex provided in an embodiment of this application is shown, such as... Figure 3 As shown, the above method for generating virtual building complexes can quickly construct large-scale virtual building complexes while saving rendering resources and reducing the complexity of materials and modeling.

[0148] One embodiment of this application modularizes the components used to generate virtual building complexes, which can effectively control the number of materials and components in the component set, avoid the same materials and components being created multiple times, reduce the workload of artists, reduce the complexity of models and materials, and speed up the model generation efficiency by splicing building components into building models.

[0149] The following is in conjunction with the appendix Figure 4 Taking the application of the virtual building group generation method provided in this application in an animation scene as an example, the method for generating the virtual building group will be further explained. Figure 4 The diagram illustrates a process flowchart of a method for generating a virtual building complex in an animation scene according to an embodiment of this application, specifically including the following steps:

[0150] Step 402: Receive the generation instructions for the virtual building complex.

[0151] Step 404: In response to the generation instruction, obtain the building component information and component splicing information of the virtual building complex.

[0152] The building component information includes building component sub-information corresponding to each virtual building, and the component splicing information includes component splicing sub-information corresponding to each virtual building.

[0153] Step 406: In response to the generation instruction, obtain the building general component set, the building additional component set, and the building activity area component set.

[0154] Wherein, the number of materials of general building components in the general building component set is less than or equal to a first preset threshold; the number of materials of additional building components in the additional building component set is less than or equal to a second preset threshold; and the number of materials of activity area components in the activity area component set is less than or equal to a third preset threshold.

[0155] Step 408: Identify the target virtual building in the virtual building group.

[0156] Step 410: Determine the target building component sub-information and target component splicing sub-information corresponding to the target virtual building.

[0157] Step 412: Based on the target building component sub-information, determine the set of building components to be assembled corresponding to the target virtual building from the set of general building components, the set of additional building components, and the set of building activity area components.

[0158] Step 414: Assemble the set of building components based on the target component splicing sub-information to obtain the target virtual building.

[0159] Step 416: Combine each target virtual building according to the building splicing information in the building group attribute information to generate the target virtual building group.

[0160] Corresponding to the above method embodiments, this application also provides embodiments of a device for generating virtual building complexes. Figure 5 A schematic diagram of the structure of a virtual building complex generation device provided in one embodiment of this application is shown.

[0161] like Figure 5 As shown, the device includes:

[0162] The receiving module 502 is configured to receive generation instructions for the virtual building complex;

[0163] The information acquisition module 504 is configured to obtain the building component set and the building group attribute information of the virtual building group in response to the generation instruction, wherein the building group attribute information includes building component information and component splicing information;

[0164] The component acquisition module 506 is configured to acquire a set of building components to be assembled from the building component set based on the building component information;

[0165] The splicing module 508 is configured to splice the building components in the set of building components to be spliced ​​based on the component splicing information to generate a target virtual building complex.

[0166] Optionally, the information acquisition module 504 is further configured to:

[0167] In response to the generation instruction, the building component information and component splicing information of the virtual building complex are obtained, wherein the building component information is used to determine the components of each virtual building, and the component splicing information is used to determine the splicing order of the components of each virtual building;

[0168] The building group attribute information of the virtual building group is generated based on the building component information and the component splicing information.

[0169] Optionally, the component acquisition module 506 is further configured to:

[0170] In response to the generation instruction, a set of general building components, a set of additional building components, and a set of building activity area components are obtained, wherein the components in the set of building activity area components are multi-level detail components.

[0171] Optional:

[0172] The number of materials of the general building components in the set of general building components is less than or equal to a first preset threshold.

[0173] The number of building component materials in the set of building components is less than or equal to the second preset threshold.

[0174] The number of materials of the building activity area components in the building activity area component set is less than or equal to the third preset threshold.

[0175] Optionally, the building component information includes building component sub-information corresponding to each virtual building;

[0176] The component acquisition module 506 is further configured to:

[0177] Determine the set of building components to be assembled for each virtual building based on the building component sub-information corresponding to each virtual building;

[0178] The set of building components to be assembled is obtained based on the subset of building components to be assembled corresponding to each virtual building.

[0179] Optionally, the component acquisition module 506 is further configured to:

[0180] Identify the target virtual building within the virtual building complex;

[0181] Determine the target building component sub-information corresponding to the target virtual building from the building component information;

[0182] Based on the target building component sub-information, the set of building components to be assembled corresponding to the target virtual building is determined in the set of building components.

[0183] Optionally, the component splicing information includes component splicing sub-information corresponding to each virtual building;

[0184] The splicing module 508 is further configured as follows:

[0185] Each virtual building is generated based on the building components in the set of building components to be assembled and the component splicing sub-information corresponding to each virtual building;

[0186] By piecing together each virtual building, the target virtual building complex is generated.

[0187] Optionally, the building complex attribute information may also include building splicing information;

[0188] The splicing module 508 is further configured as follows:

[0189] Each virtual building is combined based on the building splicing information to generate the target virtual building complex.

[0190] Optionally, the building component set may also include a single component set.

[0191] The virtual building complex generation apparatus provided in this application receives a generation instruction for a virtual building complex; in response to the generation instruction, obtains a set of building components and building complex attribute information of the virtual building complex, wherein the building complex attribute information includes building component information and component splicing information; obtains a set of building components to be spliced ​​from the set of building components based on the building component information; and splices the building components in the set of building components to be spliced ​​based on the component splicing information to generate a target virtual building complex.

[0192] One embodiment of this application modularizes the components used to generate virtual building complexes, which can effectively control the number of materials and components in the component set, avoid the same materials and components being created multiple times, reduce the workload of artists, reduce the complexity of models and materials, and speed up the model generation efficiency by splicing building components into building models.

[0193] The above is a schematic scheme of a virtual building group generation device according to this embodiment. It should be noted that the technical solution of this virtual building group generation device and the technical solution of the virtual building group generation method described above belong to the same concept. For details not described in detail in the technical solution of the virtual building group generation device, please refer to the description of the technical solution of the virtual building group generation method described above.

[0194] See Figure 6 , Figure 6 The flowchart illustrates another method for generating a virtual building complex according to an embodiment of this application, specifically including the following steps:

[0195] Step 602: Based on the user's request, display the virtual building complex generation interface to the user.

[0196] Step 604: Receive the user's command to generate the virtual building complex based on the virtual building complex generation interface.

[0197] Step 606: Display the building component set in response to the generation instruction.

[0198] Step 608: Obtain the set of building components to be assembled from the set of building components based on the building component information input by the user.

[0199] Step 610: Based on the component splicing information input by the user, splice the building components in the set of building components to be spliced ​​to generate the target virtual building complex.

[0200] The alternative method for generating virtual building complexes provided in this application offers users a generation interface for creating virtual building complexes. Based on the user's input generation instructions, it displays a set of building components used to assemble the virtual building complex. Based on the user's operation instructions, it determines the set of building components to be assembled and assembles them. Through a modular building method, virtual building complexes can be created conveniently and quickly, improving the user experience.

[0201] Corresponding to the above-described embodiment of another method for generating virtual building complexes, this application also provides an embodiment of another apparatus for generating virtual building complexes. Figure 7 The diagram shows a structural schematic of an apparatus for generating another virtual building complex according to an embodiment of this application, such as... Figure 7 As shown, the device includes:

[0202] The interface display module 702 is configured to display the virtual building complex generation interface to the user based on the user's call request;

[0203] The receiving module 704 is configured to receive the generation instruction for the virtual building complex input by the user based on the virtual building complex generation interface;

[0204] Component display module 706 is configured to display a set of building components in response to the generation instruction;

[0205] The acquisition module 708 is configured to acquire a set of building components to be assembled from the building component set based on the building component information input by the user.

[0206] The splicing module 710 is configured to splice the building components in the set of building components to be spliced ​​according to the component splicing information input by the user, so as to generate a target virtual building complex.

[0207] The virtual building complex generation device provided in this application provides users with a generation interface for creating virtual building complexes. It displays a set of building components for building virtual building complexes based on the user's input generation instructions, determines the set of building components to be assembled based on the user's operation instructions, and assembles them. Through a modular building method, virtual building complexes can be created conveniently and quickly, improving the user experience.

[0208] The above is an illustrative scheme of another virtual building group generation device according to this embodiment. It should be noted that the technical solution of this virtual building group generation device and the technical solution of the other virtual building group generation method described above belong to the same concept. For details not described in detail in the technical solution of this virtual building group generation device, please refer to the description of the technical solution of the other virtual building group generation method described above.

[0209] Figure 8 A structural block diagram of a computing device 800 according to an embodiment of this application is shown. The components of the computing device 800 include, but are not limited to, a memory 810 and a processor 820. The processor 820 is connected to the memory 810 via a bus 830, and a database 850 is used to store data.

[0210] The computing device 800 also includes an access device 840, which enables the computing device 800 to communicate via one or more networks 860. Examples of these networks include a Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the Internet. The access device 840 may include one or more of any type of wired or wireless network interface (e.g., a Network Interface Card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) interface, a Wi-MAX interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and so on.

[0211] In one embodiment of this application, the aforementioned components of the computing device 800 and Figure 8 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 8 The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this application. Those skilled in the art can add or replace other components as needed.

[0212] The computing device 800 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 800 can also be a mobile or stationary server.

[0213] The processor 820 executes the computer instructions to implement the steps of the method for generating the virtual building complex.

[0214] The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the above-described method for generating virtual building groups belong to the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the above-described method for generating virtual building groups.

[0215] An embodiment of this application also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the steps of the method for generating a virtual building complex as described above.

[0216] The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the above-described method for generating virtual building groups belong to the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the above-described method for generating virtual building groups.

[0217] The foregoing has described specific embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0218] The computer instructions include computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium may be appropriately added to or subtracted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media may not include electrical carrier signals and telecommunication signals.

[0219] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0220] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0221] The preferred embodiments disclosed above are merely illustrative of this application. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this application. These embodiments are selected and specifically described in this application to better explain the principles and practical applications of this application, thereby enabling those skilled in the art to better understand and utilize this application. This application is limited only by the claims and their full scope and equivalents.

Claims

1. A method for generating a virtual building complex, characterized in that, include: Receive instructions for generating virtual building complexes; In response to the generation instruction, a set of building components and building group attribute information of the virtual building group are obtained, wherein the building group attribute information includes building component information, building splicing information and component splicing information, the component splicing information is used to determine the splicing method of the building components corresponding to the virtual building, and the building splicing information is used to determine the location information of each virtual building; Based on the building component information, obtain the set of building components to be assembled from the set of building components; Based on the component splicing information, the building components in the set of building components to be spliced ​​are spliced ​​together to generate a target virtual building group, wherein the target virtual building group is obtained by placing the virtual buildings in corresponding positions according to the building splicing information.

2. The method as described in claim 1, characterized in that, in, The building component information is used to determine the components of each virtual building.

3. The method as described in claim 1, characterized in that, In response to the generation instruction, a set of building components is obtained, including: In response to the generation instruction, a set of general building components, a set of additional building components, and a set of building activity area components are obtained, wherein the components in the set of building activity area components are multi-level detail components.

4. The method as described in claim 3, characterized in that, The method further includes: The number of materials of the general building components in the set of general building components is less than or equal to a first preset threshold. The number of building component materials in the set of building components is less than or equal to the second preset threshold. The number of materials of the building activity area components in the building activity area component set is less than or equal to the third preset threshold.

5. The method as described in claim 1, characterized in that, The building component information includes building component sub-information corresponding to each virtual building; Based on the building component information, a set of building components to be assembled is obtained from the set of building components, including: Determine the set of building components to be assembled for each virtual building based on the building component sub-information corresponding to each virtual building; The set of building components to be assembled is obtained based on the subset of building components to be assembled corresponding to each virtual building.

6. The method as described in claim 5, characterized in that, Based on the building component sub-information corresponding to each virtual building, determine the set of building components to be assembled for each virtual building, including: Identify the target virtual building within the virtual building complex; Determine the target building component sub-information corresponding to the target virtual building from the building component information; Based on the target building component sub-information, the set of building components to be assembled corresponding to the target virtual building is determined in the set of building components.

7. The method as described in claim 1, characterized in that, The component splicing information includes the component splicing sub-information corresponding to each virtual building; Based on the component splicing information, the building components in the set of building components to be spliced ​​are spliced ​​together to generate a target virtual building complex, including: Each virtual building is generated based on the building components in the set of building components to be assembled and the component splicing sub-information corresponding to each virtual building; By piecing together each virtual building, the target virtual building complex is generated.

8. The method as described in claim 7, characterized in that, The building complex attribute information also includes building splicing information; By piecing together each virtual building, a target virtual building complex is generated, including: Each virtual building is combined based on the building splicing information to generate the target virtual building complex.

9. The method as described in claim 1, characterized in that, The building component set also includes a set of individual components.

10. A method for generating a virtual building complex, characterized in that, include: The system displays a virtual building complex generation interface to the user based on their request. Receive the user's command to generate the virtual building complex based on the virtual building complex generation interface; The building component set is displayed in response to the generation command; The set of building components to be assembled is obtained from the set of building components based on the building component information input by the user. Based on the component splicing information and building splicing information input by the user, the building components in the set of building components to be spliced ​​are spliced ​​together to generate a target virtual building group. The component splicing information is used to determine the splicing method of the building components corresponding to the virtual buildings, and the building splicing information is used to determine the position information of each virtual building. The target virtual building group is obtained by placing the virtual buildings in the corresponding positions according to the building splicing information.

11. A device for generating a virtual building complex, characterized in that, include: The receiving module is configured to receive generation instructions for the virtual building complex; The information acquisition module is configured to obtain the building component set and the building group attribute information of the virtual building group in response to the generation instruction. The building group attribute information includes building component information, building splicing information and component splicing information. The component splicing information is used to determine the splicing method of the building components corresponding to the virtual building, and the building splicing information is used to determine the location information of each virtual building. The component acquisition module is configured to acquire a set of building components to be assembled from the building component set based on the building component information; The splicing module is configured to splice building components in the set of building components to be spliced ​​based on the component splicing information to generate a target virtual building group, wherein the target virtual building group is obtained by placing the virtual buildings in corresponding positions according to the building splicing information.

12. A device for generating a virtual building complex, characterized in that, include: The interface display module is configured to display the virtual building complex generation interface to the user based on the user's call request; The receiving module is configured to receive the generation instructions for the virtual building complex input by the user based on the virtual building complex generation interface; The component display module is configured to display a collection of building components in response to the generation command; The acquisition module is configured to acquire a set of building components to be assembled from the set of building components based on the building component information input by the user. The splicing module is configured to splice the building components in the set of building components to be spliced ​​according to the component splicing information and building splicing information input by the user, and generate a target virtual building group. The component splicing information is used to determine the splicing method of the building components corresponding to the virtual buildings, and the building splicing information is used to determine the position information of each virtual building. The target virtual building group is obtained by placing the virtual buildings in the corresponding positions according to the building splicing information.

13. A computing device, comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, characterized in that, When the processor executes the computer instructions, it implements the steps of the method according to any one of claims 1-9 or 10.

14. A computer-readable storage medium storing computer instructions, characterized in that, When executed by a processor, the computer instructions implement the steps of the method according to any one of claims 1-9 or 10.