Terrain editing methods and apparatus, storage media and electronic equipment
By acquiring and merging terrain files to generate terrain models, the problem of slow game map design speed is solved, enabling intuitive editing of game maps and improving development efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NETEASE (HANGZHOU) NETWORK CO LTD
- Filing Date
- 2022-11-18
- Publication Date
- 2026-05-26
AI Technical Summary
The slow pace of game map design means that game designers cannot intuitively perceive the actual effects of the game map, resulting in low game development efficiency.
It acquires multiple types of terrain files, generates terrain models, merges them into a single terrain model, and performs editing operations in response to the editing of the single terrain model.
It allows users to intuitively experience the actual effects of the game map, improving the speed of game map design and increasing game development efficiency.
Smart Images

Figure CN116036605B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and more specifically, to terrain editing methods, terrain editing apparatus, computer-readable storage media, and electronic devices. Background Technology
[0002] With the development of terminal devices and the gaming industry, a large number of games of different themes have emerged to meet the needs of players. For some open-world games, the game map is large, and players can control the virtual character to move freely in the game scene.
[0003] For open-world game maps, game designers need to deeply customize the game terrain. Currently, with existing technologies, game designers can only access map-related data and observe the map in a two-dimensional format. They cannot intuitively perceive the actual effects of the map or make direct adjustments, resulting in slow map design and consequently low game development efficiency.
[0004] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0005] The purpose of this disclosure is to provide a terrain editing method and apparatus, a computer-readable storage medium and an electronic device, which can solve the problem of slow game map design speed in related technologies.
[0006] Other features and advantages of this disclosure will become apparent from the following detailed description, or may be learned in part from practice of this disclosure.
[0007] According to a first aspect of this disclosure, a terrain editing method is provided, characterized by comprising: acquiring multiple types of terrain files; generating terrain models corresponding to the multiple types of terrain files based on the multiple types of terrain files; merging the terrain models corresponding to the multiple types of terrain files into an overall terrain model; and editing the overall terrain model in response to an editing operation on the overall terrain model.
[0008] According to a second aspect of this disclosure, a terrain editing apparatus is provided, characterized in that the apparatus comprises: a terrain file acquisition module, configured to acquire multiple types of terrain files and generate terrain models corresponding to the multiple types of terrain files; a terrain model merging module, configured to merge the terrain models corresponding to the multiple types of terrain files into an overall terrain model; and a terrain model editing module, configured to edit the overall terrain model in response to an editing operation on the overall terrain model.
[0009] According to a third aspect of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the terrain editing method of the first aspect of the above embodiments.
[0010] According to a fourth aspect of this disclosure, an electronic device is provided, comprising:
[0011] One or more processors; and
[0012] A memory for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the terrain editing method as described in the first aspect of the above embodiments.
[0013] The technical solutions provided in this disclosure may have the following beneficial effects:
[0014] In one embodiment of this disclosure, a terrain editing method is provided that can acquire multiple types of terrain files, generate terrain models corresponding to the multiple types of terrain files, merge the terrain models corresponding to the multiple types of terrain files into a unified terrain model, and edit the unified terrain model in response to an editing operation on the unified terrain model. This method can generate terrain models based on terrain files, allowing for a direct understanding of the actual effect of the game map and enabling direct adjustments to the game map, thereby improving the speed of game map design and ultimately increasing game development efficiency.
[0015] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0016] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:
[0017] Figure 1 The schematic diagram illustrates an exemplary system architecture of the terrain editing method in an exemplary embodiment of the present disclosure;
[0018] Figure 2 A flowchart illustrating a terrain editing method in an exemplary embodiment of this disclosure is shown schematically.
[0019] Figure 3 This schematically illustrates a flowchart of a process for generating terrain models corresponding to various types of terrain files based on a preset terrain configuration and multiple types of terrain files in an exemplary embodiment of this disclosure.
[0020] Figure 4 This schematically illustrates a flowchart of an exemplary embodiment of the present disclosure, in which configuration information corresponding to a pivot occupier is filled into the pivot occupier based on the configuration data of the terrain file to obtain the terrain model corresponding to the terrain file;
[0021] Figure 5 This schematic diagram illustrates the creation of a pivotal occupier at a target location in an exemplary embodiment of the present disclosure.
[0022] Figure 6 This schematically illustrates a flowchart of an exemplary embodiment of the present disclosure, in which a second terrain element is adjusted based on an adjustment of a first terrain element to update the terrain model corresponding to the terrain file;
[0023] Figure 7 This schematically illustrates that after generating a first terrain element (city) in an exemplary embodiment of the present disclosure, a second terrain element (vegetation) can be generated around the first terrain element;
[0024] Figure 8 This schematically illustrates a flowchart of determining an overall terrain model based on multiple overall terrain sub-models in an exemplary embodiment of the present disclosure;
[0025] Figure 9 The illustration shows a schematic diagram of another terrain editing method in an exemplary embodiment of the present disclosure;
[0026] Figure 10 This schematic diagram illustrates the composition of a terrain editing apparatus according to an exemplary embodiment of the present disclosure;
[0027] Figure 11 The schematic diagram illustrates a structural schematic of a computer system suitable for implementing an electronic device according to exemplary embodiments of the present disclosure. Detailed Implementation
[0028] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided so that this disclosure will be more comprehensive and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., may be employed. In other instances, well-known structures, methods, apparatuses, implementations, materials, or operations are not shown or described in detail to avoid obscuring various aspects of this disclosure.
[0029] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, or in one or more software-hardened modules, or in different network and / or processor devices and / or microcontroller devices.
[0030] Figure 1 A schematic diagram of an exemplary system architecture to which the terrain editing method of embodiments of the present disclosure can be applied is shown.
[0031] like Figure 1 As shown, system architecture 1000 may include one or more of terminal devices 1001, 1002, and 1003, network 1004, and server 1005. Network 1004 is used as a medium to provide a communication link between terminal devices 1001, 1002, and 1003 and server 1005. Network 1004 may include various connection types, such as wired or wireless communication links or fiber optic cables, etc.
[0032] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included. For example, server 1005 could be a server cluster composed of multiple servers.
[0033] Users can use terminal devices 1001, 1002, and 1003 to interact with server 1005 via network 1004 to receive or send messages, etc. Terminal devices 1001, 1002, and 1003 can be various electronic devices with displays, including but not limited to smartphones, tablets, laptops, and desktop computers. Additionally, server 1005 can be a server providing various services.
[0034] In one embodiment, the execution entity of the terrain editing method disclosed herein may be a server 1005. The server 1005 may obtain multiple types of terrain files sent by terminal devices 1001, 1002, and 1003, generate terrain models corresponding to multiple types of terrain files based on the multiple types of terrain files, merge the terrain models corresponding to the multiple types of terrain files into an overall terrain model, and edit the overall terrain model in response to the editing operation on the overall terrain model.
[0035] In addition, the terrain editing method disclosed herein can be executed through terminal devices 1001, 1002, 1003, etc., to obtain multiple types of terrain files, generate terrain models corresponding to multiple types of terrain files based on the multiple types of terrain files, merge the terrain models corresponding to the multiple types of terrain files into an overall terrain model, and edit the overall terrain model in response to editing operations on the overall terrain model.
[0036] With the development of terminal devices and the gaming industry, a large number of games of different themes have emerged to meet the needs of players. For some open-world games, the game map is large, and players can control the virtual character to move freely in the game scene.
[0037] For open-world game maps, game designers need to deeply customize the game terrain. For example, some game maps reach 13.6 km^2. Currently, game designers can only access map data and observe the map in a two-dimensional format, unable to intuitively grasp its actual effects or make direct adjustments. This slows down map design and consequently reduces game development efficiency.
[0038] In one example embodiment of this disclosure, multiple types of terrain files can be obtained, terrain models corresponding to the multiple types of terrain files can be generated, the terrain models corresponding to the multiple types of terrain files can be merged into a unified terrain model, and the unified terrain model can be edited in response to an editing operation on the unified terrain model. (See reference...) Figure 2 The diagram illustrates a flowchart of a terrain editing method in this exemplary embodiment, which may include the following steps:
[0039] Step S210: Obtain multiple types of terrain files, and generate terrain models corresponding to the multiple types of terrain files based on the multiple types of terrain files;
[0040] Step S220: Merge the terrain models corresponding to multiple types of terrain files into a single terrain model;
[0041] Step S230: In response to the editing operation on the overall terrain model, the overall terrain model is edited.
[0042] In one embodiment of this disclosure, a terrain editing method is provided that can acquire multiple types of terrain files, generate terrain models corresponding to the multiple types of terrain files, merge the terrain models corresponding to the multiple types of terrain files into a unified terrain model, and edit the unified terrain model in response to editing operations on the unified terrain model. This method can generate terrain models based on terrain files, allowing for a direct understanding of the actual effect of the game map and enabling direct adjustments to the game map, thereby improving the speed of game map design and ultimately increasing game development efficiency.
[0043] Below, we will combine Figure 2 The embodiments will provide a more detailed description of steps S210 to S230 of the terrain editing method in this exemplary embodiment.
[0044] Step S210: Obtain multiple types of terrain files, and generate terrain models corresponding to the multiple types of terrain files based on the multiple types of terrain files;
[0045] In one example embodiment of this disclosure, multiple types of terrain files can be obtained. Specifically, a terrain file refers to a file used to generate a terrain model. For example, a terrain file can be used to indicate the distribution of terrain; for instance, a terrain file may include multiple pixels, and the terrain height can be determined by the value corresponding to each pixel, or the presence of terrain can be determined by the value corresponding to each pixel.
[0046] It should be noted that this disclosure does not impose any special limitations on the specific content of the terrain files.
[0047] In one example embodiment of this disclosure, the terrain file can be a PSD (Photoshop Document, a proprietary format of the image processing software Photoshop) file. Specifically, the DSP file can be edited using Photoshop, and the PSD file can contain various layers, channels, masks, etc.
[0048] It should be noted that this disclosure does not impose any special restrictions on the specific type of terrain file.
[0049] In one example embodiment of this disclosure, the terrain file may include multiple types. Specifically, the type of the terrain file can be used to indicate the terrain elements corresponding to the terrain file. For example, the terrain file type may include: river type, which can be used to describe the distribution of rivers in the terrain model; vegetation distribution type, which can be used to describe the distribution of vegetation in the terrain model; mountain range distribution type, which can be used to describe the distribution of mountains in the terrain model; road distribution type, which can be used to describe the distribution of roads in the terrain model; city distribution type, which can be used to describe the distribution of cities in the terrain model; state / county type, which can be used to describe the distribution of states / counties in the terrain model; gold mine type, which can be used to describe the distribution of gold mines in the terrain model; and village distribution type, which can be used to describe the distribution of villages in the terrain model.
[0050] It should be noted that this disclosure does not impose any special restrictions on the specific type of terrain file.
[0051] In one exemplary embodiment of this disclosure, after obtaining multiple types of terrain files through the above steps, terrain models corresponding to each type of terrain file can be generated based on the multiple types of terrain files. Specifically, terrain files can be read using image processing software, and terrain models corresponding to the terrain files can be generated using image processing software.
[0052] It should be noted that this disclosure does not impose any special limitations on the specific methods for generating terrain models corresponding to various types of terrain files based on multiple types of terrain files.
[0053] For example, if the terrain file corresponds to the river type, a terrain model corresponding to the river type terrain file can be generated based on the terrain file.
[0054] In one example embodiment of this disclosure, different types of terrain files (PSD files) can be represented by different color layers. For example, blue can be used to represent river-type terrain files.
[0055] For example, different types of PSD files can be represented using different color layers.
[0056] In one example embodiment of this disclosure, a PSD file can be input into a packaged node (HDA, Houdini Digital Asset) to generate terrain models corresponding to various types of terrain files based on different PSD layers.
[0057] Step S220: Merge the terrain models corresponding to each type of terrain file into a unified terrain model;
[0058] In one exemplary embodiment of this disclosure, after obtaining the terrain models corresponding to each type of terrain file through the above steps, the terrain models corresponding to each type of terrain file can be merged into a unified terrain model. Specifically, the terrain models corresponding to each type of terrain file can be superimposed to obtain a unified terrain model.
[0059] It should be noted that this disclosure does not impose any special restrictions on the specific method of merging the terrain models corresponding to various types of terrain files into a single terrain model.
[0060] Furthermore, when merging terrain models corresponding to different types of terrain files, the merging can be based on the merging hierarchy of the terrain models corresponding to each type of terrain file. For example, when merging, a river-type terrain model should be at the bottom layer of the overall terrain model, a road-type terrain model should be above a river-type terrain model, a vegetation-type terrain model should be above a road-type terrain model, and so on.
[0061] It should be noted that this disclosure does not impose any special restrictions on the merging hierarchy of terrain models corresponding to various types of terrain files.
[0062] In one example embodiment of this disclosure, a preset terrain configuration is obtained, and terrain models corresponding to each type of terrain file are generated based on the preset terrain configuration and multiple types of terrain files. (Refer to...) Figure 3 As shown, generating terrain models corresponding to various types of terrain files based on preset terrain configurations and multiple types of terrain files may include the following steps S510 to S520:
[0063] Step S510: Obtain the preset terrain configuration;
[0064] In one example embodiment of this disclosure, after obtaining the terrain file through the above steps, a preset terrain configuration can be acquired. The preset terrain configuration indicates the terrain accuracy of the terrain model corresponding to the terrain file and / or the terrain size of the terrain model corresponding to the terrain file; the terrain size can be used to indicate the size of the game map.
[0065] Specifically, terrain precision can be defined as the number of pixels used to represent the size of the game map. For example, if the game map size is 13600m, the map precision is 8192 pixels.
[0066] It should be noted that this disclosure does not impose any special restrictions on the specific method of obtaining the preset terrain configuration.
[0067] Step S520: Generate terrain models corresponding to each type of terrain file based on the preset terrain configuration and multiple types of terrain files.
[0068] In one example embodiment of this disclosure, after obtaining the preset terrain configuration through the above steps, terrain models corresponding to various types of terrain files can be generated based on the preset terrain configuration and multiple types of terrain files. Specifically, terrain models corresponding to terrain files can be generated according to the preset terrain configuration, that is, the terrain models corresponding to the generated terrain files have terrain accuracy and terrain size that conform to the preset terrain configuration.
[0069] Furthermore, based on the preset terrain configuration and multiple types of terrain files, terrain models corresponding to each type of terrain file are generated. After merging the terrain models corresponding to these terrain files, the resulting overall terrain model also conforms to the preset terrain model.
[0070] It should be noted that this disclosure does not impose any special limitations on the specific methods for generating terrain models corresponding to various types of terrain files based on preset terrain configurations and multiple types of terrain files.
[0071] Through the above steps S510 to S520, a preset terrain configuration can be obtained, and a terrain model corresponding to each type of terrain file can be generated based on the preset terrain configuration and multiple types of terrain files.
[0072] In one example embodiment of this disclosure, a terrain model corresponding to a terrain file can be generated based on the terrain file and its configuration table data. The configuration table data of the terrain file indicates the configuration information of a first terrain element corresponding to the terrain file. Specifically, the first terrain element corresponding to the terrain file refers to the main element in generating the terrain model corresponding to the terrain file. For example, if the terrain file is a city-type terrain file, it includes the main element: a city.
[0073] It should be noted that a terrain file has at least one first terrain element. For example, if the terrain file is a city-type terrain file, the first terrain element in this type of terrain file is a city, and the terrain model corresponding to the terrain file includes 20 cities.
[0074] In one example embodiment of this disclosure, the first terrain element corresponding to the terrain file has configuration information, which can be used to indicate detailed information of the first terrain element. For example, the terrain file is a city-type terrain file, which includes a first terrain element: a city. The configuration data of the terrain file can be used to indicate the generation range, city name, city size level, city identifier, etc. of at least one city in the terrain file.
[0075] It should be noted that this disclosure does not impose any special restrictions on the specific content or format of the tabulated data in the terrain files.
[0076] In one example embodiment of this disclosure, a candidate terrain model corresponding to a terrain file can be generated based on the terrain file. The target position of a first terrain element corresponding to the terrain file within the candidate terrain model is determined based on the candidate terrain model. A pivot placeholder is created at the target position. Configuration information corresponding to the pivot placeholder is filled into the pivot placeholder according to the configuration table data of the terrain file to obtain the terrain model corresponding to the terrain file. (Refer to...) Figure 4 As shown, the configuration information corresponding to the axis occupier is filled into the configuration table data of the terrain file to obtain the terrain model corresponding to the terrain file, which may include the following steps S610 to S630:
[0077] Step S610: Generate candidate terrain models corresponding to the terrain files based on the terrain files;
[0078] Step S620: Determine the target location of the first terrain element corresponding to the terrain file in the candidate terrain model based on the candidate terrain model corresponding to the terrain file;
[0079] In one example embodiment of this disclosure, after obtaining the terrain file through the above steps, a candidate terrain model corresponding to the terrain file can be generated based on the terrain file. Then, the target position of the first terrain element corresponding to the terrain file in the candidate terrain model can be determined based on the candidate terrain model. Specifically, if the first terrain element corresponding to the terrain file has not yet been added to the candidate terrain model, or if the first terrain element corresponding to the terrain file in the candidate terrain model is incomplete, the target position of the first terrain element corresponding to the terrain file in the candidate terrain model can be determined based on the candidate terrain model, that is, the first terrain element corresponding to the terrain file needs to be generated at the target position.
[0080] For example, if the terrain file is of the city type and the first terrain element corresponding to the terrain file is the city, the target location of multiple cities in the candidate terrain model can be determined based on the candidate terrain model corresponding to the terrain file, that is, the city needs to be generated at the target location.
[0081] It should be noted that this disclosure does not impose any special limitations on the specific method of determining the target location of the first terrain element corresponding to the terrain file in the candidate terrain model based on the candidate terrain model corresponding to the terrain file.
[0082] Step S630: Create a core placeholder at the target location, and fill the core placeholder with the configuration information corresponding to the core placeholder according to the configuration table data of the terrain file to obtain the terrain model corresponding to the terrain file.
[0083] In one example embodiment of this disclosure, after determining the target location through the above steps, a pivot placeholder can be created at the target location. The pivot placeholder is then filled with configuration information corresponding to it based on the terrain file's mapping data to obtain the terrain model corresponding to the terrain file. Specifically, the pivot placeholder can be used to represent the initial state of a first terrain element in the candidate terrain model. The first terrain element can be directly represented by the pivot placeholder; alternatively, configuration information can be filled into the pivot placeholder to give it more terrain element information.
[0084] For example, if the first terrain element is a city, a target location (at least one) can be obtained. A core placeholder can be created at the target location, and the configuration information corresponding to the core placeholder can be filled in according to the configuration table data of the terrain file. For example, three core placeholders (core placeholder A, core placeholder B, and core placeholder C) can be created in the candidate terrain model. The configuration information of the cities corresponding to these three core placeholders can be obtained from the configuration table data of the terrain file, and the core placeholders can be filled in. For example, the generation range, city name, city size level, and city identifier of each core placeholder can be obtained, and these configuration information can be assigned to the core placeholders to obtain the terrain model corresponding to the terrain file.
[0085] It should be noted that this disclosure does not impose any special restrictions on the specific method of filling the configuration information corresponding to the axis occupier with the table data of the terrain file.
[0086] In one example embodiment of this disclosure, after determining the target position of the first terrain element corresponding to the terrain file in the candidate terrain model based on the candidate terrain model corresponding to the terrain file, the configuration table data of the terrain file can be parsed using the csv (Comma Separated Values) module of Python (programming language), and the data structure can be organized by the collection module, and then the configuration information corresponding to the axis placeholder can be filled into the axis placeholder.
[0087] In one exemplary embodiment of this disclosure, such as Figure 5 As shown, the target location of the first terrain element (city) corresponding to the terrain file can be determined in the candidate terrain model based on the candidate terrain model corresponding to the terrain file, and a central placeholder can be created at the target location (each city can be identified by ID).
[0088] Through the above steps S610 to S630, a candidate terrain model corresponding to the terrain file can be generated based on the terrain file. The target position of the first terrain element corresponding to the terrain file in the candidate terrain model can be determined based on the candidate terrain model. A pivot occupier is created at the target position. The configuration information corresponding to the pivot occupier is filled with the configuration table data of the terrain file to obtain the terrain model corresponding to the terrain file.
[0089] In one example embodiment of this disclosure, in response to a data adjustment operation on a first terrain element in the matching table data, the first terrain element in the terrain model corresponding to the terrain file can be adjusted, and the second terrain element can be adjusted based on the adjustment of the first terrain element to update the terrain model corresponding to the terrain file. (Refer to...) Figure 6 As shown, adjusting the second terrain element based on the adjustment of the first terrain element to update the terrain model corresponding to the terrain file may include the following steps S810 to S820:
[0090] Step S810: In response to the data adjustment operation for the first terrain element in the table data, the first terrain element in the terrain model corresponding to the terrain file is adjusted.
[0091] In one example embodiment of this disclosure, after generating a terrain model corresponding to a terrain file based on the terrain file and its mapping table data, a data adjustment operation can be received for a first terrain element in the mapping table data, adjusting the first terrain element in the terrain model corresponding to the terrain file. Specifically, the terrain model corresponding to the terrain file includes a first terrain element and a second terrain element, wherein the second terrain element changes as the first terrain element changes. For example, the first terrain element is a city, and the second terrain element is vegetation growing around the city. After the city is determined, vegetation can be configured around the city.
[0092] For example, such as Figure 7 As shown, after generating the first terrain element (city), a second terrain element (vegetation) can be generated around the first terrain element.
[0093] In one example embodiment of this disclosure, after receiving a data adjustment operation for a first terrain element in the mapping table data, the first terrain element can be adjusted. For example, if the first terrain element is a city, the generation range of the city in the mapping table data can be reduced. After adjusting the mapping table data, the first terrain element (city) in the terrain model corresponding to the terrain file will also be reduced accordingly. Similarly, if the first terrain element is a river, the route of the city in the mapping table data can be adjusted. After adjusting the mapping table data, the route of the first terrain element (river) in the terrain model corresponding to the terrain file will also change. Furthermore, if the first terrain element is a mountain range, the size of the mountain range in the mapping table data can be adjusted. After adjusting the mapping table data, the size of the first terrain element (mountain range) in the terrain model corresponding to the terrain file will also change.
[0094] It should be noted that this disclosure does not specifically limit the type of data adjustment operation for the first terrain element in the table data.
[0095] Step S820: Adjust the second terrain element according to the adjustment of the first terrain element to update the terrain model corresponding to the terrain file.
[0096] In one exemplary embodiment of this disclosure, after adjusting the first terrain element in the terrain model corresponding to the terrain file through the above steps, the second terrain element can be adjusted based on the adjustment of the first terrain element to update the terrain model corresponding to the terrain file. Specifically, the first terrain element and the second terrain element in the terrain model have a mutual influence relationship. After adjusting the first terrain element, the second terrain element can be adjusted based on the adjustment of the first terrain element to update the terrain model corresponding to the terrain file.
[0097] For example, the first terrain element is the city, and the second terrain element is the vegetation around the city. After reducing the generation range of the city, the vegetation around the city will also be adjusted. For example, the vegetation in the original position can be removed first, and then new vegetation can be generated according to the adjusted range of the city.
[0098] It should be noted that this disclosure does not impose any special limitations on the specific method of adjusting the second terrain element based on the adjustment of the first terrain element.
[0099] Through the above steps S810 to S820, in response to the data adjustment operation for the first terrain element in the matching table data, the first terrain element in the terrain model corresponding to the terrain file can be adjusted, and the second terrain element can be adjusted according to the adjustment of the first terrain element, so as to update the terrain model corresponding to the terrain file.
[0100] In one exemplary embodiment of this disclosure, multiple overall terrain sub-models can be generated based on terrain sub-models corresponding to multiple types of terrain files, and an overall terrain model can be determined based on the multiple overall terrain sub-models. (Refer to...) Figure 8 As shown, determining the overall terrain model based on multiple overall terrain sub-models may include the following steps S1010 to S1020:
[0101] Step S1010: Generate multiple overall terrain sub-models based on the terrain sub-models corresponding to multiple types of terrain files; wherein, the terrain sub-models corresponding to the terrain files correspond to the overall terrain sub-models.
[0102] Step S1020: Determine the overall terrain model based on multiple overall terrain sub-models.
[0103] In one exemplary embodiment of this disclosure, multiple overall terrain sub-models can be generated based on terrain sub-models corresponding to multiple types of terrain files. The terrain sub-models corresponding to the terrain files correspond to the overall terrain sub-models. Specifically, the overall terrain model includes multiple overall terrain sub-models, and the terrain model corresponding to the terrain files includes multiple terrain sub-models corresponding to the terrain files. The terrain files obtained in the above steps can be divided into multiple terrain sub-files, terrain sub-models can be generated from the terrain sub-files, and multiple overall terrain sub-models can be generated based on the obtained multiple types of terrain sub-files.
[0104] After obtaining multiple overall terrain sub-models through the above steps, the overall terrain model can be determined based on these sub-models. Specifically, the multiple overall terrain sub-models can be stitched together to obtain the overall terrain model.
[0105] It should be noted that this disclosure does not impose any special limitations on the specific method of determining the overall terrain model based on multiple overall terrain sub-models.
[0106] In one exemplary embodiment of this disclosure, such as Figure 9 As shown, the overall terrain model can include multiple overall terrain sub-models. Multiple overall terrain sub-models can be generated based on the terrain sub-models corresponding to multiple types of terrain files, and each overall terrain sub-model can be assigned an identifier (0, 1, 2, 3, 4...15). The overall terrain model is determined based on the multiple overall terrain sub-models.
[0107] In one example embodiment of this disclosure, each overall terrain sub-model can be generated in UE4 (Unreal Engine 4) and identified. When multiple people collaborate, they can edit each overall terrain sub-model.
[0108] Through the aforementioned steps S1010-S1020, multiple overall terrain sub-models can be generated based on the terrain sub-models corresponding to multiple types of terrain files, and the overall terrain model can be determined based on the multiple overall terrain sub-models. Through the embodiments of this disclosure, the overall terrain model can be divided into multiple overall terrain sub-models. When designing game maps, division of labor and parallel processing can be implemented, improving the efficiency of game map design and thus game development. Furthermore, when loading the game, the corresponding overall terrain sub-model can be loaded based on the area where the character is located, reducing resource consumption, decreasing map loading time, and improving game smoothness.
[0109] In one example embodiment of this disclosure, the above steps can be encapsulated in a PDG (Procedural Dependency Graph) HDA, and the process of generating the overall terrain model can be implemented through the PDG HDA.
[0110] Step S230: In response to the editing operation on the overall terrain model, the overall terrain model is edited.
[0111] In one exemplary embodiment of this disclosure, after obtaining the overall terrain model through the above steps, the overall terrain model can be edited in response to an editing operation. Specifically, the editing operation can be used to edit the overall terrain model obtained above. For example, terrain elements in the overall terrain model can be deleted, added, or adjusted; or, relevant parameters of the overall terrain model can be adjusted, such as adjusting the size or precision of the overall terrain model.
[0112] It should be noted that this disclosure does not impose any special restrictions on the method of editing the overall terrain model.
[0113] In one example embodiment of this disclosure, an editing operation on the overall terrain model can be received, allowing for editing of the overall terrain model. Specifically, the editing operation on the overall terrain model can include editing operations within image processing software. For example, the overall terrain model can be edited by long-pressing the left mouse button.
[0114] Editing operations on the overall terrain model can include touch operations, external device operations, and voice operations. For example, touch operations can include swipe touch operations, press touch operations, gesture touch operations, long press touch operations, click touch operations, drag touch operations, and air touch operations; external device operations can include mouse clicks, keyboard input, and console key input. It should be noted that this disclosure does not specifically limit the specific form of editing operations on the overall terrain model.
[0115] In one example embodiment of this disclosure, terrain models corresponding to multiple terrain files within an overall terrain model can be edited. Editing includes one or more of the following: adding third terrain elements, removing third terrain elements from the terrain model, and adjusting third terrain elements in the terrain model. Specifically, the overall terrain model includes terrain models corresponding to multiple terrain files, and each terrain model corresponding to a terrain file includes a third terrain element. The third terrain element refers to an element used to compose the terrain model. Examples include river elements, road elements, and mountain elements.
[0116] For example, if the terrain file type is river, then the third terrain element corresponding to the terrain file is the river element; if the terrain file type is highway, then the third terrain element corresponding to the terrain file is the highway element; if the terrain file type is mountain, then the third terrain element corresponding to the terrain file is the mountain element.
[0117] Specifically, editing the terrain model corresponding to multiple terrain files in the overall terrain model can include adding a third terrain element in the terrain model, removing a third terrain element in the terrain model, and adjusting one or more of the third terrain elements in the terrain model.
[0118] For example, if the third terrain element corresponding to the terrain file is a river element, you can add a river element to the terrain model, delete a river element from the terrain model, or adjust the route of the river element in the terrain model.
[0119] It should be noted that this disclosure does not impose any special restrictions on the specific methods for editing the terrain models corresponding to multiple terrain files in the overall terrain model.
[0120] In one example embodiment of this disclosure, the overall terrain model can be edited using the landmass function in UE4.
[0121] In one embodiment of this disclosure, a terrain editing method is provided that can acquire multiple types of terrain files, generate terrain models corresponding to the multiple types of terrain files, merge the terrain models corresponding to the multiple types of terrain files into a unified terrain model, and edit the unified terrain model in response to editing operations on the unified terrain model. This method can generate terrain models based on terrain files, allowing for a direct understanding of the actual effect of the game map and enabling direct adjustments to the game map, thereby improving the speed of game map design and ultimately increasing game development efficiency.
[0122] It should be noted that the above figures are merely illustrative of the processes included in the method according to exemplary embodiments of this disclosure, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Furthermore, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.
[0123] Furthermore, in an exemplary embodiment of this disclosure, a terrain editing apparatus is also provided. (Refer to...) Figure 10 As shown, a terrain editing device 1200 includes a terrain file acquisition module 1210, a terrain model merging module 1220, and a terrain model editing module 1230.
[0124] The terrain file acquisition module is used to acquire multiple types of terrain files and generate terrain models corresponding to multiple types of terrain files; the terrain model merging module is used to merge the terrain models corresponding to multiple types of terrain files into a whole terrain model; and the terrain model editing module is used to edit the whole terrain model in response to editing operations on the whole terrain model.
[0125] In an exemplary embodiment of this disclosure, based on the foregoing scheme, a terrain model corresponding to multiple types of terrain files is generated according to multiple types of terrain files. The apparatus further includes: a terrain configuration acquisition unit, used to acquire a preset terrain configuration; wherein the preset terrain configuration is used to indicate the terrain accuracy and / or the terrain size of the terrain model corresponding to the terrain file; and to generate a terrain model corresponding to multiple types of terrain files according to the preset terrain configuration and multiple types of terrain files.
[0126] In an exemplary embodiment of this disclosure, based on the aforementioned scheme, the terrain file has configuration table data, and multiple types of terrain files are generated to correspond to multiple types of terrain files. The apparatus further includes: a configuration table data generation unit, used to generate a terrain model corresponding to the terrain file based on the terrain file and the configuration table data of the terrain file; wherein, the configuration table data of the terrain file is used to indicate the configuration information of the first terrain element corresponding to the terrain file.
[0127] In an exemplary embodiment of this disclosure, based on the aforementioned scheme, a terrain model corresponding to a terrain file is generated according to the terrain file and the mapping table data of the terrain file. The apparatus further includes: a candidate terrain model generation unit, used to generate a candidate terrain model corresponding to the terrain file according to the terrain file; a target location acquisition unit, used to determine the target location of the first terrain element corresponding to the terrain file in the candidate terrain model according to the candidate terrain model corresponding to the terrain file; and a configuration information filling unit, used to create a center placeholder at the target location and fill the center placeholder with the configuration information corresponding to the center placeholder according to the mapping table data of the terrain file to obtain the terrain model corresponding to the terrain file.
[0128] In an exemplary embodiment of this disclosure, based on the aforementioned scheme, the terrain model corresponding to the terrain file includes a first terrain element and a second terrain element, wherein the second terrain element changes as the first terrain element changes. After generating the terrain model corresponding to the terrain file based on the terrain file and the mapping table data of the terrain file, the apparatus further includes: a first element adjustment unit, configured to adjust the first terrain element in the terrain model corresponding to the terrain file in response to a data adjustment operation on the first terrain element in the mapping table data; and a second element adjustment unit, configured to adjust the second terrain element according to the adjustment of the first terrain element, so as to update the terrain model corresponding to the terrain file.
[0129] In an exemplary embodiment of this disclosure, based on the aforementioned scheme, the overall terrain model includes multiple overall terrain sub-models, and the terrain model corresponding to a terrain file includes multiple terrain sub-models corresponding to the terrain file. The apparatus further includes: an overall terrain sub-model generation unit, used to generate multiple overall terrain sub-models based on the terrain sub-models corresponding to the multiple types of terrain files; wherein the terrain sub-models corresponding to the terrain files correspond to the overall terrain sub-models; and an overall terrain model determination unit, used to determine the overall terrain model based on the multiple overall terrain sub-models.
[0130] In an exemplary embodiment of this disclosure, based on the aforementioned scheme, the overall terrain model includes terrain models corresponding to multiple terrain files, and each terrain file corresponds to a third terrain element. The apparatus for editing the overall terrain model further includes: an editing unit, used to edit the terrain models corresponding to the multiple terrain files in the overall terrain model; wherein, the editing includes one or more of adding a third terrain element in the terrain model, reducing a third terrain element in the terrain model, and adjusting a third terrain element in the terrain model.
[0131] One embodiment of this disclosure provides a terrain editing apparatus that can acquire multiple types of terrain files, generate terrain models corresponding to the multiple types of terrain files, merge the terrain models corresponding to the multiple types of terrain files into a unified terrain model, and edit the unified terrain model in response to editing operations on the unified terrain model. By generating terrain models from terrain files, the actual effect of the game map can be intuitively perceived, and the game map can be directly adjusted, thereby improving the design speed of the game map and thus increasing the efficiency of game development.
[0132] Since the functional modules of the terrain editing apparatus in the example embodiments of this disclosure correspond to the steps of the example embodiments of the terrain editing method described above, for details not disclosed in the apparatus embodiments of this disclosure, please refer to the embodiments of the terrain editing method described above.
[0133] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0134] Furthermore, in an exemplary embodiment of this disclosure, an electronic device capable of implementing the above-described terrain editing method is also provided.
[0135] Those skilled in the art will understand that various aspects of this disclosure can be implemented as a system, method, or program product. Therefore, various aspects of this disclosure can be embodied in the following forms: a completely hardware embodiment, a completely software embodiment (including firmware, microcode, etc.), or an embodiment combining hardware and software aspects, collectively referred to herein as a "circuit," "module," or "system."
[0136] The following reference Figure 11 To describe an electronic device 1300 according to such an embodiment of the present disclosure. Figure 11 The electronic device 1300 shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments disclosed herein.
[0137] like Figure 11 As shown, the electronic device 1300 is manifested in the form of a general-purpose computing device. The components of the electronic device 1300 may include, but are not limited to: at least one processing unit 1310, at least one storage unit 1320, a bus 1330 connecting different system components (including storage unit 1320 and processing unit 1310), and a display unit 1340.
[0138] The storage unit stores program code, which can be executed by the processing unit 1310 to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of this disclosure. For example, the processing unit 1310 can perform actions such as... Figure 2 Step S210, as shown, involves acquiring multiple types of terrain files and generating terrain models corresponding to the multiple types of terrain files; step S220, merging the terrain models corresponding to the multiple types of terrain files into a unified terrain model; and step S230, in response to an editing operation on the unified terrain model, editing the unified terrain model. Based on the embodiments of this disclosure, the following solutions can also be implemented:
[0139] Optionally, generating terrain models corresponding to multiple types of terrain files based on multiple types of terrain files includes: obtaining a preset terrain configuration; wherein the preset terrain configuration is used to indicate the terrain accuracy and / or terrain size of the terrain model corresponding to the terrain file; and generating terrain models corresponding to multiple types of terrain files based on the preset terrain configuration and multiple types of terrain files.
[0140] Optionally, the terrain file has configuration table data, and multiple types of terrain files are generated to correspond to multiple types of terrain files, including: generating a terrain model corresponding to the terrain file based on the terrain file and the configuration table data of the terrain file; wherein, the configuration table data of the terrain file is used to indicate the configuration information of the first terrain element corresponding to the terrain file.
[0141] Optionally, a terrain model corresponding to the terrain file is generated based on the terrain file and the configuration table data of the terrain file, including: generating a candidate terrain model corresponding to the terrain file based on the terrain file; determining the target position of the first terrain element corresponding to the terrain file in the candidate terrain model based on the candidate terrain model corresponding to the terrain file; creating a pivot placeholder at the target position; and filling the pivot placeholder with the configuration information corresponding to the pivot placeholder based on the configuration table data of the terrain file to obtain the terrain model corresponding to the terrain file.
[0142] Optionally, the terrain model corresponding to the terrain file includes a first terrain element and a second terrain element, wherein the second terrain element changes as the first terrain element changes. After generating the terrain model corresponding to the terrain file based on the terrain file and the mapping table data of the terrain file, the method further includes: adjusting the first terrain element in the terrain model corresponding to the terrain file in response to the data adjustment operation of the first terrain element in the mapping table data; and adjusting the second terrain element based on the adjustment of the first terrain element to update the terrain model corresponding to the terrain file.
[0143] Optionally, the overall terrain model includes multiple overall terrain sub-models, and the terrain model corresponding to the terrain file includes multiple terrain sub-models corresponding to the terrain file. Merging the terrain models corresponding to multiple types of terrain files into an overall terrain model includes: generating multiple overall terrain sub-models based on the terrain sub-models corresponding to multiple types of terrain files; wherein the terrain sub-models corresponding to the terrain files correspond to the overall terrain sub-model; and determining the overall terrain model based on the multiple overall terrain sub-models.
[0144] Optionally, the overall terrain model includes terrain models corresponding to multiple terrain files, and each terrain file has a third terrain element. Editing the overall terrain model includes: editing the terrain models corresponding to the multiple terrain files in the overall terrain model; wherein, editing includes adding a third terrain element in the terrain model, removing a third terrain element in the terrain model, and adjusting one or more of the third terrain elements in the terrain model.
[0145] One embodiment of this disclosure provides an electronic device that can acquire multiple types of terrain files, generate terrain models corresponding to the multiple types of terrain files, merge the terrain models corresponding to the multiple types of terrain files into a unified terrain model, and edit the unified terrain model in response to editing operations on the unified terrain model. By generating terrain models from terrain files, the actual effect of the game map can be intuitively perceived, and the game map can be directly adjusted, thereby improving the design speed of the game map and thus increasing the efficiency of game development.
[0146] Storage unit 1320 may include readable media in the form of volatile storage units, such as random access memory (RAM) 1321 and / or cache memory 1322, and may further include read-only memory (ROM) 1323.
[0147] Storage unit 1320 may also include a program / utility 1324 having a set (at least one) program module 1325, such program module 1325 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.
[0148] Bus 1330 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.
[0149] Electronic device 1300 can also communicate with one or more external devices 1370 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 1300, and / or with any device that enables electronic device 1300 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 1350. Furthermore, electronic device 1300 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 1360. As shown, network adapter 1360 communicates with other modules of electronic device 1300 via bus 1330. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 1300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0150] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.
[0151] In exemplary embodiments of this disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the methods described above is stored. In some possible embodiments, various aspects of this disclosure may also be implemented as a program product including program code that, when the program product is run on a terminal device, causes the terminal device to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of this disclosure.
[0152] In one exemplary embodiment of this disclosure, multiple types of terrain files can be obtained, and terrain models corresponding to the multiple types of terrain files can be generated based on the multiple types of terrain files; the terrain models corresponding to the multiple types of terrain files can be merged into an overall terrain model; and the overall terrain model can be edited in response to an editing operation on the overall terrain model.
[0153] Optionally, generating terrain models corresponding to multiple types of terrain files based on multiple types of terrain files includes: obtaining a preset terrain configuration; wherein the preset terrain configuration is used to indicate the terrain accuracy and / or terrain size of the terrain model corresponding to the terrain file; and generating terrain models corresponding to multiple types of terrain files based on the preset terrain configuration and multiple types of terrain files.
[0154] Optionally, the terrain file has configuration table data, and multiple types of terrain files are generated to correspond to multiple types of terrain files, including: generating a terrain model corresponding to the terrain file based on the terrain file and the configuration table data of the terrain file; wherein, the configuration table data of the terrain file is used to indicate the configuration information of the first terrain element corresponding to the terrain file.
[0155] Optionally, a terrain model corresponding to the terrain file is generated based on the terrain file and the configuration table data of the terrain file, including: generating a candidate terrain model corresponding to the terrain file based on the terrain file; determining the target position of the first terrain element corresponding to the terrain file in the candidate terrain model based on the candidate terrain model corresponding to the terrain file; creating a pivot placeholder at the target position; and filling the pivot placeholder with the configuration information corresponding to the pivot placeholder based on the configuration table data of the terrain file to obtain the terrain model corresponding to the terrain file.
[0156] Optionally, the terrain model corresponding to the terrain file includes a first terrain element and a second terrain element, wherein the second terrain element changes as the first terrain element changes. After generating the terrain model corresponding to the terrain file based on the terrain file and the mapping table data of the terrain file, the method further includes: adjusting the first terrain element in the terrain model corresponding to the terrain file in response to the data adjustment operation of the first terrain element in the mapping table data; and adjusting the second terrain element based on the adjustment of the first terrain element to update the terrain model corresponding to the terrain file.
[0157] Optionally, the overall terrain model includes multiple overall terrain sub-models, and the terrain model corresponding to the terrain file includes multiple terrain sub-models corresponding to the terrain file. Merging the terrain models corresponding to multiple types of terrain files into an overall terrain model includes: generating multiple overall terrain sub-models based on the terrain sub-models corresponding to multiple types of terrain files; wherein the terrain sub-models corresponding to the terrain files correspond to the overall terrain sub-model; and determining the overall terrain model based on the multiple overall terrain sub-models.
[0158] Optionally, the overall terrain model includes terrain models corresponding to multiple terrain files, and each terrain file has a third terrain element. Editing the overall terrain model includes: editing the terrain models corresponding to the multiple terrain files in the overall terrain model; wherein, editing includes adding a third terrain element in the terrain model, removing a third terrain element in the terrain model, and adjusting one or more of the third terrain elements in the terrain model.
[0159] One embodiment of this disclosure provides a computer-readable signal medium that can acquire multiple types of terrain files, generate terrain models corresponding to the multiple types of terrain files, merge the terrain models corresponding to the multiple types of terrain files into a unified terrain model, and edit the unified terrain model in response to an editing operation on the unified terrain model. This allows for the generation of terrain models from terrain files, providing a direct understanding of the actual effect of the game map, and enabling direct adjustments to the game map, thereby improving the speed of game map design and ultimately increasing game development efficiency.
[0160] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.
[0161] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0162] Program code for performing the operations of this disclosure can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing devices can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0163] Furthermore, the above figures are merely illustrative of the processes included in the method according to exemplary embodiments of this disclosure and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Additionally, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.
[0164] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.
Claims
1. A terrain editing method, characterized in that, The method includes: The process involves acquiring multiple types of terrain files and generating terrain models corresponding to each type of terrain file. Each terrain file contains configuration table data, which indicates the configuration information of a first terrain element corresponding to that terrain file. Generating terrain models based on the multiple types of terrain files includes: generating terrain models corresponding to the terrain files based on the terrain files and their configuration table data; and generating terrain models based on the terrain files and their configuration table data includes: generating candidate terrain models corresponding to the terrain files based on the terrain files; and determining the terrain model based on the candidate terrain models. The target location of the first terrain element corresponding to the terrain file in the candidate terrain model; a pivot placeholder is created at the target location, and the configuration information corresponding to the pivot placeholder is filled according to the configuration table data of the terrain file to obtain the terrain model corresponding to the terrain file; the terrain model corresponding to the terrain file includes a first terrain element and a second terrain element, wherein the second terrain element changes with the change of the first terrain element; in response to the data adjustment operation of the first terrain element in the configuration table data, the first terrain element in the terrain model corresponding to the terrain file is adjusted; the second terrain element is adjusted according to the adjustment of the first terrain element to update the terrain model corresponding to the terrain file; Based on the merging hierarchy of the terrain models corresponding to each type of terrain file, the terrain models corresponding to multiple terrain files of the aforementioned types are merged into an overall terrain model; the overall terrain model includes the terrain models corresponding to multiple terrain files, and each terrain file corresponds to a third terrain element; In response to an editing operation on the overall terrain model, the terrain models corresponding to multiple terrain files in the overall terrain model are edited; wherein, the editing includes one or more of the following: adding a third terrain element in the terrain model, reducing a third terrain element in the terrain model, and adjusting a third terrain element in the terrain model.
2. The method according to claim 1, characterized in that, The step of generating terrain models corresponding to multiple types of terrain files based on the multiple types of terrain files includes: Obtain a preset terrain configuration; wherein the preset terrain configuration is used to indicate the terrain accuracy of the terrain model corresponding to the terrain file and / or the terrain size of the terrain model corresponding to the terrain file; Based on the preset terrain configuration and the multiple types of terrain files, generate terrain models corresponding to multiple types of terrain files.
3. The method according to claim 1, characterized in that, The overall terrain model includes multiple overall terrain sub-models, and the terrain model corresponding to each terrain file includes multiple terrain sub-models corresponding to each terrain file. Merging the terrain models corresponding to multiple terrain files of the aforementioned type into an overall terrain model includes: Multiple overall terrain sub-models are generated based on the terrain sub-models corresponding to the multiple types of terrain files; wherein, the terrain sub-models corresponding to the terrain files correspond to the overall terrain sub-models. The overall terrain model is determined based on multiple overall terrain sub-models.
4. A terrain editing device, characterized in that, The device includes: A terrain file acquisition module is used to acquire multiple types of terrain files and generate terrain models corresponding to the multiple types of terrain files. The terrain files have configuration table data, which indicates the configuration information of the first terrain element corresponding to the terrain file. Generating terrain models corresponding to the multiple types of terrain files includes: generating terrain models corresponding to the terrain files based on the terrain files and their configuration table data; generating terrain models corresponding to the terrain files based on the terrain files and their configuration table data includes: generating candidate terrain models corresponding to the terrain files based on the terrain files; and generating candidate terrain models based on the terrain files. The model determines the target position of the first terrain element corresponding to the terrain file in the candidate terrain model; creates a pivot placeholder at the target position, and fills the pivot placeholder with the configuration information corresponding to the pivot placeholder according to the configuration table data of the terrain file to obtain the terrain model corresponding to the terrain file; the terrain model corresponding to the terrain file includes a first terrain element and a second terrain element, wherein the second terrain element changes with the change of the first terrain element; in response to the data adjustment operation of the first terrain element in the configuration table data, the first terrain element in the terrain model corresponding to the terrain file is adjusted; the second terrain element is adjusted according to the adjustment of the first terrain element to update the terrain model corresponding to the terrain file. The terrain model merging module is used to merge terrain models corresponding to multiple terrain files of the same type into a whole terrain model according to the merging level of the terrain models corresponding to each type of terrain file; the whole terrain model includes terrain models corresponding to multiple terrain files, and each terrain file corresponds to a third terrain element; The terrain model editing module is used to edit the terrain models corresponding to multiple terrain files in the overall terrain model in response to the editing operation on the overall terrain model; wherein the editing includes one or more of the following: adding a third terrain element in the terrain model, reducing a third terrain element in the terrain model, and adjusting a third terrain element in the terrain model.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1 to 3.
6. An electronic device, characterized in that, include: One or more processors; as well as A memory for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the method as described in any one of claims 1 to 3.