Method and device for generating landscape in virtual scene, electronic device and medium
Patent Information
- Application Number
- CN202510422558.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-07
- Publication Date
- 2026-10-16
AI Technical Summary
通过贴图的方式在虚拟场景中生成的景观是二维平面图像,从而导致虚拟场景中景观模型的精细度较低,进而影响模型的呈现效果;若通过技术人员手动的方式在虚拟场景中生成景观模型,场景中的景观需要根据区域的不同而设置不同类型的景观模型,例如,场景中的景观可以包括车道、绿化、配景以及铺装等多种类型,并且每一类型的景观在不同功能的规划区(学校、住宅、商业区以及生态保护区)中对应景观模型的样式可能不同,因此,通过技术人员手动设置景观模型的方式工作量较大,操作繁琐,从而导致虚拟场景中景观设置的自动化程度较低
[0045] In the above implementation process, by determining the location information of each landscape area in the landscape planning map in the virtual scene, and determining the land use attributes of each landscape area in the virtual scene according to the control plan information, the corresponding land parcel model of each landscape area can be generated in the virtual scene according to the location information and land use attributes of the landscape area. Furthermore, according to the land use attributes and corresponding landscape types of each land parcel model, a three-dimensional landscape asset model is set in the corresponding land parcel model. In this way, the three-dimensional landscape model improves the refinement of the landscape model in the virtual scene, further enhancing the realism of the landscape presentation effect in the virtual scene. This application also realizes the automatic generation of landscape models in the virtual scene, eliminating the need for technicians to manually set up landscape models in the virtual scene, thus improving the automation level of landscape model generation in the virtual scene.
Smart Images

Figure CN122929138A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer graphics technology, and in particular to methods, apparatuses, electronic devices and media for generating landscapes in virtual scenes. Background Technology
[0002] In recent years, with the rapid development of Virtual Reality (VR), Augmented Reality (AR), and video game technologies, the field of computer graphics has made significant progress in the creation of 3D models and virtual environments. The process of building virtual scenes involves not only constructing buildings but also creating landscapes.
[0003] Currently, when building landscapes in virtual scenes, technicians typically generate the landscapes by using textures or manually setting up landscape models. Landscapes generated by textures are two-dimensional images, resulting in low detail and affecting the overall presentation. Manually generating landscape models requires different models depending on the area; for example, landscapes may include driveways, greenery, landscaping, and paving. Furthermore, the style of each type of landscape model may differ in different functional planning areas (schools, residential areas, commercial areas, and ecological reserves). Therefore, manually setting up landscape models is labor-intensive and cumbersome, leading to low automation in virtual scene landscape creation.
[0004] Therefore, how to generate landscape models in virtual scenes to improve the accuracy and automation of landscape model generation is a problem that needs to be solved. Summary of the Invention
[0005] In view of this, the purpose of this application is to provide a method, apparatus, electronic device and medium for generating landscapes in virtual scenes, so as to solve the problem of how to generate landscape models in virtual scenes in related technologies, so as to improve the precision of landscape models in virtual scenes and the degree of automation of landscape model generation.
[0006] In a first aspect, embodiments of this application provide a method for generating a landscape in a virtual scene, the method comprising:
[0007] Obtain a landscape planning map of the scene to be constructed, the landscape planning map including multiple landscape areas in the scene to be constructed, and the landscape type of each landscape area;
[0008] Determine the location information of each landscape area in the landscape planning map within the virtual scene;
[0009] Based on the planning information of the scene to be constructed, determine the land use attributes of each landscape area in the virtual scene;
[0010] Based on the location information and land use attributes of each landscape area, a land parcel model of the corresponding landscape area is generated in the virtual scene.
[0011] Based on the land use attributes and corresponding landscape type of each plot model, a three-dimensional landscape asset model is set in the corresponding plot model to obtain the landscape model of the virtual scene.
[0012] In one embodiment, the planning control information includes multiple functional areas of the scene to be constructed and the land use attributes of each functional area. Determining the land use attributes of each landscape area in the virtual scene based on the planning control information of the scene to be constructed includes:
[0013] The landscape areas are divided based on the boundary lines of each functional area to determine the scope of the landscape areas included in each functional area.
[0014] The land use attributes of each landscape area are set to correspond to the land use attributes of the functional area, thereby obtaining the land use attributes of each landscape area.
[0015] In one embodiment, determining the location information of each landscape area in the landscape planning map within the virtual scene includes:
[0016] The first position information of the marker point of the landscape area corresponding to each landscape type in the landscape planning map and the second position information of the corresponding marker point in the outline model are determined. The outline model includes the three-dimensional outline information of the landscape area corresponding to each landscape type in the virtual scene.
[0017] Based on the first location information and the second location information, the location information of each landscape area in the landscape planning map in the virtual scene is determined.
[0018] In one embodiment, determining the land parcel model of the corresponding landscape area in the virtual scene based on the location information and land use attributes of each landscape area includes:
[0019] The material information of the corresponding landscape area is determined based on the land use attributes of each landscape area.
[0020] Based on the material information and corresponding location information of each landscape area, a plot model of the corresponding landscape area is generated in the virtual scene.
[0021] In one embodiment, the step of setting a 3D landscape asset model in the corresponding land parcel model based on the land use attributes and corresponding landscape type of each land parcel model to obtain the landscape model of the virtual scene includes:
[0022] Based on the land use attributes and corresponding landscape types of each plot model, the corresponding landscape asset type is determined; and the 3D landscape asset model corresponding to the landscape asset type of each plot model is selected from the asset model database.
[0023] The landscape asset 3D model is set in the corresponding plot model to obtain the landscape model in the virtual scene.
[0024] In one embodiment, the landscape asset 3D model includes multiple green landscape asset 3D models, and the step of setting the landscape asset 3D model in the corresponding plot model to obtain the landscape model in the virtual scene includes:
[0025] The order of model setup is determined based on the priority of various 3D models of green landscape assets.
[0026] Based on the model setting order and the preset greening model setting spacing, various three-dimensional models of the greening landscape assets are set in the corresponding plot models to obtain the landscape model in the virtual scene.
[0027] In one embodiment, the landscape asset 3D model includes multiple background landscape asset 3D models, and the step of setting the landscape asset 3D model in the corresponding plot model to obtain the landscape model in the virtual scene includes:
[0028] Select alternative 3D models of background landscape assets from a variety of described 3D models of background landscape assets;
[0029] Based on the outline information of the candidate landscape asset 3D model and the corresponding plot model, the target background landscape asset 3D model is determined.
[0030] The target landscape asset 3D model is set in the corresponding plot model to obtain the landscape model in the virtual scene.
[0031] In one embodiment, the landscape type includes a sunken plaza. The process of setting a 3D landscape asset model in the corresponding plot model based on the land use attributes and corresponding landscape type of each plot model to obtain the landscape model of the virtual scene includes:
[0032] Based on the land use attributes of each plot model and the type of the sunken plaza, the corresponding sunken plaza asset type is determined.
[0033] The sunken plaza asset type defines multiple sunken asset models;
[0034] Determine the sunken contour information of the sunken area in the land parcel model corresponding to the sunken plaza;
[0035] Based on the distance between adjacent vertices in the sinking contour information and the length of multiple sinking asset models, a target sinking asset model corresponding to the adjacent vertices is matched;
[0036] The target sunken asset model is set at the position corresponding to the adjacent vertex to obtain the landscape model of the virtual scene.
[0037] Secondly, embodiments of this application provide a landscape generation device in a virtual scene, the device comprising:
[0038] The acquisition module is used to acquire the landscape planning map of the scene to be constructed. The landscape planning map includes multiple landscape areas in the scene to be constructed, and the landscape type of each landscape area.
[0039] The location determination module is used to determine the location information of each landscape area in the landscape planning map in the virtual scene;
[0040] The land use attribute determination module is used to determine the land use attribute of each landscape area in the virtual scene based on the planning information of the scene to be constructed.
[0041] The land parcel generation module is used to generate a land parcel model of the corresponding landscape area in the virtual scene based on the location information and land use attributes of each landscape area.
[0042] The landscape generation module is used to set a three-dimensional landscape asset model in the corresponding land parcel model based on the land use attributes and corresponding landscape type of each land parcel model, so as to obtain the landscape model of the virtual scene.
[0043] Thirdly, embodiments of this application also provide an electronic device, including: a memory and a processor, wherein the memory stores a computer program executable by the processor, and when the computer program is executed by the processor, it performs the landscape generation method in the virtual scene as described in the first aspect above.
[0044] Fourthly, embodiments of this application also provide a computer-readable storage medium storing computer program instructions that, when executed by a processor, perform the landscape generation method in the virtual scene as described in the first aspect above.
[0045] In the above implementation process, by determining the location information of each landscape area in the landscape planning map in the virtual scene, and determining the land use attributes of each landscape area in the virtual scene according to the control plan information, the corresponding land parcel model of each landscape area can be generated in the virtual scene according to the location information and land use attributes of the landscape area. Furthermore, according to the land use attributes and corresponding landscape types of each land parcel model, a three-dimensional landscape asset model is set in the corresponding land parcel model. In this way, the three-dimensional landscape model improves the refinement of the landscape model in the virtual scene, further enhancing the realism of the landscape presentation effect in the virtual scene. This application also realizes the automatic generation of landscape models in the virtual scene, eliminating the need for technicians to manually set up landscape models in the virtual scene, thus improving the automation level of landscape model generation in the virtual scene. Attached Figure Description
[0046] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0047] Figure 1 This is a flowchart illustrating a method for generating a landscape in a virtual scene according to an embodiment of this application;
[0048] Figure 2 This is a schematic diagram of a landscape planning map provided in an embodiment of this application;
[0049] Figure 3 This is a schematic diagram of the structure of a landscape generation device in a virtual scene provided in an embodiment of this application;
[0050] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0051] The embodiments of the technical solution of this application will now be described in detail with reference to the accompanying drawings. These embodiments are only used to more clearly illustrate the technical solution of this application and are therefore merely examples, and should not be used to limit the scope of protection of this application.
[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this application.
[0053] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.
[0054] In recent years, with the rapid development of Virtual Reality (VR), Augmented Reality (AR), and video game technologies, the field of computer graphics has made significant progress in the creation of 3D models and virtual environments. The process of building virtual scenes involves not only constructing buildings but also creating landscapes.
[0055] Currently, when building landscapes in virtual scenes, technicians typically generate the landscapes by using textures or manually setting up landscape models. Landscapes generated by textures are two-dimensional images, resulting in low detail and affecting the overall presentation. Manually generating landscape models requires different types of models depending on the area; for example, a landscape may include driveways, greenery, landscaping, and paving, and each type may have different styles in different functional planning areas (schools, residential areas, commercial areas, and ecological reserves). Therefore, manually setting up landscape models is labor-intensive and cumbersome, resulting in low automation in virtual scene landscape creation.
[0056] Therefore, how to generate landscape models in virtual scenes to improve the accuracy and automation of landscape model generation is a problem that needs to be solved.
[0057] Please see Figure 1 , Figure 1 This is a flowchart illustrating a landscape generation method in a virtual scene according to an embodiment of this application. The execution entity of this landscape generation method in a virtual scene can be an electronic device, and the method may include the following steps:
[0058] Step S101: Obtain the landscape planning map of the scene to be constructed.
[0059] The landscape planning map includes multiple landscape areas in the scene to be constructed, as well as the landscape type of each landscape area.
[0060] Step S102: Determine the location information of each landscape area in the virtual scene from the landscape planning map.
[0061] Step S103: Determine the land use attributes of each landscape area in the virtual scene based on the planning information of the scene to be constructed.
[0062] Step S104: Based on the location information and land use attributes of each landscape area, generate a plot model of the corresponding landscape area in the virtual scene.
[0063] Step S105: Based on the land use attributes and corresponding landscape type of each plot model, set up a three-dimensional landscape asset model in the corresponding plot model to obtain the landscape model of the virtual scene.
[0064] For example, a landscape planning map of the scene to be constructed is obtained, wherein the landscape planning map may include multiple landscape areas in the scene to be constructed, and the landscape type of each landscape area. The scene to be constructed may be a virtual scene corresponding to an actual scene in the field of architectural landscape design, or a virtual scene in the field of game design, and the landscape planning map may be designed by technicians according to the landscape planning requirements of the scene to be constructed, without any restrictions.
[0065] The scene to be constructed may include various landscape types such as driveways, landscaping, greenery, and paving. Furthermore, one landscape type in the landscape planning map of the scene to be constructed may correspond to multiple landscape areas. For example... Figure 2 As shown, Figure 2 This is a schematic diagram of a landscape planning map provided in an embodiment of this application. As an example, the landscape planning map can be a color block map, that is, it can be... Figure 2 The landscape planning map shown uses different colored blocks to represent different landscape types and areas. As another example, this landscape planning map could also be a landscape area labeling map, meaning it can be... Figure 2 Each landscape area in the map is labeled with its corresponding landscape type. In practical applications, landscape planning maps can also represent the landscape type of each landscape area in other ways, which are not limited here.
[0066] In this embodiment, the landscape planning map is exemplified by a color block map. This landscape planning map can be a pixel map or a vector map. If the landscape planning map is a pixel map, it can be split into multiple sub-maps based on landscape types such as driveways, background scenery, greenery, and paving. Sub-maps of the same landscape type are stored as a single sub-map file. Therefore, the landscape planning map of the scene to be constructed can be obtained by acquiring all the sub-map files. If the landscape planning map is a vector map, it can be split into layers based on landscape types such as driveways, background scenery, greenery, and paving. Each layer represents a landscape type, and each layer forms an EPS file. Therefore, the landscape planning map of the scene to be constructed can be obtained by acquiring all the EPS files.
[0067] Furthermore, the location information of each landscape area in the landscape planning map within the virtual scene is determined, and this virtual scene corresponds to the scene to be constructed. This location information may include the outline position and height information of each landscape area in the virtual scene. Specifically, the location information of each landscape area in the landscape planning map within the virtual scene can be determined based on the location information of each landscape area in the landscape planning map and the outline information of each landscape area in the virtual scene.
[0068] Furthermore, based on the regulatory information of the scene to be constructed, the land use attributes of each landscape area in the virtual scene are determined. Specifically, the regulatory information of the scene to be constructed can be a regulatory plan map of the scene, which is used to represent the land use attributes of different functional areas in the scene. Therefore, the land use attributes of each landscape area in the virtual scene can be determined based on the regulatory plan map of the scene to be constructed. As another example, the regulatory plan map can also set information such as the plot ratio, green space ratio, and building height of different functional areas as needed.
[0069] Furthermore, based on the location information and land use attributes of each landscape area in the virtual scene, a corresponding land parcel model can be generated in the virtual scene. Specifically, the three-dimensional location information of the land parcel can be determined based on the location information of each landscape area in the virtual scene, thereby generating a land parcel model with three-dimensional information. The land use attributes of the corresponding land parcel model can then be determined based on the land use attributes of the landscape area, thus giving the generated land parcel model both three-dimensional location information and land use attributes.
[0070] Furthermore, based on the land use attributes and corresponding landscape type of each plot model, a three-dimensional landscape asset model for the corresponding plot model is determined, and the three-dimensional landscape asset model is set in the corresponding plot model to obtain the landscape model in the virtual scene, thus realizing the automatic generation of the landscape in the virtual scene.
[0071] In the above implementation process, by determining the location information of each landscape area in the landscape planning map in the virtual scene, and determining the land use attributes of each landscape area in the virtual scene according to the control plan information, the corresponding land parcel model of each landscape area can be generated in the virtual scene based on the location information and land use attributes of the landscape area. Furthermore, based on the land use attributes and corresponding landscape types of each land parcel model, a three-dimensional landscape asset model is automatically set in the corresponding land parcel model. Then, the three-dimensional landscape model is presented in the virtual scene, which improves the refinement of the landscape model in the virtual scene, thereby improving the realism of the landscape presentation effect in the virtual scene. This application realizes the automatic generation of landscape models in the virtual scene without the need for technicians to manually set the landscape model in the virtual scene, thus improving the automation level of landscape model generation in the virtual scene.
[0072] In one embodiment, the planning control information includes multiple functional areas of the scene to be constructed and the land use attributes of each functional area. Determining the land use attributes of each landscape area in the virtual scene based on the planning control information of the scene to be constructed may include the following steps:
[0073] Step 1: Divide each landscape area based on the boundary line of each functional area, and determine the scope of the landscape area included in each functional area.
[0074] Step 2: Set the land use attributes of the landscape areas in each functional area to correspond to the functional area, and obtain the land use attributes of each landscape area.
[0075] For example, the planning control information may include multiple functional areas of the scenario to be constructed and the land use attributes of each functional area. For example, the planning control information may include different functional areas such as residential areas, commercial areas, industrial areas, educational areas, and ecological protection areas, and records the land use attributes of each functional area. Specifically, residential areas may include residential communities, apartments, and other areas providing a comfortable living environment; commercial areas may include shopping malls, office buildings, restaurants, and other areas meeting people's shopping and working needs; industrial areas may include factories, warehouses, and other areas with high logistics needs; educational areas may include schools, training bases, and other areas providing education and training services; and ecological protection areas may include parks, green corridors, wetlands, and other areas. A functional area may include multiple landscape areas of different landscape types. For example, a residential area may include background landscape areas, green landscape areas, and paved landscape areas. A landscape area may also include land use attributes for different functions. For example, in a real-world scenario, a green landscape area may be partially used for residential greening and partially for commercial greening.
[0076] Furthermore, when determining the land use attributes of landscape areas, the landscape areas in the virtual scene can be divided according to the boundary lines of each functional area, thereby determining the scope of the landscape areas included in each functional area. Then, landscape areas belonging to the same functional area are assigned land use attributes corresponding to that functional area, thus determining the land use attribute of each landscape area. For example, if a landscape area A is divided into two sub-areas, a1 and a2, by the boundary lines of a residential area and a commercial area, with sub-area a1 belonging to the residential area and sub-area a2 belonging to the commercial area, then the land use attributes of landscape area A include both residential and commercial areas, with sub-area a1 having a residential land use attribute and sub-area a2 having a commercial land use attribute. If the entire landscape area B belongs to an industrial area, then the land use attribute of landscape area B is industrial.
[0077] In the above implementation process, the landscape area in the virtual scene is divided by the boundary lines of each functional area in the control planning information, thereby determining the scope of the landscape area included in each functional area. Furthermore, the land use attributes of the landscape area within the functional area are set with the corresponding land use attributes of the functional area, thus realizing the determination of the land use attributes of the landscape area in the virtual scene.
[0078] In one embodiment, determining the location information of each landscape area in the landscape planning map within the virtual scene may include the following steps:
[0079] Step 1: Determine the first location information of the landmark point of the landscape area corresponding to each landscape type in the landscape planning map, and the second location information of the corresponding landmark point in the outline model.
[0080] The contour model includes the three-dimensional contour information of the landscape area corresponding to each landscape type in the virtual scene.
[0081] Step 2: Based on the first location information and the second location information, determine the location information of each landscape area in the landscape planning map in the virtual scene.
[0082] For example, when determining the location information of a landscape area in a virtual scene, the first location information of the marker points of the landscape area corresponding to each landscape type in the landscape planning map, and the second location information of the corresponding marker points in the contour model, can be determined first. As an example, the marker points of the landscape area corresponding to each landscape type can be pre-defined feature points in the landscape area, such as the turning points of the edges in the landscape area, or the center points of some sub-maps in the landscape area of the landscape planning map; there are no restrictions here. Specifically, marker points can be selected in each file storing the landscape planning map; the number of marker points can be multiple, and the first location information of each marker point in the landscape planning map can be determined. The contour model can include the three-dimensional contour information of the landscape area corresponding to each landscape type in the virtual scene. Further, the second location information of the selected corresponding marker points in the contour model can be determined.
[0083] Furthermore, by using the positional relationship between the first and second positional information, the three-dimensional positional information of the landscape area in the landscape planning map in the virtual scene can be determined.
[0084] In the above implementation process, the location information of each landscape area in the landscape planning map is determined by the first location information of the landscape area's marker points in the landscape planning map and the second location information of the corresponding marker points in the contour model. Thus, the location of the landscape area in the landscape planning map in the virtual scene is realized by the three-dimensional contour information of the landscape area in the virtual scene, thereby improving the accuracy of determining the location of the landscape area in the virtual scene.
[0085] In one embodiment, determining the land parcel model of the corresponding landscape area in the virtual scene based on the location information and land use attributes of each landscape area may include the following steps:
[0086] Step 1: Determine the material information of the corresponding landscape area based on the land use attributes of each landscape area.
[0087] Step 2: Based on the material information and corresponding location information of each landscape area, generate a plot model of the corresponding landscape area in the virtual scene.
[0088] For example, the material information of each landscape area is determined based on its land use attribute. Specifically, road surface material information can be added to driveway landscape areas, paving base color material information can be added to paved landscape areas, and grass material information can be added to green landscape areas based on their land use attributes, thereby giving each landscape area its corresponding material attribute.
[0089] Furthermore, based on the material information and corresponding three-dimensional location information of each landscape area, a plot model of the corresponding landscape area is generated in the virtual scene, thereby providing the specific material information and three-dimensional location information of the generated plot model.
[0090] As another example, before determining the plot model of the corresponding landscape area in the virtual scene based on the location information and land use attributes of each landscape area, topological operations such as topology, sampling, and adding transition colors can be performed on the edges of each landscape area according to the contour information in the contour model of each landscape area, so as to make the connection between the landscape areas more natural and further improve the realism of the connection between the landscape areas.
[0091] In the above implementation process, the material information of the corresponding landscape area is determined according to the land use attributes of the landscape area, and a three-dimensional plot model of the landscape area is generated based on the material information and the corresponding location information, so that the generated plot model has material information and three-dimensional location information, thereby improving the realism of the plot model.
[0092] In one embodiment, based on the land use attributes and corresponding landscape type of each plot model, a 3D landscape asset model is set in the corresponding plot model to obtain the landscape model of the virtual scene, which may include the following steps:
[0093] Step 1: Determine the corresponding landscape asset type based on the land use attributes and corresponding landscape type of each plot model.
[0094] Step 2: Filter out the 3D landscape asset models corresponding to the landscape asset type of each plot model from the asset model database.
[0095] Step 3: Set the 3D model of the landscape asset in the corresponding plot model to obtain the landscape model in the virtual scene.
[0096] For example, in real-world landscape scenarios, the types of landscape assets corresponding to different land use attributes and landscape types may differ. For instance, green spaces in commercial areas typically consist of low flower beds, while green spaces in residential areas include not only low flower beds but also trees. Paved landscapes in commercial areas typically include epoxy flooring, tile paving, and stone paving, while paved landscapes in residential areas typically include concrete paving, wood paving, and brick paving. Therefore, the landscape asset type and 3D model of each landscape type for each land use attribute can be pre-stored in the asset model database.
[0097] Furthermore, when generating landscape models in a virtual scene, the landscape asset type corresponding to each land parcel model can be determined based on its land use attributes and corresponding landscape type. Then, the 3D landscape asset model corresponding to the landscape asset type of each land parcel model can be selected from the asset model database.
[0098] Specifically, the scene to be constructed can include functional areas with multiple land use attributes, such as residential areas, commercial areas, educational areas, industrial areas, and ecological protection areas. Furthermore, the scene can also include landscape areas with multiple landscape types, such as driveways, landscaping, greenery, and paving. The land use attribute and landscape type of the target landscape area are determined. If the target landscape area's land use attribute is commercial and the landscape type is greenery, the asset type of greenery in the commercial area is determined in the asset model database. Then, a 3D model of the corresponding green landscape asset is selected from the asset model database. This 3D model can include low flower beds and, in addition, 3D models of small trees. The determined 3D model of the green landscape asset is then set on the plot model corresponding to the target landscape area. Finally, the landscape model in each plot model is generated using the above method, thus obtaining the landscape model in the virtual scene.
[0099] In the above implementation process, the corresponding landscape asset type is determined based on the land use attributes and corresponding landscape type of the plot model. Then, 3D landscape asset models corresponding to the landscape asset type of the plot model are selected from the asset model database, achieving accurate selection of 3D landscape asset models. This facilitates the adaptation of the 3D landscape asset models in the virtual scene to the plot model, improving the realism of the landscape display in the virtual scene. Finally, the accurately selected 3D landscape asset models are set in the corresponding plot models to obtain the landscape models in the virtual scene, realizing the automatic generation of landscape models in the virtual scene and improving the automation level of landscape model generation in the virtual scene.
[0100] In one embodiment, the landscape type includes green landscape. Determining the corresponding landscape asset type based on the land use attributes and corresponding landscape type of each plot model may further include the following steps:
[0101] Step 1: Determine the types of green landscapes based on the land use attributes of each plot model.
[0102] Step 2: Determine the outline location of the plot model corresponding to the green landscape based on the type of green landscape.
[0103] Step 3: Determine the landscape asset type corresponding to the green landscape based on the angle between the line segments formed by the target vertex and the two adjacent vertices at the contour position.
[0104] The target vertex is any vertex in the outline of the plot model.
[0105] For example, the landscape type includes green landscape, which may include curb stones and fences. When setting up a green landscape, the type of green landscape can be determined according to the land use attributes of the plot model. If the type of green landscape is curb stone or fence, the outline position of the plot model corresponding to the green landscape is determined, and any vertex in the outline position is determined as the target vertex.
[0106] Furthermore, based on the angle between the line segment formed by the target vertex and the two adjacent vertices, the landscape asset type corresponding to the green landscape is determined. If the angle between the target vertex and the two adjacent vertices is within a preset angle range, then the corresponding 3D model of the green asset is set at the position corresponding to the target vertex and the two adjacent vertices. The preset angle range can be 179 degrees to 181 degrees, 178 degrees to 182 degrees, or other angle ranges, which are not limited here.
[0107] Specifically, if the type of greenery is curbstone, and the angle between the line segments formed by the target vertex and its two adjacent vertices is within a preset angle range, a long curbstone model can be set; if the angle exceeds the preset angle range, a curbstone model composed of multiple trapezoidal modules can be set. Similarly, if the type of greenery is fence, and the angle between the line segments formed by the target vertex and its two adjacent vertices is within a preset angle range, a long fence model can be set; if the angle exceeds the preset angle range, a fence model composed of multiple irregularly shaped modules can be set.
[0108] In the above implementation process, the landscape asset type corresponding to the green landscape is determined by the angle between the line segments formed by the target vertex and the two adjacent vertices on the outline position of the plot model, thus accurately determining the landscape asset type. This allows the asset model corresponding to the accurate landscape asset type to be set on the corresponding plot model, improving the accuracy of landscape model generation in the virtual scene.
[0109] In one embodiment, the landscape asset 3D model includes multiple green landscape asset 3D models. Setting the landscape asset 3D model in the corresponding plot model to obtain the landscape model in the virtual scene may include the following steps:
[0110] Step 1: Determine the model setup order based on the priority of various green landscape asset 3D models.
[0111] Step 2: Based on the model setting order and the preset greening model setting spacing, set the three-dimensional models of various greening landscape assets in the corresponding plot models to obtain the landscape model in the virtual scene.
[0112] For example, the 3D model of a landscape asset can correspond to a landscape type when the 3D model of a landscape asset includes multiple 3D models of green landscape assets. For instance, the 3D model of a green landscape asset may include a 3D model of a lawn, a 3D model of a street lamp, a 3D model of a trash can, a 3D model of a notice board, a 3D model of a surveillance camera, and a 3D model of a bench.
[0113] Furthermore, the order of model setup can be determined based on the priority of various 3D green landscape asset models. Then, according to the preset green model setup spacing and model setup order, the various 3D green landscape models are sequentially set in the corresponding plot models, thereby obtaining the landscape model in the virtual scene. The preset green model setup spacing can be determined based on the spacing of each green ornament in the actual scene and the offset of the spacing according to urban construction standards.
[0114] Specifically, the points of the 3D green landscape model can be determined in the plot model according to the preset spacing of the greening model. Then, according to the determined points and the model setting order, the corresponding 3D green landscape models are set in the corresponding plot models in turn, so as to obtain the green landscape model in the virtual scene. The landscape model in the virtual scene includes the green landscape model.
[0115] As another example, based on the model setting order and preset greening model setting spacing, multiple 3D models of green landscape assets are set in the corresponding plot models to obtain the landscape model in the virtual scene. Furthermore, based on the land use attributes of the plot models, the greening outline area in the plot models can be determined, and the greening outline area is shrunk from the outside in by a preset distance. This preset distance can be 1m, 2m, or other distances, without restriction. Then, the shrunk plot model is determined as the greening area plot model. Further, multiple 3D models of green landscape assets are set in the greening area plot model, thereby obtaining the landscape model in the virtual scene, including the green landscape model.
[0116] If the virtual scene includes a building model, after determining the location of the 3D model of the green landscape in the virtual scene, a corresponding bounding box can be generated based on the outline information of the building model. If the bounding box includes the location of the 3D model of the green landscape, the location of the 3D model of the green landscape within the bounding box will be deleted, thereby avoiding the overlap of the locations of the 3D models.
[0117] In addition, after determining the locations of the three-dimensional model of the green landscape in the virtual scene, it is also possible to determine whether there are other locations within the preset threshold range of each location. If there are other locations of ornaments within the preset threshold range of a certain location, the locations of other ornaments within the preset range will be deleted, thereby improving the rationality of the three-dimensional model setting of the green landscape.
[0118] Furthermore, after generating a 3D model of the seat in the virtual scene, it is possible to determine whether there are other grass elements within a preset threshold range of the normal direction of the seat's back to the grass. If so, the corresponding 3D model of the seat is deleted, which improves the rationality of the 3D model setting of the green landscape.
[0119] In the above implementation process, the model setting order is determined according to the priority of the green landscape asset 3D model, and according to the model setting order and the preset green model setting spacing, multiple green landscape asset 3D models are set in the corresponding plot models in sequence, which improves the efficiency and rationality of green landscape 3D model generation in the virtual scene.
[0120] In one embodiment, the landscape asset 3D model includes multiple background landscape asset 3D models. Setting the landscape asset 3D model in the corresponding plot model to obtain the landscape model in the virtual scene may include the following steps:
[0121] Step 1: Select alternative 3D models of background landscape assets from a variety of background landscape asset 3D models.
[0122] Step 2: Based on the outline information of the candidate landscape asset 3D model and the corresponding plot model, determine the target landscape asset 3D model.
[0123] Step 3: Set the 3D model of the target landscape asset in the corresponding plot model to obtain the landscape model in the virtual scene.
[0124] For example, the 3D model of a landscape asset may include various 3D models of supporting landscape assets. These models may include various supporting landscape elements such as buildings, landscape nodes, gates, garage entrances, and sunken plazas. Furthermore, each supporting landscape 3D model may include multiple models of different sizes. Correspondingly, color-block areas may exist within the supporting landscape area, representing elements such as buildings, landscape nodes, gates, garage entrances, and sunken plazas, and these areas are stored according to the land use attributes and element types of each color-block area.
[0125] Furthermore, based on the land use attributes and element types within the background landscape area, multiple candidate 3D models of background landscape assets can be identified. Then, candidate 3D models corresponding to each landscape asset type are selected from the asset model database. Specifically, all 3D models of background landscape assets matching the land use attributes and element types within the background landscape area can be selected from the asset model database. A random value is generated for each 3D model using a random function. Models whose random values exceed a preset threshold are then identified as candidate 3D models. For example, the preset threshold could be 0.5, 0.6, 0.7, or other values; the preset threshold can be adaptively set as needed.
[0126] If there is only one candidate 3D asset model, then that candidate 3D asset model is the target landscape asset 3D model corresponding to the landscape asset type of the land parcel model. If there are multiple candidate 3D asset models, then the multiple candidate 3D asset models are randomly combined to obtain multiple combined landscape models, and then the combined model outline size of each combined landscape model is determined.
[0127] Furthermore, the outline size of each combined model is matched with the outline information of the corresponding plot model, and the combined model whose outline size is consistent with the outline information of the corresponding plot model is determined as the target background landscape asset 3D model corresponding to the landscape asset type of the plot model.
[0128] Furthermore, the 3D model of the target background landscape asset is set in the corresponding plot model to obtain the landscape model in the virtual scene, which includes the background landscape model.
[0129] In the above implementation process, candidate 3D models of background landscape assets are determined from multiple 3D models. These candidate models are then matched with the contour information of their corresponding plot models to determine the target 3D model, thus achieving the matching between the background landscape asset 3D model and the plot model. Finally, the target background landscape asset 3D model is set in the plot model corresponding to the background area, thereby realizing the generation of the background landscape 3D model in the virtual scene.
[0130] In one embodiment, the landscape type includes a sunken plaza. Based on the land use attributes and corresponding landscape type of each plot model, a 3D landscape asset model is set in the corresponding plot model to obtain the landscape model of the virtual scene. This may include the following steps:
[0131] Step 1: Based on the land use attributes of each plot model and the type of sunken plaza, determine the corresponding sunken plaza asset type.
[0132] Step 2: Determine the asset type of the sunken plaza. There are multiple sunken asset models.
[0133] Step 3: Determine the sunken contour information of the sunken area in the plot model corresponding to the sunken plaza.
[0134] Step 4: Match the target sinking asset model corresponding to the adjacent vertices based on the distance between adjacent vertices in the sinking contour information and the length of multiple sinking asset models.
[0135] Step 5: Set the target sinking asset model at the position corresponding to the adjacent vertex to obtain the landscape model of the virtual scene.
[0136] For example, sunken plazas can also be set up in the landscape area, meaning that the landscape type can include sunken plazas. Furthermore, sunken plazas can include both irregularly shaped and non-irregularly shaped sunken plazas. When setting up a sunken plaza asset model in the virtual scene, the type of sunken plaza can be set according to user needs or randomly selected; there are no restrictions here.
[0137] Furthermore, when setting up sunken plaza asset models in a virtual scene, the corresponding sunken plaza asset type can be determined based on the land use attributes of the plot model and the type of sunken plaza. If the sunken plaza is non-irregular, multiple sunken asset models are determined based on the sunken plaza asset type. That is, multiple sunken asset models are determined based on non-irregular sunken plazas. Specifically, sunken asset models can include models of entrances, doors, pillars, and storefronts. The length, width, and height of each sunken asset model are stored in a data table. A sunken area is determined in the plot model corresponding to the sunken plaza, and then the sunken area of the plot model is pushed underground to a preset depth to obtain a sunken area model. Finally, the sunken outline information of the sunken area is determined. Furthermore, any vertex in the sunken area model is designated as the target vertex, and an adjacent vertex is identified. The distance between the target vertex and the adjacent vertex is calculated and matched with the lengths of multiple sunken asset models. If the length of the sunken asset model is the same as the distance, or the difference between the length of the sunken asset model and the distance is within a preset range, then this sunken asset model is determined as the target sunken asset model matching the target vertex and the adjacent vertex. This sunken asset model is then positioned between the target vertex and the adjacent vertex. This process is repeated to determine the sunken asset models on all vertices in the sunken area model, ultimately generating a landscape model of the sunken plaza in the virtual scene.
[0138] Furthermore, if the length of the sinking asset model is less than the distance between the target vertex and its adjacent vertices, multiple sinking asset models are combined to determine the combined length of the combined sinking asset model. If the difference between the combined length and the aforementioned distance is within a preset range, the combined sinking asset model is determined as the target sinking asset model that matches the target vertex and its adjacent vertices.
[0139] As another example, if the sunken plaza is irregularly shaped, all vertices in the sunken area model are extended upwards, and the intersection of these extension lines with the overall sunken plot model is determined. Furthermore, facets are formed based on the areas where adjacent extension lines are located. Finally, the sunken shop models are determined based on the positions of all facets. Specifically, several facet positions can be randomly selected as the locations of the sunken shop models. The width of each facet determines the location of the sunken shop model, and the model is then placed in the corresponding facet position to obtain the sunken plaza shop model. If the height of the sunken shop model is lower than the height of the facet, wall models can be set based on the height difference between the facet and the sunken shop model, and column models can be placed between adjacent facet models. This ensures the sunken plaza model corresponds to the actual scene, improving the realism of the sunken plaza landscape model generated in the virtual scene.
[0140] As another example, after generating a sunken plaza landscape model in a virtual scene, a sunken elevator model can also be generated. Specifically, a starting point can be determined at any point outside the outline of the sunken plaza landscape model, and a spline of a preset length can be drawn towards the bottom of the sunken plaza model at a preset angle. The end point of the spline is the endpoint, and the direction from the starting point to the endpoint is set as the elevator direction. The preset angle can be 30°, 35°, or 40°, and can be adaptively set according to actual conditions; there are no restrictions here. Furthermore, depending on the elevator type, the elevator start component model, intermediate part model, and end component model can be placed sequentially along the spline from the starting point to the endpoint. In addition, a one-way elevator model or a two-way elevator model can be set as needed.
[0141] In the above implementation process, the type of sunken asset is determined based on the land use attributes of the plot model and the type of sunken plaza. Then, the sunken asset model is determined based on the type of sunken asset, thereby improving the accuracy of the sunken asset model determination. Furthermore, based on the distance between adjacent vertices in the sunken contour information of the sunken area and the length of the sunken asset model, the target sunken asset model matching the adjacent vertices is determined, thereby realizing the matching of the sunken asset models corresponding to each vertex in the sunken model. Finally, the target sunken asset model is set in the corresponding adjacent vertices, thereby realizing the generation of the sunken asset model in the sunken plaza, that is, realizing the generation of the sunken plaza model in the virtual scene.
[0142] In one embodiment, the landscape type includes a driveway landscape, which includes multiple driveway components such as an underground parking garage entrance area, an underground parking garage exit gate, and underground parking garage bollards. When setting a 3D model of the landscape asset in the corresponding plot model based on the land use attributes and corresponding landscape type of each plot model to obtain the landscape model of the virtual scene, the following steps may be included:
[0143] Step 1: Determine the 3D model of the driveway landscape asset based on the land use attributes and corresponding landscape type of each plot model.
[0144] Step 2: Determine the location information of the lane landscape asset model based on the location information of the corresponding plot model.
[0145] Step 3: Set the 3D model of the lane landscape asset in the location information of the corresponding lane asset model to obtain the landscape model in the virtual scene.
[0146] The landscape model in the virtual scene includes a lane landscape model.
[0147] For example, the lane landscape type is determined based on the land use attributes and corresponding landscape type of each plot model. Then, the lane landscape asset 3D model is determined from the asset model database based on the lane landscape type. The lane landscape asset model may include the 3D model of the underground garage entrance area, the 3D model of the underground garage exit gate, and the 3D model of the underground garage vehicle barrier.
[0148] Furthermore, based on the location information of the plot model corresponding to the driveway landscape, the entrance area of the underground parking garage for the driveway landscape is determined. Further, based on the contact line between the underground parking garage entrance and the ground, the center point of the contact line is determined, and a perpendicular line is drawn from the center point towards the underground parking garage entrance. The location of the underground parking garage exit gate is determined at the position on the perpendicular line at a first preset distance from the center point. The contact line is extended outwards by a second preset distance on both sides, and an auxiliary line is formed in the direction of the underground parking garage based on the extended contact line. The location information of multiple underground parking garage bollards is set outside the edge of the underground parking garage ornament in the area between the auxiliary line and the contact line. The distance between the bollards, the first preset distance, and the second preset distance can be 1m or 2m, and there is no restriction here.
[0149] Furthermore, the determined 3D model of the lane landscape asset is set in the corresponding location information, thereby obtaining the landscape model in the virtual scene, including the lane landscape model.
[0150] As another example, a garage landscape model can also be set up in a virtual scene. Specifically, based on the landscape type and land use attributes of the landscape area, a garage plot model and a corresponding 3D model of the garage asset are determined. Then, a spline of a first preset length is generated in the garage plot model according to its location. Further, the garage entrance model is placed at the starting point of the spline, and the exit model is placed at the ending point of the spline, thus obtaining the garage landscape model.
[0151] As another example, a lane landscape model can also be set up in a virtual scene. Specifically, based on the landscape type and land use attributes of the landscape area, a lane plot model and a corresponding lane parking asset model are determined. The lane parking asset model can include a lane marking model and a parking space model. Further, a spline of a second preset length is generated in the lane plot model. Then, the length of the spline is compared with the length of the lane marking model to determine the target lane marking model, and the target lane marking model is set at the corresponding position in the spline, thus obtaining the lane marking model. Similarly, the length of the spline can be compared with the length of the parking space model to determine the target parking space model, and the target parking space model is set at the corresponding position in the spline, thus obtaining the parking space model in the lane. It should be noted that the first and second preset lengths can be 1m or 2m, and are not limited here.
[0152] In the above implementation process, the three-dimensional model of the lane landscape asset is determined according to the land use attributes and landscape type of the plot model, and the location information of each lane landscape asset model is determined according to the location information of the corresponding plot model. The three-dimensional model of each lane landscape asset is set in the location information of the corresponding plot model, thereby obtaining the lane landscape model in the virtual scene and realizing the generation of the lane landscape model in the lane landscape.
[0153] Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of a landscape generation device in a virtual scene provided in an embodiment of this application, as shown below. Figure 3 The landscape generation device in the virtual scene shown includes:
[0154] The acquisition module 301 is used to acquire the landscape planning map of the scene to be constructed. The landscape planning map includes multiple landscape areas in the scene to be constructed, as well as the landscape type of each landscape area.
[0155] The location determination module 302 is used to determine the location information of each landscape area in the landscape planning map in the virtual scene;
[0156] The land use attribute determination module 303 is used to determine the land use attribute of each landscape area in the virtual scene based on the control planning information of the scene to be constructed.
[0157] The land parcel generation module 304 is used to generate a land parcel model of the corresponding landscape area in the virtual scene based on the location information and land use attributes of each landscape area.
[0158] The landscape generation module 305 is used to set up a 3D landscape asset model in the corresponding land parcel model based on the land use attributes and corresponding landscape type of each land parcel model, so as to obtain the landscape model of the virtual scene.
[0159] In one embodiment, the planning information includes multiple functional areas of the scene to be constructed and the land use attributes of each functional area. The land use attribute determination module 303 is specifically used for:
[0160] The landscape areas are divided based on the boundary lines of each functional area, and the scope of the landscape areas included in each functional area is determined.
[0161] The land use attributes of each landscape area are set according to the corresponding land use attributes of the functional area, thus obtaining the land use attributes of each landscape area.
[0162] In one embodiment, the location determination module 302 is specifically used for:
[0163] Determine the first position information of the marker point of the landscape area corresponding to each landscape type in the landscape planning map, and the second position information of the corresponding marker point in the outline model. The outline model includes the three-dimensional outline information of the landscape area corresponding to each landscape type in the virtual scene.
[0164] Based on the first location information and the second location information, the location information of each landscape area in the landscape planning map in the virtual scene is determined.
[0165] In one embodiment, the land parcel generation module 304 is specifically used for:
[0166] The material information of each landscape area is determined based on its land use attributes.
[0167] Based on the material information and corresponding location information of each landscape area, a plot model of the corresponding landscape area is generated in the virtual scene.
[0168] In one embodiment, the landscape generation module 305 is specifically used for:
[0169] Based on the land use attributes and corresponding landscape type of each plot model, the corresponding landscape asset type is determined.
[0170] Filter out the 3D landscape asset models corresponding to the landscape asset types of each land parcel model from the asset model database;
[0171] By setting the 3D model of the landscape asset in the corresponding plot model, the landscape model in the virtual scene is obtained.
[0172] In one embodiment, the landscape asset 3D model includes various green landscape asset 3D models, and the landscape generation module 305 is specifically used for:
[0173] The order of model setup is determined based on the priority of various 3D models of green landscape assets;
[0174] Based on the model setting order and the preset greening model setting spacing, multiple greening landscape asset 3D models are set in the corresponding plot models to obtain the landscape model in the virtual scene.
[0175] In one embodiment, the landscape asset 3D model includes various background landscape asset 3D models, and the landscape generation module 305 is specifically used for:
[0176] Select alternative 3D models of landscape assets from a variety of landscape asset 3D models;
[0177] Based on the outline information of the candidate landscape asset 3D model and the corresponding plot model, the target background landscape asset 3D model is determined.
[0178] The target landscape asset's 3D model is set in the corresponding plot model to obtain the landscape model in the virtual scene.
[0179] In one embodiment, the landscape type includes a sunken plaza, and the landscape generation module 305 is specifically used for:
[0180] Based on the land use attributes of each plot model and the type of sunken plaza, determine the corresponding sunken plaza asset type.
[0181] Multiple asset models for sunken plazas have been identified.
[0182] Determine the sunken contour information of the sunken area in the plot model corresponding to the sunken plaza;
[0183] Based on the distance between adjacent vertices in the sinking contour information and the length of multiple sinking asset models, the target sinking asset model corresponding to the adjacent vertices is matched;
[0184] By setting the target sinking asset model at the position corresponding to the adjacent vertex, a landscape model of the virtual scene is obtained.
[0185] It should be understood that the landscape generation method embodiment in this virtual scene corresponds to and can execute the various steps involved in the above method embodiment. The specific functions of the landscape generation device in this virtual scene can be found in the description above. To avoid repetition, detailed descriptions are appropriately omitted here. The landscape generation device in this virtual scene includes at least one software function module that can be stored in memory or embedded in the operating system (OS) of the device in the form of software or firmware.
[0186] Please refer to Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. An electronic device 400 provided in this application includes a processor 401 and a memory 402. These components are interconnected and communicate with each other via a communication bus 403 and / or other forms of connection mechanisms (not shown). The memory 402 stores a computer program executable by the processor 401. When executed by the processor 401, this computer program performs the landscape generation method in the virtual scene described in the first aspect above.
[0187] This application also provides a computer-readable storage medium storing computer program instructions that, when executed by a processor 401, perform the landscape generation method in the virtual scene described in the first aspect above.
[0188] The storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Red-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0189] It should be understood that the disclosed apparatus / systems and methods can also be implemented in other ways, as provided in the embodiments of this application. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, or they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can 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.
[0190] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0191] The above description is only an optional implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the embodiments of this application should be covered within the protection scope of the embodiments of this application.
Claims
1. A method for generating landscapes in virtual scenes, characterized in that, The method includes: Obtain a landscape planning map of the scene to be constructed, the landscape planning map including multiple landscape areas in the scene to be constructed, and the landscape type of each landscape area; Determine the location information of each landscape area in the landscape planning map within the virtual scene; Based on the planning information of the scene to be constructed, determine the land use attributes of each landscape area in the virtual scene; Based on the location information and land use attributes of each landscape area, a land parcel model of the corresponding landscape area is generated in the virtual scene. Based on the land use attributes and corresponding landscape type of each plot model, a three-dimensional landscape asset model is set in the corresponding plot model to obtain the landscape model of the virtual scene.
2. The method according to claim 1, characterized in that, The planning control information includes multiple functional areas of the scene to be constructed and the land use attributes of each functional area. Determining the land use attributes of each landscape area in the virtual scene based on the planning control information of the scene to be constructed includes: The landscape areas are divided based on the boundary lines of each functional area to determine the scope of the landscape areas included in each functional area. The land use attributes of each landscape area are set to correspond to the land use attributes of the functional area, thereby obtaining the land use attributes of each landscape area.
3. The method according to claim 1, characterized in that, Determining the location information of each landscape area in the landscape planning map within the virtual scene includes: The first position information of the marker point of the landscape area corresponding to each landscape type in the landscape planning map and the second position information of the corresponding marker point in the outline model are determined. The outline model includes the three-dimensional outline information of the landscape area corresponding to each landscape type in the virtual scene. Based on the first location information and the second location information, the location information of each landscape area in the landscape planning map in the virtual scene is determined.
4. The method according to claim 1, characterized in that, The step of determining the land parcel model of the corresponding landscape area in the virtual scene based on the location information and land use attributes of each landscape area includes: The material information of the corresponding landscape area is determined based on the land use attributes of each landscape area. Based on the material information and corresponding location information of each landscape area, a plot model of the corresponding landscape area is generated in the virtual scene.
5. The method according to claim 1, characterized in that, The process of setting a 3D landscape asset model in the corresponding land parcel model based on the land use attributes and corresponding landscape type of each land parcel model to obtain the landscape model of the virtual scene includes: Based on the land use attributes and corresponding landscape types of each plot model, the corresponding landscape asset type is determined. The three-dimensional landscape asset models corresponding to the landscape asset types of each plot model are selected from the asset model database. The landscape asset 3D model is set in the corresponding plot model to obtain the landscape model in the virtual scene.
6. The method according to claim 5, characterized in that, The landscape asset 3D model includes various green landscape asset 3D models. The step of setting the landscape asset 3D model in the corresponding plot model to obtain the landscape model in the virtual scene includes: The order of model setup is determined based on the priority of various 3D models of green landscape assets. Based on the model setting order and the preset greening model setting spacing, various three-dimensional models of the greening landscape assets are set in the corresponding plot models to obtain the landscape model in the virtual scene.
7. The method according to claim 5, characterized in that, The landscape asset 3D model includes various background landscape asset 3D models. The step of setting the landscape asset 3D model in the corresponding plot model to obtain the landscape model in the virtual scene includes: Select alternative 3D models of background landscape assets from a variety of described 3D models of background landscape assets; Based on the outline information of the candidate landscape asset 3D model and the corresponding plot model, the target background landscape asset 3D model is determined. The target landscape asset 3D model is set in the corresponding plot model to obtain the landscape model in the virtual scene.
8. The method according to claim 1, characterized in that, The landscape type includes sunken plazas. Based on the land use attributes and corresponding landscape type of each plot model, a 3D landscape asset model is set in the corresponding plot model to obtain the landscape model of the virtual scene, including: Based on the land use attributes of each plot model and the type of the sunken plaza, the corresponding sunken plaza asset type is determined. The sunken plaza asset type defines multiple sunken asset models; Determine the sunken contour information of the sunken area in the land parcel model corresponding to the sunken plaza; Based on the distance between adjacent vertices in the sinking contour information and the length of multiple sinking asset models, a target sinking asset model corresponding to the adjacent vertices is matched; The target sunken asset model is set at the position corresponding to the adjacent vertex to obtain the landscape model of the virtual scene.
9. A landscape generation device in a virtual scene, characterized in that, The device includes: The acquisition module is used to acquire the landscape planning map of the scene to be constructed. The landscape planning map includes multiple landscape areas in the scene to be constructed, and the landscape type of each landscape area. The location determination module is used to determine the location information of each landscape area in the landscape planning map in the virtual scene; The land use attribute determination module is used to determine the land use attribute of each landscape area in the virtual scene based on the planning information of the scene to be constructed. The land parcel generation module is used to generate a land parcel model of the corresponding landscape area in the virtual scene based on the location information and land use attributes of each landscape area. The landscape generation module is used to set a three-dimensional landscape asset model in the corresponding land parcel model based on the land use attributes and corresponding landscape type of each land parcel model, so as to obtain the landscape model of the virtual scene.
10. An electronic device, characterized in that, The electronic device includes: Memory; processor; The memory stores a computer program executable by the processor, which, when executed by the processor, performs the landscape generation method in the virtual scene according to any one of claims 1-8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which, when executed by a processor, perform the landscape generation method in the virtual scene according to any one of claims 1-8.