Terrain editing method and device and electronic equipment

By using the landform component controls and graphical user interface in virtual editing scenes, users can efficiently edit the terrain in the virtual environment, solving the problem of inefficient editing in the existing technology, and achieving more complex and beautiful landform creation.

CN120168969APending Publication Date: 2025-06-20NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510088223.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-20
Publication Date
2025-06-20

AI Technical Summary

Technical Problem

The prior art has low editing efficiency when building terrain in virtual environments, especially when creating complex terrain or more ornamental landforms, which requires a lot of manpower.

Method used

By displaying a virtual editing scene and multiple geomorphological component controls in the graphical user interface, the user can select a target geomorphological component and determine the area to be updated based on the operating position and component size, and then update the local model of the terrain component to match the height data of the target geomorphological component.

Benefits of technology

Improve the efficiency and complexity of terrain editing, and users can create complex and beautiful landforms more easily, thereby improving the authenticity and aesthetics of the virtual environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120168969A_ABST
    Figure CN120168969A_ABST
Patent Text Reader

Abstract

The invention provides a terrain editing method and device and electronic equipment, a plurality of landform component controls are displayed in a graphical user interface, and landform components corresponding to different landform component controls are respectively configured with corresponding first height data to represent different landforms; in response to the first operation, determining a target landform component control from the plurality of landform component controls according to the first operation; in response to the second operation, determining a to-be-updated area of the terrain component according to the operation position of the second operation on the terrain component and the size of a target landform component, the target landform component being a landform component corresponding to the target landform component control; and according to the first height data of the target landform component, updating a target local model corresponding to the to-be-updated region of the landform component. In the mode, the user can create different landforms on the landform component through different landform components, so that the complexity and the aesthetic degree of the landform are improved, and the efficiency of creating the complex landform and the landform editing experience of the user are also improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of game editing, and in particular, to a terrain editing method, apparatus, and electronic device. Background Art

[0002] In a UGC (User Generated Content) editor, in order to build a more realistic virtual environment, a user needs to simulate the terrain of the real world. In related technologies, the terrain height data corresponding to a terrain component is usually represented by a height map in the form of a two-dimensional grayscale image. The grayscale value of each pixel in the two-dimensional grayscale image corresponds to the height of the terrain. After updating the height map, the model corresponding to the terrain component is refreshed again. Among them, the terrain height of the terrain component only supports the user to edit through a height brush tool. This editing method requires a large amount of manpower when making complex terrains or more ornamental landforms, resulting in a low editing efficiency of the terrain component. Summary of the Invention

[0003] The purpose of the present disclosure is to provide a terrain editing method, apparatus, and electronic device to improve the efficiency of a user in making complex terrains or more ornamental landforms during terrain editing.

[0004] In a first aspect, the present disclosure provides a terrain editing method, which includes: displaying a graphical user interface through a terminal device, where the graphical user interface includes a virtual editing scene, and the virtual editing scene includes a terrain component; controlling to display a plurality of landform component controls in the graphical user interface; where different landform component controls correspond to landform components respectively configured with corresponding first height data to represent different landforms; in response to a first operation, determining a target landform component control from the plurality of landform component controls according to the first operation; in response to a second operation, determining a to-be-updated area of the terrain component according to the second operation and the size of the target landform component at the operation position of the terrain component, where the target landform component is the landform component corresponding to the target landform component control; updating a target local model corresponding to the to-be-updated area of the terrain component according to the first height data of the target landform component.

[0005] Second aspect, the present disclosure provides a terrain editing device, which includes: an interface display module for displaying a graphical user interface through a terminal device, where the graphical user interface includes a virtual editing scene, and the virtual editing scene includes terrain components; a control display module for controlling the display of a plurality of landform component controls in the graphical user interface; wherein, the landform components corresponding to different landform component controls are respectively configured with corresponding first height data to represent different landforms; a control determination module for, in response to a first operation, determining a target landform component control from the plurality of landform component controls according to the first operation; a region determination module for, in response to a second operation, determining a to-be-updated region of the terrain component according to the second operation based on the operation position of the terrain component and the size of the target landform component, wherein the target landform component is the landform component corresponding to the target landform component control; a terrain update module for updating the target local model corresponding to the to-be-updated region of the terrain component according to the first height data of the target landform component.

[0006] Third aspect, the present disclosure provides an electronic device, which includes a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above-mentioned terrain editing method.

[0007] Fourth aspect, the present disclosure provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the above-mentioned terrain editing method.

[0008] The embodiments of the present disclosure bring the following beneficial effects:

[0009] A terrain editing method, device and electronic device provided by the present disclosure first display a graphical user interface through a terminal device, where the graphical user interface includes a virtual editing scene, and the virtual editing scene includes terrain components; then control the display of a plurality of landform component controls in the graphical user interface; wherein, the landform components corresponding to different landform component controls are respectively configured with corresponding first height data to represent different landforms; then, in response to a first operation, determine a target landform component control from the plurality of landform component controls according to the first operation; then, in response to a second operation, determine a to-be-updated region of the terrain component according to the second operation based on the operation position of the terrain component and the size of the target landform component, wherein the target landform component is the landform component corresponding to the target landform component control; update the target local model corresponding to the to-be-updated region of the terrain component according to the first height data of the target landform component. In this way, the user can create different landforms on the terrain component through different landform components, thereby improving the complexity and aesthetics of the terrain, and also improving the efficiency of creating complex landforms and the user's terrain editing experience.

[0010] Other features and advantages of the present disclosure will be set forth in the following description, or may be learned by inference or without doubt from the description, or may be learned by implementing the above technologies of the present disclosure.

[0011] To make the above objects, features, and advantages of the present disclosure more obvious and understandable, the following specifically describes preferred embodiments in conjunction with the accompanying drawings as follows. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] To more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0013] Figure 1 A flowchart of a terrain editing method provided by an embodiment of the present disclosure;

[0014] Figure 2 A schematic diagram showing the display of a plurality of landform component controls provided by an embodiment of the present disclosure;

[0015] Figure 3 A schematic diagram showing the display of a first prompt message provided by an embodiment of the present disclosure;

[0016] Figure 4 A schematic diagram showing the dragging of a target landform component provided by an embodiment of the present disclosure;

[0017] Figure 5 A schematic diagram showing the display of a target local model in a second display mode provided by an embodiment of the present disclosure;

[0018] Figure 6 A schematic diagram showing the display of a control selection identifier provided by an embodiment of the present disclosure;

[0019] Figure 7 A schematic diagram showing the display of at least one editing control provided by an embodiment of the present disclosure;

[0020] Figure 8 A schematic diagram showing the display of a parameter setting panel provided by an embodiment of the present disclosure;

[0021] Figure 9 A schematic diagram showing the display of a brush tool and a plurality of terrain editing components provided by an embodiment of the present disclosure;

[0022] Figure 10 A schematic diagram showing the structure of a terrain editing device provided by an embodiment of the present disclosure;

[0023] Figure 11 A schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. Detailed implementation manners

[0024] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are some but not all of the embodiments of the present disclosure. Components of the embodiments of the present disclosure generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations.

[0025] Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure claimed, but merely represents selected embodiments of the present disclosure. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the scope of protection of the present disclosure.

[0026] A terrain editing method in one embodiment of the present disclosure may run on a local terminal device or a server. When the terrain editing method runs on the server, the method may be implemented and executed based on a cloud interaction system, where the cloud interaction system includes a server and a client device.

[0027] In an alternative embodiment, various cloud applications may run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the running entity of the game program and the presenting entity of the game canvas are separated. The storage and running of the terrain editing method are completed on the cloud game server, and the role of the client device is to receive and send data and present the game canvas. For example, the client device may be a display device with a data transmission method near the user side, such as a mobile terminal, a television, a computer, a personal digital assistant, etc.; however, the information processing is performed by the cloud game server in the cloud. When playing a game, a player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses data such as the game canvas, returns it to the client device through the network, and finally, the client device decodes and outputs the game canvas.

[0028] In an alternative embodiment, taking a game as an example, the local terminal device stores a game program and is used to present a game canvas. The local terminal device is used to interact with the player through a graphical user interface, that is, conventionally, the game program is downloaded and installed on an electronic device and run. The ways for the local terminal device to provide the graphical user interface to the player can include various methods. For example, it can be rendered and displayed on the display screen of the terminal, or provided to the player through holographic projection. For example, the local terminal device can include a display screen and a processor. The display screen is used to present the graphical user interface, which includes a game canvas, and the processor is used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.

[0029] In a possible implementation manner, the embodiments of the present disclosure provide a terrain editing method, as Figure 1 shown, the method includes the following specific steps:

[0030] Step S102, display a graphical user interface through a terminal device, where the graphical user interface includes a virtual editing scene, and the virtual editing scene includes terrain components.

[0031] In specific implementation, the above-mentioned graphical user interface is displayed when a game program is running on the terminal device or when a UGC editor application program is running; among them, the game program can be an application program of any game, and the terminal device can be the aforementioned local terminal device or the client device in the aforementioned cloud interaction system. For example, the terminal device can be a mobile phone, a tablet computer, or a personal computer, etc. The above-mentioned virtual editing scene is a scene provided by running a game program or a UGC editor application program, and can also be understood as the scene in the editing stage provided by the UGC editor. In the virtual editing scene, one or more scene components can be included, and one or more terrain components can also be included, and the components can be edited in the virtual editing scene. In practical applications, when the user triggers an editing instruction, the virtual editing scene can be displayed in the graphical user interface, and the editing instruction can be determined according to the editing rules. For example, the editing instruction can be an operation to enter the UGC editor; it can also be an operation to select a certain scene map for editing, etc.

[0032] At least the terrain components are included in the above-mentioned virtual editing scene. The component model corresponding to the terrain components includes a height map and a texture map. Among them, the height map includes height data, and the height data is used to control the terrain height of the terrain components; the texture map is used to control the terrain material of the terrain components.

[0033] Step S104, control to display a plurality of landform component controls in the graphical user interface; where different landform component controls correspond to landform components respectively configured with corresponding first height data to represent different landforms.

[0034] In specific implementation, when generating a terrain component in a virtual editing scene or editing a terrain component in a virtual editing scene, the terrain editing mode is entered. In the terrain editing mode, multiple landform component controls are displayed in the graphical user interface. The landform component controls are used to generate landform components on the terrain component based on user operations. Among them, the first height data pre-configured for different landform components is different, so the landforms corresponding to different landform components are different. The landforms include but are not limited to: mountains, hills, canyons, or depressions, etc. Specifically, the sizes of the landform components corresponding to different landform component controls can be the same or different, which can be determined according to R & D requirements.

[0035] Step S106: In response to the first operation, determine the target landform component control from multiple landform component controls according to the first operation.

[0036] In specific implementation, the above-mentioned target landform component control can be any one of the multiple landform component controls displayed in the graphical user interface; the specific operation corresponding to the first operation can be determined according to R & D requirements and user operations. For example, the first operation can be a dragging operation on the target landform component control, or an operation of clicking or long-pressing the target landform component control, etc.

[0037] Step S108: In response to the second operation, determine the area to be updated of the terrain component according to the second operation and the size of the target landform component at the operation position of the terrain component, where the target landform component is the landform component corresponding to the target landform component control.

[0038] The specific operation corresponding to the second operation can be determined according to R & D requirements and user operations. The size of the above-mentioned target landform component is used to indicate the effective range of the target landform component. Generally, the larger the size of the target landform component, the larger the effective range corresponding to the target landform component. After the user executes the first operation and then executes the second operation, the terrain area on the operation position of the second operation in the terrain component that matches the size of the target landform component will be determined as the area to be updated. In a specific embodiment, the center position of the target landform component in the area to be updated is the operation position of the second operation. In another specific embodiment, the edge position of the target landform component in the area to be updated is the operation position of the second operation.

[0039] In an alternative embodiment, the second operation and the first operation are consecutive dragging operations, that is, the consecutive dragging operation is to drag the target landform component control from multiple landform component controls to the terrain component and perform a moving operation, where the position where the moving ends is also the operation position of the second operation. In another alternative embodiment, the second operation and the first operation are independent operations. For example, the second operation is an operation of clicking a certain position on the terrain component after clicking the target landform component control based on the first operation, and the clicked position is also the operation position of the second operation.

[0040] Step S110, update the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target landform component.

[0041] In specific implementation, after determining the area to be updated in the terrain component, it is necessary to update the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target landform component to obtain the updated target local model, where the landform of the updated target local model matches or is the same as the landform corresponding to the target landform component.

[0042] In practical applications, the method of updating the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target landform component can be determined according to R & D requirements. For example, the first height data of the target landform component can be superimposed on the target local model corresponding to the area to be updated of the terrain component, or the target local model corresponding to the area to be updated of the terrain component can be replaced with the first height data of the target landform component, or a certain specific height data can be selected from the first height data of the target landform component and the target local model corresponding to the area to be updated of the terrain component as the height data after the target local model is updated, etc.

[0043] A terrain editing method provided by an embodiment of the present invention enables users to create different landforms on the terrain component through different landform components, thereby improving the complexity and aesthetics of the terrain, as well as the efficiency of creating complex landforms and the user experience of terrain editing.

[0044] The following embodiments are used to describe the characteristics of the terrain component and the update method of the area to be updated in the terrain component.

[0045] Specifically, the above-mentioned terrain component is configured with second height data of a preset size; wherein, the second height data is used to indicate the landform corresponding to the terrain component.

[0046] In specific implementation, the specific dimensions corresponding to the above preset dimensions can be determined according to R & D requirements. Among them, the data format of the second height data of the preset dimensions configured by the terrain component is the same as the data format of the first height data of the landform component, so as to ensure that the terrain component and the landform component can perform height data fusion. For example, the data format of the height data can be a grayscale image, and the grayscale value of each pixel in the grayscale image represents a height value; the data format of the height data can also be a two-dimensional array, and each array element in the two-dimensional array represents a height value.

[0047] Furthermore, the above virtual editing scene also includes a scene component; among them, the scene component is not configured with height data, and the terrain component is configured with height data; the component model corresponding to the scene component generally does not change according to user operations or limits the model change method, and the component model corresponding to the terrain component can be changed dynamically in real time according to user operations.

[0048] In specific implementation, the graphical user interface also includes a component creation window, and the component creation window may include a scene component control and a terrain component control; the component type and component form of the scene component control included in the component creation window can be set according to R & D requirements. For example, the component editing window may include multiple different types of scene component controls, including: terrain type component controls, mechanism type component controls, structure type components, decoration type component controls, and combination type component controls, etc. Each component type of scene component control also includes multiple scene component controls. For example, the mechanism type component control also includes a motion mechanism component control, a functional mechanism component control, a logic component control, an object component control, and a floor component control. Among them, the motion mechanism component control also includes a cylinder, a gear, a cross gear, a clockwise turntable, etc.

[0049] The above scene component control is used to generate a scene component in the virtual editing scene, and the terrain component control is used to generate a terrain component in the virtual editing scene. This terrain component is different from the scene component. The component model corresponding to the terrain component can be changed dynamically in real time according to user operations, while the component model corresponding to the scene component cannot be changed. Moreover, the component model corresponding to the terrain component includes height data and a texture map. Among them, the height data is used to control the terrain height of the terrain component, and the texture map is used to control the terrain material of the terrain component.

[0050] In specific implementation, the user can create one or more terrain components in the virtual editing scene, or can also create one or more scene components in the virtual editing scene, thereby improving the freedom of scene editing.

[0051] In an alternative embodiment, the size of the first height data of the above-mentioned landform component is less than or equal to the size of the second height data configured by the terrain component. This approach helps to update the height data of a certain area within the terrain component based on the height data of the landform component.

[0052] Based on the above description, the specific process of updating the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target landform component can be implemented in the following way:

[0053] Method 1: Superimpose the first height data of the target landform component on the height data corresponding to the target local model to obtain the updated target local model.

[0054] In specific implementation, the processing method of the above-mentioned superimposition processing can be determined according to R & D requirements. For example, the superimposition processing includes: adding the two height data, or adding the two height data after weighting them respectively. In a specific embodiment, the first height data of the target landform component can be directly added to the height data corresponding to the target local model to obtain the updated target local model. In another specific embodiment, the first height data of the target landform component can be multiplied by a first weight to obtain a first multiplication result, and then the height data corresponding to the target local model can be multiplied by a second weight to obtain a second multiplication result, and then the first multiplication result and the second multiplication result are added together to obtain the updated target local model; where the sum of the first weight and the second weight is one.

[0055] Method 2: Replace the height data of the target local model with the first height data of the target landform component.

[0056] In specific implementation, since the size of the height data of the target local model matches the size of the first height data of the target landform component, the height data of the target local model can be directly replaced with the first height data of the target landform component, so that the landform of the replaced target local model is the same as that of the target landform component.

[0057] It should be noted that the height data corresponding to the above-mentioned target local model is also the height data corresponding to the area to be updated of the terrain component, and this height data is part of the second height data configured by the terrain component. Specifically, after determining the area to be updated of the terrain component, it is necessary to determine the height data corresponding to this area to be updated, and then update the height data corresponding to the area to be updated of the terrain component according to the first height data of the target landform component. After updating the height data corresponding to the area to be updated of the terrain component, it is necessary to notify the rendering engine to update the rendering of the target local model corresponding to the area to be updated of the terrain component, that is, to display the model effect corresponding to the target local model according to the updated height data corresponding to the area to be updated.

[0058] In an alternative embodiment, the first height data of the above-mentioned target landform component includes: a plurality of first pixels, and the gray value corresponding to each first pixel; the height data corresponding to the target local model includes: a plurality of second pixels, and the gray value corresponding to each second pixel; wherein, the gray value is used to indicate the height value.

[0059] In a specific implementation, the data format of the first height data of the target landform component and the data format of the height data corresponding to the target local model are both grayscale images. The gray value corresponding to each pixel in the grayscale image indicates a height value. Generally, the larger the gray value, the larger the represented height value. The sizes of the grayscale images of the two can be the same or different.

[0060] In a specific embodiment, the size of the grayscale image corresponding to the first height data of the target landform component is the same as the size of the grayscale image corresponding to the height data of the target local model, that is, the number of pixels included in the first height data of the target landform component is the same as the number of pixels included in the height data corresponding to the target local model. At this time, when updating the height data, the grayscale images corresponding to the height data can be directly added to obtain the updated height data. In another specific embodiment, the size of the grayscale image corresponding to the first height data of the target landform component is different from the size of the grayscale image corresponding to the height data of the target local model. At this time, the size of the grayscale image corresponding to the first height data of the target landform component is smaller than the size of the grayscale image corresponding to the height data of the target local model. Thus, each pixel in the grayscale image corresponding to the target landform component has a corresponding relationship with the pixels in the grayscale image corresponding to the target local model, so as to update the grayscale image corresponding to the target local model based on the grayscale image corresponding to the target landform component subsequently.

[0061] Based on the above description, the specific process of superimposing the first height data of the target landform component and the height data corresponding to the target local model to obtain the updated target local model may include: for each second pixel in the height data corresponding to the target local model, determine the target first pixel corresponding to the current second pixel from the first height data of the target landform component; perform a superimposing process on the height value corresponding to the target first pixel and the height value corresponding to the current second pixel to obtain the superimposed height value corresponding to the current second pixel; combine the superimposed height values corresponding to each second pixel in the height data corresponding to the target local model to obtain the updated target local model.

[0062] In specific implementation, when the size of the height data corresponding to the target local model is the same as the size of the height data corresponding to the target geomorphic component, there is a one-to-one correspondence between the first pixel in the height data corresponding to the target geomorphic component and the second pixel in the height data corresponding to the target local model. Therefore, it is necessary to add the height values corresponding to the first pixel and the second pixel with a one-to-one correspondence to obtain the superimposed height value, and use the superimposed height value as the height value corresponding to the second pixel in the updated height data corresponding to the target local model.

[0063] When the size of the height data corresponding to the target local model is greater than the size of the height data corresponding to the target geomorphic component, each first pixel in the height data corresponding to the target geomorphic component corresponds to one second pixel in the height data corresponding to the target local model. However, there are target second pixels in the height data corresponding to the target local model that do not correspond to the first pixel. When performing the superimposing process, these target second pixels will be added with 0, which is understood as keeping the gray value corresponding to the target second pixel unchanged.

[0064] In the above method, the grayscale map of the target geomorphic component is superimposed and applied to the local model in the area to be updated in the terrain component to perform the fusion of the grayscale value data of the grayscale map, so that different geomorphologies can be obtained on the terrain component.

[0065] The following embodiments are used to describe the method of displaying the geomorphic component control.

[0066] Specifically, the specific process of controlling the display of multiple geomorphic component controls in the graphical user interface may include: responding to the trigger operation for the first control displayed in the graphical user interface, controlling the virtual editing scene to enter the geomorphic editing mode, and displaying multiple geomorphic component controls at a preset position in the graphical user interface.

[0067] In specific implementation, in the terrain editing mode, a first control is added in the graphical user interface. When the user triggers the first control, the geomorphic editing mode is entered, and a list of geomorphic component controls is displayed at a preset position in the graphical user interface. The list of geomorphic component controls includes multiple geomorphic component controls. The specific position corresponding to the preset position can be determined according to the R & D requirements. For example, the preset position can be the right side or the left side of the graphical user interface, etc.

[0068] As Figure 2 shown is a schematic diagram of the display of a plurality of geomorphic component controls provided by an embodiment of the present invention. Figure 2 The light gray grid component in it is the terrain component. A first control is displayed below the terrain component. When the user clicks the first control, the geomorphic editing mode is entered, and a list of geomorphic component controls and an exit control are displayed on the right side of the graphical user interface. When the user clicks the exit control, the geomorphic editing mode can be exited.Figure 2 In the list of geomorphic component controls in [0], 4 geomorphic component controls are exemplarily displayed. More geomorphic component controls can also be displayed in the list of geomorphic component controls, which can be specifically determined according to R & D requirements.

[0069] In an alternative embodiment, after updating the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target geomorphic component, in response to placing the second geomorphic component in the area to be updated, the target local model corresponding to the area to be updated is updated according to the first height data of the target geomorphic component and the first height data of the second geomorphic component; wherein, the second geomorphic component is the geomorphic component corresponding to the second geomorphic component control among multiple geomorphic components.

[0070] In specific implementation, when multiple geomorphic components are all set in the area to be updated, it is necessary to fuse the first height data corresponding to the multiple geomorphic components, and then fuse the fused height data with the height data of the target local model corresponding to the area to be updated to obtain the updated target local model. This method helps to quickly form a complex geomorphic feature in a certain area on the terrain component.

[0071] The following embodiments are used to describe the determination method of the area to be updated in the terrain component.

[0072] Specifically, the specific process of determining the area to be updated of the terrain component according to the second operation and the size of the target geomorphic component in response to the second operation may include: in response to the second operation, obtaining the operation position of the second operation; when the operation position is on the terrain component, determining the area to be updated on the terrain component according to the operation position and the size of the target geomorphic component. When the operation position is outside the terrain component, controlling to display a first prompt message in the graphical user interface; wherein, the first prompt message is used to indicate that the target geomorphic component cannot be set at the operation position of the second operation.

[0073] In specific implementation, when the user performs the second operation, it is necessary to obtain the operation position of the second operation in real time and determine whether the operation position is on the terrain component. If the operation position is on the terrain component, the area to be updated on the terrain component will be determined according to the operation position and the size of the target geomorphic component; if the operation position is not on the terrain component, a first prompt message will be displayed in the graphical user interface to prompt the user that the geomorphic component cannot be set at the current position. As Figure 3 shown is a schematic diagram of the display of a first prompt message provided by an embodiment of the present invention, Figure 3 and the first prompt message in [0] is "Failed to create the target geomorphic component. Please place it on the terrain component."

[0074] In a specific embodiment, the method of determining the area to be updated on the terrain component according to the operation position and the size of the target landform component may include: determining the operation position as the central position of the size of the target landform component, and then determining the area covered by the size of the target landform component on the terrain component as the area to be updated.

[0075] In an alternative embodiment, the second operation includes a first click operation and a second click operation. Among them, the first click operation is a click operation on the control of the target landform component, and the second click operation is a click operation on the terrain component. Based on this, the specific process of obtaining the operation position of the second operation may include: obtaining the click position of the second click operation in the terrain component, and this click position is also the operation position of the second operation.

[0076] In another alternative embodiment, the second operation is a drag operation on the target landform component. Based on this, the specific process of obtaining the operation position of the second operation may include: obtaining the drag position of the drag operation, and this drag position is also the operation position of the second operation.

[0077] As Figure 4 shown is a schematic diagram of dragging a target landform component provided by an embodiment of the present invention. Figure 4 It is a schematic diagram when the second operation is a drag operation on the target landform component. Figure 4 In the landform component control 2 is the control of the target landform component. The dotted line with an arrow is used to indicate the drag route of the drag operation. The position pointed by the arrow is the drag position of the drag operation. The mountain-shaped component corresponding to the position pointed by the arrow is the target landform component corresponding to the control of the target landform component. The size of the target landform component is also the size of the currently displayed mountain-shaped component. The gray ellipse surrounding the target landform component is the indication mark of the effective range of the target terrain component. When the user ends the second operation, this indication mark of the effective range will be cancelled or displayed in a preset style, and this preset style can be determined according to the R & D requirements.

[0078] The following embodiments are used to describe the method of previewing the effect of updating the terrain component based on the landform component during the operation of the second operation.

[0079] Specifically, during the operation of the second operation, based on the operation position corresponding to the second operation and the size of the target landform component, a preview area is determined in the terrain component; according to the first height data of the target landform component, the local model corresponding to the preview area of the terrain component is updated to obtain an updated local model, and the updated local model is displayed on the terrain component in a first display manner.

[0080] In specific implementation, during the operation of the second operation, a preview function is provided. That is, during the operation of the second operation, the target landform component will move on the terrain component following the second operation. At this time, a preview effect after updating the local model of the terrain component according to the first height data of the target landform component will be presented in real time at the moving position (equivalent to the operation position of the second operation during the operation of the second operation). The preview effect here will not actually modify the local model of the terrain component, but only display a preview for the user. Only after the user finishes the second operation, the truly modified local model of the terrain component will be displayed at the operation position corresponding to the end of the second operation.

[0081] The specific display method corresponding to the above first display method can be determined according to R & D requirements. For example, the first display method can be to frame the target landform component with a range identifier of the first color, or to display the landform component on the terrain component with the second color, etc. The specific colors corresponding to the first color and the second color can be determined according to R & D requirements. As Figure 4 the display method of the target landform component in Figure 4 can be the above first display method, that is, a gray ellipse is displayed on the target landform component. The operation method in

[0082] drags the target landform component corresponding to the target landform component control in the landform component control list to the terrain component to display the preview effect of the terrain change in real time after the first height data corresponding to the target landform component is integrated into the local model of the terrain component at the dragging position.

[0083] In specific implementation, the above first display method and the second display method are different. The specific display method corresponding to the second display method can be determined according to R & D requirements. For example, the second display method can be to cancel the display of the range identifier framing the target landform component, or to frame the target landform component with a range identifier of the third color, or to display the target landform component on the terrain component with the fourth color, etc. The specific colors corresponding to the third color and the fourth color can be determined according to R & D requirements.

[0084] As Figure 5The figure shows a schematic diagram of a target local model displayed in a second display mode provided by an embodiment of the present invention. When dragging a target landform component corresponding to a target landform component control in a list of landform component controls to a specified position on a terrain component, after the first height data corresponding to the target landform component is fused in real time with the local model of the terrain component at the dragging position, the preview effect after the terrain changes is displayed in a first display mode; when the user ends the dragging, a to-be-updated area is determined on the terrain component based on the position where the dragging ends and the size of the target landform component, and the target local model corresponding to the to-be-updated area is updated according to the first height data of the target landform component, and the updated target local model is displayed in a second display mode on the terrain component; wherein, Figure 5 The second display mode in is an ellipse with a black border displayed around the landform component, so as to represent the effective range of the target landform component through the ellipse.

[0085] The above method can display the preview effect and the actual update effect when the target landform component is updated on the terrain component through different display modes, so as to facilitate the user to view in real time whether the current terrain editing effect is the required landform.

[0086] The following embodiments are used to describe the method of modifying the attributes of the target landform component.

[0087] Specifically, after updating the target local model corresponding to the to-be-updated area of the terrain component according to the first height data of the target landform component, a control selection identifier will be displayed in the graphical user interface; wherein, the control selection identifier is used to select the target landform component corresponding to the to-be-updated area; in response to a trigger operation on the control selection identifier, the target landform component corresponding to the to-be-updated area is selected.

[0088] In specific implementation, the above trigger operation on the control selection identifier can be a click operation, a drag operation, a long press operation, etc. on the control selection identifier. The specific display style corresponding to the above control selection identifier can be determined according to R & D requirements. For example, the control selection identifier can be a triangular identifier, a circular identifier or other special identifiers, etc. As Figure 6 The figure shows a schematic diagram of the display of a control selection identifier provided by an embodiment of the present invention. Figure 6 The identifier with two sharp corners on the landform component in is the control selection identifier, and this control selection identifier is usually displayed on the landform component set in the terrain component. In a specific embodiment, if there are multiple landform components set in the terrain component, a control selection identifier will be displayed on each landform component.

[0089] Further, at least one editing control is displayed in the graphical user interface; wherein, each of the at least one editing controls is configured with a corresponding editing function, and the editing function includes at least one of the following: moving, scaling, and rotating the target landform component; when the target landform component corresponding to the area to be updated is selected and the target editing control among the at least one editing controls is triggered, in response to a third operation acting on the target landform component, the target landform component is adjusted based on the third operation and the editing function corresponding to the target editing control, and the adjusted target landform component is obtained, and the terrain component is updated based on the adjusted target landform component. The above-mentioned target editing control is any editing control among the at least one editing controls.

[0090] In specific implementation, after the target landform component is selected, the user can select any one of the editing controls displayed in the graphical user interface to edit the target landform component. Among them, the at least one editing control displayed in the graphical user interface can be always displayed in the terrain editing mode or can be displayed after the target landform component is selected.

[0091] The user can trigger the target editing control through operations such as clicking or long pressing. After triggering the target editing control, the user performs a third operation on the target landform component, and the target landform component can be adjusted based on the third operation and the editing function corresponding to the target editing control. Among them, the editing function corresponding to the target editing control includes one of the following: moving, scaling, and rotating the target landform component.

[0092] As Figure 7 shown is a schematic diagram of the display of at least one editing control provided by an embodiment of the present invention. When the user selects the target landform component, a toolbar will be displayed in the graphical user interface. The toolbar includes at least one editing control, and the editing control includes a deletion control, a movement control, a scaling control, a rotation control, and an advanced setting control. Among them, triggering the deletion control will delete the selected target landform component from the terrain component; triggering the movement control will display a three-dimensional coordinate system on the target landform component, and the user can control the target landform component to move towards a certain coordinate axis by triggering a certain coordinate axis in the three-dimensional coordinate system; triggering the scaling control can adjust the size of the target landform component in the terrain component; triggering the rotation control can adjust the rotation angle of the target landform component in the terrain component, and the advanced setting control is used to set the name of the target landform component and perform precise editing on the target landform component, etc.

[0093] In specific implementation, the terrain component will be updated in real time following the editing of the target landform component. Specifically, the specific process of updating the terrain component based on the adjusted target landform component may include: determining the area to be adjusted in the terrain component based on the size of the adjusted target landform component; updating the local model corresponding to the area to be adjusted in the terrain component according to the first height data of the adjusted target landform component. The method of updating the local model corresponding to the area to be adjusted in the terrain component here is the same as the method of updating the target local model in the above embodiment and will not be elaborated here.

[0094] Further, after selecting the target landform component corresponding to the area to be updated, control is performed to display a parameter setting panel in the graphical user interface; wherein, the parameter setting panel includes a landform switching control; in response to a trigger operation on the landform switching control, control is performed to display a plurality of landform component controls in the parameter setting panel; in response to a selection operation on the first landform component control among the plurality of landform component controls, the target landform component corresponding to the area to be updated is switched to the first landform component corresponding to the first landform component control, and the target local model corresponding to the area to be updated is updated based on the height data of the first landform component. Wherein, the first landform component control can be any one of the plurality of landform component controls.

[0095] In specific implementation, the above parameter setting panel can be displayed in the graphical user interface after the user selects the target landform component corresponding to the area to be updated, or can be displayed in the graphical user interface when the user performs a setting operation on the selected target landform component. The specific operation corresponding to this setting operation can be determined according to R & D requirements. For example, this setting operation can be an operation to trigger the Figure 7 advanced setting control displayed therein, or an operation where the user long presses the target landform component, etc. The parameter setting panel displayed in the graphical user interface includes at least a landform switching control, and this landform switching control is used to switch the target landform component to a landform control representing other landforms, thereby switching the landform of the target local model corresponding to the area to be updated.

[0096] In an alternative embodiment, the above parameter setting panel further includes at least one of the following controls: a position adjustment control for adjusting the position of the target landform component, a size adjustment control for adjusting the size of the target landform component, and an angle adjustment control for adjusting the rotation angle of the target landform component.

[0097] As Figure 8 shown is a schematic diagram of the display of a parameter setting panel provided by an embodiment of the present invention. Figure 8On the far right of the graphical user interface, there is a parameter setting panel corresponding to the target landform component. The square with a five-pointed star in the parameter setting panel represents the landform switching control. The three-axis coordinate controls under "World Coordinates" in the parameter setting panel are position adjustment controls, which are used to set the position of the center of the target landform component in the world coordinates. The three-axis coordinate controls under "Rotation" are angle adjustment controls, which are used to adjust the rotation angle of the target landform component. The three-axis coordinate controls under "Scale" are the first size adjustment controls, which are used to adjust the scaling value of the target landform component relative to the corresponding initial size, or can be understood as used to adjust the size of the target landform component. The three-axis coordinate controls under "Size" are the second size adjustment controls, which are used to adjust the size values of the target landform component in each axis.

[0098] In an alternative embodiment, after updating the target local model corresponding to the to-be-updated area of the terrain component according to the first height data of the target landform component, in response to a deletion operation on the target landform component corresponding to the to-be-updated area, the target landform component corresponding to the to-be-updated area is deleted; the updated target local model is restored according to the first height data of the target landform component to obtain the restored target local model corresponding to the to-be-updated area of the terrain component.

[0099] In specific implementation, the specific operation corresponding to the above deletion operation can be determined according to R & D requirements. For example, the deletion operation can be a trigger operation on the deletion control displayed in the graphical user interface after selecting the target landform component, or a trigger operation on a specified button after selecting the target landform component, or an operation of dragging the target landform component to an area outside the terrain component, etc.

[0100] In practical applications, after updating the target local model according to the target landform component, the updated target local model is obtained. If the target landform component is deleted, the target local model will be restored to the landform before the update. In a specific embodiment, the update method of updating the target local model corresponding to the to-be-updated area of the terrain component according to the first height data of the target landform component is: when the first height data of the target landform component is superimposed with the height data corresponding to the target local model to obtain the updated target local model, if the user deletes the target landform component corresponding to the to-be-updated area in the terrain component, the height data corresponding to the updated target local model will be subtracted by the first height data of the target landform component to restore the updated target local model to obtain the restored target local model corresponding to the to-be-updated area of the terrain component.

[0101] In another specific embodiment, the method for updating the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target terrain component is as follows: replacing the height data of the target local model with the first height data of the target terrain component to obtain the updated target local model. If the user deletes the target terrain component corresponding to the area to be updated in the terrain component, the first height data of the target terrain component in the updated target local model will be replaced with the height data corresponding to the target local model before the update, so as to restore the updated target local model and obtain the restored target local model corresponding to the area to be updated of the terrain component.

[0102] The above method simplifies the workflow of terrain creation and editing, enabling even users without professional skills to modify the terrain more easily and quickly, greatly reducing the threshold of terrain editing and improving the efficiency of terrain editing production. At the same time, the pre-set encapsulated terrain component controls in the system can increase the complexity and aesthetics of the terrain edited by users, and greatly improve the quality of the terrain edited by users.

[0103] The following embodiments are used to describe the method of editing the terrain component through the brush tool.

[0104] Specifically, the specific process of editing the terrain component through the brush tool is implemented through the following steps 10-12:

[0105] Step 10, display the brush tool and multiple terrain editing controls in the graphical user interface; among them, each of the multiple terrain editing controls is configured with a corresponding editing function, and the editing functions include adjusting the terrain height, terrain smoothness, terrain flatness or terrain material of the terrain component.

[0106] In specific implementation, after entering the terrain editing mode, the brush tool will be displayed at the first position in the graphical user interface and multiple terrain editing controls will be displayed at the second position, so as to determine the editing area of the terrain component through the brush tool and thus adjust the editing area. Among them, the specified positions can be determined according to R & D requirements. For example, the first position can be the center position of the graphical user interface or the center position of the terrain component, etc., and the second position can be above, below, left or right of the graphical user interface, etc.

[0107] Each terrain editing control is pre-configured with a corresponding editing function. Different terrain editing controls have different corresponding editing functions. The editing function corresponding to each terrain editing control can be one of the following: adjusting the terrain height, terrain smoothness, terrain flatness, or terrain material of the terrain component. Among them, the terrain height is used to indicate the height of the terrain component, the terrain smoothness is used to indicate the overall smoothness of the terrain component, the terrain flatness is used to specify the difference between the maximum height and the minimum height in the terrain component. Generally, the greater the difference, the lower the terrain flatness; the terrain material is used for the style of the texture map of the terrain component, and the terrain material can include, but is not limited to, materials such as mountains, grasslands, soil, lakes, etc.

[0108] Such as Figure 9 Shown is a schematic diagram of the display of a brush tool and multiple terrain editing components provided by an embodiment of the present invention. Figure 9 The multiple terrain editing controls in it include a height control, a flatness control, a smoothness control, and a material control. Figure 9 Shown beside the target landform component in it is the brush tool.

[0109] Step 11, in response to triggering the target terrain editing control among the multiple terrain editing controls, based on the fourth operation of the brush tool acting on the terrain component, determine the target editing area in the terrain component based on the fourth operation.

[0110] In specific implementation, the above-mentioned target terrain editing control can be any one of the multiple terrain editing controls, and which specific terrain editing control it is can be determined by user operation. The specific operation corresponding to the above-mentioned fourth operation can be determined according to R & D requirements. In a specific embodiment, the above-mentioned fourth operation includes: a click operation or a slide operation of the brush tool acting on the terrain component. When the fourth operation is a click operation, the target editing area is the clicked position in the terrain component; when the fourth operation is a slide operation, the target editing area is the area swiped across in the terrain component.

[0111] Step 12, adjust the target editing area based on the editing function corresponding to the target terrain editing control.

[0112] In specific implementation, after triggering the target terrain editing control, when the user performs the fourth operation on the terrain component, the target editing area in the terrain component can be adjusted based on the editing function corresponding to the target terrain editing control, and the adjusted terrain component is displayed in the virtual editing scene so as to be used to observe whether the performance effect corresponding to the adjusted terrain component meets the user's requirements.

[0113] The following embodiments are used to describe the method of drawing on the terrain component.

[0114] Specifically, in response to a drawing operation, determine the area to be updated of the target local model according to the drawing operation; update the local model corresponding to the area to be updated of the target local model according to the drawing parameters of the drawing operation.

[0115] In specific implementation, the specific operations corresponding to the above drawing operation can be determined according to R & D requirements. For example, the drawing operation can be a sliding operation or a clicking operation based on a brush tool acting on the area to be updated of the target local model, or an operation of selecting the area to be updated of the target local model by means of a bounding box, etc. Among them, the area drawn by the drawing operation in the target local model is also the area to be updated of the target local model. The drawing parameters of the above drawing operation can be at least one of the following parameters: height parameter, smoothness parameter, material parameter, and flatness parameter.

[0116] In an alternative embodiment, the above target landform component includes a selected state and a non - selected state; among them, the selected state means that the target landform component is currently selected, and the non - selected state means that the target landform component is not selected. Among them, the selection method of the target landform component can be determined according to R & D requirements. For example, the target landform component can be selected by triggering the control selection identifier corresponding to the target landform component, or the target landform component can be selected by dragging the target landform component, etc. Among them, when the target landform component is in the selected state and the non - selected state, the display mode of the target landform component in the graphical user interface is different.

[0117] Based on the above description, the specific process of updating the local model corresponding to the area to be updated of the target local model according to the drawing parameters of the drawing operation can include: when the target landform component is in the non - selected state, update the local model corresponding to the area to be updated of the target local model according to the drawing parameters of the drawing operation. In addition, when the target landform component is in the selected state, only the component parameters corresponding to the target landform component can be adjusted, and the component parameters include position parameters, size parameters, rotation angle parameters, etc.

[0118] In an alternative embodiment, the above drawing parameter includes a height parameter, and this height parameter is used to update height data; based on this, the specific process of updating the local model corresponding to the area to be updated of the target local model according to the drawing parameters of the drawing operation can include: process the height data of the local model corresponding to the area to be updated of the target local model according to the height parameter to obtain the local model corresponding to the area to be updated of the updated target local model.

[0119] In specific implementation, after determining the area to be updated of the target local model, it is necessary to determine the height data of the local model corresponding to the area to be updated of the target local model, and then update the height data of the local model corresponding to the area to be updated of the target local model according to the height parameter. After updating the height data of the local model corresponding to the area to be updated of the target local model, it is necessary to notify the rendering engine to update the rendering of the local model corresponding to the area to be updated of the target local model, that is, to display the model effect corresponding to the area to be updated of the target local model according to the updated height data corresponding to the area to be updated of the target local model.

[0120] In an alternative embodiment, the height data of the local model corresponding to the area to be updated of the target local model includes at least partial height data of the corresponding part of the second height data of the local model corresponding to the area to be updated of the target local model in the terrain component and the first height data of the target landform component corresponding to the target local model determined based on the drawing area of the drawing operation. The above partial second height data is also part of the second height data of the initially configured terrain component. By fusing and superimposing the above partial second height data with at least partial height data of the first height data, the height data of the local model corresponding to the area to be updated of the target local model can be obtained.

[0121] In a specific embodiment, the specific process of processing the height data of the local model corresponding to the area to be updated of the target local model according to the height parameter to obtain the updated local model corresponding to the area to be updated of the target local model may include: processing the partial second height data according to the height parameter to obtain the updated partial second height data; updating the target local model according to the updated partial second height data to obtain the updated local model corresponding to the area to be updated of the target local model. In this way, the height parameter only adjusts the second height data configured by the terrain component and does not adjust the first height data corresponding to the landform component set on the terrain component. This way helps to edit the landform component separately and also helps to directly draw the height on the terrain component.

[0122] In another specific embodiment, the specific process of processing the height data of the local model corresponding to the area to be updated of the target local model according to the height parameter to obtain the local model corresponding to the area to be updated of the updated target local model may include: processing at least part of the height data in the first height data according to the height parameter to obtain the updated part of the height data; updating the target local model according to the updated part of the height data to obtain the local model corresponding to the area to be updated of the updated target local model. In this way, the height parameter only adjusts the first height data corresponding to the geomorphic components set on the terrain component, and does not adjust the second height data configured by the terrain component. This way helps to edit the geomorphic components separately.

[0123] In an alternative embodiment, in response to a selection instruction for a target geomorphic component, control to select the target geomorphic component; in response to an editing instruction for the target geomorphic component, update the terrain component according to the editing instruction and the updated first height data of the target geomorphic component, where the editing instruction includes at least one of the following: a movement instruction, a scaling instruction, and a rotation instruction.

[0124] In specific implementation, the triggering methods of the above selection instruction, movement instruction, scaling instruction, and rotation instruction can be determined according to R & D requirements. For example, the triggering method of the selection instruction can be an operation of clicking on the target geomorphic component, or an operation of triggering the selection identifier of the control corresponding to the target geomorphic component; the triggering method corresponding to the above movement instruction can be an operation of triggering the movement control displayed in the graphical user interface, the above scaling instruction can be an operation of triggering the scaling control displayed in the graphical user interface, and the triggering method corresponding to the above rotation instruction can be an operation of triggering the angle adjustment control displayed in the graphical user interface.

[0125] After adjusting at least part of the height data in the first height data of the target geomorphic component through a drawing operation, if the target geomorphic component is subsequently dragged and moved on the terrain component, then the local model of the updated area of the terrain component at the subsequent movement position will be updated according to the adjusted height data of the target geomorphic component.

[0126] Based on the above method embodiments, the embodiments of the present disclosure also provide a terrain editing device, as Figure 10 shown. The device includes:

[0127] An interface display module 90, configured to display a graphical user interface through a terminal device, where the graphical user interface includes a virtual editing scene, and the virtual editing scene includes a terrain component.

[0128] A control display module 91, configured to control the display of a plurality of geomorphic component controls in the graphical user interface; wherein, the geomorphic components corresponding to different geomorphic component controls are respectively configured with corresponding first height data to represent different geomorphologies.

[0129] A control determining module 92, configured to determine a target landform component control from a plurality of landform component controls according to a first operation in response to the first operation.

[0130] A region determining module 93, configured to determine a region to be updated of the terrain component according to a second operation at an operation position of the terrain component and the size of the target landform component in response to the second operation, where the target landform component is the landform component corresponding to the target landform component control.

[0131] A terrain updating module 94, configured to update a target local model corresponding to the region to be updated of the terrain component according to first height data of the target landform component.

[0132] In the above terrain editing device, the user can create different landforms on the terrain component through different landform components, thereby improving the complexity and aesthetics of the terrain, and also improving the efficiency of creating complex landforms and the user's terrain editing experience.

[0133] Specifically, the above terrain component is configured with second height data of a preset size; wherein, the second height data is used to indicate the landform corresponding to the terrain component.

[0134] Further, the size of the first height data of the above landform component is less than or equal to the size of the second height data configured by the terrain component.

[0135] Further, the above terrain updating module 94 is configured to perform one of the following methods: performing superposition processing on the first height data of the target landform component and the height data corresponding to the target local model to obtain an updated target local model; and replacing the height data of the target local model with the first height data of the target landform component.

[0136] Further, the first height data of the target landform component includes: a plurality of first pixels, and a gray value corresponding to each first pixel; the height data corresponding to the target local model includes: a plurality of second pixels, and a gray value corresponding to each second pixel; wherein, the gray value is used to indicate the height value.

[0137] Further, the above terrain updating module 94 is configured to: for each second pixel in the height data corresponding to the target local model, determine a target first pixel corresponding to the current second pixel from the first height data of the target landform component; perform superposition processing on the height value corresponding to the target first pixel and the height value corresponding to the current second pixel to obtain a superposed height value corresponding to the current second pixel; and combine the superposed height values corresponding to each second pixel in the height data corresponding to the target local model to obtain an updated target local model.

[0138] Further, the above-mentioned area determination module 93 is configured to: in response to a second operation, obtain the operation position of the second operation; when the operation position is on the terrain component, determine the area to be updated on the terrain component according to the operation position and the size of the target landform component.

[0139] Further, the above-mentioned second operation is a drag operation on the target landform component; based on this, obtaining the operation position of the second operation includes: obtaining the drag position of the drag operation.

[0140] Further, the above-mentioned second operation includes a first click operation and a second click operation, where the first click operation is a click operation on the control of the target landform component, and the second click operation is a click operation on the terrain component; based on this, obtaining the operation position of the second operation includes: obtaining the click position of the second click operation in the terrain component.

[0141] Further, the above-mentioned device further includes an information prompt module, configured to: when the operation position is outside the terrain component, control to display a first prompt message in the graphical user interface; where the first prompt message is used to indicate that the operation position of the second operation cannot set the target landform component.

[0142] Further, the above-mentioned device further includes a preview module, configured to: during the operation of the second operation, determine a preview area in the terrain component based on the operation position corresponding to the second operation and the size of the target landform component; update the local model corresponding to the preview area of the terrain component according to the first height data of the target landform component to obtain an updated local model, and display the updated local model on the terrain component in a first display manner.

[0143] Further, the above-mentioned terrain update module 94 is configured to: in response to the end of the second operation, update the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target landform component to obtain an updated target local model, and display the updated target local model on the terrain component in a second display manner.

[0144] Further, the above-mentioned control display module 91 is configured to: in response to a trigger operation on the first control displayed in the graphical user interface, control the virtual editing scene to enter the landform editing mode, and display a plurality of landform component controls at a preset position in the graphical user interface.

[0145] Further, the above-mentioned device further includes an identification display module, configured to: after updating the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target landform component, display a control selection identifier in the graphical user interface; in response to a trigger operation on the control selection identifier, select the target landform component corresponding to the area to be updated.

[0146] Further, the above device further includes a component editing module, configured to: display at least one editing control in a graphical user interface; wherein, each of the at least one editing controls is configured with a corresponding editing function, and the editing functions include the following multiple types: moving, scaling, and rotating a target landform component; when the target landform component corresponding to the area to be updated is selected and a target editing control among the at least one editing controls is triggered, in response to a third operation applied to the target landform component, adjust the target landform component based on the third operation and the editing function corresponding to the target editing control to obtain an adjusted target landform component, and update the terrain component based on the adjusted target landform component.

[0147] Further, the above component editing module is further configured to: determine an area to be adjusted in the terrain component based on the size of the adjusted target landform component; update the local model corresponding to the area to be adjusted in the terrain component according to the first height data of the adjusted target landform component.

[0148] Further, the above device further includes a height overlay module, configured to: after the target landform component corresponding to the area to be updated is selected, display a parameter setting panel in the graphical user interface; wherein, the parameter setting panel includes a landform switching control; in response to a trigger operation for the landform switching control, control to display a plurality of landform component controls in the parameter setting panel; in response to a selection operation for a first landform component control among the plurality of landform component controls, switch the target landform component corresponding to the area to be updated to a first landform component corresponding to the first landform component control, and update the target local model corresponding to the area to be updated based on the height data of the first landform component.

[0149] In a specific implementation, the above parameter setting panel further includes at least one of the following controls: a position adjustment control for adjusting the position of the target landform component, a size adjustment control for adjusting the size of the target landform component, and an angle adjustment control for adjusting the rotation angle of the target landform component.

[0150] Further, the above device further includes a terrain restoration module, configured to: after updating the target local model corresponding to the area to be updated in the terrain component according to the first height data of the target landform component, in response to a deletion operation for the target landform component corresponding to the area to be updated, delete the target landform component corresponding to the area to be updated; restore the updated target local model according to the first height data of the target landform component to obtain a restored target local model corresponding to the area to be updated in the terrain component.

[0151] Further, the above device further includes a terrain drawing module, configured to: in response to a drawing operation, determine an area to be updated in the target local model according to the drawing operation; update the local model corresponding to the area to be updated in the target local model according to the drawing parameters of the drawing operation.

[0152] Further, the above-mentioned target landform component includes a selected state and a non-selected state; based on this, the above-mentioned terrain drawing module is further configured to: when the target landform component is in the non-selected state, update the local model corresponding to the area to be updated of the target local model according to the drawing parameters of the drawing operation.

[0153] Further, the above-mentioned drawing parameters include height parameters; based on this, the above-mentioned terrain drawing module is further configured to: process the height data of the local model corresponding to the area to be updated of the target local model according to the height parameters to obtain the local model corresponding to the area to be updated of the updated target local model.

[0154] In specific implementation, the height data of the local model corresponding to the area to be updated of the above-mentioned target local model includes: at least partial height data of the corresponding part of the second height data of the local model corresponding to the area to be updated of the target local model in the terrain component, and the first height data of the target landform component corresponding to the target local model determined based on the drawing area of the drawing operation.

[0155] Further, the above-mentioned terrain drawing module is further configured to: process at least partial height data of the first height data according to the height parameters to obtain updated partial height data; update the target local model according to the updated partial height data to obtain the local model corresponding to the area to be updated of the updated target local model.

[0156] Further, the above-mentioned terrain drawing module is further configured to: process at least partial height data of the first height data according to the height parameters to obtain updated partial height data; update the target local model according to the updated partial height data to obtain the local model corresponding to the area to be updated of the updated target local model.

[0157] Further, the above-mentioned device further includes a component editing module, configured to: respond to a selection instruction for the target landform component to control the selection of the target landform component; respond to an editing instruction for the target landform component, and update the terrain component according to the editing instruction and the updated first height data of the target landform component, where the editing instruction includes at least one of the following: a movement instruction, a scaling instruction, and a rotation instruction.

[0158] Further, the above-mentioned device further includes a component superposition module, configured to: after updating the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target landform component, in response to placing the second landform component in the area to be updated, update the target local model corresponding to the area to be updated according to the first height data of the target landform component and the first height data of the second landform component; where the second landform component is the landform component corresponding to the second landform component control among multiple landform components.

[0159] The terrain editing device provided by the embodiments of the present disclosure has the same implementation principle and technical effects as those of the foregoing method embodiments. For the sake of brief description, for the parts not mentioned in the device embodiments, reference may be made to the corresponding content in the foregoing method embodiments.

[0160] The embodiments of the present disclosure also provide an electronic device, as Figure 11 shown. The electronic device includes a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the foregoing terrain editing method.

[0161] Specifically, the foregoing terrain editing method includes: displaying a graphical user interface through a terminal device, where the graphical user interface includes a virtual editing scene, and the virtual editing scene includes terrain components; controlling the display of a plurality of landform component controls in the graphical user interface; where different landform component controls correspond to landform components respectively configured with corresponding first height data to represent different landforms; in response to a first operation, determining a target landform component control from the plurality of landform component controls according to the first operation; in response to a second operation, determining a to-be-updated area of the terrain component according to the second operation and the size of the target landform component, where the target landform component is the landform component corresponding to the target landform component control; and updating the target local model corresponding to the to-be-updated area of the terrain component according to the first height data of the target landform component.

[0162] In the foregoing terrain editing method, the user can create different landforms on the terrain component through different landform components, thereby improving the complexity and aesthetics of the terrain, and also improving the efficiency of creating complex landforms and the user's terrain editing experience.

[0163] In an alternative embodiment, the foregoing terrain component is configured with second height data of a preset size; where the second height data is used to indicate the landform corresponding to the terrain component.

[0164] In an alternative embodiment, the size of the first height data of the foregoing landform component is less than or equal to the size of the second height data configured by the terrain component.

[0165] In an alternative embodiment, the step of updating the target local model corresponding to the to-be-updated area of the terrain component according to the first height data of the target landform component includes one of the following: performing superposition processing on the first height data of the target landform component and the height data corresponding to the target local model to obtain an updated target local model; and replacing the height data of the target local model with the first height data of the target landform component.

[0166] In an alternative embodiment, the first height data of the above-mentioned target landform component includes: a plurality of first pixels, and the gray value corresponding to each first pixel; the height data corresponding to the target local model includes: a plurality of second pixels, and the gray value corresponding to each second pixel; wherein, the gray value is used to indicate the height value.

[0167] In an alternative embodiment, the step of superimposing the first height data of the target landform component and the height data corresponding to the target local model to obtain an updated target local model includes: for each second pixel in the height data corresponding to the target local model, determine a target first pixel corresponding to the current second pixel from the first height data of the target landform component; superimpose the height value corresponding to the target first pixel and the height value corresponding to the current second pixel to obtain a superimposed height value corresponding to the current second pixel; combine the superimposed height values corresponding to each second pixel in the height data corresponding to the target local model to obtain an updated target local model.

[0168] In an alternative embodiment, the step of determining the area to be updated of the terrain component according to the operation position of the second operation and the size of the target landform component in response to the second operation includes: in response to the second operation, obtain the operation position of the second operation; when the operation position is on the terrain component, determine the area to be updated on the terrain component according to the operation position and the size of the target landform component.

[0169] In an alternative embodiment, the second operation is a dragging operation acting on the target landform component; the step of obtaining the operation position of the second operation includes: obtaining the dragging position of the dragging operation.

[0170] In an alternative embodiment, the second operation includes a first click operation and a second click operation, wherein the first click operation is a click operation on the control of the target landform component, and the second click operation is a click operation on the terrain component; the step of obtaining the operation position of the second operation includes: obtaining the click position of the second click operation on the terrain component.

[0171] In an alternative embodiment, the method further includes: when the operation position is outside the terrain component, controlling to display a first prompt message in the graphical user interface; wherein, the first prompt message is used to indicate that the operation position of the second operation cannot set the target landform component.

[0172] In an alternative embodiment, the method further includes: during the operation of the second operation, determining a preview area in the terrain component based on the operation position corresponding to the second operation and the size of the target landform component; updating the local model corresponding to the preview area of the terrain component according to the first height data of the target landform component to obtain an updated local model, and displaying the updated local model on the terrain component in a first display manner.

[0173] In an alternative embodiment, the step of updating the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target landform component includes: in response to the end of the second operation, updating the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target landform component to obtain an updated target local model, and displaying the updated target local model on the terrain component in a second display mode.

[0174] In an alternative embodiment, the step of controlling the display of a plurality of landform component controls in the graphical user interface includes: in response to a trigger operation on the first control displayed in the graphical user interface, controlling the virtual editing scene to enter the landform editing mode, and displaying a plurality of landform component controls at a preset position in the graphical user interface.

[0175] In an alternative embodiment, after the step of updating the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target landform component, the method further includes: displaying a control selection identifier in the graphical user interface; in response to a trigger operation on the control selection identifier, selecting the target landform component corresponding to the area to be updated.

[0176] In an alternative embodiment, the method further includes: displaying at least one editing control in the graphical user interface; wherein, each of the at least one editing controls is configured with a corresponding editing function, and the editing functions include the following multiple types: moving, scaling, and rotating the target landform component; in the case where the target landform component corresponding to the area to be updated is selected, when the target editing control among the at least one editing controls is triggered, in response to a third operation acting on the target landform component, adjusting the target landform component based on the third operation and the editing function corresponding to the target editing control to obtain an adjusted target landform component, and updating the terrain component based on the adjusted target landform component.

[0177] In an alternative embodiment, the step of updating the terrain component based on the adjusted target landform component includes: determining an area to be adjusted in the terrain component based on the size of the adjusted target landform component; updating the local model corresponding to the area to be adjusted of the terrain component according to the first height data of the adjusted target landform component.

[0178] In an alternative embodiment, after the step of selecting the target landform component corresponding to the area to be updated, the above method further includes: displaying a parameter setting panel in the graphical user interface; wherein, the parameter setting panel includes a landform switching control; in response to a triggering operation on the landform switching control, controlling the display of a plurality of landform component controls in the parameter setting panel; in response to a selection operation on the first landform component control among the plurality of landform component controls, switching the target landform component corresponding to the area to be updated to the first landform component corresponding to the first landform component control, and updating the target local model corresponding to the area to be updated based on the height data of the first landform component.

[0179] In an alternative embodiment, the above parameter setting panel further includes at least one of the following controls: a position adjustment control for adjusting the position of the target landform component, a size adjustment control for adjusting the size of the target landform component, and an angle adjustment control for adjusting the rotation angle of the target landform component.

[0180] In an alternative embodiment, after the step of updating the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target landform component, the above method further includes: in response to a deletion operation on the target landform component corresponding to the area to be updated, deleting the target landform component corresponding to the area to be updated; restoring the updated target local model according to the first height data of the target landform component to obtain the restored target local model corresponding to the area to be updated of the terrain component.

[0181] In an alternative embodiment, the above method further includes: in response to a drawing operation, determining the area to be updated of the target local model according to the drawing operation; updating the local model corresponding to the area to be updated of the target local model according to the drawing parameters of the drawing operation.

[0182] In an alternative embodiment, the above target landform component includes a selected state and a non-selected state; the step of updating the local model corresponding to the area to be updated of the target local model according to the drawing parameters of the drawing operation includes: when the target landform component is in the non-selected state, updating the local model corresponding to the area to be updated of the target local model according to the drawing parameters of the drawing operation.

[0183] In an alternative embodiment, the above drawing parameters include height parameters; the step of updating the local model corresponding to the area to be updated of the target local model according to the drawing parameters of the drawing operation includes: processing the height data of the local model corresponding to the area to be updated of the target local model according to the height parameters to obtain the local model corresponding to the area to be updated of the updated target local model.

[0184] In an alternative embodiment, the height data of the local model corresponding to the area to be updated of the target local model includes at least partial height data of the second height data corresponding to the part of the local model corresponding to the area to be updated of the target local model in the terrain component, and the first height data of the target geomorphic component corresponding to the target local model determined based on the drawing area of the drawing operation.

[0185] In an alternative embodiment, the step of processing the height data of the local model corresponding to the area to be updated of the target local model according to the height parameter to obtain the local model corresponding to the area to be updated of the updated target local model includes: processing at least partial height data of the second height data according to the height parameter to obtain updated partial second height data; updating the target local model according to the updated partial second height data to obtain the local model corresponding to the area to be updated of the updated target local model.

[0186] In an alternative embodiment, the step of processing the height data of the local model corresponding to the area to be updated of the target local model according to the height parameter to obtain the local model corresponding to the area to be updated of the updated target local model includes: processing at least partial height data of the first height data according to the height parameter to obtain updated partial height data; updating the target local model according to the updated partial height data to obtain the local model corresponding to the area to be updated of the updated target local model.

[0187] In an alternative embodiment, the method further includes: in response to a selection instruction for the target geomorphic component, controlling the selection of the target geomorphic component; in response to an editing instruction for the target geomorphic component, updating the terrain component according to the editing instruction and the updated first height data of the target geomorphic component, where the editing instruction includes at least one of the following: a movement instruction, a scaling instruction, and a rotation instruction.

[0188] In an alternative embodiment, after the step of updating the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target geomorphic component, the method further includes: in response to placing a second geomorphic component in the area to be updated, updating the target local model corresponding to the area to be updated according to the first height data of the target geomorphic component and the first height data of the second geomorphic component; where the second geomorphic component is the geomorphic component corresponding to the second geomorphic component control among multiple geomorphic components.

[0189] Further, Figure 11 The illustrated electronic device further includes a bus 102 and a communication interface 103, and the processor 101, the communication interface 103, and the memory 100 are connected through the bus 102.

[0190] Among them, the memory 100 may include high-speed random access memory (RAM), and may also include non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 102 can be an ISA bus, a PCI bus, an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 11 only a bidirectional arrow is used in Figure 11 , but it does not mean that there is only one bus or one type of bus.

[0191] The processor 101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, the steps of the above method can be completed by the integrated logic circuit in the hardware of the processor 101 or the instructions in the form of software. The above-mentioned processor 101 may be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it may also be a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short), a field-programmable gate array (FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present disclosure can be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of the hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, register, etc. This storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100 and combines its hardware to complete the steps of the method in the foregoing embodiments.

[0192] Embodiments of the present disclosure also provide a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the above-described terrain editing method. For specific implementation, reference may be made to the method embodiments, which will not be elaborated herein.

[0193] Specifically, the above-described terrain editing method includes: displaying a graphical user interface through a terminal device, where the graphical user interface includes a virtual editing scene, and the virtual editing scene includes terrain components; controlling the display of a plurality of landform component controls in the graphical user interface; where different landform component controls correspond to landform components respectively configured with corresponding first height data to represent different landforms; in response to a first operation, determining a target landform component control from the plurality of landform component controls according to the first operation; in response to a second operation, determining a to-be-updated area of the terrain component according to the second operation and the size of the target landform component at the operation position of the terrain component, where the target landform component is the landform component corresponding to the target landform component control; and updating a target local model corresponding to the to-be-updated area of the terrain component according to the first height data of the target landform component.

[0194] In the above-described terrain editing method, the user can create different landforms on the terrain component through different landform components, thereby improving the complexity and aesthetics of the terrain, and also improving the efficiency of creating complex landforms and the user experience of terrain editing.

[0195] In an alternative embodiment, the above-described terrain component is configured with second height data of a preset size; where the second height data is used to indicate the landform corresponding to the terrain component.

[0196] In an alternative embodiment, the size of the first height data of the above-described landform component is less than or equal to the size of the second height data configured for the terrain component.

[0197] In an alternative embodiment, the step of updating the target local model corresponding to the to-be-updated area of the terrain component according to the first height data of the target landform component includes one of the following: performing superposition processing on the first height data of the target landform component and the height data corresponding to the target local model to obtain an updated target local model; and replacing the height data of the target local model with the first height data of the target landform component.

[0198] In an alternative embodiment, the first height data of the above-described target landform component includes: a plurality of first pixels, and a gray value corresponding to each first pixel; the height data corresponding to the target local model includes: a plurality of second pixels, and a gray value corresponding to each second pixel; where the gray value is used to indicate the height value.

[0199] In an alternative embodiment, the step of superimposing the first height data of the target geomorphic component on the height data corresponding to the target local model to obtain an updated target local model includes: for each second pixel in the height data corresponding to the target local model, determining a target first pixel corresponding to the current second pixel from the first height data of the target geomorphic component; superimposing the height value corresponding to the target first pixel on the height value corresponding to the current second pixel to obtain a superimposed height value corresponding to the current second pixel; and combining the superimposed height values corresponding to each second pixel in the height data corresponding to the target local model to obtain an updated target local model.

[0200] In an alternative embodiment, the step of determining the area to be updated of the terrain component according to the operation position of the second operation on the terrain component and the size of the target geomorphic component in response to the second operation includes: in response to the second operation, obtaining the operation position of the second operation; when the operation position is on the terrain component, determining the area to be updated on the terrain component according to the operation position and the size of the target geomorphic component.

[0201] In an alternative embodiment, the second operation is a drag operation on the target geomorphic component; the step of obtaining the operation position of the second operation includes: obtaining the drag position of the drag operation.

[0202] In an alternative embodiment, the second operation includes a first click operation and a second click operation, where the first click operation is a click operation on the control of the target geomorphic component, and the second click operation is a click operation on the terrain component; the step of obtaining the operation position of the second operation includes: obtaining the click position of the second click operation on the terrain component.

[0203] In an alternative embodiment, the method further includes: when the operation position is outside the terrain component, controlling to display a first prompt message in the graphical user interface; where the first prompt message is used to indicate that the operation position of the second operation cannot set the target geomorphic component.

[0204] In an alternative embodiment, the method further includes: during the operation of the second operation, determining a preview area in the terrain component based on the operation position corresponding to the second operation and the size of the target geomorphic component; updating the local model corresponding to the preview area of the terrain component according to the first height data of the target geomorphic component to obtain an updated local model, and displaying the updated local model on the terrain component in a first display manner.

[0205] In an alternative embodiment, the step of updating the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target landform component includes: in response to the end of the second operation, updating the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target landform component to obtain an updated target local model, and displaying the updated target local model on the terrain component in a second display manner.

[0206] In an alternative embodiment, the step of controlling the display of a plurality of landform component controls in the graphical user interface includes: in response to a trigger operation on the first control displayed in the graphical user interface, controlling the virtual editing scene to enter the landform editing mode, and displaying a plurality of landform component controls at a preset position in the graphical user interface.

[0207] In an alternative embodiment, after the step of updating the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target landform component, the method further includes: displaying a control selection identifier in the graphical user interface; in response to a trigger operation on the control selection identifier, selecting the target landform component corresponding to the area to be updated.

[0208] In an alternative embodiment, the method further includes: displaying at least one editing control in the graphical user interface; wherein, each of the at least one editing controls is configured with a corresponding editing function, and the editing functions include the following multiple types: moving, scaling, and rotating the target landform component; in the case of selecting the target landform component corresponding to the area to be updated, when a target editing control among the at least one editing controls is triggered, in response to a third operation applied to the target landform component, adjusting the target landform component based on the third operation and the editing function corresponding to the target editing control to obtain an adjusted target landform component, and updating the terrain component based on the adjusted target landform component.

[0209] In an alternative embodiment, the step of updating the terrain component based on the adjusted target landform component includes: determining an area to be adjusted in the terrain component based on the size of the adjusted target landform component; updating the local model corresponding to the area to be adjusted of the terrain component according to the first height data of the adjusted target landform component.

[0210] In an alternative embodiment, after the step of selecting the target landform component corresponding to the area to be updated, the method further includes: displaying a parameter setting panel in the graphical user interface; wherein, the parameter setting panel includes a landform switching control; in response to a trigger operation on the landform switching control, controlling the display of a plurality of landform component controls in the parameter setting panel; in response to a selection operation on the first landform component control among the plurality of landform component controls, switching the target landform component corresponding to the area to be updated to the first landform component corresponding to the first landform component control, and updating the target local model corresponding to the area to be updated based on the height data of the first landform component.

[0211] In an alternative embodiment, the above parameter setting panel further includes at least one of the following controls: a position adjustment control for adjusting the position of the target landform component, a size adjustment control for adjusting the size of the target landform component, and an angle adjustment control for adjusting the rotation angle of the target landform component.

[0212] In an alternative embodiment, after the step of updating the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target landform component, the above method further includes: responding to a deletion operation on the target landform component corresponding to the area to be updated, deleting the target landform component corresponding to the area to be updated; restoring the updated target local model according to the first height data of the target landform component to obtain the restored target local model corresponding to the area to be updated of the terrain component.

[0213] In an alternative embodiment, the above method further includes: in response to a drawing operation, determining the area to be updated of the target local model according to the drawing operation; updating the local model corresponding to the area to be updated of the target local model according to the drawing parameters of the drawing operation.

[0214] In an alternative embodiment, the above target landform component includes a selected state and a non - selected state; the step of updating the local model corresponding to the area to be updated of the target local model according to the drawing parameters of the drawing operation includes: when the target landform component is in the non - selected state, updating the local model corresponding to the area to be updated of the target local model according to the drawing parameters of the drawing operation.

[0215] In an alternative embodiment, the above drawing parameters include height parameters; the step of updating the local model corresponding to the area to be updated of the target local model according to the drawing parameters of the drawing operation includes: processing the height data of the local model corresponding to the area to be updated of the target local model according to the height parameters to obtain the local model corresponding to the area to be updated of the updated target local model.

[0216] In an alternative embodiment, the height data of the local model corresponding to the area to be updated of the above target local model includes: at least partial height data of the second height data corresponding to the part of the local model corresponding to the area to be updated of the target local model in the terrain component, and the first height data of the target landform component corresponding to the target local model determined based on the drawing area of the drawing operation.

[0217] In an alternative embodiment, the step of processing the height data of the local model corresponding to the area to be updated of the target local model according to the height parameter to obtain the local model corresponding to the area to be updated of the updated target local model includes: processing at least part of the second height data according to the height parameter to obtain the updated part of the second height data; updating the target local model according to the updated part of the second height data to obtain the local model corresponding to the area to be updated of the updated target local model.

[0218] In an alternative embodiment, the step of processing the height data of the local model corresponding to the area to be updated of the target local model according to the height parameter to obtain the local model corresponding to the area to be updated of the updated target local model includes: processing at least part of the height data in the first height data according to the height parameter to obtain the updated part of the height data; updating the target local model according to the updated part of the height data to obtain the local model corresponding to the area to be updated of the updated target local model.

[0219] In an alternative embodiment, the method further includes: in response to a selection instruction for a target geomorphic component, controlling the selection of the target geomorphic component; in response to an editing instruction for the target geomorphic component, updating the terrain component according to the editing instruction and the updated first height data of the target geomorphic component, where the editing instruction includes at least one of the following: a movement instruction, a scaling instruction, and a rotation instruction.

[0220] In an alternative embodiment, after the step of updating the target local model corresponding to the area to be updated of the terrain component according to the first height data of the target geomorphic component, the method further includes: in response to placing a second geomorphic component in the area to be updated, updating the target local model corresponding to the area to be updated according to the first height data of the target geomorphic component and the first height data of the second geomorphic component; where the second geomorphic component is the geomorphic component corresponding to the second geomorphic component control among multiple geomorphic components.

[0221] When the above-mentioned manner is implemented in the form of a software unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a terminal device, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.

[0222] In the description of the present disclosure, it should be noted that the orientation or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present disclosure and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation to the present disclosure. In addition, the terms "first", "second", "third" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance.

[0223] Finally, it should be noted that the above-mentioned embodiments are only specific implementation manners of the present disclosure, used to illustrate the technical solutions of the present disclosure, rather than limiting them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: any person skilled in the art within the technical scope disclosed by the present disclosure can still modify the technical solutions recorded in the foregoing embodiments, or can easily think of changes, or perform equivalent replacements on some of the technical features; and these modifications, changes, or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should all be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be determined by the protection scope of the claims.

Claims

1. A terrain editing method, characterized in that: The method comprises: Displaying a graphical user interface through a terminal device, wherein the graphical user interface includes a virtual editing scene, and the virtual editing scene includes a terrain component; Controlling to display a plurality of landform component controls in the graphical user interface; wherein the landform components corresponding to different landform component controls are respectively configured with corresponding first height data to represent different landforms; In response to a first operation, determining a target landform component control from the plurality of landform component controls according to the first operation; In response to a second operation, determining a region to be updated of the terrain component according to an operation position of the second operation on the terrain component and a size of a target terrain component, wherein the target terrain component is a terrain component corresponding to the target terrain component control; The target local model corresponding to the to-be-updated area of ​​the terrain component is updated according to the first height data of the target landform component.

2. The method according to claim 1, characterized in that The terrain component is configured with second height data of a preset size; wherein the second height data is used to indicate the landform corresponding to the terrain component.

3. The method according to claim 2, characterized in that The size of the first height data of the landform component is smaller than or equal to the size of the second height data configured by the landform component.

4. The method according to claim 1, characterized in that: The step of updating the target local model corresponding to the to-be-updated area of ​​the terrain component according to the first height data of the target landform component includes the following: Superimposing the first height data of the target landform component with the height data corresponding to the target local model to obtain an updated target local model; and The height data of the target local model is replaced by the first height data of the target landform component.

5. The method according to claim 4, characterized in that The first height data of the target landform component includes: multiple first pixels and the grayscale value corresponding to each first pixel; the height data corresponding to the target local model includes: multiple second pixels and the grayscale value corresponding to each second pixel; wherein the grayscale value is used to indicate the height value.

6. The method according to claim 5, characterized in that The step of superimposing the first height data of the target landform component with the height data corresponding to the target local model to obtain the updated target local model comprises: For each second pixel in the height data corresponding to the target local model, determine the target first pixel corresponding to the current second pixel from the first height data of the target landform component; superimpose the height value corresponding to the target first pixel with the height value corresponding to the current second pixel to obtain the superimposed height value corresponding to the current second pixel; The superimposed height value corresponding to each second pixel in the height data corresponding to the target local model is combined to obtain the updated target local model.

7. The method according to claim 1, characterized in that The step of determining the area to be updated of the terrain component according to the operation position of the second operation on the terrain component and the size of the target landform component in response to the second operation comprises: In response to a second operation, acquiring an operation position of the second operation; When the operation position is located on the terrain component, a region to be updated is determined on the terrain component according to the operation position and the size of the target landform component.

8. The method according to claim 7, characterized in that The second operation is a drag operation acting on the target landform component; The step of acquiring the operation position of the second operation includes: acquiring the drag position of the drag operation.

9. The method according to claim 7, characterized in that: The second operation includes a first click operation and a second click operation, wherein the first click operation is a click operation on the target landform component control, and the second click operation is a click operation on the landform component; The step of obtaining the operation position of the second operation includes: obtaining the click position of the second click operation in the terrain component.

10. The method according to claim 7, characterized in that The method further comprises: When the operation position is outside the terrain component, a first prompt message is controlled to be displayed in the graphical user interface; wherein the first prompt message is used to indicate that the operation position of the second operation cannot be used to set a target terrain component.

11. The method according to claim 1, characterized in that: The method further comprises: During the operation of the second operation, based on the operation position corresponding to the second operation and the size of the target landform component, determining a preview area in the landform component; The local model corresponding to the preview area of ​​the terrain component is updated according to the first height data of the target landform component to obtain an updated local model, and the updated local model is displayed on the terrain component in a first display mode.

12. The method according to claim 11, characterized in that The step of updating the target local model corresponding to the to-be-updated area of ​​the terrain component according to the first height data of the target landform component comprises: In response to the completion of the second operation, the target local model corresponding to the area to be updated of the terrain component is updated according to the first height data of the target terrain component to obtain an updated target local model, and the updated target local model is displayed on the terrain component in a second display mode.

13. The method according to claim 1, characterized in that The step of controlling the display of a plurality of landform component controls in the graphical user interface comprises: In response to a triggering operation on a first control displayed in the graphical user interface, the virtual editing scene is controlled to enter a landform editing mode, and the plurality of landform component controls are displayed at preset positions in the graphical user interface.

14. The method according to claim 1, characterized in that After the step of updating the target local model corresponding to the to-be-updated area of ​​the terrain component according to the first height data of the target landform component, the method further comprises: Displaying a control selection indicator in the graphical user interface; In response to a trigger operation for the control selection identifier, a target landform component corresponding to the area to be updated is selected.

15. The method according to claim 14, characterized in that The method further comprises: Displaying at least one editing control in the graphical user interface; wherein the at least one editing control is respectively configured with a corresponding editing function, and the editing function includes at least one of the following: moving, scaling and rotating the target landform component; When the target landform component corresponding to the area to be updated is selected, when the target editing control in the at least one editing control is triggered, in response to a third operation acting on the target landform component, the target landform component is adjusted based on the third operation and the editing function corresponding to the target editing control to obtain an adjusted target landform component, and the terrain component is updated based on the adjusted target landform component.

16. The method according to claim 15, characterized in that The step of updating the terrain component based on the adjusted target terrain component comprises: Based on the size of the adjusted target landform component, determining a region to be adjusted in the landform component; The local model corresponding to the area to be adjusted of the terrain component is updated according to the first height data of the adjusted target landform component.

17. The method according to claim 14, characterized in that After the step of selecting the target landform component corresponding to the area to be updated, the method further includes: Displaying a parameter setting panel in the graphical user interface; wherein the parameter setting panel includes a landform switching control; In response to a triggering operation on the landform switching control, controlling the display of a plurality of landform component controls in the parameter setting panel; In response to a selection operation on a first landform component control among the multiple landform component controls, the target landform component corresponding to the area to be updated is switched to the first landform component corresponding to the first landform component control, and the target local model corresponding to the area to be updated is updated based on the height data of the first landform component.

18. The method according to claim 17, characterized in that The parameter setting panel also includes at least one of the following controls: a position adjustment control for adjusting the position of the target landform component, a size adjustment control for adjusting the size of the target landform component, and an angle adjustment control for adjusting the rotation angle of the target landform component.

19. The method according to claim 1, characterized in that After the step of updating the target local model corresponding to the to-be-updated area of ​​the terrain component according to the first height data of the target landform component, the method further includes: In response to a deletion operation on the target landform component corresponding to the area to be updated, the target landform component corresponding to the area to be updated is deleted; The updated target local model is restored according to the first height data of the target landform component to obtain the restored target local model corresponding to the to-be-updated area of ​​the terrain component.

20. The method according to claim 1, characterized in that The method further comprises: In response to a drawing operation, determining a to-be-updated area of ​​the target local model according to the drawing operation; The local model corresponding to the to-be-updated area of ​​the target local model is updated according to the drawing parameters of the drawing operation.

21. The method according to claim 20, characterized in that The target landform component includes a selected state and an unselected state; The step of updating the local model corresponding to the to-be-updated area of ​​the target local model according to the drawing parameters of the drawing operation comprises: When the target landform component is in a non-selected state, the local model corresponding to the to-be-updated area of ​​the target local model is updated according to the drawing parameters of the drawing operation.

22. The method according to claim 21, characterized in that The drawing parameters include a height parameter; the step of updating the local model corresponding to the to-be-updated area of ​​the target local model according to the drawing parameters of the drawing operation includes: The height data of the local model corresponding to the to-be-updated area of ​​the target local model is processed according to the height parameter to obtain an updated local model corresponding to the to-be-updated area of ​​the target local model.

23. The method according to claim 22, characterized in that The height data of the local model corresponding to the area to be updated of the target local model includes: part of the second height data of the local model corresponding to the area to be updated of the target local model in the terrain component, and at least part of the first height data of the target terrain component corresponding to the target local model determined based on the drawing area of ​​the drawing operation.

24. The method according to claim 23, characterized in that The step of processing the height data of the local model corresponding to the to-be-updated area of ​​the target local model according to the height parameter to obtain the updated local model corresponding to the to-be-updated area of ​​the target local model comprises: Processing the portion of the second height data according to the height parameter to obtain updated portion of the second height data; The target local model is updated according to the updated part of the second height data to obtain a local model corresponding to the to-be-updated area of ​​the updated target local model.

25. The method according to claim 23, characterized in that The step of processing the height data of the local model corresponding to the to-be-updated area of ​​the target local model according to the height parameter to obtain the updated local model corresponding to the to-be-updated area of ​​the target local model comprises: Processing at least part of the first height data according to the height parameter to obtain updated part of the height data; The target local model is updated according to the updated partial height data to obtain a local model corresponding to the to-be-updated area of ​​the updated target local model.

26. The method according to claim 25, characterized in that The method further comprises: In response to a selection instruction for the target landform component, controlling the selection of the target landform component; In response to an editing instruction for the target landform component, the terrain component is updated according to the editing instruction and the updated first height data of the target landform component, wherein the editing instruction includes at least one of the following: a moving instruction, a scaling instruction, and a rotating instruction.

27. The method according to claim 1, characterized in that After the step of updating the target local model corresponding to the to-be-updated area of ​​the terrain component according to the first height data of the target landform component, the method further includes: In response to placing a second landform component in the area to be updated, the target local model corresponding to the area to be updated is updated according to the first height data of the target landform component and the first height data of the second landform component; wherein the second landform component is a landform component corresponding to the second landform component control among the multiple landform components.

28. A terrain editing device, characterized in that: The device comprises: An interface display module, used for displaying a graphical user interface through a terminal device, wherein the graphical user interface includes a virtual editing scene, and the virtual editing scene includes a terrain component; A control display module, used for controlling the display of a plurality of landform component controls in the graphical user interface; wherein the landform components corresponding to different landform component controls are respectively configured with corresponding first height data to represent different landforms; A control determination module, configured to determine, in response to a first operation, a target landform component control from the plurality of landform component controls according to the first operation; An area determination module, configured to determine, in response to a second operation, an area to be updated of the terrain component according to an operation position of the second operation on the terrain component and a size of a target terrain component, wherein the target terrain component is a terrain component corresponding to the target terrain component control; The terrain updating module is used to update the target local model corresponding to the to-be-updated area of ​​the terrain component according to the first height data of the target landform component.

29. An electronic device, characterized in that: The electronic device includes a processor and a memory, the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the terrain editing method described in any one of claims 1 to 27.

30. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the terrain editing method described in any one of claims 1 to 27.