CN111617483A - Map editing method and device - Google Patents

Map editing method and device Download PDF

Info

Publication number
CN111617483A
CN111617483A CN202010500195.1A CN202010500195A CN111617483A CN 111617483 A CN111617483 A CN 111617483A CN 202010500195 A CN202010500195 A CN 202010500195A CN 111617483 A CN111617483 A CN 111617483A
Authority
CN
China
Prior art keywords
edited
area
sub
map
editing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010500195.1A
Other languages
Chinese (zh)
Inventor
谭贤亮
杨林
朱卓伟
李晶晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Kingsoft Online Game Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Online Game Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Kingsoft Online Game Technology Co Ltd filed Critical Zhuhai Kingsoft Online Game Technology Co Ltd
Priority to CN202010500195.1A priority Critical patent/CN111617483A/en
Publication of CN111617483A publication Critical patent/CN111617483A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a map editing method and device. Wherein the method comprises the following steps: receiving a map editing instruction, and acquiring a target map based on the map editing instruction; receiving a region editing instruction, and determining a region to be edited in the target map based on the region editing instruction; dividing the region to be edited into a plurality of sub regions to be edited; and editing the sub-area to be edited based on the area editing instruction, and updating and displaying the target map. The map editing method and the map editing device can effectively improve the map editing fineness, expand the application range, reduce the resource consumption during map editing processing, and achieve the effect of processing and effect display simultaneously.

Description

Map editing method and device
Technical Field
The present application relates to the field of internet technologies, and in particular, to a map editing method and apparatus, a computing device, and a computer-readable storage medium.
Background
With the increasing development of internet technology, online games have become an indispensable part of people's daily life. For most of network games such as battle games and simulation and management games, a game map is one of important elements.
At present, with the development requirement of network game technology, the capacity and area of a game map are larger and larger, but when the map is edited, all map resources need to be loaded and then can be edited, and the capacity of a map area is large.
Disclosure of Invention
In view of the above, embodiments of the present application provide a map editing method and apparatus, a computing device, and a computer-readable storage medium, so as to solve technical defects in the prior art.
The embodiment of the application discloses a map editing method, which comprises the following steps:
receiving a map editing instruction, and acquiring a target map based on the map editing instruction;
receiving a region editing instruction, and determining a region to be edited in the target map based on the region editing instruction;
dividing the region to be edited into a plurality of sub regions to be edited;
and editing the sub-area to be edited based on the area editing instruction, and updating and displaying the target map.
Optionally, the determining, based on the region editing instruction, a region to be edited in the target map includes:
calling a brush tool based on the region editing instruction;
and selecting an area to be edited in the target map through the brush tool.
Optionally, the area to be edited is divided into a plurality of sub-areas to be edited, including
Averagely dividing the region to be edited according to the preset number of sub-regions to obtain the sub-regions with the preset number;
and determining a sub-area to be edited in the sub-areas based on the area editing instruction.
Optionally, the performing area division on the area to be edited to obtain a plurality of sub-areas to be edited includes:
performing quad-tree region division on the region to be edited to obtain a plurality of sub-regions;
and determining a sub-area to be edited in the sub-areas based on the area editing instruction.
Optionally, the editing the sub-area to be edited based on the area editing instruction, and updating and displaying the target map includes:
adjusting the attribute value of the subregion to be edited based on the region editing instruction;
and updating and displaying the target map based on the attribute value adjusted by the sub-area to be edited.
Optionally, the editing the sub-area to be edited based on the area editing instruction, and updating and displaying the target map includes:
editing the sub-area to be edited based on the area editing instruction, and updating and displaying the target map in a graphic processor.
The embodiment of the application also discloses a map editing device, which comprises:
the receiving and acquiring module is configured to receive a map editing instruction and acquire a target map based on the map editing instruction;
the receiving and determining module is configured to receive a region editing instruction and determine a region to be edited in the target map based on the region editing instruction;
the area dividing module is configured to divide the area to be edited to obtain a plurality of sub-areas to be edited;
and the editing and updating module is configured to edit the sub-area to be edited based on the area editing instruction, update and display the target map.
Optionally, the reception determination module is further configured to:
calling a brush tool based on the region editing instruction;
and selecting an area to be edited in the target map through the brush tool.
Optionally, the region dividing module is further configured to:
averagely dividing the region to be edited according to the preset number of sub-regions to obtain the sub-regions with the preset number;
and determining a sub-area to be edited in the sub-areas based on the area editing instruction.
Optionally, the region dividing module is further configured to:
performing quad-tree region division on the region to be edited to obtain a plurality of sub-regions;
and determining a sub-area to be edited in the sub-areas based on the area editing instruction.
Optionally, the edit updating module is further configured to:
adjusting the attribute value of the subregion to be edited based on the region editing instruction;
and updating and displaying the target map based on the attribute value adjusted by the sub-area to be edited.
Optionally, the edit updating module is further configured to:
editing the sub-area to be edited based on the area editing instruction, and updating and displaying the target map in a graphic processor.
The embodiment of the application also discloses a computing device, which comprises a memory, a processor and computer instructions stored on the memory and capable of running on the processor, wherein the processor executes the instructions to realize the steps of the map editing method.
The embodiment of the application also discloses a computer readable storage medium which stores computer instructions, and the instructions are executed by a processor to realize the steps of the map editing method.
The map editing method and the map editing device have the advantages that the area division is carried out on the area to be edited, the multiple sub-areas to be edited are obtained, then the editing processing is carried out on each sub-area to be edited, the processing process is small and large, the area to be edited is obtained by processing each sub-area to be edited, then the map is updated by processing each sub-area to be edited, the map editing fineness can be effectively improved, the application range is expanded, the resource consumption during the map editing processing is reduced, the broadband occupation in the map editing process is reduced, the effect of carrying out processing and effect display at the same time is achieved, and the editing processing speed, the efficiency and the using convenience are effectively improved.
Drawings
FIG. 1 is a schematic block diagram of a computing device according to an embodiment of the present application;
fig. 2 is a schematic flowchart illustrating steps of a map editing method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating steps of a map editing method according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating map area division according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating steps of a map editing method according to an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating map area division according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a map editing apparatus according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in one or more embodiments of the present specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first can also be referred to as a second and, similarly, a second can also be referred to as a first without departing from the scope of one or more embodiments of the present description. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
First, the noun terms to which one or more embodiments of the present invention relate are explained.
A brush: is one of the tools of image editing software.
A quadtree: also known as quaternions, are tree-like data structures with four sub-blocks at each node. Quadtrees are often used for analysis and classification of two-dimensional spatial data, which distinguishes the data into four quadrants, with the data range being square or rectangular or any other shape.
Graphics Processor (GPU): the system is also called a video memory, a display core, a visual processor and a display chip, and is a microprocessor which is specially used for image and graph related operation work on personal computers, workstations, game machines and some mobile devices (such as tablet computers, smart phones and the like).
Central Processing Unit (CPU): the computer system is a final execution unit for operation and control core, information processing and program operation of the computer system.
In the present application, a map editing method and apparatus, a computing device, and a computer-readable storage medium are provided, which are described in detail in the following embodiments one by one.
Fig. 1 is a block diagram illustrating a configuration of a computing device 100 according to an embodiment of the present specification. The components of the computing device 100 include, but are not limited to, memory 110 and processor 120. The processor 120 is coupled to the memory 110 via a bus 130 and a database 150 is used to store data.
Computing device 100 also includes access device 140, access device 140 enabling computing device 100 to communicate via one or more networks 160. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 140 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present description, the above-described components of computing device 100 and other components not shown in FIG. 1 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 1 is for purposes of example only and is not limiting as to the scope of the description. Those skilled in the art may add or replace other components as desired.
Computing device 100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 100 may also be a mobile or stationary server.
Wherein the processor 120 may perform the steps of the method shown in fig. 2. Fig. 2 is a schematic flowchart illustrating a map editing method according to an embodiment of the present application, including steps S210 to S240.
S210, receiving a map editing instruction, and acquiring a target map based on the map editing instruction.
The map editing instruction is an instruction sent by a user to start editing a map, the map editing instruction carries related information such as the type and the position of a target map, and the user can generate the map editing instruction in various ways such as clicking a corresponding option or inputting a corresponding code, and the application is not limited to the above.
The target map is a map to be edited selected by a user through a map editing instruction, the target map may be various types of maps, such as a topographic map, a coastal map, and the like, the target map is divided into a plurality of regions in advance, and for example, the target map may be divided into a nine-grid pattern including nine equal-area regions or a twenty-five-grid pattern including twenty-five equal-area regions in advance, and the application is not limited thereto.
The map editing processing speed can be improved by receiving the map editing instruction and acquiring the target map based on the map editing instruction.
S220, receiving an area editing instruction, and determining an area to be edited in the target map based on the area editing instruction.
The area editing instruction is an instruction sent by a user to begin editing an area to be edited in the map, and the area editing instruction carries relevant information such as the type and the position of the area to be edited.
The area to be edited is an area which needs to be edited in the target map specified in the area editing instruction, the number of the area to be edited may be one or multiple, and the application does not limit this.
Further, a brush tool may be invoked based on the region editing instructions; and selecting an area to be edited in the target map through the brush tool.
Specifically, the brush tool is one of editing processing tools in the image editing software, and the selected area of the brush tool may be in any shape, such as a circle, a square, a rectangle, and the like, which is not limited in this application. The number of the areas to be edited in the target map selected by the brush tool may be one or more, and the application is not limited. When the target map has a plurality of areas to be edited, all the areas to be edited can be selected at one time by the brush tool, and each area to be edited can be selected one by one, which is not limited in the present application.
For example, assuming that the target map is divided into 9 areas including a1-a9 in advance, wherein the areas to be edited are a2 and A3, the areas to be edited a2 and A3 are selected by a brush tool.
According to the method and the device, the area editing instruction is received, the area to be edited in the target map is determined based on the area editing instruction, the editing processing can be performed on partial areas in the target map in a targeted mode, the application range is wide, and the editing processing is more precise.
And S230, performing area division on the area to be edited to obtain a plurality of sub-areas to be edited.
The present embodiment may divide the area to be edited in the following two ways:
(1) averagely dividing the region to be edited according to the preset number of sub-regions to obtain the sub-regions with the preset number; and determining a sub-area to be edited in the sub-areas based on the area editing instruction.
The preset number of the sub-areas of each to-be-edited area may be the same or different, which may be determined according to actual situations, and is not limited in this application.
For example, assuming that the preset number of sub-regions of the region to be edited A2 is 16, the region to be edited is divided into sixteen equal parts, and 16 sub-regions to be edited including a201-a216 are obtained.
(2) Performing quad-tree region division on the region to be edited to obtain a plurality of sub-regions; and determining a sub-area to be edited in the sub-areas based on the area editing instruction.
The area to be edited is subjected to quad-tree area division, namely, the quad-tree is adopted to uniformly divide the area to be edited according to the hierarchical relationship, so that the area to be edited under the same quad-tree branch can be merged through the hierarchical relationship, the number of the area to be edited can be effectively reduced within a certain execution size range, and the GPU execution efficiency is optimized.
In this embodiment, the area to be edited is divided into a plurality of sub-areas to be edited, and then the sub-areas to be edited are edited, so that the objects to be edited are further refined, the fineness of editing is increased, and the processing effect is improved.
S240, editing the sub-area to be edited based on the area editing instruction, and updating and displaying the target map.
Further, the attribute value of the sub-area to be edited can be adjusted based on the area editing instruction; and updating and displaying the target map based on the attribute value adjusted by the sub-area to be edited.
The attribute value of the sub-region to be edited may be a terrain height, a terrain type, a terrain condition, and the like of the sub-region to be edited, which may be determined according to a specific situation, and the present application is not limited thereto.
Taking the height of the attribute value of the sub-region to be edited as an example, assuming that the terrain of the sub-region to be edited is a mountain and the original height of the sub-region to be edited is 800 meters, adjusting the height of the mountain of the sub-region to be edited to 850 meters based on the region editing instruction, then increasing the height of the sub-region to be edited by 50 meters after selecting the sub-region to be edited by using a brush tool, thus obtaining the sub-region including the mountain with the height of 850 meters, and updating the target map.
It should be noted that, in this embodiment, the sub-area to be edited is edited based on the area editing instruction, and the target map is updated and displayed in the graphics processor.
Because the capacities of areas to be edited of a map in the prior art are large and are often more than 8k, that is, the area of the area to be edited is often more than 8 x 1024, all data of the area to be edited must be loaded first when the map is edited, but due to hardware limitation, a map exceeding 16k cannot be created in the process of editing the map at present, that is, two or more areas to be edited in the map cannot be edited simultaneously, the editing and the display cannot be performed simultaneously in the process of editing the area to be edited in the map, the map must be transmitted to a central processing unit after one editing, and the use limitation is large. However, in the embodiment, the area to be edited is divided into a plurality of sub-areas, and then the sub-areas to be edited are edited, so that simple operations such as terrain height change can be edited and displayed at the same time, and only when complex operations are performed, the operations need to be transmitted to the central processing unit, for example, a house is added at a certain position in a map, and thus, the speed, the efficiency and the use convenience of editing processing can be effectively improved.
The map editing method provided by the embodiment divides the target map into the plurality of areas, divides the area to be edited specified in the target map into the plurality of sub-areas again, and edits the sub-areas to be edited, so that the occupied bandwidth of the edited data can be effectively reduced, the space resources occupied by the editing process can be saved, the sub-areas to be edited are edited in real time in the graphic processor, and the edited content is displayed in real time, the problem that data cannot be input and output in the graphic processor at the same time is solved, and the map editing effect and the map editing fineness are improved.
As shown in fig. 3, the present embodiment discloses a map editing method, which includes steps S310 to S360, and the present embodiment is described by taking a map as an example.
S310, receiving a map editing instruction, and acquiring a target map based on the map editing instruction.
In the embodiment, the received map editing instruction is 'selecting xx basin topographic map for editing', and a target map-xx basin topographic map is obtained based on the map editing instruction. Wherein xx basin topographic maps include four regions including X1-X4, as shown in fig. 4.
S320, receiving a region editing instruction, calling a brush tool based on the region editing instruction, and selecting a region to be edited in the target map through the brush tool.
In this embodiment, the received region editing instruction is "reduce the altitude of the X2 region in the xx basin topographic map by 10 meters", a brush tool is called based on the region editing instruction, and an X2 region in the xx basin topographic map is selected as a region to be edited by the brush tool, referring to fig. 4, where a circular region in fig. 4 represents the region selected by the brush tool.
S330, averagely dividing the area to be edited according to the preset number of the sub-areas to obtain the sub-areas with the preset number.
In the present embodiment, the preset number of sub-regions is 16, and then the region X2 in the xx basin topographic map is divided into 16 sub-regions including X201 to X216.
S340, determining a sub-area to be edited in the sub-area based on the area editing instruction.
Among the 16 sub-regions in the present embodiment, sub-regions X210, X211, X214, and X215 are sub-regions to be edited, see fig. 4.
And S350, adjusting the attribute value of the sub-region to be edited based on the region editing instruction.
In the present embodiment, the altitude values of the sub-regions X210, X211, X214, and X215 to be edited are reduced by 10.
And S360, updating and displaying the target map in a graphic processor based on the attribute value adjusted by the sub-area to be edited.
In this embodiment, after the height of the sub-regions X210, X211, X214, and X215 to be edited is reduced by 10, the change condition of the sub-regions to be edited is displayed in real time in the graphics processor, and the xx basin topographic map is updated.
According to the map editing method, the area of the area to be edited is divided to obtain the multiple sub-areas to be edited, then each sub-area to be edited is edited, the processing process is small and large, each sub-area to be edited is processed to obtain the area to be edited, and then each area to be edited is processed to update the map.
As shown in fig. 5, the present embodiment discloses a map editing method, which includes steps S510 to S560, and the coast map is taken as an example for explanation in the present embodiment.
And S510, receiving a map editing instruction, and acquiring a target map based on the map editing instruction.
The received map editing instruction in the present embodiment is "select yy regional coast map for editing", and the yy regional coast map, which is the target map, is acquired based on the map editing instruction. The yy region coast map includes two areas, Y1 and Y2, as shown in fig. 6.
S520, receiving a region editing instruction, calling a brush tool based on the region editing instruction, and selecting a region to be edited in the target map through the brush tool.
In the present embodiment, the received area editing instruction is "increase the sea level height of the Y1 and Y2 areas in the yy region coastline by 5 meters", a brush tool is called based on the area editing instruction, and the Y1 and Y2 areas in the yy region coastline are selected as the areas to be edited by the brush tool, see fig. 6, where the circular areas in fig. 6 represent the areas selected by the brush tool.
S530, the area to be edited is divided into quad-tree areas, and a plurality of sub-areas are obtained.
In this embodiment, a region to be edited Y1 is divided into four regions to be edited, i.e., four sub-regions to be edited, including Y101-Y104, and a region to be edited Y2 is divided into four regions to be edited, i.e., four sub-regions to be edited, including Y201-Y204.
And S540, determining a sub-area to be edited in the sub-area based on the area editing instruction.
In this embodiment, the sub-regions Y102, Y104, and Y203 are to-be-edited sub-regions, see fig. 6, wherein the sub-regions Y102 and Y104 to be edited are merged based on the hierarchical relationship of the three to-be-edited sub-regions to obtain the to-be-edited sub-region Y11.
And S550, adjusting the attribute value of the sub-region to be edited based on the region editing instruction.
The sea level height of the sub-areas Y11 and Y203 to be edited is increased by 5 in this embodiment.
And S560, updating and displaying the target map in a graphic processor based on the attribute value adjusted by the sub-region to be edited.
In this embodiment, after the sea level height of the sub-areas Y11 and Y203 to be edited is increased by 5, the change of the sub-areas to be edited is displayed in real time in the graphics processor, and the yy region coast map is updated.
According to the map editing method, the area of the area to be edited is divided to obtain the multiple sub-areas to be edited, then each sub-area to be edited is edited, the processing process is small and large, each sub-area to be edited is processed to obtain the area to be edited, and then each area to be edited is processed to update the map.
As shown in fig. 7, the present embodiment provides a map editing apparatus including:
a receiving and acquiring module 710 configured to receive a map editing instruction and acquire a target map based on the map editing instruction;
a receiving determination module 720, configured to receive a region editing instruction, and determine a region to be edited in the target map based on the region editing instruction;
the region dividing module 730 is configured to perform region division on the region to be edited to obtain a plurality of sub regions to be edited;
and the editing and updating module 740 is configured to edit the sub-area to be edited based on the area editing instruction, update and display the target map.
Optionally, the receiving determining module 720 is further configured to:
calling a brush tool based on the region editing instruction;
and selecting an area to be edited in the target map through the brush tool.
Optionally, the area dividing module 730 is further configured to:
averagely dividing the region to be edited according to the preset number of sub-regions to obtain the sub-regions with the preset number;
and determining a sub-area to be edited in the sub-areas based on the area editing instruction.
Optionally, the area dividing module 730 is further configured to:
performing quad-tree region division on the region to be edited to obtain a plurality of sub-regions;
and determining a sub-area to be edited in the sub-areas based on the area editing instruction.
Optionally, the edit updating module 740 is further configured to:
adjusting the attribute value of the subregion to be edited based on the region editing instruction;
and updating and displaying the target map based on the attribute value adjusted by the sub-area to be edited.
Optionally, the edit updating module 740 is further configured to:
editing the sub-area to be edited based on the area editing instruction, and updating and displaying the target map in a graphic processor.
The map editing device provided by the application, through treating the regional division of editing, obtain a plurality of subregion of waiting to edit, the subregion is edited and is handled every to wait to edit again respectively, the processing procedure is by little and big, treat every subregion of waiting to edit and obtain the subregion of waiting to edit, handle the renewal map to every subregion of waiting to edit again, can effectively improve the fineness of map editing, expand application scope, reduce the resource consumption when map editing handles, reach the effect that processing and effect show go on simultaneously.
An embodiment of the present application further provides a computing device, including a memory, a processor, and computer instructions stored on the memory and executable on the processor, where the processor executes the instructions to implement the following steps:
receiving a map editing instruction, and acquiring a target map based on the map editing instruction;
receiving a region editing instruction, and determining a region to be edited in the target map based on the region editing instruction;
dividing the region to be edited into a plurality of sub regions to be edited;
and editing the sub-area to be edited based on the area editing instruction, and updating and displaying the target map.
An embodiment of the present application also provides a computer readable storage medium storing computer instructions, which when executed by a processor, implement the steps of the map editing method as described above.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above-mentioned map editing method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the above-mentioned map editing method.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer memory, Read-only memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and the practical application, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (14)

1. A map editing method, comprising:
receiving a map editing instruction, and acquiring a target map based on the map editing instruction;
receiving a region editing instruction, and determining a region to be edited in the target map based on the region editing instruction;
dividing the region to be edited into a plurality of sub regions to be edited;
and editing the sub-area to be edited based on the area editing instruction, and updating and displaying the target map.
2. The map editing method according to claim 1, wherein the determining of the area to be edited in the target map based on the area editing instruction comprises:
calling a brush tool based on the region editing instruction;
and selecting an area to be edited in the target map through the brush tool.
3. The map editing method according to claim 1, wherein the dividing the area to be edited into regions to obtain a plurality of sub-regions to be edited includes:
averagely dividing the region to be edited according to the preset number of sub-regions to obtain the sub-regions with the preset number;
and determining a sub-area to be edited in the sub-areas based on the area editing instruction.
4. The map editing method according to claim 1, wherein the dividing the area to be edited into regions to obtain a plurality of sub-regions to be edited includes:
performing quad-tree region division on the region to be edited to obtain a plurality of sub-regions;
and determining a sub-area to be edited in the sub-areas based on the area editing instruction.
5. The map editing method according to claim 1, wherein the editing the sub-area to be edited based on the area editing instruction, updating and displaying the target map comprises:
adjusting the attribute value of the subregion to be edited based on the region editing instruction;
and updating and displaying the target map based on the attribute value adjusted by the sub-area to be edited.
6. The map editing method according to claim 1, wherein the editing the sub-area to be edited based on the area editing instruction, updating and displaying the target map comprises:
editing the sub-area to be edited based on the area editing instruction, and updating and displaying the target map in a graphic processor.
7. A map editing apparatus, comprising:
the receiving and acquiring module is configured to receive a map editing instruction and acquire a target map based on the map editing instruction;
the receiving and determining module is configured to receive a region editing instruction and determine a region to be edited in the target map based on the region editing instruction;
the area dividing module is configured to divide the area to be edited to obtain a plurality of sub-areas to be edited;
and the editing and updating module is configured to edit the sub-area to be edited based on the area editing instruction, update and display the target map.
8. The map editing apparatus of claim 7, wherein the reception determination module is further configured to:
calling a brush tool based on the region editing instruction;
and selecting an area to be edited in the target map through the brush tool.
9. The map editing apparatus of claim 7, wherein the region division module is further configured to:
averagely dividing the region to be edited according to the preset number of sub-regions to obtain the sub-regions with the preset number;
and determining a sub-area to be edited in the sub-areas based on the area editing instruction.
10. The map editing apparatus of claim 7, wherein the region division module is further configured to:
performing quad-tree region division on the region to be edited to obtain a plurality of sub-regions;
and determining a sub-area to be edited in the sub-areas based on the area editing instruction.
11. The map editing apparatus of claim 7, wherein the edit update module is further configured to:
adjusting the attribute value of the subregion to be edited based on the region editing instruction;
and updating and displaying the target map based on the attribute value adjusted by the sub-area to be edited.
12. The map editing apparatus of claim 7, wherein the edit update module is further configured to:
editing the sub-area to be edited based on the area editing instruction, and updating and displaying the target map in a graphic processor.
13. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-6 when executing the instructions.
14. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 6.
CN202010500195.1A 2020-06-04 2020-06-04 Map editing method and device Pending CN111617483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010500195.1A CN111617483A (en) 2020-06-04 2020-06-04 Map editing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010500195.1A CN111617483A (en) 2020-06-04 2020-06-04 Map editing method and device

Publications (1)

Publication Number Publication Date
CN111617483A true CN111617483A (en) 2020-09-04

Family

ID=72267331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010500195.1A Pending CN111617483A (en) 2020-06-04 2020-06-04 Map editing method and device

Country Status (1)

Country Link
CN (1) CN111617483A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112085856A (en) * 2020-09-11 2020-12-15 深圳市大富网络技术有限公司 Solid-state terrain editing method and device, electronic equipment and computer storage medium
CN113797546A (en) * 2021-09-18 2021-12-17 珠海金山网络游戏科技有限公司 Resource processing method and device
CN114968045A (en) * 2022-07-27 2022-08-30 广州物大人科技有限责任公司 Map planning method, system and computer readable storage medium
WO2024051621A1 (en) * 2022-09-05 2024-03-14 北京有竹居网络技术有限公司 Terrain editing method and apparatus, and terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107590863A (en) * 2017-09-19 2018-01-16 黄奇坡 A kind of whole people 3D maps roam edit methods in high precision
CN109448078A (en) * 2018-10-19 2019-03-08 珠海金山网络游戏科技有限公司 A kind of image editing system, method and apparatus
US20190130625A1 (en) * 2017-11-01 2019-05-02 Mapbox, Inc. Expression Interpretation Engine for Computer Map Visualizations
CN109821242A (en) * 2019-01-16 2019-05-31 福建省天奕网络科技有限公司 Map visualization edit methods and its system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107590863A (en) * 2017-09-19 2018-01-16 黄奇坡 A kind of whole people 3D maps roam edit methods in high precision
US20190130625A1 (en) * 2017-11-01 2019-05-02 Mapbox, Inc. Expression Interpretation Engine for Computer Map Visualizations
CN109448078A (en) * 2018-10-19 2019-03-08 珠海金山网络游戏科技有限公司 A kind of image editing system, method and apparatus
CN109821242A (en) * 2019-01-16 2019-05-31 福建省天奕网络科技有限公司 Map visualization edit methods and its system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112085856A (en) * 2020-09-11 2020-12-15 深圳市大富网络技术有限公司 Solid-state terrain editing method and device, electronic equipment and computer storage medium
CN113797546A (en) * 2021-09-18 2021-12-17 珠海金山网络游戏科技有限公司 Resource processing method and device
CN113797546B (en) * 2021-09-18 2024-02-23 珠海金山数字网络科技有限公司 Resource processing method, device, computing equipment and computer readable storage medium
CN114968045A (en) * 2022-07-27 2022-08-30 广州物大人科技有限责任公司 Map planning method, system and computer readable storage medium
WO2024051621A1 (en) * 2022-09-05 2024-03-14 北京有竹居网络技术有限公司 Terrain editing method and apparatus, and terminal and storage medium

Similar Documents

Publication Publication Date Title
CN111617483A (en) Map editing method and device
CN110570507A (en) Image rendering method and device
CN110990516B (en) Map data processing method, device and server
CN110544291A (en) Image rendering method and device
CN112569602B (en) Method and device for constructing terrain in virtual scene
CN105144243A (en) Data visualization
CN110297838B (en) Terrain material editing method, device, computing equipment and storage medium
CN110570506A (en) Map resource management method and device, computing equipment and storage medium
CN110349267B (en) Method and device for constructing three-dimensional heat model
CN111111179A (en) Unity-based graphics resource loading method and device
CN111617480A (en) Point cloud rendering method and device
CN110555816B (en) Picture processing method and device, computing equipment and storage medium
CN115830266A (en) Game three-dimensional scene graph processing method and device
US11048670B2 (en) Node layout determining method and apparatus, computing device, and computer readable medium
CN110990104B (en) Texture rendering method and device based on Unity3D
CN114470782A (en) Region processing method and device
CN110298903B (en) Curve editing method and device, computing equipment and storage medium
CN112070874A (en) Image rendering method and device
Kim et al. Design and implementation strategy of a parallel agent-based Schelling model
CN111784807A (en) Virtual character drawing method and device
CN110598056A (en) Node layout determination method and device
CN112604276B (en) Terrain modification method and terrain modification device
CN116415322A (en) Method and device for generating mobile objects in batches
CN116109745A (en) Object rendering method and device based on instantiation technology
CN111617482B (en) Model mapping editing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Applicant after: Zhuhai Jinshan Digital Network Technology Co.,Ltd.

Address before: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Applicant before: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.