CN113750525B - Method, device and storage medium for generating surface resources of 3D game map - Google Patents

Method, device and storage medium for generating surface resources of 3D game map Download PDF

Info

Publication number
CN113750525B
CN113750525B CN202110961569.4A CN202110961569A CN113750525B CN 113750525 B CN113750525 B CN 113750525B CN 202110961569 A CN202110961569 A CN 202110961569A CN 113750525 B CN113750525 B CN 113750525B
Authority
CN
China
Prior art keywords
resource
prefabricated
map
specific generation
resources
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
CN202110961569.4A
Other languages
Chinese (zh)
Other versions
CN113750525A (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.)
GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD
Guangzhou Duoyi Network Co ltd
Duoyi Network Co ltd
Original Assignee
GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD
Guangzhou Duoyi Network Co ltd
Duoyi 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 GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD, Guangzhou Duoyi Network Co ltd, Duoyi Network Co ltd filed Critical GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD
Priority to CN202110961569.4A priority Critical patent/CN113750525B/en
Publication of CN113750525A publication Critical patent/CN113750525A/en
Application granted granted Critical
Publication of CN113750525B publication Critical patent/CN113750525B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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
    • 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
    • A63F13/69Generating 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 enabling or updating specific game elements, e.g. unlocking hidden features, items, levels or versions

Landscapes

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

Abstract

The invention discloses a method, a device and a storage medium for generating a 3D game map surface resource, wherein the method comprises the following steps: pre-manufacturing the earth surface resource with the specific generation rule into a plurality of prefabricated individuals; acquiring a plurality of birth positions from a map, traversing each birth position, randomly selecting one prefabricated individual from a plurality of prefabricated individuals and placing the prefabricated individual at the birth position so as to realize the generation of ground surface resources with specific generation rules; traversing the rest empty positions in the map, and randomly selecting a surface resource without a specific generation rule according to the configuration information to be placed in the empty positions so as to realize the generation of the surface resource without the specific generation rule. According to the invention, the ground surface resources with specific generation rules are prefabricated into prefabricated individuals in advance, so that the ground surface resources of the map have operability; the surface resources without specific generation rules are completely randomly generated, so that the surface resources of the map are distributed more reasonably and naturally, the manufacturing efficiency of the surface resources is effectively improved, and the manufacturing cost is reduced.

Description

Method, device and storage medium for generating surface resources of 3D game map
Technical Field
The invention relates to the technical field of game maps, in particular to a method and a device for generating a 3D game map surface resource and a storage medium.
Background
The game map surface resources refer to the content on the map, and are indispensable components of the map, such as mountains, rivers, rocks, flowers, grass, trees and the like. The generation of map surface resources is required to meet certain requirements, including resource positions, resource numbers, proportions among the resources and the like.
In the prior art, the generation of the map surface resources of the game is manually controlled by a game producer, from the establishment of the generation requirements of the surface resources to the generation of the resources on the surface of the earth, and the generation of the resources is completed by the game producer manually, so that the generation of the map surface resources is a relatively high-operability generation mode of the map surface resources to a certain extent. However, this method of fabrication generally involves the following problems: the manufacturing efficiency is low, and the time for a single map to be generated on the ground surface from resource design is long. The manufacturing cost is high, and the design and the manufacturing of a single map require large manpower. The map surface resources lack of rationality, and the artificial placement of the surface resources causes the existence of certain surface resources to lack of naturalness and rationality. The modification of the map surface resources lacks of dynamics, and the manual placement of the surface resources makes it impossible to dynamically modify the position of the surface resources or the type of the surface resources secondarily.
Disclosure of Invention
The technical problem to be solved by the embodiment of the invention is to provide a method, a device and a storage medium for generating the surface resources of a 3D game map, wherein the surface resources with specific generation rules are prefabricated into a plurality of prefabricated individuals, so that the surface resources of the map have operability; the surface resources without specific generation rules are completely randomly generated, so that the distribution of the surface resources of the map is more reasonable and natural, the manufacturing efficiency of the surface resources is effectively improved, and the manufacturing cost is reduced.
In order to achieve the above object, an embodiment of the present invention provides a method for generating a surface resource of a 3D game map, including:
pre-manufacturing the earth surface resource with the specific generation rule into a plurality of prefabricated individuals;
acquiring a plurality of birth positions from a map, traversing each birth position, randomly selecting one prefabricated individual from a plurality of prefabricated individuals and placing the prefabricated individual at the birth position so as to realize generation of ground surface resources with specific generation rules;
traversing the rest empty positions in the map, and randomly selecting a surface resource without a specific generation rule according to configuration information to be placed at the empty positions so as to realize generation of the surface resource without the specific generation rule.
As an improvement of the above scheme, the prefabricated unit includes a plurality of surface resources with specific generation rules, and a plurality of combinations among the surface resources with specific generation rules are various.
As an improvement of the above solution, the obtaining a plurality of birth positions from a map, traversing each birth position, and randomly selecting one prefabricated unit from a plurality of prefabricated units to be placed at the birth position, so as to generate a surface resource with a specific generation rule, which specifically includes:
acquiring a plurality of birth positions from a map according to preset requirements;
and traversing each birth position, randomly selecting one prefabricated individual from a plurality of prefabricated individuals, and placing the prefabricated individuals at the birth position, wherein a plurality of ground surface resources with specific generation rules in the prefabricated individuals are generated on a map so as to realize the generation of the ground surface resources with the specific generation rules.
As an improvement of the above solution, the method further includes:
judging whether the generated surface resources need to be modified or not;
if yes, judging whether the surface resource to be modified has a specific generation rule, and modifying the surface resource according to a judging result;
if not, the generation of all the surface resources of the whole map is completed.
As an improvement of the scheme, the modification of the surface resource according to the judgment result specifically comprises the following steps:
if the earth surface resource needing to be modified is judged to have the specific generation rule, returning to the step of manufacturing the earth surface resource with the specific generation rule into a plurality of prefabricated individuals in advance;
if the fact that the earth surface resources needing to be modified have no specific generation rule is judged, returning to the step, and randomly selecting one earth surface resource without the specific generation rule to be placed at the empty position according to the configuration information.
As an improvement of the above-mentioned scheme, when the generation rule of the surface resource having the specific generation rule is changed, the combination manner between the surface resources in the prefabricated individual body is adjusted according to the changed generation rule.
As an improvement of the above solution, the configuration information includes: resource generation place, resource generation range, resource generation number, resource generation weight, and resource generation limitation condition.
The embodiment of the invention also provides a device for generating the surface resources of the 3D game map, which comprises the following steps:
the prefabrication module is used for prefabricating the earth surface resources with specific generation rules into a plurality of prefabrication units in advance;
the first generation module is used for acquiring a plurality of birth positions from a map, traversing each birth position, randomly selecting one prefabricated individual from a plurality of prefabricated individuals and placing the prefabricated individual at the birth position so as to generate ground surface resources with specific generation rules;
the second generation module is used for traversing the rest empty positions in the map, randomly selecting a surface resource without a specific generation rule according to the configuration information and placing the surface resource without the specific generation rule in the empty positions so as to generate the surface resource without the specific generation rule.
The embodiment of the invention also provides a terminal device, which comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor realizes the generation method of the 3D game map surface resource according to any one of the above when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, which comprises a stored computer program, wherein when the computer program runs, the equipment where the computer readable storage medium is located is controlled to execute the method for generating the 3D game map surface resource.
Compared with the prior art, the method, the device and the storage medium for generating the 3D game map surface resources have the beneficial effects that: pre-manufacturing a surface resource with a specific generation rule into a plurality of prefabricated units; acquiring a plurality of birth positions from a map, traversing each birth position, randomly selecting one prefabricated individual from a plurality of prefabricated individuals and placing the prefabricated individual at the birth position so as to realize generation of ground surface resources with specific generation rules; traversing the rest empty positions in the map, and randomly selecting a surface resource without a specific generation rule according to configuration information to be placed at the empty positions so as to realize generation of the surface resource without the specific generation rule. The embodiment of the invention replaces the manufacturing mode of manually placing the earth surface resources one by one in the prior art, effectively improves the manufacturing efficiency of the earth surface resources, does not need to consume a great deal of manpower, and reduces the manufacturing cost. The ground surface resources with the specific generation rules are prefabricated into a plurality of prefabricated individuals, so that the ground surface resources of the map have operability, and the generation of the ground surface resources with the specific generation rules can be controlled; the surface resources without specific generation rules are completely randomly generated, so that the distribution of the surface resources of the map is more reasonable and natural, and different maps can be manufactured according to different configuration information.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of a method for generating a 3D game map surface resource according to the present invention;
FIG. 2 is a schematic structural diagram of a preferred embodiment of a generating device for a 3D game map surface resource according to the present invention;
fig. 3 is a schematic structural diagram of a preferred embodiment of a terminal device according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. 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, fig. 1 is a flowchart of a preferred embodiment of a method for generating a 3D game map surface resource according to the present invention. The generation method of the 3D game map surface resource comprises the following steps:
s1, preparing a ground surface resource with a specific generation rule into a plurality of prefabricated units in advance;
s2, acquiring a plurality of birth positions from a map, traversing each birth position, randomly selecting one prefabricated individual from a plurality of prefabricated individuals and placing the prefabricated individual at the birth position so as to realize generation of ground surface resources with specific generation rules;
and S3, traversing the rest empty positions in the map, and randomly selecting a surface resource without a specific generation rule according to the configuration information to be placed at the empty positions so as to realize the generation of the surface resource without the specific generation rule.
Specifically, in a specified range of a certain territory, some necessary surface resources need to be provided, for example, resources A need to be provided in a range close to the territory center, other resources need to be provided in a range far away from the territory center, and the like, so as to meet the condition of upgrading of players, and the generation of the surface resources is specific rules. The method comprises the steps of pre-manufacturing the surface resources with the specific generation rules into a plurality of prefabricated individuals, wherein each prefabricated individual comprises a plurality of surface resources with the specific generation rules, and a plurality of combination modes among the surface resources with the specific generation rules are various. And acquiring a plurality of birth positions from the map, traversing each birth position, randomly selecting one prefabricated individual from the plurality of prefabricated individuals and placing the prefabricated individual at the birth position so as to realize the generation of the ground surface resource with a specific generation rule. Traversing the rest empty positions in the map, and randomly selecting a surface resource without a specific generation rule according to configuration information to be placed at the empty positions so as to realize generation of the surface resource without the specific generation rule.
It should be noted that, in general, the prefabricated units are of a size (assuming that the size is 9×9 units), and the birth positions and the center of the prefabricated units are mapped, it is preferable that a distance condition of at least 9 units is satisfied between two adjacent birth positions, but this condition is not essential, and if the distance is smaller, the ground resources in the overlapped prefabricated units will be covered by the ground resources in the overlapped prefabricated units.
The method replaces the manufacturing mode of manually placing the earth surface resources one by one in the prior art, effectively improves the manufacturing efficiency of the earth surface resources, does not need to consume a large amount of manpower, and reduces the manufacturing cost. The ground surface resources with the specific generation rules are prefabricated into a plurality of prefabricated individuals, so that the ground surface resources of the map have operability, and the generation of the ground surface resources with the specific generation rules can be controlled; the surface resources without specific generation rules are completely randomly generated, so that the distribution of the surface resources of the map is more reasonable and natural, and different maps can be manufactured according to different configuration information.
In another preferred embodiment, the step S2 of obtaining a plurality of birth positions from a map, traversing each birth position, and randomly selecting one prefabricated unit from a plurality of prefabricated units to be placed at the birth position, so as to generate a surface resource with a specific generation rule, which specifically includes:
s201, acquiring a plurality of birth positions from a map according to preset requirements;
s202, traversing each birth position, randomly selecting one prefabricated individual from a plurality of prefabricated individuals, and placing the prefabricated individuals at the birth position, wherein a plurality of ground surface resources with specific generation rules in the prefabricated individuals are generated on a map so as to realize the generation of the ground surface resources with the specific generation rules.
Specifically, a plurality of birth positions are obtained from a map according to preset requirements, each birth position is traversed, one prefabricated individual is randomly selected from a plurality of prefabricated individuals to be placed at the birth position, and when the prefabricated individuals are placed at the birth positions on the map, the ground surface resources are placed on the map, and then the ground surface resources with specific generation rules in the prefabricated individuals are generated on the map, so that the generation of the ground surface resources with the specific generation rules is realized.
In a further preferred embodiment, the method further comprises:
judging whether the generated surface resources need to be modified or not;
if yes, judging whether the surface resource to be modified has a specific generation rule, and modifying the surface resource according to a judging result;
if not, the generation of all the surface resources of the whole map is completed.
Specifically, after the generation of all the surface resources of the whole map is completed, if the surface resources are required to be modified, judging whether the surface resources required to be modified have specific generation rules or not, and modifying the surface resources according to the judgment result.
In another preferred embodiment, the modifying the surface resource according to the determination result specifically includes:
if the earth surface resource needing to be modified is judged to have the specific generation rule, returning to the step of manufacturing the earth surface resource with the specific generation rule into a plurality of prefabricated individuals in advance;
if the fact that the earth surface resources needing to be modified have no specific generation rule is judged, returning to the step, and randomly selecting one earth surface resource without the specific generation rule to be placed at the empty position according to the configuration information.
Specifically, if it is determined that the surface resource to be modified has a specific generation rule, returning to the step of preparing the surface resource with the specific generation rule into a plurality of prefabricated individuals in advance, acquiring a plurality of birth positions from a map, traversing each birth position, randomly selecting one prefabricated individual from the plurality of prefabricated individuals and placing the prefabricated individual at the birth position so as to realize generation of the surface resource with the specific generation rule; if the fact that the earth surface resources needing to be modified have no specific generation rule is judged, returning to the step, and randomly selecting one earth surface resource without the specific generation rule to be placed at the empty position according to the configuration information. At this time, the surface resources can be generated again randomly according to the original configuration information, the configuration information can be modified, and the surface resources can be generated randomly according to the modified configuration information.
It should be noted that, for the same map, the surface resource may be randomly generated multiple times according to the same configuration information, and the best result may be obtained. Because the configuration information only describes and limits the resource generation conditions, the specific generation is random according to the configuration information, the random effect is different each time, and if the current effect is not satisfied, the surface resource can be randomly generated again according to the configuration information.
Preferably, when the generation rule of the surface resource with the specific generation rule changes, the combination mode of the surface resource in the prefabricated individual body is adjusted according to the changed generation rule.
Specifically, since the ground surface resources having the specific generation rule have been prefabricated into a plurality of prefabricated units including a plurality of ground surface resources having the specific generation rule, there are various combinations among the plurality of ground surface resources having the specific generation rule. When the generation rule of the surface resource with the specific generation rule is changed, the combination mode among the surface resources in the prefabricated individual body is adjusted according to the changed generation rule.
Preferably, the configuration information includes: resource generation place, resource generation range, resource generation number, resource generation weight, and resource generation limitation condition.
In particular, there are no specific generation rules of ground surface resources, such as flowers, plants, trees, etc., which may appear more in order to enrich the map decoration effect. The configuration information is planned to be configured according to the requirement, and specifically comprises the following steps: the resource generation place (i.e. in which block area), the resource generation range (defined by coordinates), the number of resource generation, the generation weight of each resource, and the generation constraint attached to each resource (for example, the same resource or other resource generation is not allowed in the range of two circles around the a resource).
Correspondingly, the invention also provides a device for generating the 3D game map surface resources, which can realize all the flows of the method for generating the 3D game map surface resources in the embodiment.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a generating device for a 3D game map surface resource according to an embodiment of the present invention. The generation device of the 3D game map surface resource comprises the following components:
a prefabrication module 201 for prefabricating a surface resource having a specific generation rule into a plurality of prefabrication units in advance;
a first generation module 202, configured to obtain a plurality of birth positions from a map, traverse each birth position, randomly select one prefabricated unit from a plurality of prefabricated units, and place the prefabricated unit at the birth position, so as to generate a surface resource with a specific generation rule;
the second generating module 203 is configured to traverse the remaining empty locations in the map, randomly select a surface resource without a specific generating rule according to the configuration information, and place the surface resource without the specific generating rule in the empty locations, so as to generate the surface resource without the specific generating rule.
Preferably, the prefabricated unit includes a plurality of surface resources with specific generation rules, and a plurality of combinations among the surface resources with specific generation rules are multiple.
Preferably, the first generating module 202 is specifically configured to:
acquiring a plurality of birth positions from a map according to preset requirements;
and traversing each birth position, randomly selecting one prefabricated individual from a plurality of prefabricated individuals, and placing the prefabricated individuals at the birth position, wherein a plurality of ground surface resources with specific generation rules in the prefabricated individuals are generated on a map so as to realize the generation of the ground surface resources with the specific generation rules.
Preferably, the method further comprises:
the judging module is used for judging whether the generated earth surface resource needs to be modified;
if yes, judging whether the surface resource to be modified has a specific generation rule, and modifying the surface resource according to a judging result;
if not, the generation of all the surface resources of the whole map is completed.
Preferably, the modifying the surface resource according to the judgment result specifically includes:
if the earth surface resource needing to be modified is judged to have the specific generation rule, returning to the step of manufacturing the earth surface resource with the specific generation rule into a plurality of prefabricated individuals in advance;
if the fact that the earth surface resources needing to be modified have no specific generation rule is judged, returning to the step, and randomly selecting one earth surface resource without the specific generation rule to be placed at the empty position according to the configuration information.
Preferably, when the generation rule of the surface resource with the specific generation rule is changed, the combination mode between the surface resources in the prefabricated individual body is adjusted according to the changed generation rule.
Preferably, the configuration information includes: resource generation place, resource generation range, resource generation number, resource generation weight, and resource generation limitation condition.
In a specific implementation, the working principle, the control flow and the technical effects of the generating device for the 3D game map surface resource provided by the embodiment of the present invention are the same as those of the generating method for the 3D game map surface resource in the foregoing embodiment, and are not described herein.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a preferred embodiment of a terminal device according to the present invention. The terminal device comprises a processor 301, a memory 302 and a computer program stored in the memory 302 and configured to be executed by the processor 301, wherein the processor 301 implements the method for generating a 3D game map surface resource according to any of the above embodiments when executing the computer program.
Preferably, the computer program may be divided into one or more modules/units (e.g. computer program 1, computer program 2, … …) stored in the memory 302 and executed by the processor 301 to complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing the specified functions, which instruction segments are used for describing the execution of the computer program in the terminal device.
The processor 301 may be a central processing unit (Central Processing Unit, CPU), it may be a further general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a Field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic devices, discrete hardware components, etc., or the processor 301 may be any conventional processor, the processor 301 being a control center of the terminal device, with various interfaces and lines connecting the various parts of the terminal device.
The memory 302 mainly includes a program storage area, which may store an operating system, application programs required for at least one function, and the like, and a data storage area, which may store related data and the like. In addition, the memory 302 may be a high-speed random access memory, a nonvolatile memory such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), etc., or the memory 302 may be other volatile solid-state memory devices.
It should be noted that the above-mentioned terminal device may include, but is not limited to, a processor, a memory, and those skilled in the art will understand that the schematic structural diagram of fig. 3 is merely an example of the above-mentioned terminal device, and does not limit the above-mentioned terminal device, and may include more or fewer components than those shown, or may combine some components or different components.
The embodiment of the invention also provides a computer readable storage medium, which comprises a stored computer program, wherein when the computer program runs, the equipment where the computer readable storage medium is located is controlled to execute the method for generating the 3D game map surface resource according to any embodiment.
The embodiment of the invention provides a method, a device and a storage medium for generating a surface resource of a 3D game map, which are characterized in that the surface resource with a specific generation rule is prefabricated into a plurality of prefabricated individuals; acquiring a plurality of birth positions from a map, traversing each birth position, randomly selecting one prefabricated individual from a plurality of prefabricated individuals and placing the prefabricated individual at the birth position so as to realize generation of ground surface resources with specific generation rules; traversing the rest empty positions in the map, and randomly selecting a surface resource without a specific generation rule according to configuration information to be placed at the empty positions so as to realize generation of the surface resource without the specific generation rule. The embodiment of the invention replaces the manufacturing mode of manually placing the earth surface resources one by one in the prior art, effectively improves the manufacturing efficiency of the earth surface resources, does not need to consume a great deal of manpower, and reduces the manufacturing cost. The ground surface resources with the specific generation rules are prefabricated into a plurality of prefabricated individuals, so that the ground surface resources of the map have operability, and the generation of the ground surface resources with the specific generation rules can be controlled; the surface resources without specific generation rules are completely randomly generated, so that the distribution of the surface resources of the map is more reasonable and natural, and different maps can be manufactured according to different configuration information.
It should be noted that the system embodiments described above are merely illustrative, and that the units described as separate units may or may not be physically separate, and that units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the system embodiment of the present invention, the connection relationship between the modules represents that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that changes and modifications may be made without departing from the principles of the invention, such changes and modifications are also intended to be within the scope of the invention.

Claims (9)

1. The method for generating the 3D game map surface resource is characterized by comprising the following steps of:
pre-manufacturing the earth surface resource with the specific generation rule into a plurality of prefabricated individuals; the surface resource with the specific generation rule is the surface resource necessary for the map, and the specific generation rule is a preset specific generation rule;
acquiring a plurality of birth positions from a map, traversing each birth position, randomly selecting one prefabricated individual from a plurality of prefabricated individuals and placing the prefabricated individual at the birth position so as to realize generation of ground surface resources with specific generation rules;
traversing the rest empty positions in the map, randomly selecting a surface resource without a specific generation rule according to configuration information, and placing the surface resource without the specific generation rule in the empty positions so as to generate the surface resource without the specific generation rule;
the method comprises the steps of obtaining a plurality of birth positions from a map, traversing each birth position, randomly selecting one prefabricated individual from a plurality of prefabricated individuals and placing the prefabricated individual at the birth position to realize generation of ground surface resources with specific generation rules, and specifically comprises the following steps:
acquiring a plurality of birth positions from a map according to preset requirements;
and traversing each birth position, randomly selecting one prefabricated individual from a plurality of prefabricated individuals, and placing the prefabricated individuals at the birth position, wherein a plurality of ground surface resources with specific generation rules in the prefabricated individuals are generated on a map so as to realize the generation of the ground surface resources with the specific generation rules.
2. The method for generating a surface resource of a 3D game map according to claim 1, wherein the prefabricated unit includes a plurality of surface resources having a specific generation rule, and a plurality of combinations among the plurality of surface resources having the specific generation rule are plural.
3. The method of generating a 3D game map surface resource of claim 2, further comprising:
judging whether the generated surface resources need to be modified or not;
if yes, judging whether the surface resource to be modified has a specific generation rule, and modifying the surface resource according to a judging result;
if not, the generation of all the surface resources of the whole map is completed.
4. The method for generating the surface resource of the 3D game map according to claim 3, wherein the modifying the surface resource according to the determination result specifically includes:
if the earth surface resource needing to be modified is judged to have the specific generation rule, returning to the step of manufacturing the earth surface resource with the specific generation rule into a plurality of prefabricated individuals in advance;
if the fact that the earth surface resources needing to be modified have no specific generation rule is judged, returning to the step, and randomly selecting one earth surface resource without the specific generation rule to be placed at the empty position according to the configuration information.
5. The method of generating a surface resource of a 3D game map according to claim 4, wherein when the generation rule of the surface resource having a specific generation rule is changed, a combination manner between the surface resources in the prefabricated individual body is adjusted according to the changed generation rule.
6. The method of generating a 3D game map surface resource of any one of claims 1 to 5, wherein the configuration information includes: resource generation place, resource generation range, resource generation number, resource generation weight, and resource generation limitation condition.
7. The generation device of the 3D game map surface resource is characterized by comprising the following components:
the prefabrication module is used for prefabricating the earth surface resources with specific generation rules into a plurality of prefabrication units in advance; the surface resource with the specific generation rule is the surface resource necessary for the map, and the specific generation rule is a preset specific generation rule;
the first generation module is used for acquiring a plurality of birth positions from a map, traversing each birth position, randomly selecting one prefabricated individual from a plurality of prefabricated individuals and placing the prefabricated individual at the birth position so as to generate ground surface resources with specific generation rules;
the second generation module is used for traversing the rest empty positions in the map, randomly selecting a surface resource without a specific generation rule according to the configuration information and placing the surface resource without the specific generation rule in the empty positions so as to generate the surface resource without the specific generation rule;
the first generating module is specifically configured to:
acquiring a plurality of birth positions from a map according to preset requirements;
and traversing each birth position, randomly selecting one prefabricated individual from a plurality of prefabricated individuals, and placing the prefabricated individuals at the birth position, wherein a plurality of ground surface resources with specific generation rules in the prefabricated individuals are generated on a map so as to realize the generation of the ground surface resources with the specific generation rules.
8. A terminal device comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the method of generating a 3D game map surface resource according to any one of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the computer program when run controls a device in which the computer readable storage medium is located to execute the method for generating the 3D game map surface resource according to any one of claims 1 to 6.
CN202110961569.4A 2021-08-20 2021-08-20 Method, device and storage medium for generating surface resources of 3D game map Active CN113750525B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110961569.4A CN113750525B (en) 2021-08-20 2021-08-20 Method, device and storage medium for generating surface resources of 3D game map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110961569.4A CN113750525B (en) 2021-08-20 2021-08-20 Method, device and storage medium for generating surface resources of 3D game map

Publications (2)

Publication Number Publication Date
CN113750525A CN113750525A (en) 2021-12-07
CN113750525B true CN113750525B (en) 2023-11-28

Family

ID=78790657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110961569.4A Active CN113750525B (en) 2021-08-20 2021-08-20 Method, device and storage medium for generating surface resources of 3D game map

Country Status (1)

Country Link
CN (1) CN113750525B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107684721A (en) * 2017-09-01 2018-02-13 北京乐动卓越科技有限公司 A kind of Method of Creation Process and editor system of super large map scene
CN110882542A (en) * 2019-11-13 2020-03-17 广州多益网络股份有限公司 Training method, device, equipment and storage medium for game agent

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120244929A1 (en) * 2008-07-25 2012-09-27 Roboreus Limited Systems and methods for processing, storing, and displaying map data
US8902221B2 (en) * 2011-06-10 2014-12-02 Schlumberger Technology Corporation Prospect assessment and play chance mapping tools

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107684721A (en) * 2017-09-01 2018-02-13 北京乐动卓越科技有限公司 A kind of Method of Creation Process and editor system of super large map scene
CN110882542A (en) * 2019-11-13 2020-03-17 广州多益网络股份有限公司 Training method, device, equipment and storage medium for game agent

Also Published As

Publication number Publication date
CN113750525A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CN111467806B (en) Method, device, medium and electronic equipment for generating resources in game scene
CN110288688B (en) Virtual vegetation rendering method and device, storage medium and electronic equipment
CN102663119B (en) Method for rendering massive vector data
CN108057245B (en) Map generation method and device, storage medium and terminal
CN104205174A (en) Patched shading in graphics processing
CN101944149B (en) Point-to-point wiring method for integrated circuit based on mesh-free model
CN110559665A (en) Game map processing method and device, terminal device and storage medium
CN107924578A (en) Virtual region is generated and manipulated
CN108970117A (en) Dissemination method, terminal device and the medium of game resource packet
CN110264553B (en) Method and device for processing surface vegetation
CN108171797B (en) Grid object generation method and device
CN104766360A (en) Rendering method and device of three-dimensional space data
CN107632873A (en) A kind of quick interface arrangement method, device, terminal device and storage medium
CN107126702A (en) A kind of generation method of 3D game Random map
CN111831354B (en) Data precision configuration method, device, chip array, equipment and medium
CN113750525B (en) Method, device and storage medium for generating surface resources of 3D game map
CN109712229A (en) A kind of isolated tree wooden frame point extracting method, device, equipment and storage medium
CN109542432A (en) Air control rule editing method and terminal device
CN112827177B (en) Method, device and equipment for generating surface vegetation in virtual environment and storage medium
CN109241193A (en) The treating method and apparatus and server cluster of distributed data base
CN105957133B (en) A kind of method and apparatus for loading textures
CN115518374A (en) Vegetation generation method and device in virtual scene and electronic equipment
CN109985386A (en) A kind of method and apparatus generating map
CN111861836B (en) Three-dimensional mountain land planning method and device, storage medium and computer equipment
US10614191B1 (en) Performing placement and routing concurrently

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