CN111524231B - Virtual terrain processing method and device, electronic equipment and storage medium - Google Patents

Virtual terrain processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111524231B
CN111524231B CN202010432217.5A CN202010432217A CN111524231B CN 111524231 B CN111524231 B CN 111524231B CN 202010432217 A CN202010432217 A CN 202010432217A CN 111524231 B CN111524231 B CN 111524231B
Authority
CN
China
Prior art keywords
terrain
virtual
file
target area
topography
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.)
Active
Application number
CN202010432217.5A
Other languages
Chinese (zh)
Other versions
CN111524231A (en
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202010432217.5A priority Critical patent/CN111524231B/en
Publication of CN111524231A publication Critical patent/CN111524231A/en
Application granted granted Critical
Publication of CN111524231B publication Critical patent/CN111524231B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models
    • 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/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • A63F2300/308Details of the user interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Remote Sensing (AREA)
  • Computer Graphics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides a processing method, a device, electronic equipment and a storage medium of virtual topography, wherein a graphical user interface is provided through terminal equipment, the graphical user interface comprises the virtual topography, and the method comprises the following steps: when the virtual terrain is changed, determining a terrain area which is changed in the virtual terrain as a target area, wherein the virtual terrain comprises a plurality of terrain areas; determining the target area as an area to be re-baked; and re-baking the target area of the virtual terrain according to the read changed terrain file of the virtual terrain to obtain the virtual terrain containing the re-baked target area. According to the embodiment of the invention, after the user changes the terrain, the game engine can read only the changed part of the terrain without replacing the whole terrain, so that the time spent by the user waiting for baking the terrain is greatly reduced.

Description

Virtual terrain processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computers, and in particular, to a method and apparatus for processing virtual terrain, an electronic device, and a storage medium.
Background
With the development of computer network technology and the development of mobile device platforms, games are increasingly favored by people. In three-dimensional games, terrain is an almost essential component, and almost all objects within the game, such as characters, plants, buildings, etc., need to operate on the terrain, or else the presence alone cannot constitute a complete game. At present, a method for making game topography by using various digital content creation (Digital Content Creation, DCC) software is to make topography by manually brushing the earth surface or programming generation, and after making, a height map or model is exported and then imported into a game engine for continuous editing or direct use. Another is to use a built-in terrain system directly in the game engine for terrain creation.
In the actual game development process, the change of the requirement is not needed or the iteration of the artistic effect is needed. Thus if the terrain needs to be changed, it is necessary to re-derive the height map or model in the DCC software after each change and then import the engine to make a replacement of the entire terrain. When the terrain is complex and huge, especially when the world is open, replacing the entire terrain can take a lot of time for the developer.
Disclosure of Invention
In view of the foregoing, the present invention has been made to provide a method and apparatus for processing a virtual terrain, an electronic device, and a storage medium, which overcome or at least partially solve the foregoing problems, and include:
in order to solve the above-mentioned problems, an embodiment of the present invention discloses a method for processing a virtual topography, providing a graphical user interface through a terminal device, where the graphical user interface includes the virtual topography, and the method includes:
when the virtual terrain is changed, determining a terrain area which is changed in the virtual terrain as a target area, wherein the virtual terrain comprises a plurality of terrain areas;
determining the target area as an area to be re-baked;
and re-baking the target area of the virtual terrain according to the read changed terrain file of the virtual terrain to obtain the virtual terrain containing the re-baked target area.
Preferably, the plurality of terrain areas are obtained by dividing the virtual terrain in equal proportion.
Preferably, the topography file of the virtual topography includes: a terrain file corresponding to each terrain area of the virtual terrain;
and re-baking the target area of the virtual terrain according to the read changed terrain file of the virtual terrain, including:
and baking the target area of the virtual terrain again according to the read terrain file corresponding to the changed target area.
Preferably, the method further comprises:
reading a terrain file of the virtual terrain from a preset path, and comparing the read terrain file with an initial terrain file of the virtual terrain stored in an engineering file;
and if the read terrain file is different from the initial terrain file of the virtual terrain, determining that the virtual terrain is changed.
Preferably, the method further comprises:
and generating a corresponding height map according to the virtual topography comprising the target area after re-baking.
Preferably, after the obtaining the virtual topography comprising the rebroadbaked target region, the method further comprises:
displaying the virtual topography comprising the rebreathed target region.
Preferably, the displaying the virtual topography including the target area after rebinning includes:
and displaying the virtual topography containing the target area after rebroadbaking according to the height map.
The embodiment of the invention also discloses a processing device of the virtual topography, which provides a graphic user interface through the terminal equipment, wherein the graphic user interface comprises the virtual topography, and the device comprises:
the target area module is used for determining a changed terrain area in the virtual terrain as a target area when the virtual terrain is changed, and the virtual terrain comprises a plurality of terrain areas;
a region to be re-baked module for determining the target region as a region to be re-baked;
and the baking module is used for baking the target area of the virtual terrain again according to the read changed terrain file of the virtual terrain to obtain the virtual terrain containing the target area after the baking again.
The embodiment of the invention also provides electronic equipment, which comprises a processor, a memory and a computer program stored on the memory and capable of running on the processor, wherein the computer program realizes the steps of the processing method of the virtual topography when being executed by the processor.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the steps of the processing method of the virtual terrain when being executed by a processor.
The invention has the following advantages:
in the embodiment of the invention, when the virtual terrain is changed, determining a changed terrain area in the virtual terrain as a target area, wherein the virtual terrain comprises a plurality of terrain areas, determining the target area as an area to be baked again, and baking the target area of the virtual terrain again according to the read terrain file of the changed virtual terrain to obtain the virtual terrain comprising the target area after baking again. After the user changes the terrain, the game engine can read only the changed part of the terrain, and the whole terrain does not need to be replaced completely, so that the time spent by the user waiting for baking the terrain is greatly reduced.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are needed in the description of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flow chart of steps of a method for processing a virtual terrain according to an embodiment of the present invention;
FIG. 2 is an exemplary diagram of a virtual terrain provided by an embodiment of the present invention;
FIG. 3 is a flow chart of steps of another method for processing a virtual terrain according to an embodiment of the present invention;
FIG. 4 is a schematic view of a segmentation of a virtual terrain according to an embodiment of the present invention;
FIG. 5 is a schematic illustration of a virtual terrain in a game engine provided in accordance with an embodiment of the present invention;
FIG. 6 is a schematic diagram of a virtual terrain modification provided by an embodiment of the present invention;
FIG. 7 is a schematic illustration of a virtual terrain modification provided by an embodiment of the present invention;
FIG. 8 is a schematic illustration of another virtual terrain provided by an embodiment of the present invention;
FIG. 9 is a schematic illustration of a virtual terrain in another game engine provided in accordance with an embodiment of the present invention;
fig. 10 is a block diagram of a virtual terrain processing apparatus according to an embodiment of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description. It will be apparent that the described embodiments are some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a step flowchart of a method for processing a virtual terrain provided by an embodiment of the present invention is shown, and a graphical user interface is provided through a terminal device, where the graphical user interface includes the virtual terrain, and the method specifically may include the following steps:
step 101, when the virtual terrain is changed, determining a changed terrain area in the virtual terrain as a target area, wherein the virtual terrain comprises a plurality of terrain areas;
the virtual terrain refers to the ground surface or ground system generated in the data processing system, describes information such as river valleys, vegetation rocks and the like, and can be manufactured by various DCC software by a user, as shown in fig. 2. The first virtual terrain comprises a plurality of segmented terrain areas, and each of the terrain areas has the same size. The user may modify the virtual terrain in the game engine to determine a terrain area of the virtual terrain that has been altered via the modification as a target area.
Step 102, determining the target area as an area to be re-baked;
the virtual terrain may be reconstructed by baking, and the user-modified terrain area is determined as the area to be baked.
And 103, baking the target area of the virtual terrain again according to the read terrain file of the changed virtual terrain, so as to obtain the virtual terrain comprising the target area after being baked again.
The virtual terrain has a corresponding terrain file containing terrain data for the virtual terrain, and the game engine can construct the corresponding virtual terrain based on the terrain data contained in the terrain file. The game engine can bake the target area in the virtual terrain again according to the read terrain file of the changed virtual terrain, and obtain the virtual terrain including the baked target area.
In the embodiment of the invention, when the virtual terrain is changed, determining a changed terrain area in the virtual terrain as a target area, wherein the virtual terrain comprises a plurality of terrain areas, determining the target area as an area to be baked again, and baking the target area of the virtual terrain again according to the read terrain file of the changed virtual terrain to obtain the virtual terrain comprising the target area after baking again. After the user changes the virtual terrain, the game engine can read only the changed part of the virtual terrain to generate the changed virtual terrain, and the whole virtual terrain is not required to be replaced completely, so that the time consumed by the user for waiting for the terrain baking is greatly reduced.
Referring to fig. 3, a step flow chart of another method for processing virtual topography provided by an embodiment of the present invention is shown, and a graphical user interface is provided through a terminal device, where the graphical user interface includes virtual topography, and specifically may include the following steps:
step 201, reading a topography file of the virtual topography from a preset path, and comparing the read topography file with an initial topography file of the virtual topography stored in an engineering file;
the user imports the topographic file of the virtual topography from the DCC software into the game engine and backs up in the engineering file while importing the file path of the topographic file. When the user again reads the terrain file in the game engine, the read terrain file is compared with the terrain file stored in the engineering file.
Step 202, if the read terrain file is different from the initial terrain file of the virtual terrain, determining that the virtual terrain is changed;
the user may modify the terrain file in the game engine to change the virtual terrain. When the game engine judges that the modified terrain file is different from the initial terrain file, the virtual terrain is determined to be changed.
Step 203, when the virtual terrain is changed, determining a changed terrain area in the virtual terrain as a target area, wherein the virtual terrain comprises a plurality of terrain areas;
when the game engine determines that the imported terrain file has been changed, that is, the virtual terrain has been changed, the changed area in the virtual terrain is determined as the target area, the plurality of terrain areas in the virtual terrain are obtained by means of equal-ratio division, that is, after the virtual terrain is manufactured by DCC software, the user can input the division parameters, the terminal performs equal-ratio division on the virtual terrain according to actual needs, for example, 2 x 2, 4*4, and the like according to the division parameters, as shown in fig. 4 and 5, fig. 4 is the virtual terrain divided according to 2 x 2 in DCC software, 301-304 represent the divided different terrain areas respectively, and fig. 5 is the display effect of the divided virtual terrain after being imported into 4 terrain areas 401-404 with the same size of 2 x 2. The size of each terrain area which is cut off by the equal-ratio block is still the power of 2, for example 1024 x 1024, so that the requirement of a game engine on the terrain is met.
Step 204, determining the target area as an area to be re-baked;
the area identified as the target area in the virtual terrain is determined as the area to be re-baked.
Step 205, baking the target area of the virtual terrain again according to the read terrain file of the changed virtual terrain, so as to obtain the virtual terrain comprising the target area after baking again;
in a preferred embodiment of the present invention, the topography file of the virtual topography includes topography files corresponding to each topography area of the virtual topography, and the baking is performed on the target area of the virtual topography according to the read topography file of the virtual topography after the change, and the method further includes the following sub-steps:
and baking the target area of the virtual terrain again according to the read terrain file corresponding to the changed target area.
The game engine re-bakes the target area according to the read changed terrain file, so as to reconstruct the target area of the virtual terrain.
Step 206, generating a corresponding height map according to the virtual topography comprising the target area after re-baking;
the height map refers to a rasterized image in which surface height data is stored for each pixel. By baking the area to be baked, a height map corresponding to the target area can be generated.
Step 207, displaying the virtual topography comprising the rebroadbaked target region.
After the virtual terrain including the rebreathed target region is obtained, the virtual terrain including the rebreathed target region is displayed in a game engine.
In a preferred embodiment of the present invention, the step 207 further comprises the sub-steps of:
and displaying the virtual topography containing the target area after rebroadbaking according to the height map.
The game engine displays the virtual terrain including the changed target area according to the height map of the target area.
In the embodiment of the invention, the terrain file of the virtual terrain is read from the preset path, the read terrain file is compared with the initial terrain file of the virtual terrain stored in the engineering file, if the read terrain file is different from the initial terrain file of the virtual terrain, the virtual terrain is determined to be changed, when the virtual terrain is changed, the changed terrain area in the virtual terrain is determined to be a target area, the virtual terrain comprises a plurality of terrain areas, the target area is determined to be an area to be re-baked, the target area of the virtual terrain is re-baked according to the read changed terrain file of the virtual terrain, the virtual terrain containing the re-baked target area is obtained, the corresponding height map is generated according to the virtual terrain containing the re-baked target area, and the virtual terrain containing the re-baked target area is displayed, so that a user does not need to repeatedly import and export data corresponding to the virtual terrain when modifying the virtual terrain, and the game engine only needs to read the modified partial virtual terrain of the user, so that the modified partial virtual terrain can be automatically baked and displayed, the operation step is simplified, and the waiting time of the user is saved.
In order to enable those skilled in the art to better understand the present invention, the present application is illustrated by way of example below, but it should be understood that the present application is not limited thereto.
After the user has made the virtual terrain, the user inputs the segmentation parameters according to the own requirements to segment the virtual terrain into 2×2 virtual terrain, i.e. 4 terrain areas are included.
And then the user imports the terrain file corresponding to the virtual terrain into the game engine, backups the terrain file in the engineering file and generates the virtual terrain in the game scene. Since the virtual terrain is divided into 4 terrain areas, the virtual terrain generated in the game engine is also composed of 4 terrain areas.
To enhance the effect of the virtual terrain, the user modifies the virtual terrain, as shown in fig. 6, the shaded portion 501 is the portion that needs to be modified, which is seen to be lower where the user wants to pull up the terrain. And the modified effect is shown in fig. 7, the hatched portion 601 is the modified effect. Since there are few parts to be modified, the modified terrain area occupies only one of the entire virtual terrain, as shown in fig. 8, 701 is the virtual terrain and 702 is the modified part.
After the modification is completed, the game engine compares the read terrain file, i.e. the modified terrain file, with the original terrain file in the backup, determines the terrain area to which the modified part belongs according to the modified position, bakes the terrain area, and other terrain areas are kept as they are.
After baking, a new height map is generated for the target area, and the game engine reads the new height map to display the modified target area in the virtual terrain, as shown in fig. 9, 801 is the target area displayed according to the new height map, and 802 is other terrain areas in the virtual terrain.
In the whole operation process, after the user changes the terrain, the game engine only reads partial terrain areas with changed virtual terrain, the whole virtual terrain is not required to be replaced completely, and terrain data corresponding to the virtual terrain is not required to be imported and exported again, so that complicated operation is simplified, and the time consumed by the user for waiting for terrain baking is greatly reduced.
Referring to fig. 10, there is shown a block diagram of a processing apparatus for virtual topography provided in an embodiment of the present invention, a graphical user interface is provided through a terminal device, where the graphical user interface includes a virtual topography, and the apparatus may include the following modules:
a target area module 901, configured to determine, when the virtual terrain is changed, a changed terrain area in the virtual terrain as a target area, where the virtual terrain includes a plurality of terrain areas;
a to-be-redried area module 902, configured to determine the target area as an area to be redried;
a baking module 903, configured to bake the target area of the virtual terrain again according to the read changed terrain file of the virtual terrain, so as to obtain a virtual terrain including the target area after being baked again.
In an embodiment of the present invention, the topography file of the virtual topography includes: the baking module 903 further includes:
and the target area topography file sub-module is used for baking the target area of the virtual topography again according to the read topography file corresponding to the changed target area.
In an embodiment of the invention, the apparatus further comprises:
the comparison module is used for reading the topography file of the virtual topography from the preset path and comparing the read topography file with the initial topography file of the virtual topography stored in the engineering file;
and the change determining module is used for determining that the virtual terrain is changed if the read terrain file is different from the initial terrain file of the virtual terrain.
In an embodiment of the invention, the apparatus further comprises:
and the height map generating module is used for generating a corresponding height map according to the virtual topography comprising the target area after the rebroadcast.
In an embodiment of the invention, the apparatus further comprises:
and the display module is used for displaying the virtual topography containing the target area after the rebroadcast.
In an embodiment of the present invention, the display module further includes:
and the virtual terrain display submodule is used for displaying the virtual terrain containing the target area after the rebroadcast according to the height map.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
An embodiment of the present invention also provides an electronic device, which may include a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program implementing the steps of the processing method of the virtual topography as above when executed by the processor.
An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the steps of the processing method of virtual terrain as above.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The above detailed description of the method and apparatus for processing virtual terrain, the electronic device, and the storage medium provided by the present invention applies specific examples to illustrate the principles and embodiments of the present invention, and the above description of the examples is only used to help understand the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (6)

1. A method for processing a virtual topography, wherein a graphical user interface is provided by a terminal device, the graphical user interface including the virtual topography therein, the method comprising:
reading a terrain file of the virtual terrain from a preset path, and comparing the read terrain file with an initial terrain file of the virtual terrain stored in an engineering file;
if the read terrain file is different from the initial terrain file of the virtual terrain, determining that the virtual terrain is changed;
when the virtual terrain is changed, determining a terrain area which is changed in the virtual terrain as a target area, wherein the virtual terrain comprises a plurality of terrain areas; the plurality of terrain areas are obtained by dividing the virtual terrain in advance;
determining the target area as an area to be re-baked;
baking the target area of the virtual terrain again according to the read changed terrain file of the virtual terrain to obtain the virtual terrain containing the target area after baking again; the topography file of the virtual topography includes: a terrain file corresponding to each terrain area of the virtual terrain;
generating a corresponding height map according to the virtual topography comprising the target area after re-baking;
and displaying the virtual topography containing the target area after rebroadbaking according to the height map.
2. The method of claim 1, wherein the plurality of terrain areas are obtained from an equal-ratio segmentation of the virtual terrain.
3. The method of claim 1, wherein the step of determining the position of the substrate comprises,
and re-baking the target area of the virtual terrain according to the read changed terrain file of the virtual terrain, including:
and baking the target area of the virtual terrain again according to the read terrain file corresponding to the changed target area.
4. A processing apparatus for virtual topography, wherein a graphical user interface is provided by a terminal device, the graphical user interface comprising virtual topography therein, the apparatus comprising:
the comparison module is used for reading the topography file of the virtual topography from the preset path and comparing the read topography file with the initial topography file of the virtual topography stored in the engineering file;
the change determining module is used for determining that the virtual terrain is changed if the read terrain file is different from the initial terrain file of the virtual terrain;
the target area module is used for determining a changed terrain area in the virtual terrain as a target area when the virtual terrain is changed, and the virtual terrain comprises a plurality of terrain areas; the plurality of terrain areas are obtained by dividing the virtual terrain in advance;
a region to be re-baked module for determining the target region as a region to be re-baked;
the baking module is used for baking the target area of the virtual terrain again according to the read changed terrain file of the virtual terrain to obtain the virtual terrain containing the target area after being baked again; the topography file of the virtual topography includes: a terrain file corresponding to each terrain area of the virtual terrain;
the device is further used for generating a corresponding height map according to the virtual topography comprising the target area after re-baking; and displaying the virtual topography containing the target area after rebroadbaking according to the height map.
5. An electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor carries out the steps of the method of processing a virtual terrain as claimed in any of claims 1 to 3.
6. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, implements the steps of the method for processing a virtual terrain according to any of claims 1 to 3.
CN202010432217.5A 2020-05-20 2020-05-20 Virtual terrain processing method and device, electronic equipment and storage medium Active CN111524231B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010432217.5A CN111524231B (en) 2020-05-20 2020-05-20 Virtual terrain processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010432217.5A CN111524231B (en) 2020-05-20 2020-05-20 Virtual terrain processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111524231A CN111524231A (en) 2020-08-11
CN111524231B true CN111524231B (en) 2024-01-26

Family

ID=71907932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010432217.5A Active CN111524231B (en) 2020-05-20 2020-05-20 Virtual terrain processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111524231B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112402978B (en) * 2020-11-13 2024-07-16 上海幻电信息科技有限公司 Map generation method and device
CN112530012B (en) * 2020-12-24 2024-06-25 网易(杭州)网络有限公司 Virtual earth surface processing method and device and electronic device
CN112604276B (en) * 2020-12-25 2022-09-02 珠海金山数字网络科技有限公司 Terrain modification method and terrain modification device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108434739A (en) * 2018-01-30 2018-08-24 网易(杭州)网络有限公司 The processing method and processing device of virtual resource in scene of game
CN109918463A (en) * 2019-02-22 2019-06-21 广州多益网络股份有限公司 Map data processing method, device, equipment and storage medium
CN109949693A (en) * 2019-04-17 2019-06-28 珠海金山网络游戏科技有限公司 A kind of method for drawing map, calculates equipment and storage medium at device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8207966B2 (en) * 2004-05-26 2012-06-26 Sony Online Entertainment Llc Terrain editor tool for rule-based procedural terrain generation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108434739A (en) * 2018-01-30 2018-08-24 网易(杭州)网络有限公司 The processing method and processing device of virtual resource in scene of game
CN109918463A (en) * 2019-02-22 2019-06-21 广州多益网络股份有限公司 Map data processing method, device, equipment and storage medium
CN109949693A (en) * 2019-04-17 2019-06-28 珠海金山网络游戏科技有限公司 A kind of method for drawing map, calculates equipment and storage medium at device

Also Published As

Publication number Publication date
CN111524231A (en) 2020-08-11

Similar Documents

Publication Publication Date Title
CN111524231B (en) Virtual terrain processing method and device, electronic equipment and storage medium
US20110050691A1 (en) Real-time user guided optimization of general 3d data
CN111104111B (en) Layout processing method and device for tree Canvas
CN112717414B (en) Game scene editing method and device, electronic equipment and storage medium
He et al. Real-Time Extendible-Resolution Display of On-line Dynamic Terrain.
CN112530012B (en) Virtual earth surface processing method and device and electronic device
CN113744401A (en) Terrain splicing method and device, electronic equipment and storage medium
CN115690286B (en) Three-dimensional terrain generation method, terminal device and computer readable storage medium
CN110738734B (en) Three-dimensional topography model generation method and device, processor and electronic device
CN116681835A (en) Virtual engine-based three-dimensional model manufacturing method and system
CN118052828A (en) Modifying a two-dimensional image using a segmented three-dimensional object grid of the two-dimensional image
CN118052953A (en) Modifying a two-dimensional image using an iterative three-dimensional grid of the two-dimensional image
CN109499067B (en) Terrain texture drawing method and device, electronic equipment and storage medium
US11625900B2 (en) Broker for instancing
CN118052954A (en) Adaptive three-dimensional grid for generating two-dimensional images
CN116492689A (en) Game topography generation method, game topography generation device, electronic device and readable storage medium
CN110989979A (en) Terrain generation method based on UE engine
CN116071479A (en) Virtual vegetation rendering method and device, storage medium and electronic equipment
US20020154149A1 (en) System, method and computer program product for associative region generation and modification
CN112966041A (en) Data processing method, device, equipment and storage medium
CN113222905B (en) Opennsfm and thread.js-based structural damage information updating three-dimensional display method
CN114119925B (en) Game image modeling method and device and electronic equipment
CN113744399B (en) Terrain layered data processing method, apparatus, device and machine readable storage medium
CN112604276B (en) Terrain modification method and terrain modification device
CN117974921A (en) Terrain generation method, terrain generation device, storage medium and electronic 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
GR01 Patent grant
GR01 Patent grant