Roof model generation method, apparatus and storage medium
By generating and adjusting roof models, the problem of low efficiency in traditional manual production is solved, enabling the rapid generation of roof models that meet the requirements, improving production and scene building efficiency, and meeting the needs of high-intensity, fast-paced production.
Patent Information
- Application Number
- CN202510081986.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-17
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2045-01-17
AI Technical Summary
Traditional roof model making relies on manual operation, which is time-consuming and difficult to meet the needs of mass production and rapid response to creative feedback, resulting in extended project cycles and low production efficiency.
By obtaining the target roof type, an initial roof model is generated, and in response to the configuration operation of the control parameters, the initial roof model is adjusted to generate the target roof model. The control parameters are used to determine the geometry and appearance of the roof.
It enables the rapid generation of rooftop models that meet specific requirements, improving production and scene building efficiency. It can quickly respond to creative feedback and customer modification suggestions, meeting the needs of high-intensity, fast-paced production.
Smart Images

Figure CN119903586B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of artificial intelligence technology, and in particular to a method, apparatus and storage medium for generating roof models. Background Technology
[0002] In games, animation, and film, ancient architectural scenes are often important visual elements, and the creation of roofs is one of the most time-consuming and complex parts of ancient architectural modeling. Currently, traditional roof model creation mainly relies on the manual work of 3D modelers, requiring meticulous modeling of every detail. This method is not only time-consuming—creating a complete roof model typically takes one to two weeks—but also requires several days or even longer for adjustments when modifications to the form or structure are needed.
[0003] This manual production method is inefficient, especially in scenarios requiring mass production or frequent modifications. For example, in large-scale ancient architectural complexes in film and television dramas, dozens or even hundreds of different roof styles may be needed, and relying on manual modeling would significantly extend the project cycle. Furthermore, the ability to quickly respond to creative feedback or client modification suggestions is also limited, often failing to meet the demands of high-intensity, fast-paced production. Therefore, improving the efficiency of roof model generation has become a pressing issue. Summary of the Invention
[0004] In view of this, the present disclosure proposes a method, apparatus and storage medium for generating roof models.
[0005] According to one aspect of this disclosure, a method for generating a roof model is provided. The method includes:
[0006] Get the target roof type;
[0007] Generate an initial roof model based on the target roof type;
[0008] In response to configuration operations on control parameters, the initial roof model is adjusted to generate the target roof model. The control parameters are used to determine the geometry and / or appearance of the roof.
[0009] In one possible implementation, the control parameters include parameters that control the roof geometry. In response to configuration operations on the control parameters, the initial roof model is adjusted to generate a target roof model, including:
[0010] In response to configuration operations on parameters controlling the roof geometry, the geometry of the initial roof model is adjusted to generate the target roof model;
[0011] Among them, the parameters controlling the roof geometry are associated with the target roof type.
[0012] In one possible implementation, the target roof type is any one of gable roof, overhanging gable roof, hip roof, hipped roof, pyramidal roof, and double-eaved roof. The parameters controlling the roof geometry include any one or more of the following: length, width, height, slope, eaves ridge shape, and upturned corner shape.
[0013] In response to whether the target roof type is gable or double-eaved, the parameters controlling the roof geometry also include the ridge curvature;
[0014] In response to the target roof type being gable roof, the parameters controlling the roof geometry also include the ridge curvature and / or the eaves length;
[0015] In response to the target roof type being a pyramidal roof, the parameters controlling the roof geometry also include one or more of the following: radius and number of sides;
[0016] In response to the target roof type being a hip roof, the parameters controlling the roof geometry also include the ridge length ratio and / or ridge curvature;
[0017] In response to the target roof type being a hip roof, the parameters controlling the roof geometry also include any one or more of the following: hip roof height, hip roof angle, and eaves slope curve.
[0018] In one possible implementation, the length, width, radius, and bottom shape of the initial roof model are determined based on information about the main building structure.
[0019] In one possible implementation, the control parameters include parameters controlling the tile shape. In response to configuration operations on the control parameters, the initial roof model is adjusted to generate a target roof model, including:
[0020] In response to configuration operations on parameters controlling the tile shape, the tile shape on the initial roof model is adjusted to generate the target roof model;
[0021] The parameters controlling the shape of the tiles include one or more of the following: tile size, tile spacing, and tile style.
[0022] In one possible implementation, the control parameters include parameters controlling the decorative components. In response to configuration operations on the control parameters, the initial roof model is adjusted to generate a target roof model, including:
[0023] In response to the configuration operation of the parameters of the control decorative components, the corresponding decorative components are placed at preset positions on the initial roof model, or the shape of the corresponding decorative components on the initial roof model is adjusted to generate the target roof model.
[0024] The preset location is associated with the target roof type, and the decorative components include any one or more of the following: ridge, ridge ornament, and gable.
[0025] In one possible implementation, the control parameters include parameters that control the roof damage pattern. In response to configuration operations on the control parameters, the initial roof model is adjusted to generate a target roof model, including:
[0026] In response to configuration operations on parameters controlling the roof damage pattern, the damage pattern on the initial roof model is adjusted to generate the target roof model;
[0027] Among them, the parameters controlling the roof damage pattern include parameters controlling the roof hole pattern and / or parameters controlling the roof deformation pattern.
[0028] In one possible implementation, the control parameters include parameters that control the bottom surface style of the roof. In response to configuration operations on the control parameters, the initial roof model is adjusted to generate a target roof model, including:
[0029] In response to configuration operations on parameters controlling the bottom surface style of the roof, the bottom surface style of the initial roof model is adjusted to generate the target roof model;
[0030] The parameters controlling the bottom surface style of the roof include any one or more of the following: parameters related to the bottom surface shape, parameters related to the sheathing, parameters related to the rafters, and parameters related to the eaves.
[0031] According to another aspect of this disclosure, a roof model generation apparatus is provided. The apparatus includes:
[0032] The acquisition module is used to obtain the target roof type;
[0033] The first generation module is used to generate an initial roof model based on the target roof type;
[0034] The second generation module is used to adjust the initial roof model in response to the configuration operation of the control parameters and generate the target roof model. The control parameters are used to determine the geometry and / or appearance of the roof.
[0035] In one possible implementation, the control parameters include parameters controlling the roof geometry, and a second generation module is used for:
[0036] In response to configuration operations on parameters controlling the roof geometry, the geometry of the initial roof model is adjusted to generate the target roof model;
[0037] Among them, the parameters controlling the roof geometry are associated with the target roof type.
[0038] In one possible implementation, the target roof type is any one of gable roof, overhanging gable roof, hip roof, hipped roof, pyramidal roof, and double-eaved roof. The parameters controlling the roof geometry include any one or more of the following: length, width, height, slope, eaves ridge shape, and upturned corner shape.
[0039] In response to whether the target roof type is gable or double-eaved, the parameters controlling the roof geometry also include the ridge curvature;
[0040] In response to the target roof type being gable roof, the parameters controlling the roof geometry also include the ridge curvature and / or the eaves length;
[0041] In response to the target roof type being a pyramidal roof, the parameters controlling the roof geometry also include one or more of the following: radius and number of sides;
[0042] In response to the target roof type being a hip roof, the parameters controlling the roof geometry also include the ridge length ratio and / or ridge curvature;
[0043] In response to the target roof type being a hip roof, the parameters controlling the roof geometry also include any one or more of the following: hip roof height, hip roof angle, and eaves slope curve.
[0044] In one possible implementation, the length, width, radius, and bottom shape of the initial roof model are determined based on information about the main building structure.
[0045] In one possible implementation, the control parameters include parameters controlling the tile shape, and a second generation module is used for:
[0046] In response to configuration operations on parameters controlling the tile shape, the tile shape on the initial roof model is adjusted to generate the target roof model;
[0047] The parameters controlling the shape of the tiles include one or more of the following: tile size, tile spacing, and tile style.
[0048] In one possible implementation, the control parameters include parameters for controlling the decorative components. A second generation module is used for:
[0049] In response to the configuration operation of the parameters of the control decorative components, the corresponding decorative components are placed at preset positions on the initial roof model, or the shape of the corresponding decorative components on the initial roof model is adjusted to generate the target roof model.
[0050] The preset location is associated with the target roof type, and the decorative components include any one or more of the following: ridge, ridge ornament, and gable.
[0051] In one possible implementation, the control parameters include parameters controlling the roof damage pattern, and a second generation module is used for:
[0052] In response to configuration operations on parameters controlling the roof damage pattern, the damage pattern on the initial roof model is adjusted to generate the target roof model;
[0053] Among them, the parameters controlling the roof damage pattern include parameters controlling the roof hole pattern and / or parameters controlling the roof deformation pattern.
[0054] In one possible implementation, the control parameters include parameters controlling the bottom surface style of the roof, and a second generation module is used for:
[0055] In response to configuration operations on parameters controlling the bottom surface style of the roof, the bottom surface style of the initial roof model is adjusted to generate the target roof model;
[0056] The parameters controlling the bottom surface style of the roof include any one or more of the following: parameters related to the bottom surface shape, parameters related to the sheathing, parameters related to the rafters, and parameters related to the eaves.
[0057] According to another aspect of this disclosure, a roof model generation apparatus is provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the above-described method when executing the instructions stored in the memory.
[0058] According to another aspect of this disclosure, a non-volatile computer-readable storage medium is provided that stores computer program instructions thereon, wherein the computer program instructions, when executed by a processor, implement the above-described method.
[0059] According to another aspect of this disclosure, a computer program product is provided, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code, wherein when the computer-readable code is run in a processor of an electronic device, the processor in the electronic device performs the above-described method.
[0060] According to embodiments of this disclosure, an initial roof model is generated based on the target roof type by obtaining the target roof type; in response to the configuration operation of control parameters, the initial roof model is adjusted to generate the target roof model. This allows for the rapid generation of a roof model that meets the requirements through control parameters, improving the efficiency of roof model production and scene construction. The control parameters are used to determine the geometric structure and / or appearance of the roof, enabling rapid response to creative feedback or customer modification suggestions, and more targeted adjustments to the roof model to meet the demands of high-intensity, fast-paced production.
[0061] Other features and aspects of this disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description
[0062] The accompanying drawings, which are included in and form part of this specification, illustrate exemplary embodiments, features, and aspects of this disclosure together with the specification and serve to explain the principles of this disclosure.
[0063] Figure 1 A schematic diagram illustrating an application scenario according to an embodiment of this disclosure is shown.
[0064] Figure 2 A flowchart illustrating a method for generating a roof model according to an embodiment of the present disclosure is shown.
[0065] Figure 3 A schematic diagram of an initial roof model according to an embodiment of the present disclosure is shown.
[0066] Figure 4 A schematic diagram showing the tile morphology according to an embodiment of the present disclosure is provided.
[0067] Figure 5 A schematic diagram of a target roof model according to an embodiment of the present disclosure is shown.
[0068] Figure 6 A structural diagram of a roof model generation apparatus according to an embodiment of the present disclosure is shown.
[0069] Figure 7 This is a block diagram illustrating an apparatus 1900 for generating a roof model according to an exemplary embodiment. Detailed Implementation
[0070] Various exemplary embodiments, features, and aspects of this disclosure will now be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of the embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.
[0071] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments.
[0072] Furthermore, to better illustrate this disclosure, numerous specific details are set forth in the following detailed description. Those skilled in the art will understand that this disclosure can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art have not been described in detail in order to highlight the main points of this disclosure.
[0073] In games, animation, and film, ancient architectural scenes are often important visual elements, and the creation of roofs is one of the most time-consuming and complex parts of ancient architectural modeling. Currently, traditional roof model creation mainly relies on the manual work of 3D modelers, requiring meticulous modeling of every detail. This method is not only time-consuming—creating a complete roof model typically takes one to two weeks—but also requires several days or even longer for adjustments when modifications to the form or structure are needed.
[0074] This manual production method is inefficient, especially in scenarios requiring mass production or frequent modifications. For example, in large-scale ancient architectural complexes in film and television dramas, dozens or even hundreds of different roof styles may be needed, and relying on manual modeling would significantly extend the project cycle. Furthermore, the ability to quickly respond to creative feedback or client modification suggestions is also limited, often failing to meet the demands of high-intensity, fast-paced production. Therefore, improving the efficiency of roof model generation has become a pressing issue.
[0075] In view of this, this disclosure provides a method, apparatus, and storage medium for generating roof models. The method of this disclosure obtains a target roof type, generates an initial roof model based on the target roof type, and adjusts the initial roof model in response to configuration operations on control parameters to generate a target roof model. This allows for the rapid generation of roof models that meet specific requirements through control parameters, improving the efficiency of roof model production and scene construction. The control parameters are used to determine the geometry and / or appearance of the roof, enabling rapid response to creative feedback or customer modification suggestions, and more targeted adjustments to the roof model to meet the demands of high-intensity, fast-paced production.
[0076] Figure 1 The diagram illustrates an application scenario according to an embodiment of this disclosure. The roof model generation system of this disclosure can be widely used in various scenarios requiring the creation of ancient buildings, such as games, animation, and film. Figure 1 As shown, in one possible application scenario, the roof model generation system of this disclosure embodiment can be built as a procedural content generation (PCG) tool based on any three-dimensional computer graphics software (such as Houdini). The roof model generation system of this disclosure embodiment can not only be applied to any three-dimensional computer graphics software, but can also be extended to engine software (such as Unreal Engine) as a plug-in provided by the corresponding three-dimensional computer graphics software, thereby efficiently realizing the automated construction of ancient building roof models.
[0077] The roof model generation system of this disclosure can first generate an initial roof model based on the roof type configured by the user. The user can configure control parameters on the initial roof model, and the roof model generation system can adjust the generated initial roof model based on the user-configured control parameters to obtain a target roof model. This target roof model can be combined with models of other building structures to obtain a complete ancient building model, which can be applied to the production scenarios of games, animations, films, and other works.
[0078] The roof model generation system of this disclosure can be used in terminal devices or servers. Terminal devices can be any one or more of the following: mobile phones, foldable electronic devices, tablets, desktop computers, laptops, handheld computers, ultra-mobile personal computers (UMPCs), netbooks, cellular phones, and vehicle-mounted devices. This disclosure does not impose special limitations on the specific type of terminal device; it can have wired or wireless communication capabilities. Servers can be located locally or in the cloud, and can be physical devices or virtual devices, such as virtual machines or containers, with wireless communication capabilities. These wireless communication capabilities can be configured in the server's chip (system) or other components. Wireless communication capabilities can be implemented, for example, through 2G / 3G / 4G / 5G mobile communication technologies, as well as Wi-Fi, Bluetooth, frequency modulation (FM), data radio, satellite communication, etc. Wired connections can also be used for communication to enable interaction with other devices.
[0079] Figure 2 A flowchart illustrating a roof model generation method according to an embodiment of the present disclosure is shown. This method can be used in the aforementioned roof model generation system, such as... Figure 2 As shown, the method may include:
[0080] Step S201: Obtain the target roof type.
[0081] The roof in this embodiment can be a roof related to ancient architecture. The roof type can be a roof in a common style in ancient architecture, such as a gable roof, a suspended gable roof, a hip roof, a hipped roof, a pyramidal roof, a double-eaved roof, etc. The roof type can also be further subdivided. For example, the "hipped roof" type can be further subdivided into "ordinary hipped roof" and "cross-shaped hipped roof", and the "pyramidal roof" type can be further subdivided into "circular pyramidal roof", "multi-angled pyramidal roof", etc. In this embodiment, the granularity of the roof type can be set as needed to meet the modeling needs of different scenarios.
[0082] Different roof types can be associated with specific roof geometry and appearance parameters (collectively referred to as control parameters). Geometric parameters may include, for example, the roof's length, width, and base shape. Appearance parameters may include, for example, tile shape, decorative components, damage patterns, and base style. Different roof types may include different combinations of geometric and / or appearance parameters, and these parameters can be set to different values for different roof types.
[0083] Roof types can also be roofs with geometric structures and appearances that differ from the common styles of ancient buildings, as needed. For example, users can pre-configure the values of control parameters to obtain a set of combinations of control parameters and define it as a new roof type, extending to architectural scenarios with unconventional styles or creative designs. For instance, corresponding to 100 different control parameters, users can choose to configure 20 of them to specific values and configure the remaining 80 control parameters to default values or default values, to obtain a new set of 100 combinations of control parameters and define it as a new roof type.
[0084] The target roof type can be any of the roof types mentioned above, such as gable roof, overhanging gable roof, hip roof, hipped roof, pyramidal roof, double-eaved roof, or other custom roof types. The target roof type can be selected and configured by the user for the roof model generation system of this disclosure embodiment. For example, the user can select the target roof type through the system interface, or determine the target roof type and configure the roof model generation system through a configuration file.
[0085] Step S202: Generate an initial roof model based on the target roof type.
[0086] An initial roof model represents a basic roof model, which can be subsequently adjusted to adapt to different scenario needs. In this embodiment, the roof model can be a three-dimensional model. The geometry and appearance of the initial roof model can be determined based on the target roof type. These geometry and appearance can be set as parameter values corresponding to the target roof type. These parameter values are unadjusted initial values, which can be preset by the user or automatically set by the system. For initial roof models corresponding to different roof types, some control parameters may share the same default values, or they may have different parameter values.
[0087] For example, in the default settings of the parameters corresponding to different roof types, appearance parameters such as tile shape can be kept consistent across different roof types to ensure the uniformity of the basic style of the generated initial roof model. However, geometric parameters closely related to the roof shape (such as the length, width, height, and radius of the roof) may use different values depending on the roof type to accurately reflect the unique structural characteristics of each type of roof in the generated initial roof model.
[0088] Figure 3 A schematic diagram of an initial roof model according to an embodiment of the present disclosure is shown. Figure 3 As shown, in order from left to right and from top to bottom, the six images correspond to the initial roof models for (1) the gable / suspended gable roof type; (2) the hip roof type; (3) the hipped gable roof type; (4) the multi-cornered pyramidal roof type; (5) the double-eaved roof type; and (6) the circular pyramidal roof type. It can be seen from the figures that the initial roof models for different roof types have their own unique geometric structures and appearance features. For example, taking geometric parameters as an example, for the initial roof models in (1), (2), (3), and (5) above, different parameters such as length and width can be set based on the roof type, while the radius is set to the default value; for the initial roof models in (4) and (6) above, different parameters such as radius can be set based on the roof type, while the length and width are set to the default value.
[0089] In this embodiment of the disclosure, any one or more of the length, width, radius, and bottom shape of the initial roof model can also be determined based on the building's main structural information.
[0090] Therefore, it is possible to dynamically and adaptively determine the relevant parameter values, making the roof model generation process more flexible and convenient, and obtaining a roof model that is adapted to actual modeling needs.
[0091] The building structure information can include structural parameters such as the length, width, and radius of the facade. The facade can represent the top outline or plan shape of the building structure directly connected to the roof. This building structure information can be configured by the user or obtained from an existing model related to the building structure directly connected to the roof. For example, for a quadrilateral facade, the length and width of the roof model can be determined based on the facade's length and width; for a circular facade, the radius of the roof model can be determined based on the facade's radius; and the initial roof model's base shape can be made consistent with the building structure's facade shape.
[0092] In step S203, in response to the configuration operation of the control parameters, the initial roof model is adjusted to generate the target roof model.
[0093] According to embodiments of this disclosure, an initial roof model is generated based on the target roof type by obtaining the target roof type; in response to the configuration operation of control parameters, the initial roof model is adjusted to generate the target roof model. This allows for the rapid generation of a roof model that meets the requirements through control parameters, improving the efficiency of roof model production and scene construction. The control parameters are used to determine the geometric structure and / or appearance of the roof, enabling rapid response to creative feedback or customer modification suggestions, and more targeted adjustments to the roof model to meet the demands of high-intensity, fast-paced production.
[0094] Control parameters can be used to determine the geometry and / or appearance of a roof. By using control parameters to determine the roof's geometry, the three-dimensional shape of the roof can be adjusted. By using control parameters to determine the roof's appearance, details such as the roof's material and texture can be adjusted.
[0095] For an initial roof model determined based on a target roof type, its corresponding control parameters already have preset values (or initial values), for example... Figure 3 The initial roof model shown has its length, width, height, radius, and other control parameters set to preset values. Users can configure these control parameters to adjust their values and, based on the adjusted control parameter values, adjust the geometry and / or appearance of the initial roof model to generate the target roof model.
[0096] This disclosure does not limit the method of configuration operation. For example, the user may input the value of one or more control parameters on the system interface, thereby adjusting the corresponding geometry and / or appearance of the initial roof model based on the user input value; or, for example, the configuration document may be obtained, and the corresponding one or more control parameters may be adjusted based on the parameter values in the configuration document, and the corresponding geometry and / or appearance of the initial roof model may be adjusted based on the adjusted control parameter values.
[0097] The control parameters can include parameters that control the roof geometry, which can include one or more of the following: length, width, height, slope, ridge shape, and eaves shape. The slope can include a slope curve / curvature. The ridge can include the main ridge and the eaves, and the ridge shape can include the ridge curvature, eave curvature, ridge shape curve, ridge shape curve, and weighted transition curve (representing the shape change from the ridge to the eaves). The eaves shape can represent the shape of the roof eaves corner, and can include, for example, the degree of eaves rise, the degree of eaves extension, eaves smoothness, smooth range, smooth transition range, eaves rise curve, and eaves extension curve.
[0098] The parameters for controlling the roof geometry mentioned above are associated with the target roof type. Different roof types may have different roof geometry parameters, either all or some of them.
[0099] Therefore, it is possible to control the roof geometry and make more refined adjustments for different roof types, making the generated roof models more realistic and in line with actual and scenario requirements.
[0100] In response to the target roof type being a gable roof or double-eaved roof, the parameters controlling the roof geometry may also include the ridge curvature, which can be used to control the curvature of the roof ridge line; in response to the target roof type being a hip roof, the parameters controlling the roof geometry may also include the ridge curvature and / or the side eaves length, which can be used to control the eaves extension; in response to the target roof type being a pyramidal roof, the parameters controlling the roof geometry may also include any one or more of radius and number of sides, wherein the number of sides can be used to control the polygonal structure of the roof, such as a triangle, quadrilateral, or a polygon with more or more sides; in response to the target roof type being a hip roof, the parameters controlling the roof geometry may also include the ridge length ratio and / or ridge curvature, wherein the ridge length ratio can be used to control the length ratio between the ridge and the bottom edge of the eaves; in response to the target roof type being a hip roof, the parameters controlling the roof geometry may also include any one or more of hip roof height, hip roof angle, and eaves slope curve, wherein the hip roof angle can be used to control the angle between the hip roof slope and the ground, and the eaves slope curve can be used to control the contour curve of the lower edge of the hip roof.
[0101] In step S203, the following can be done:
[0102] In response to configuration operations on parameters controlling the roof geometry, the geometry of the initial roof model is adjusted to generate the target roof model.
[0103] This allows for fine-tuning of the roof geometry, making the generated target roof model more realistic and in line with the scene requirements.
[0104] This allows for the configuration of some or all of the roof geometry parameters. In other words, it allows for the adjustment of the values of some or all of the roof geometry parameters, thereby changing the geometry in the initial roof model accordingly based on the adjusted parameter values.
[0105] For example, a user can input a new roof length value in the system interface, changing the roof length from 10 meters to 15 meters. During the adjustment process, the system of this embodiment can receive the parameter value input by the user through an interface or parameterization module, and modify the geometry and related parameters of the initial roof model according to the new parameter value. For example, the updated length will cause the roof's supporting structure (such as the ridge) to extend according to the new length. Other parameters associated with the modified parameters can also be automatically and adaptively adjusted, such as adjusting the arrangement and number of tiles accordingly, thereby obtaining a modified roof model. Furthermore, a target roof model can be obtained based on the modified roof model.
[0106] The control parameters may also include parameters controlling the tile shape, which may include one or more of the following: tile size, tile spacing, and tile style. Tile size can represent the length, width, or diameter of each tile. Tile spacing can be used to control the interval between adjacent tiles, such as column spacing or row spacing. Tile style can be used to control the shape and surface texture of the tile. Shapes may include flat tiles, cylindrical tiles, drip tiles, etc. Tile style may also include tile color, and the tile style can be configured to enable or disable tile damage effects and preset the proportion of damaged tiles, broken tiles, tile torsion intensity and frequency, etc., or display special texture effects on the tiles (e.g., displaying a moss effect on tiles along the ridge). Figure 4 A schematic diagram showing the tile configuration according to an embodiment of the present disclosure is provided. Figure 4 As shown, six different tile shapes are displayed from left to right and from top to bottom.
[0107] In step S203, the following can be done:
[0108] In response to configuration operations on parameters controlling the tile shape, the tile shape on the initial roof model is adjusted to generate the target roof model.
[0109] This allows for precise adjustments to the shape of the roof tiles, resulting in a more realistic roof model.
[0110] This system allows for the configuration of some or all parameters controlling the tile shape. In other words, the values of some or all parameters controlling the tile shape can be adjusted, and the tile shape in the initial roof model can be changed accordingly based on the adjusted parameter values. Users can change some or all of the parameters controlling the tile shape by inputting parameter values in the system interface, or by adjusting some or all of the parameters controlling the tile shape through configuration files. In this embodiment, one or more combinations of parameters controlling the tile shape can also be pre-configured, allowing users to quickly adjust the tile shape by selecting any combination of parameters in the system interface.
[0111] For example, users can select to enable the tile damage effect and preset the appearance ratio of broken tiles in the system interface to configure parameters controlling the tile shape. During the adjustment process, the system of this embodiment can receive parameter values input by the user through an interface or parameterization module, and modify the tile shape of the initial roof model according to the new parameter values. For example, according to the preset appearance ratio of broken tiles, broken tiles are displayed on the initial roof model according to the preset ratio, thereby obtaining a modified roof model. Furthermore, a target roof model can be obtained based on the modified roof model.
[0112] The control parameters may also include parameters for controlling decorative components, such as parameters for controlling the shape, quantity, and position of decorative components. Decorative components may include one or more of the following: ridge, ridge ornaments, and gable. Decorative components may be associated with a target roof type; for example, a ridge may include a hip ridge, gable ridge, or inner corner ridge, and for a hipped roof it may include a gable ridge, and for a double-eaved roof it may include a surrounding ridge or a corner ornament. Ridge ornaments may include chiwen (a mythical beast-like creature), hanging beasts, flying eaves, finials, and finials.
[0113] In this embodiment of the disclosure, other types of decorative components can also be pre-configured, such as decorative components of a special style that can be pre-modeled and added to the above-mentioned decorative components.
[0114] In step S203, the following can be done:
[0115] In response to the configuration operation of the parameters of the control decorative components, the corresponding decorative components are placed at preset positions on the initial roof model, or the shape of the corresponding decorative components on the initial roof model is adjusted to generate the target roof model.
[0116] This allows for further refinement of the roof model's appearance, resulting in a more exquisite roof model that meets the requirements of the scene.
[0117] The preset position can be a default value or a configuration based on the parameters of the control decoration component.
[0118] For example, configuring the parameters of the control decorative components can be to enable additional gables. Based on this configuration, additional gables can be added and displayed at preset positions in the initial roof model to obtain a modified roof model. Furthermore, the target roof model can be obtained based on the modified roof model.
[0119] For example, the configuration operation for controlling the parameters of the decorative components can be to scale the roof finial by 1.5 times. Based on this configuration operation, the roof finial in the initial roof model can be scaled by 1.5 times to obtain the modified roof model. Furthermore, the target roof model can be obtained based on the modified roof model.
[0120] The control parameters may also include parameters controlling the roof damage pattern, which may include parameters controlling the shape of roof holes and / or parameters controlling the roof deformation pattern. Parameters controlling the shape of roof holes may include parameters for enabling the hole function, parameters for controlling the hole shape, parameters for controlling the noise at the hole edge (including noise amplitude and size, used to define the intensity of irregular undulations at the hole edge and the density of edge details), and parameters for controlling the collapse pattern around the hole. Parameters controlling the roof deformation pattern may include parameters for enabling the deformation function, parameters for controlling the deformation intensity, parameters for controlling the deformation noise size (indicating whether the deformation effect is localized or overall), and parameters for controlling the scaling of the deformation noise size (indicating whether the deformation effect is smoother and more uniform).
[0121] In step S203, the following can be done:
[0122] In response to configuration operations on parameters controlling the roof damage pattern, the damage pattern on the initial roof model is adjusted to generate the target roof model.
[0123] This allows for flexible adjustments to the damage pattern of the roof model, adapting to diverse needs, and further enhancing the model's expressiveness based on refined parameters.
[0124] For example, configuring the parameters of the decorative component can be to enable the hole function and control the hole shape to be the configured shape, displaying the hole effect at a preset position on the roof of the initial roof model (such as the default position or the configured position), and the hole is displayed as the configured shape.
[0125] For example, configuring the parameters of the decorative components can enable the deformation function. Based on this configuration, the deformation effect can be displayed at the preset position of the roof of the initial roof model (such as the default position or the configured position) to obtain the modified roof model. Furthermore, the target roof model can be obtained based on the modified roof model.
[0126] Control parameters may also include parameters controlling the roof's base surface style. These parameters include one or more of the following: parameters related to the base surface shape, parameters related to the sheathing, parameters related to the rafters, and parameters related to the eaves. Parameters related to the base surface shape may include parameters controlling the inward contraction of the base surface and parameters controlling the base surface height offset. Parameters related to the sheathing may include the main sheathing thickness, the number of sheathing layers, the sheathing thickness, and the indentation of each sheathing layer. Parameters related to the rafters may include parameters controlling whether the rafters are open, rafter spacing, rafter vertical offset, rafter end extension / retraction, and rafter size scaling. Parameters related to the eaves may include parameters controlling whether the eaves are open, eaves position offset, eaves height, and eaves thickness.
[0127] In step S203, the following can be done:
[0128] In response to configuration operations on parameters controlling the bottom surface style of the roof, the bottom surface style of the initial roof model is adjusted to generate the target roof model.
[0129] This allows for flexible adjustment of the roof model's bottom surface style to adapt to diverse needs in terms of facade shape and scene, resulting in a more realistic roof model.
[0130] For example, a user can select to enable rafters in the system interface and configure other rafter-related parameters to default values. During the adjustment process, the system of this embodiment can receive rafter-related parameter values input by the user through an interface or parameterization module, and modify the bottom surface style of the initial roof model according to the new parameter values. For example, according to the rafter-related parameters, the rafters are displayed at predetermined positions on the initial roof model according to preset rafter spacing, rafter vertical offset, rafter end extension and retraction, and rafter size scaling, thereby obtaining a modified roof model. Furthermore, a target roof model can be obtained based on the modified roof model.
[0131] In this embodiment of the disclosure, after obtaining the initial roof model, any control parameters can be configured. For example, one or more of the following parameters can be configured: parameters controlling the roof geometry, parameters controlling the tile shape, parameters controlling decorative components, parameters controlling the roof damage pattern, and parameters controlling the roof's bottom surface style. The roof model generation system of this embodiment can obtain the configured parameter values by having the user input parameters on the system interface or by uploading a predefined configuration file. For unconfigured parameters, the parameter values of the initial roof model can be used. For parameters associated with the configured parameters (such as automatically updating the number of tiles and the bottom surface shape when adjusting the length), the parameter values of the associated parameters can be adaptively updated. Therefore, based on the changed parameter values, the geometry or appearance of the initial roof model associated with those changed parameter values can be adjusted.
[0132] For example, when a user increases the length and / or width of the roof through configuration operations, the displayed number of tiles, bottom shape, etc., can be adaptively modified while extending the geometric dimensions in the roof model to maintain the integrity and consistency of the roof model. The modified roof model can be visualized, allowing users to view the modified roof model in real time through a visual interface. When the modified roof model meets the scene requirements, it can be used as the target roof model.
[0133] Furthermore, the modified roof model can be adjusted multiple times. The adjustment process is the same as the method described above for adjusting and initializing the model. After each adjustment, the adjusted model can be visualized, allowing users to repeatedly optimize the model according to their needs until the adjusted model meets the requirements of the scenario and the target roof model is obtained. Figure 5 A schematic diagram of a target roof model according to an embodiment of the present disclosure is shown. Figure 5 As shown, from left to right, different roof models obtained by modeling based on the method of this disclosure embodiment are illustrated. The first and second models are obtained by superimposing two different roof models (each including a double-eaved roof model). Since the various control parameters in this disclosure embodiment have been classified and organized, they are easy to find and organize. This allows for the rapid creation of roof models while meeting the production needs of diverse ancient building roofs. Generating a roof model may only take a few minutes, thus improving the efficiency of 3D model production and scene construction.
[0134] Figure 6 A structural diagram of a roof model generation apparatus according to an embodiment of the present disclosure is shown. Figure 6 As shown, the device may include:
[0135] Module 601 is used to obtain the target roof type;
[0136] The first generation module 602 is used to generate an initial roof model based on the target roof type;
[0137] The second generation module 603 is used to adjust the initial roof model in response to the configuration operation of the control parameters and generate the target roof model. The control parameters are used to determine the geometry and / or appearance of the roof.
[0138] In one possible implementation, the control parameters include parameters controlling the roof geometry, and the second generation module 603 is used for:
[0139] In response to configuration operations on parameters controlling the roof geometry, the geometry of the initial roof model is adjusted to generate the target roof model;
[0140] Among them, the parameters controlling the roof geometry are associated with the target roof type.
[0141] In one possible implementation, the target roof type is any one of gable roof, overhanging gable roof, hip roof, hipped roof, pyramidal roof, and double-eaved roof. The parameters controlling the roof geometry include any one or more of the following: length, width, height, slope, eaves ridge shape, and upturned corner shape.
[0142] In response to whether the target roof type is gable or double-eaved, the parameters controlling the roof geometry also include the ridge curvature;
[0143] In response to the target roof type being gable roof, the parameters controlling the roof geometry also include the ridge curvature and / or the eaves length;
[0144] In response to the target roof type being a pyramidal roof, the parameters controlling the roof geometry also include one or more of the following: radius and number of sides;
[0145] In response to the target roof type being a hip roof, the parameters controlling the roof geometry also include the ridge length ratio and / or ridge curvature;
[0146] In response to the target roof type being a hip roof, the parameters controlling the roof geometry also include any one or more of the following: hip roof height, hip roof angle, and eaves slope curve.
[0147] In one possible implementation, the length, width, radius, and bottom shape of the initial roof model are determined based on information about the main building structure.
[0148] In one possible implementation, the control parameters include parameters controlling the tile shape, and the second generation module 603 is used for:
[0149] In response to configuration operations on parameters controlling the tile shape, the tile shape on the initial roof model is adjusted to generate the target roof model;
[0150] The parameters controlling the shape of the tiles include one or more of the following: tile size, tile spacing, and tile style.
[0151] In one possible implementation, the control parameters include parameters for controlling the decorative components. A second generation module 603 is used for:
[0152] In response to the configuration operation of the parameters of the control decorative components, the corresponding decorative components are placed at preset positions on the initial roof model, or the shape of the corresponding decorative components on the initial roof model is adjusted to generate the target roof model.
[0153] The preset location is associated with the target roof type, and the decorative components include any one or more of the following: ridge, ridge ornament, and gable.
[0154] In one possible implementation, the control parameters include parameters controlling the roof damage pattern, and the second generation module 603 is used for:
[0155] In response to configuration operations on parameters controlling the roof damage pattern, the damage pattern on the initial roof model is adjusted to generate the target roof model;
[0156] Among them, the parameters controlling the roof damage pattern include parameters controlling the roof hole pattern and / or parameters controlling the roof deformation pattern.
[0157] In one possible implementation, the control parameters include parameters controlling the bottom surface style of the roof, and the second generation module 603 is used for:
[0158] In response to configuration operations on parameters controlling the bottom surface style of the roof, the bottom surface style of the initial roof model is adjusted to generate the target roof model;
[0159] The parameters controlling the bottom surface style of the roof include any one or more of the following: parameters related to the bottom surface shape, parameters related to the sheathing, parameters related to the rafters, and parameters related to the eaves.
[0160] According to embodiments of this disclosure, an initial roof model is generated based on the target roof type by obtaining the target roof type; in response to the configuration operation of control parameters, the initial roof model is adjusted to generate the target roof model. This allows for the rapid generation of a roof model that meets the requirements through control parameters, improving the efficiency of roof model production and scene construction. The control parameters are used to determine the geometric structure and / or appearance of the roof, enabling rapid response to creative feedback or customer modification suggestions, and more targeted adjustments to the roof model to meet the demands of high-intensity, fast-paced production.
[0161] In some embodiments, the functions or modules of the apparatus provided in this disclosure can be used to perform the methods described in the above method embodiments. The specific implementation can be referred to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0162] This disclosure also proposes a computer-readable storage medium storing computer program instructions that, when executed by a processor, implement the above-described method. The computer-readable storage medium can be volatile or non-volatile.
[0163] This disclosure also proposes a roof model generation apparatus, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.
[0164] This disclosure also provides a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code, wherein when the computer-readable code is run in a processor of an electronic device, the processor in the electronic device performs the above-described method.
[0165] Figure 7 This is a block diagram illustrating an apparatus 1900 for generating a roof model according to an exemplary embodiment. For example, apparatus 1900 may be provided as a server or terminal device. (Refer to...) Figure 7 The apparatus 1900 includes a processing component 1922, which further includes one or more processors, and memory resources represented by memory 1932 for storing instructions, such as application programs, that can be executed by the processing component 1922. The application programs stored in memory 1932 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 1922 is configured to execute instructions to perform the methods described above.
[0166] Device 1900 may also include a power supply component 1926 configured to perform power management of device 1900, a wired or wireless network interface 1950 configured to connect device 1900 to a network, and an input / output interface 1958 (I / O interface). Device 1900 can operate on an operating system, such as Windows Server, stored in memory 1932. TM macOS X TM Unix TM Linux TM FreeBSD TM Or similar.
[0167] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions that can be executed by a processing component 1922 of the device 1900 to perform the above-described method.
[0168] This disclosure can be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of this disclosure.
[0169] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination thereof. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.
[0170] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0171] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.
[0172] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0173] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0174] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0175] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0176] The various embodiments of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or technical improvements to the embodiments in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.
Claims
1. A method for generating a roof model, characterized in that, The method includes: Get the target roof type; Based on the target roof type, an initial roof model is generated; In response to the configuration operation of the control parameters, the initial roof model is adjusted to generate a target roof model, wherein the control parameters are used to determine the geometry and / or appearance of the roof; The length, width, radius, and bottom shape of the initial roof model are determined based on the building structure information. The building structure information is obtained based on the generated building structure model that is directly connected to the roof. The target roof model is used to cooperate with other building structure models to obtain a complete ancient building model.
2. The method according to claim 1, characterized in that, The control parameters include parameters that control the roof geometry. The adjustment of the initial roof model to generate a target roof model in response to the configuration operation of the control parameters includes: In response to the configuration operation of the parameters controlling the roof geometry, the geometry of the initial roof model is adjusted to generate the target roof model; The parameters controlling the roof geometry are associated with the target roof type.
3. The method according to claim 2, characterized in that, The target roof type is any one of gable roof, overhanging roof, hip roof, hipped roof, pyramidal roof, and double-eaved roof. The parameters controlling the roof geometry include any one or more of the following: length, width, height, slope, eaves ridge shape, and upturned corner shape. In response to whether the target roof type is gable or double-eaved, the parameters controlling the roof geometry also include the ridge curvature; In response to the target roof type being gable roof, the parameters controlling the roof geometry also include the ridge curvature and / or the eaves length; In response to the target roof type being a pyramidal roof, the parameters controlling the roof geometry also include one or more of the following: radius and number of sides; In response to the target roof type being a hip roof, the parameters for controlling the roof geometry also include the ridge length ratio and / or ridge curvature; In response to the target roof type being a hip roof, the parameters for controlling the roof geometry also include any one or more of the following: hip roof height, hip roof angle, and eaves slope curve.
4. The method according to claim 1, characterized in that, The control parameters include parameters that control the shape of the tiles. The adjustment of the initial roof model to generate a target roof model in response to the configuration operation of the control parameters includes: In response to the configuration operation of the parameters controlling the tile shape, the tile shape on the initial roof model is adjusted to generate the target roof model; The parameters controlling the shape of the tiles include any one or more of the following: tile size, tile spacing, and tile style.
5. The method according to claim 1, characterized in that, The control parameters include parameters for controlling decorative components. The adjustment of the initial roof model to generate a target roof model in response to a configuration operation of the control parameters includes: In response to the configuration operation of the parameters of the control decorative component, the corresponding decorative component is placed at a preset position on the initial roof model, or the shape of the corresponding decorative component on the initial roof model is adjusted to generate the target roof model; The preset location is associated with the target roof type, and the decorative component includes any one or more of the following: ridge, ridge ornament, and gable.
6. The method according to claim 1, characterized in that, The control parameters include parameters that control the roof damage pattern. The step of adjusting the initial roof model in response to the configuration operation of the control parameters to generate a target roof model includes: In response to the configuration operation of the parameters controlling the roof damage pattern, the damage pattern on the initial roof model is adjusted to generate the target roof model; The parameters for controlling the roof damage pattern include parameters for controlling the roof hole pattern and / or parameters for controlling the roof deformation pattern.
7. The method according to claim 1, characterized in that, The control parameters include parameters that control the bottom surface style of the roof. The process of adjusting the initial roof model in response to the configuration operation of the control parameters to generate a target roof model includes: In response to the configuration operation of the parameters of the bottom surface style of the controlled roof, the bottom surface style of the initial roof model is adjusted to generate the target roof model; The parameters controlling the bottom surface style of the roof include any one or more of the following: parameters related to the bottom surface shape, parameters related to the sheathing, parameters related to the rafters, and parameters related to the eaves.
8. A roof model generation device, characterized in that, The device includes: The acquisition module is used to obtain the target roof type; The first generation module is used to generate an initial roof model based on the target roof type; The second generation module is used to adjust the initial roof model in response to the configuration operation of the control parameters to generate a target roof model, wherein the control parameters are used to determine the geometry and / or appearance of the roof. The length, width, radius, and bottom shape of the initial roof model are determined based on the building structure information. The building structure information is obtained based on the generated building structure model that is directly connected to the roof. The target roof model is used to cooperate with other building structure models to obtain a complete ancient building model.
9. A roof model generation device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to implement the method of any one of claims 1 to 7 when executing instructions stored in the memory.
10. A non-volatile computer-readable storage medium storing computer program instructions thereon, characterized in that, When the computer program instructions are executed by the processor, they implement the method described in any one of claims 1 to 7.
11. A computer program product comprising computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code, wherein when the computer-readable code is executed in an electronic device, a processor in the electronic device performs the method of any one of claims 1 to 7.
Citation Information
Patent Citations
Virtual building model generation method and device, and electronic equipment
CN116246012A
Building roof modeling method, modeling device, equipment and medium
CN116363319A
Model construction method and system for interior decoration design
CN116702298A