WO2021098361A1 - 地形图编辑方法、装置、电子设备及计算机可读介质 - Google Patents
地形图编辑方法、装置、电子设备及计算机可读介质 Download PDFInfo
- Publication number
- WO2021098361A1 WO2021098361A1 PCT/CN2020/115680 CN2020115680W WO2021098361A1 WO 2021098361 A1 WO2021098361 A1 WO 2021098361A1 CN 2020115680 W CN2020115680 W CN 2020115680W WO 2021098361 A1 WO2021098361 A1 WO 2021098361A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- topographic map
- user
- editing
- texture material
- editing operation
- Prior art date
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/60—Generating 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
- A63F13/63—Generating 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 by the player, e.g. authoring using a level editor
Definitions
- This application relates to the field of computer technology. Specifically, this application relates to a topographic map editing method, device, electronic equipment, and computer-readable medium.
- This application provides a topographic map editing method, device, electronic equipment, and computer readable medium, which can solve the problem that the terrain in the game scene in the prior art can only be drawn manually by artists, and the work efficiency is low, and non-artists cannot implement games.
- the problem of terrain editing is a problem that the terrain in the game scene in the prior art can only be drawn manually by artists, and the work efficiency is low, and non-artists cannot implement games.
- this application provides a topographic map editing method, which includes:
- obtaining the parameter information of the topographic map to be drawn includes:
- parameter information of the topographic map to be drawn based on the parameter setting operation includes the size parameters and quantity parameters of the topographic blocks constituting the topographic map to be drawn;
- Determine the size information of the topographic map to be drawn based on the parameter information including:
- the size information of the topographic map to be drawn is determined.
- the method further includes:
- a corresponding editing operation is performed on the edited topographic map based on the second target texture material.
- the corresponding editing operation is performed on the edited topographic map based on the second target texture material, including:
- the second target texture material and the used target texture material are fused to obtain the texture editing result of the topographic map to be drawn;
- the used target texture material is the target texture material in the edited topographic map.
- each terrain block corresponds to a preset number of grids; when the first editing operation is a height editing operation, the initial topographic map corresponding to the first editing operation is performed based on the first target texture material Edit, including:
- the method further includes:
- the action information includes sliding up or sliding down;
- Adjust the vertex position according to the adjustment method corresponding to the height editing operation including:
- the method further includes:
- Adjust the vertex position according to the adjustment method corresponding to the height editing operation including:
- the adjustment height is determined according to the motion range information, and the vertex position is adjusted according to the adjustment height.
- receiving the user's first editing operation for the initial topographic map includes:
- the method also includes:
- the display parameter setting operation determine the shape and size of the editing area corresponding to the editing tool on the initial topographic map.
- this application provides a topographic map editing device, which includes:
- the obtaining module is configured to obtain the parameter information of the topographic map to be drawn when the user's topographic map drawing request is received;
- the display module is configured to determine the size information of the topographic map to be drawn based on the parameter information, and display the initial topographic map corresponding to the size information to the user;
- the determining module is configured to receive the user's texture material selection operation, and based on the texture material selection operation, determine the corresponding first target texture material;
- the editing module is configured to edit the initial topographic map corresponding to the first editing operation based on the first target texture material when receiving the first editing operation of the user on the initial topographic map.
- this application provides an electronic device, which includes:
- One or more processors are One or more processors;
- One or more application programs where one or more application programs are stored in a memory and configured to be executed by one or more processors, and one or more programs are configured to execute any of the programs according to the first aspect or the first aspect;
- a possible implementation is shown in the topographic map editing method.
- the present application provides a computer-readable medium on which a computer program is stored.
- the program is executed by a processor, the first aspect of the present application or any possible implementation manner of the first aspect is implemented.
- the topographic map editing method is implemented.
- This application provides a topographic map editing method, device, electronic equipment, and computer readable medium.
- the method includes: when receiving a user's topographic map drawing request, acquiring parameter information of the topographic map to be drawn; and determining the to-be-drawn topographic map based on the parameter information.
- Draw the size information of the topographic map and display the initial topographic map corresponding to the size information to the user; receive the user’s texture material selection operation, and based on the texture material selection operation, determine the corresponding first target texture material;
- the initial topographic map is edited corresponding to the first editing operation based on the first target texture material.
- This application can edit the topographic map through simple operations, without the participation of professional artists, and the operation is convenient.
- FIG. 1 is a flowchart of a topographic map editing method provided by an embodiment of this application
- Figure 2 is a flowchart of a topographic map editing method provided by an embodiment of the application
- FIG. 3 is a schematic structural diagram of a topographic map editing device provided by an embodiment of the application.
- FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
- the subject of execution of the technical solution of this application is computer equipment, including but not limited to personal computers, notebook computers, tablet computers, smart phones, etc.
- the computer device can run alone to realize this application, or it can access the network and realize this application through interactive operations with other computer devices in the network.
- the network where the computer equipment is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, and a VPN network.
- the embodiment of the present application provides a topographic map editing method. As shown in FIG. 1, the method includes:
- Step S101 when receiving a user's topographic map drawing request, obtain parameter information of the to-be-drawn topographic map;
- the technical solution of this application can be implemented in the form of a terrain editor, and can be used to draw terrain maps in game scenes, including flat land, hills, mountains, basins, and other terrains, which are not limited in this application.
- the user Upon receiving the user's topographic map drawing request, the user is presented with the topographic map drawing interface, and the parameter information related to the to-be-drawn topographic map input by the user in the designated area is received, so that the parameter information can be subsequently used to draw the topographic map.
- Step S102 Determine the size information of the topographic map to be drawn based on the parameter information, and display the initial topographic map corresponding to the size information to the user;
- the parameter information may include parameter information related to the size of the topographic map to be drawn. Based on the parameter information, the size information of the topographic map to be drawn can be determined, and the corresponding initial topographic map can be determined according to the size information, and displayed to the user.
- Step S103 receiving the user's texture material selection operation, and determining the corresponding first target texture material based on the texture material selection operation;
- a texture material library is established in advance, which includes a variety of texture materials of different styles.
- a user's texture material selection operation is received, a list of texture materials is displayed, and the corresponding first target texture material is determined based on the user's selection operation.
- Step S104 When receiving the user's first editing operation on the initial topographic map, edit the initial topographic map corresponding to the first editing operation based on the first target texture material.
- the user can select the first target texture material by clicking and superimpose it on the initial topographic map, and perform editing operations on the initial topographic map after the first target texture material is superimposed, among which,
- the first editing operation may be a height editing operation of the topographic map, etc.
- the topographic map editing method obtains the parameter information of the topographic map to be drawn when receiving a user's topographic map drawing request; determines the size information of the topographic map to be drawn based on the parameter information, and corresponds the size information
- the initial topographic map is displayed to the user; the user’s texture material selection operation is received, and the corresponding first target texture material is determined based on the texture material selection operation; when the user’s first editing operation for the initial topographic map is received, based on the first
- the target texture material edits the initial topographic map corresponding to the first editing operation.
- This application can edit the topographic map through simple operations, without the participation of professional artists, and the operation is convenient.
- Another embodiment of the present application provides a method for editing a topographic map. As shown in FIG. 2, the method includes:
- Step S201 when receiving the user's topographic map drawing request, obtain the parameter information of the to-be-drawn topographic map
- the technical solution of the present application can be used to draw topographic maps in game scenes, including terrains such as flat land, hills, mountains, and basins.
- the user Upon receiving the user's topographic map drawing request, the user is presented with the topographic map drawing interface, and the parameter information related to the to-be-drawn topographic map input by the user in the designated area is received, so that the parameter information can be subsequently used to draw the topographic map.
- Step S202 Determine the size information of the topographic map to be drawn based on the parameter information, and display the initial topographic map corresponding to the size information to the user;
- the parameter information may include parameter information related to the size of the topographic map to be drawn. Based on the parameter information, the size information of the topographic map to be drawn can be determined, and the corresponding initial topographic map can be determined according to the size information, and displayed to the user.
- obtaining parameter information of the topographic map to be drawn includes:
- parameter information of the topographic map to be drawn based on the parameter setting operation includes the size parameters and quantity parameters of the topographic blocks constituting the topographic map to be drawn;
- Determine the size information of the topographic map to be drawn based on the parameter information including:
- the size information of the topographic map to be drawn is determined.
- the topographic map to be drawn can be composed of multiple topographic blocks.
- the initial topographic block is displayed.
- the size and number of the initial topographic block can be preset, and then the size of the initial topographic block can be modified according to the user's parameter setting operation.
- Quantity, the size and quantity parameters of the terrain block to be drawn are the same as the initial terrain block size and quantity.
- the corresponding number of terrain blocks are spliced to determine the topographic map to be drawn.
- Size Information In the embodiment of the present application, the size of the topographic map to be drawn can be determined according to the user's setting of the size and number of the topographic blocks. The size setting is more flexible and can meet the user's different size requirements for the topographic map to be drawn.
- Step S203 receiving the user's texture material selection operation, and determining the corresponding first target texture material based on the texture material selection operation;
- a texture material library is established in advance, which includes a variety of texture materials of different styles.
- a user's texture material selection operation is received, a list of texture materials is displayed, and the corresponding first target texture material is determined based on the user's selection operation.
- Step S204 When the user's first editing operation on the initial topographic map is received, edit the initial topographic map corresponding to the first editing operation based on the first target texture material.
- the user can select the first target texture material by clicking and superimpose it on the initial topographic map, and perform editing operations on the initial topographic map after the first target texture material is superimposed, among which,
- the first editing operation may be a height editing operation of the topographic map, etc.
- each terrain block corresponds to a preset number of grids; when the first editing operation is a height editing operation, the initial topographic map corresponding to the first editing operation is performed based on the first target texture material Edit, including:
- the height editing operation of the topographic map can be further performed to show the user the undulating terrain state.
- Each terrain block can correspond to a preset number of square grids, and the height can be adjusted by adjusting the vertex position of the grid of the region corresponding to the height editing operation.
- the vertex position of the grid is the four corners of the square in the O-xyz coordinate system The coordinate position of the corresponding point in the middle.
- the adjustment method corresponding to the height editing operation can be preset, for example, the vertex position is adjusted upward and the vertex position is adjusted downward.
- the position of the grid vertices can also be adjusted through the height editing operation to achieve a flat and smooth editing operation.
- the adjustment method corresponding to the height editing operation is set to adjust the vertex position upward, and the user clicks the "Edit height” button to adjust the vertex position of the grid of the user trigger area upward in the topographic map to be edited, showing an upward bulge shape Topographic map.
- the user-triggered area adjusts the position of the grid vertices according to the adjustment method corresponding to the height editing operation.
- the technical solution of the present application can also determine the adjustment method of the grid vertex position according to the action information corresponding to the height editing operation, and the specific implementation method is as follows:
- the method further includes:
- the action information includes sliding up or sliding down;
- Adjust the vertex position according to the adjustment method corresponding to the height editing operation including:
- the action information can be determined by identifying the start and end positions of the user's height editing operation.
- the vertex position is adjusted upwards according to the preset height, and the height editing operation corresponds to The state of the area is uplift; when the user's action information is recognized as sliding down, the vertex position is adjusted downward according to the preset height, and the state of the area corresponding to the height editing operation is concave down; when the action information is first When sliding upwards and then downwards, the region corresponding to the height editing operation will first bulge upwards and then sag downwards.
- sliding upwards can include sliding upwards, sliding upper left, sliding upper right, etc.
- sliding downwards includes sliding directly downwards, sliding lower left, sliding lower right, etc. This application is not limited, and the details are not limited in this application. According to the direction of the action, the specific shape of the upward bulge or the downward depression is determined.
- the adjustment height of the grid vertex can also be determined according to the amplitude of the action.
- the specific implementation is as follows:
- the method further includes:
- Adjust the vertex position according to the adjustment method corresponding to the height editing operation including:
- the specific value of height adjustment can be determined in two ways: one is to preset the preset height value corresponding to each editing operation of the user, for example, preset the preset value corresponding to each editing operation of the user.
- the height value is a.
- the height value of the grid vertex of the region corresponding to the height editing operation is adjusted upward as a; the other way is to identify the action information Start position and end position, determine the motion range information according to the start position and end position, the motion range information can be the distance between the start position and the end position, the corresponding relationship between the distance and the height is preset, and the height editing operation is determined according to the distance For the corresponding height value, adjust the grid vertex of the region corresponding to the height editing operation upward to the corresponding height value.
- Step S205 when the user's material switching operation is received, determine the second target texture material corresponding to the material switching operation;
- the material switching operation may specifically be a selection operation for the second target texture material, and the second target texture material is selected in a pre-established material texture library according to the selection operation.
- Step S206 When receiving the second editing operation of the edited topographic map by the user, perform a corresponding editing operation on the edited topographic map based on the second target texture material.
- the edited topographic map is edited according to the second target texture material selected by the user.
- the second editing operation may include a texture editing operation, a height editing operation, and the like.
- the corresponding editing operation is performed on the edited topographic map based on the second target texture material, including:
- the second target texture material and the used target texture material are fused to obtain the texture editing result of the topographic map to be drawn; among them, the used target texture material
- the target texture material is the target texture material in the edited topographic map.
- the sum of the weights corresponding to each target texture material is 1.
- the weight corresponding to the target texture material gradually Increase, the color value of each pixel in the topographic map after the texture editing is completed is the result of the fusion of the various target textures.
- the weight map texture technology can be used, and the specific fusion method can be achieved by formula (1):
- Final is the color value of each pixel after fusion
- R, G, B, and A are the values of pixels in WeightMap respectively, as the weight of each texture material, each weight occupies a color channel
- the detailMap3 respectively represents the pixel value in each texture material (in formula (1), the fusion of four texture materials is taken as an example).
- the default value of the weight is zero.
- the weight corresponding to detailMap2 and detailMap3 is zero.
- the specific realization process of the height editing operation on the edited topographic map is the same as the realization process of performing the height editing operation on the initial topographic map based on the first target texture material.
- receiving the user's first editing operation on the initial topographic map includes: receiving the user's editing operation on the initial topographic map through an editing tool;
- the method also includes:
- the display parameter setting operation determine the shape and size of the editing area corresponding to the editing tool on the initial topographic map.
- editing tools can be displayed in the form of "painting brush", and the shape and size of the "painting brush” can be set according to the user's display parameter setting operations.
- the shape of the "painting brush” can be round or square.
- the shape and size of the corresponding response area can be determined by the shape and size of the "brush” set by the user.
- the topographic map's height change effects such as upward bulge, downward depression, flatness, and smoothness can also be realized by the movement of the "brush” to achieve the texture change effects of the topographic map such as disturbance and corrosion.
- the topographic map editing method obtains the parameter information of the topographic map to be drawn when receiving a user's topographic map drawing request; determines the size information of the topographic map to be drawn based on the parameter information, and corresponds the size information
- the initial topographic map is displayed to the user; the user’s texture material selection operation is received, and the corresponding first target texture material is determined based on the texture material selection operation; when the user’s first editing operation for the initial topographic map is received, based on the first
- the target texture material edits the initial topographic map corresponding to the first editing operation.
- This application can edit the topographic map through simple operations, without the participation of professional artists, and the operation is convenient.
- the embodiment of the present disclosure also provides a topographic map editing device 20.
- the topographic map editing device 20 includes:
- the obtaining module 21 is configured to obtain parameter information of the to-be-drawn topographic map when receiving a user's topographic map drawing request;
- the display module 22 is configured to determine the size information of the topographic map to be drawn based on the parameter information, and display the initial topographic map corresponding to the size information to the user;
- the determining module 23 is configured to receive the user's texture material selection operation, and based on the texture material selection operation, determine the corresponding first target texture material;
- the editing module 24 is configured to edit the initial topographic map corresponding to the first editing operation based on the first target texture material when receiving the first editing operation of the user on the initial topographic map.
- the obtaining module 21 is configured as:
- parameter information of the topographic map to be drawn based on the parameter setting operation includes the size parameters and quantity parameters of the topographic blocks constituting the topographic map to be drawn;
- the display module 22 is configured to determine the size information of the topographic map to be drawn based on the size parameter and the number parameter of the topographic block.
- the editing module 24 includes a switching unit and an editing unit;
- the switching unit is configured to, after editing the initial topographic map corresponding to the first editing operation based on the first target texture material, determine the second target texture material corresponding to the material switching operation if the user's material switching operation is received;
- the editing unit is configured to perform a corresponding editing operation on the edited topographic map based on the second target texture material when receiving a second editing operation of the edited topographic map from the user.
- the editing unit is configured to assign the second target texture material based on the weight of the second target texture material and the weight of the used target texture material. Perform fusion processing with the used target texture material to obtain the texture editing result of the topographic map to be drawn;
- the used target texture material is the target texture material in the edited topographic map.
- each terrain block corresponds to a preset number of grids; when the first editing operation is a height editing operation, the editing module 24 further includes an overlay unit, a determination unit, and an adjustment unit;
- the superimposing unit is configured to superimpose the first target texture material on the initial topographic map to obtain the topographic map to be edited;
- the determining unit is configured to determine the vertex position of the grid corresponding to the height editing operation in the topographic map to be edited;
- the adjustment unit is configured to adjust the position of the vertex according to the adjustment mode corresponding to the height editing operation.
- the determining unit is configured as:
- the action information includes sliding up or sliding down;
- the adjustment unit is configured as:
- the editing module 24 further includes an identification unit
- the recognition unit is configured to recognize the start position and the end position of the altitude editing operation in the topographic map to be edited, and determine the motion range information according to the start position and the end position;
- the adjustment unit is configured to determine the adjustment height according to the motion range information, and adjust the position of the vertex according to the adjustment height.
- the editing unit is configured as:
- the topographic map editing device 20 further includes a receiving module configured to:
- the display parameter setting operation determine the shape and size of the editing area corresponding to the editing tool on the initial topographic map.
- the topographic map editing device of the embodiment of the present disclosure can execute the topographic map editing method provided by the embodiment of the present disclosure, and its implementation principle is similar.
- the actions performed by each module in the topographic map editing device of the embodiment of the present disclosure are the same as
- the steps in the topographic map editing method in each embodiment of the present disclosure correspond to the steps.
- For the detailed function description of each module of the topographic map editing device please refer to the description of the corresponding topographic map editing method shown in the preceding text, here No longer.
- the topographic map editing device acquires the parameter information of the topographic map to be drawn when receiving the topographic map drawing request of the user; determines the size information of the topographic map to be drawn based on the parameter information, and corresponds the size information
- the initial topographic map is displayed to the user; the user’s texture material selection operation is received, and the corresponding first target texture material is determined based on the texture material selection operation; when the user’s first editing operation for the initial topographic map is received, based on the first
- the target texture material edits the initial topographic map corresponding to the first editing operation.
- This application can edit the topographic map through simple operations, without the participation of professional artists, and the operation is convenient.
- FIG. 4 shows a schematic structural diagram of an electronic device 600 suitable for implementing embodiments of the present disclosure.
- the executive body of the technical solutions of the embodiments of the present disclosure is computer equipment, which may include, but is not limited to, mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), Mobile terminals such as vehicle-mounted terminals (for example, vehicle-mounted navigation terminals) and fixed terminals such as digital TVs, desktop computers, and the like.
- the electronic device shown in FIG. 4 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
- the electronic equipment includes a memory and a processor, where the processor here may be referred to as the processing device 601 described below, and the memory may include a read-only memory (ROM) 602, a random access memory (RAM) 603, and a storage device below. At least one of 608, as follows:
- the electronic device 600 may include a processing device (such as a central processing unit, a graphics processor, etc.) 601, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 602 or from a storage device 608.
- the program in the memory (RAM) 603 executes various appropriate actions and processing.
- various programs and data required for the operation of the electronic device 600 are also stored.
- the processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604.
- An input/output (I/O) interface 605 is also connected to the bus 604.
- the following devices can be connected to the I/O interface 605: including input devices 606 such as touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, liquid crystal display (LCD), speakers, vibration An output device 607 such as a device; a storage device 608 such as a magnetic tape and a hard disk; and a communication device 609.
- the communication device 609 may allow the electronic device 600 to perform wireless or wired communication with other devices to exchange data.
- FIG. 4 shows an electronic device 600 having various devices, it should be understood that it is not required to implement or have all the illustrated devices. It may alternatively be implemented or provided with more or fewer devices.
- the process described above with reference to the flowchart can be implemented as a computer software program.
- the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer readable medium, and the computer program contains program code for executing the method shown in the flowchart.
- the computer program may be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602.
- the processing device 601 the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
- the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable medium, or any combination of the two.
- the computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above. More specific examples of computer-readable media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable Read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
- a computer-readable medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
- a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
- the computer-readable signal medium may also be any computer-readable medium other than the computer-readable medium, and the computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device.
- the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
- the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
- the above-mentioned computer-readable medium carries one or more programs.
- the electronic device upon receiving a user’s request for drawing a topographic map, obtain the information of the topographic map to be drawn Parameter information; determine the size information of the topographic map to be drawn based on the parameter information, and display the initial topographic map corresponding to the size information to the user; receive the user's texture material selection operation, and determine the corresponding first target based on the texture material selection operation Texture material; when receiving the user's first editing operation for the initial topographic map, edit the initial topographic map corresponding to the first editing operation based on the first target texture material.
- the computer program code used to perform the operations of the present disclosure can be written in one or more programming languages or a combination thereof.
- the above-mentioned programming languages include but are not limited to object-oriented programming languages such as Java, Smalltalk, C++, and Including conventional procedural programming languages-such as "C" language or similar programming languages.
- the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
- the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to pass Internet connection).
- LAN local area network
- WAN wide area network
- each block in the flowchart or block diagram may represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions.
- the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown in succession can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved.
- each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
- modules or units involved in the embodiments described in the present disclosure can be implemented in software or hardware. Among them, the name of the module or unit does not constitute a limitation on the unit itself under certain circumstances.
- exemplary types of hardware logic components include: Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Product (ASSP), System on Chip (SOC), Complex Programmable Logical device (CPLD) and so on.
- FPGA Field Programmable Gate Array
- ASIC Application Specific Integrated Circuit
- ASSP Application Specific Standard Product
- SOC System on Chip
- CPLD Complex Programmable Logical device
- a machine-readable medium may be a tangible medium, which may contain or store a program for use by the instruction execution system, apparatus, or device or in combination with the instruction execution system, apparatus, or device.
- the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
- the machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing.
- machine-readable storage media would include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
- RAM random access memory
- ROM read-only memory
- EPROM or flash memory erasable programmable read-only memory
- CD-ROM compact disk read only memory
- magnetic storage device magnetic storage device, or any suitable combination of the foregoing.
- the present disclosure provides a computer-readable medium for storing computer instructions, which when run on a computer, enable the computer to execute the terrain of the present disclosure. Graph editing.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
Claims (11)
- 一种地形图编辑方法,所述方法包括:在接收到用户的地形图绘制请求时,获取待绘制的地形图的参数信息;基于所述参数信息确定所述待绘制的地形图的尺寸信息,并将所述尺寸信息相应的初始地形图展示给用户;接收用户的贴图素材选择操作,基于所述贴图素材选择操作,确定相对应的第一目标贴图素材;在接收到用户针对所述初始地形图的第一编辑操作时,基于所述第一目标贴图素材对所述初始地形图进行与所述第一编辑操作相应的编辑。
- 根据权利要求1所述的方法,其中,所述在接收到用户的地形图绘制请求时,获取待绘制的地形图的参数信息包括:在接收到用户的地形图绘制请求时,将初始地形块展示给用户;接收用户针对所述初始地形块的尺寸和数量的参数设置操作;基于所述参数设置操作得到所述待绘制的地形图的参数信息,所述参数信息包括构成所述待绘制的地形图的地形块的尺寸参数和数量参数;所述基于所述参数信息确定所述待绘制的地形图的尺寸信息,包括:基于所述地形块的尺寸参数和数量参数,确定所述待绘制的地形图的尺寸信息。
- 根据权利要求1所述的方法,其中,在基于所述第一目标贴图素材对所述初始地形图进行与所述第一编辑操作相应的编辑之后,若接收到用户的素材切换操作,所述方法还包括:确定所述素材切换操作所对应的第二目标贴图素材;在接收到用户对已编辑地形图的第二编辑操作时,基于所述第二目标贴图素材,在所述已编辑地形图上进行相应的编辑操作。
- 根据权利要求3所述的方法,其中,当所述第二编辑操作为纹理编辑操作时,所述基于所述第二目标贴图素材,在所述已编辑地形图上进行相应的编辑操作,包括:基于所述第二目标贴图素材的权重和已使用的目标贴图素材的权重,对所述第二目标贴图素材和所述已使用的目标贴图素材进行融合处理,得到所述待绘制地形图的纹理编辑结果;其中,所述已使用的目标贴图素材为所述已编辑地形图中的目标贴图素材。
- 根据权利要求2所述的方法,其中,每个所述地形块对应预设数量个栅格;当所述第一编辑操作为高度编辑操作时,所述基于所述第一目标贴图素材对所述初始地形图进行与所述第一编辑操作相应的编辑,包括:将所述第一目标贴图素材叠加在所述初始地形图上,得到待编辑地形图;确定所述高度编辑操作在所述待编辑地形图中对应的栅格的顶点位置;按照所述高度编辑操作对应的调整方式调整所述顶点位置。
- 根据权利要求5所述的方法,其中,所述方法还包括:确定所述高度编辑操作对应的动作信息,所述动作信息包括向上滑动或向下滑动;所述按照所述高度编辑操作对应的调整方式调整所述顶点位置,包括:当所述动作信息为向上滑动时,按照预设高度向上调整所述顶点位置;当所述动作信息为向下滑动时,按照预设高度向下调整所述顶点位置。
- 根据权利要求5所述的方法,其中,所述方法还包括:识别所述高度编辑操作在所述待编辑地形图中的起点位置和终点位置,根据所述起点位置和终点位置确定动作幅度信息;所述按照所述高度编辑操作对应的调整方式调整所述顶点位置,包括:根据所述动作幅度信息确定调整高度,根据所述调整高度调整所述顶 点位置。
- 根据权利要求1-7任一项所述的方法,其中,接收到用户针对所述初始地形图的第一编辑操作,包括:接收用户通过编辑工具对所述初始地形图的编辑操作;所述方法还包括:接收用户针对所述编辑工具的形状和尺寸的显示参数设置操作;根据所述显示参数设置操作,确定所述编辑工具在所述初始地形图上所对应的编辑区域的形状和尺寸。
- 一种地形图编辑装置,其中,所述装置包括:获取模块,被配置为在接收到用户的地形图绘制请求时,获取待绘制的地形图的参数信息;展示模块,被配置为基于所述参数信息确定所述待绘制的地形图的尺寸信息,并将所述尺寸信息相应的初始地形图展示给用户;确定模块,被配置为接收用户的贴图素材选择操作,基于所述贴图素材选择操作,确定相对应的第一目标贴图素材;编辑模块,被配置为在接收到用户针对所述初始地形图的第一编辑操作时,基于所述第一目标贴图素材对所述初始地形图进行与所述第一编辑操作相应的编辑。
- 一种电子设备,所述电子设备包括:一个或多个处理器;存储器;一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序被配置为执行根据权利要求1~8任一项所述的方法。
- 一种计算机可读存储介质,所述计算机可读存储介质被配置为存储计算机程序,当所述计算机程序在处理器上运行时,使得所述处理器可以执行权利要求1~8任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911151196.3A CN111803952A (zh) | 2019-11-21 | 2019-11-21 | 地形图编辑方法、装置、电子设备及计算机可读介质 |
CN201911151196.3 | 2019-11-21 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021098361A1 true WO2021098361A1 (zh) | 2021-05-27 |
Family
ID=72844076
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/115680 WO2021098361A1 (zh) | 2019-11-21 | 2020-09-16 | 地形图编辑方法、装置、电子设备及计算机可读介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111803952A (zh) |
WO (1) | WO2021098361A1 (zh) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113244625B (zh) * | 2021-05-28 | 2023-06-13 | 天津亚克互动科技有限公司 | 游戏地形数据的编辑方法、装置、存储介质和电子装置 |
CN113807062A (zh) * | 2021-08-02 | 2021-12-17 | 上海派森诺生物科技有限公司 | 一种组合密度图在线绘制方法、装置和电子设备 |
CN113750519A (zh) * | 2021-09-09 | 2021-12-07 | 网易(杭州)网络有限公司 | 场景地形编辑方法、装置、电子终端和机器可读存储介质 |
CN114022601A (zh) * | 2021-11-04 | 2022-02-08 | 北京字节跳动网络技术有限公司 | 一种体积元素渲染方法、装置及设备 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102568013A (zh) * | 2011-12-16 | 2012-07-11 | 大连兆阳软件科技有限公司 | 一种静态模型的绘制方法 |
US20170154468A1 (en) * | 2015-12-01 | 2017-06-01 | Le Holdings (Beijing) Co., Ltd. | Method and electronic apparatus for constructing virtual reality scene model |
CN107358649A (zh) * | 2017-06-07 | 2017-11-17 | 腾讯科技(深圳)有限公司 | 地形文件的处理方法和装置 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8864583B1 (en) * | 2011-05-03 | 2014-10-21 | Open Invention Network, Llc | Computing device independent and transferable game level design and other objects |
CN110170166B (zh) * | 2015-08-24 | 2023-04-07 | 鲸彩在线科技(大连)有限公司 | 一种游戏数据生成、上传方法及装置 |
CN108154543B (zh) * | 2018-01-15 | 2021-12-14 | 网易(杭州)网络有限公司 | 确定游戏贴图尺寸的方法、装置及存储介质 |
CN108568112A (zh) * | 2018-04-20 | 2018-09-25 | 网易(杭州)网络有限公司 | 一种游戏场景的生成方法、装置和电子设备 |
CN109671162A (zh) * | 2018-12-12 | 2019-04-23 | 北京像素软件科技股份有限公司 | 地形编辑方法及装置 |
CN109771951B (zh) * | 2019-02-13 | 2022-04-29 | 网易(杭州)网络有限公司 | 游戏地图生成的方法、装置、存储介质和电子设备 |
CN109939440B (zh) * | 2019-04-17 | 2023-04-25 | 网易(杭州)网络有限公司 | 三维游戏地图的生成方法、装置、处理器及终端 |
-
2019
- 2019-11-21 CN CN201911151196.3A patent/CN111803952A/zh active Pending
-
2020
- 2020-09-16 WO PCT/CN2020/115680 patent/WO2021098361A1/zh active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102568013A (zh) * | 2011-12-16 | 2012-07-11 | 大连兆阳软件科技有限公司 | 一种静态模型的绘制方法 |
US20170154468A1 (en) * | 2015-12-01 | 2017-06-01 | Le Holdings (Beijing) Co., Ltd. | Method and electronic apparatus for constructing virtual reality scene model |
CN107358649A (zh) * | 2017-06-07 | 2017-11-17 | 腾讯科技(深圳)有限公司 | 地形文件的处理方法和装置 |
Non-Patent Citations (2)
Title |
---|
ANONYMOUS: "Unity3D development: create a mountain topographic map in Unity3D", BLOG CSDN, CN, pages 1 - 5, XP009528263, Retrieved from the Internet <URL:https://blog.csdn.net/linuxheik/article/details/38124903> * |
SHIMMERY: "Unity3D Self-Contained Functions: Terrain)", JIANSHU, 29 July 2017 (2017-07-29), pages 1 - 7, XP009528264, Retrieved from the Internet <URL:https://www.jianshu.com/p/dbc2de5e3009> * |
Also Published As
Publication number | Publication date |
---|---|
CN111803952A (zh) | 2020-10-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021098361A1 (zh) | 地形图编辑方法、装置、电子设备及计算机可读介质 | |
WO2022042291A1 (zh) | 一种图像处理方法、装置、电子设备和存储介质 | |
JP2024505995A (ja) | 特殊効果展示方法、装置、機器および媒体 | |
WO2022088928A1 (zh) | 弹性对象的渲染方法、装置、设备及存储介质 | |
CN111932664A (zh) | 图像渲染方法、装置、电子设备及存储介质 | |
WO2022007565A1 (zh) | 增强现实的图像处理方法、装置、电子设备及存储介质 | |
WO2020192195A1 (zh) | 图像处理方法、装置和电子设备 | |
WO2020077913A1 (zh) | 图像处理方法、装置、硬件装置 | |
WO2021197024A1 (zh) | 视频特效配置文件生成方法、视频渲染方法及装置 | |
JP2024502407A (ja) | 拡張現実に基づく表示方法、装置、機器及び記憶媒体 | |
US20240119082A1 (en) | Method, apparatus, device, readable storage medium and product for media content processing | |
US11869195B2 (en) | Target object controlling method, apparatus, electronic device, and storage medium | |
WO2023116801A1 (zh) | 一种粒子效果渲染方法、装置、设备及介质 | |
WO2023207522A1 (zh) | 视频合成方法、装置、设备、介质及产品 | |
WO2023185455A1 (zh) | 图像处理方法、装置、电子设备及存储介质 | |
CN111652675A (zh) | 展示方法、装置和电子设备 | |
WO2020215789A1 (zh) | 虚拟画笔实现方法、装置和计算机可读存储介质 | |
WO2020077912A1 (zh) | 图像处理方法、装置、硬件装置 | |
KR20230130748A (ko) | 이미지 처리 방법 및 장치, 디바이스 및 매체 | |
WO2024051639A1 (zh) | 图像处理方法、装置、设备及存储介质和产品 | |
WO2024051621A1 (zh) | 地形编辑方法、装置、终端及存储介质 | |
WO2024046284A1 (zh) | 绘制动画生成方法、装置、设备、可读存储介质及产品 | |
WO2023197911A1 (zh) | 三维虚拟对象生成方法、装置、设备、介质和程序产品 | |
WO2023169287A1 (zh) | 美妆特效的生成方法、装置、设备、存储介质和程序产品 | |
WO2023138441A1 (zh) | 视频生成方法、装置、设备及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20889561 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20889561 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 09-12-2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20889561 Country of ref document: EP Kind code of ref document: A1 |