Virtual map generation method and device, electronic equipment and storage medium

By generating plots of different sizes and adding virtual decorations, the problem of poor virtual map display was solved, enabling more diverse and coherent virtual map generation and improving the user experience.

CN115888090BActive Publication Date: 2026-03-31XINGZHEN TECH (SHANGHAI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-19
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

Existing technologies for generating virtual maps produce poor display effects, lack diversity and coherence, and fail to meet user needs.

Method used

By obtaining the number of areas, virtual decoration templates, and map area information in the virtual map, plots of different sizes are generated using multiple plot templates and constraint information. Virtual decorations are then added to the plots, and a virtual map is generated by combining paths and connecting channels.

Benefits of technology

It improves the display effect and diversity of virtual maps, ensures the continuity and interactivity of map areas, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115888090B_ABST
    Figure CN115888090B_ABST
Patent Text Reader

Abstract

The present disclosure provides a virtual map generation method and device, electronic equipment and storage medium, belonging to the technical field of computers. The method comprises: obtaining the number of regions of map regions in a virtual map, a virtual decoration template and map region information of the map regions, and creating the number of regions of map regions; generating at least one plot in each map region based on a plurality of plot templates and first constraint information; adding virtual decorations in the plots contained in the applicable map regions based on the virtual decoration template, and forming the virtual map from the number of regions of map regions. The present disclosure provides a way to generate a virtual map. In the created map region, plots are generated based on a plurality of plot templates for generating plots of different sizes and first constraint information, and virtual decorations are added in the plots based on a virtual decoration template, which enriches the content contained in the map region, improves the diversity of the map region, and thus guarantees the display effect of the virtual map.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of computer, and particularly relates to a virtual map generation method and device, electronic equipment and storage medium. BACKGROUND

[0002] With the development of computer technology, games are more and more popular among users. Generally, when developing a game, a virtual map in the game needs to be generated so that a player can control a virtual object to move in the virtual map or interact with other virtual objects through a terminal. However, the current way of generating a virtual map results in poor display effect of the generated virtual map. How to improve the display effect of the virtual map is a technical problem to be solved at present. SUMMARY

[0003] The present disclosure provides a virtual map generation method and device, electronic equipment and storage medium, which can improve the display effect of the virtual map. The technical solution of the present disclosure is as follows.

[0004] According to an aspect of an embodiment of the present disclosure, a virtual map generation method is provided, and the method comprises:

[0005] obtaining a region quantity of map regions in a virtual map, a virtual decoration template and map region information of the map regions, the map region information comprising a plurality of land block templates for generating land blocks in the map regions and first constraint information between the plurality of land block templates, and there are templates for generating land blocks of different sizes in the plurality of land block templates;

[0006] creating the region quantity of map regions;

[0007] generating at least one land block in each of the map regions based on the plurality of land block templates and the first constraint information;

[0008] adding virtual decorations in land blocks contained in applicable map regions based on the virtual decoration template, and constructing the virtual map by the region quantity of map regions.

[0009] According to another aspect of an embodiment of the present disclosure, a virtual map generation device is provided, and the device comprises:

[0010] an obtaining unit configured to perform obtaining a region quantity of map regions in a virtual map, a virtual decoration template and map region information of the map regions, the map region information comprising a plurality of land block templates for generating land blocks in the map regions and first constraint information between the plurality of land block templates, and there are templates for generating land blocks of different sizes in the plurality of land block templates;

[0011] a creating unit configured to perform creating the region quantity of map regions;

[0012] a generating unit configured to generate at least one plot in each of the map regions based on the plurality of plot templates and the first constraint information;

[0013] an adding unit configured to add virtual decorations in plots contained in applicable map regions based on the virtual decoration template, the virtual map being composed of the number of map regions.

[0014] In some embodiments, the generating unit is configured to, if the first constraint information comprises a first generation number of the plurality of plot templates, generate the first generation number of plots in the map region by applying the plurality of plot templates; or, if the first constraint information comprises a second generation number, the second generation number being an upper limit of a number of plots generated by applying at least two first plot templates, generate plots in the map region by applying the plurality of plot templates so that a number of plots generated by applying the at least two first plot templates in the map region is not greater than the second generation number, the first plot template being a plot template in the plurality of plot templates; or, if the first constraint information comprises a third generation number, the third generation number being a lower limit of a number of plots generated by applying at least two second plot templates, generate plots in the map region by applying the plurality of plot templates so that a number of plots generated by applying the at least two second plot templates in the map region is not less than the third generation number, the second plot template being a plot template in the plurality of plot templates; or, if the first constraint information comprises a first distance, the first distance being a distance between plots generated by applying the plurality of plot templates, generate plots in the map region based on a first position of an existing plot in the map region at a position spaced apart from the first position by the first distance; or, if the first constraint information comprises a second distance, the second distance being at least a distance between plots generated by applying a third plot template, generate plots in the map region based on a second position of an existing plot generated by applying the third plot template in the map region at a position spaced apart from the second position by at least the second distance, the third plot template being a plot template in the plurality of plot templates.

[0015] In some embodiments, the faces of the plot templates are filled with colors, and the generation unit is configured to, if the first constraint information indicates that the colors of the contact faces between any two plots generated by applying the plot templates are the same, determine a target generation position in the map region based on the color of a face of a first plot that has been generated in the map region and the color of a face of a target plot template, and generate a second plot by applying the target plot template at the target generation position, the color of the contact face between the first plot and the second plot being the same, the target plot template being any plot template in the plot templates.

[0016] In some embodiments, the device further comprises:

[0017] The generation unit is further configured to perform generating the plot templates.

[0018] A coloring unit is configured to perform invoking a coloring tool to fill the faces of the plot templates with colors.

[0019] In some embodiments, the device further comprises:

[0020] The acquisition unit is further configured to perform acquiring second constraint information of a plurality of virtual decoration templates, the second constraint information including at least one of an orientation of a virtual decoration added by applying the virtual decoration template, a positional relationship between two virtual decorations added by applying the virtual decoration template, or a generation region of a virtual decoration added by applying the virtual decoration template.

[0021] The addition unit is configured to, if the second constraint information includes the orientation, apply the virtual decoration template to add the virtual decoration in the plot included in the map region in the orientation, or if the second constraint information includes the positional relationship, add a virtual decoration in a plot corresponding to a position that satisfies the positional relationship with a third position of an existing virtual decoration in the plot included in the map region based on the third position, or if the second constraint information includes the generation region, apply the virtual decoration template to add a virtual decoration in a plot included in the map region and containing the generation region.

[0022] In some embodiments, the device further comprises:

[0023] The acquisition unit is further configured to perform acquiring a clipping ratio of the map region, the clipping ratio indicating a ratio of clipping a third plot in the map region, the third plot being a plot of a target size in the map region.

[0024] determining unit configured to determine a number of third blocks to be cropped from the map region by multiplying the cropping ratio with the number of third blocks in the map region;

[0025] cropping unit configured to randomly crop the number of third blocks from the map region.

[0026] In some embodiments, the apparatus further comprises:

[0027] The obtaining unit is further configured to obtain a path template, the path template being used to generate a virtual path in the virtual region.

[0028] The apparatus further comprises:

[0029] determining unit configured to determine a first connection point and a second connection point in any two fourth blocks in the map region, the fourth blocks being blocks in the map region with a size greater than a target size, in a case that the map region comprises a plurality of fourth blocks.

[0030] The determining unit is further configured to determine a path between the first connection point and the second connection point based on positions of the first connection point and the second connection point in the map region.

[0031] The generating unit is further configured to generate the virtual path in the blocks through which the path passes based on the path template.

[0032] In some embodiments, the obtaining unit is further configured to obtain a region connection template and a region connection identifier, the region connection template being used to generate a virtual connection channel between two map regions, the region connection identifier indicating a connection manner between the number of map regions.

[0033] The generating unit is further configured to generate the virtual connection channel between the number of map regions based on the connection manner and the region connection template, in a case that the number of map regions have been created.

[0034] In some embodiments, the generating unit is further configured to generate a plurality of perspective images of the map region, in a case that blocks in the map region have been generated.

[0035] The generating unit is further configured to generate a plurality of perspective images of the virtual map based on the plurality of perspective images of the number of map regions and the virtual map.

[0036] In some embodiments, the acquisition unit is configured to execute the display map configuration interface; in response to a map generation instruction in the map configuration interface, acquire the number of regions, the virtual decoration template, and the map region information from the map configuration interface;

[0037] The device further includes:

[0038] The display unit is configured to display the virtual map in the map configuration interface.

[0039] According to another aspect of the present disclosure, an electronic device is provided, the electronic device comprising:

[0040] One or more processors;

[0041] Memory used to store the executable program code of the processor;

[0042] The processor is configured to execute the program code to implement the virtual map generation method described above.

[0043] According to another aspect of the present disclosure, a computer-readable storage medium is provided that, when program code in the computer-readable storage medium is executed by a processor of an electronic device, enables the electronic device to perform the virtual map generation method described above.

[0044] According to another aspect of the present disclosure, a computer program product is provided, including a computer program / instructions that, when executed by a processor, implement the above-described virtual map generation method.

[0045] This disclosure provides a method for generating virtual maps. By utilizing the number of map regions contained in the virtual map, a corresponding number of map regions are created. Within the created map regions, plots are generated based on multiple plot templates for generating plots of different sizes and first constraint information. Virtual decorations are added to the plots based on virtual decoration templates, so that the virtual regions may contain plots of different sizes, enriching the content contained in the map regions, improving the diversity of the map regions, and avoiding the generation of virtual maps that do not conform to the first constraint information, thereby ensuring the display effect of the virtual map.

[0046] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0047] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.

[0048] Figure 1 This is a schematic diagram illustrating an implementation environment according to an exemplary embodiment.

[0049] Figure 2 This is a flowchart illustrating a virtual map generation method according to an exemplary embodiment.

[0050] Figure 3 This is a flowchart illustrating another method for generating virtual maps according to an exemplary embodiment.

[0051] Figure 4 This is a flowchart illustrating another method for generating virtual maps according to an exemplary embodiment.

[0052] Figure 5 This is a flowchart illustrating another method for generating virtual maps according to an exemplary embodiment.

[0053] Figure 6 This is a flowchart illustrating another method for generating virtual maps according to an exemplary embodiment.

[0054] Figure 7 This is a flowchart illustrating another method for generating virtual maps according to an exemplary embodiment.

[0055] Figure 8 This is a schematic diagram illustrating a map configuration interface according to an exemplary embodiment.

[0056] Figure 9 This is a schematic diagram illustrating another map configuration interface according to an exemplary embodiment.

[0057] Figure 10 This is a schematic diagram illustrating another map configuration interface according to an exemplary embodiment.

[0058] Figure 11 This is a block diagram of a virtual map generation apparatus according to an exemplary embodiment.

[0059] Figure 12 This is a block diagram of another virtual map generation apparatus according to an exemplary embodiment.

[0060] Figure 13 This is a block diagram illustrating a terminal according to an exemplary embodiment.

[0061] Figure 14 This is a block diagram illustrating a server according to an exemplary embodiment. Detailed Implementation

[0062] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0063] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0064] It should be noted that the information (including but not limited to map area information) and data (including but not limited to the number of areas and virtual decoration templates) involved in this disclosure are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the map area information involved in this disclosure was obtained with full authorization.

[0065] The virtual map generation method provided in this disclosure can be executed by an electronic device. In some embodiments, the electronic device is provided as a terminal or a server. In some embodiments, the terminal is at least one of a smartphone, smartwatch, desktop computer, laptop, MP3 (Moving Picture Experts Group Audio Layer III) player, MP4 (Moving Picture Experts Group Audio Layer IV) player, and laptop computer. In some embodiments, the server is at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. In this disclosure, when the electronic device is provided as a terminal, the terminal performs the operations executed by the virtual map generation method; when the electronic device is provided as a server, the server performs the operations executed by the virtual map generation method, or the server and the terminal interact to perform the operations executed by the virtual map generation method. For example, the terminal obtains the number of regions, virtual decoration templates, and map region information, sends the number of regions, virtual decoration templates, and map region information to the server, and the server generates a virtual map based on the number of regions, virtual decoration templates, and map region information.

[0066] In some embodiments, the electronic device is provided as a server. Figure 1 This is a schematic diagram illustrating the implementation environment of a virtual map generation method according to an exemplary embodiment, such as...Figure 1 As shown, the implementation environment specifically includes: terminal 101 and server 102.

[0067] Terminal 101 is used to obtain the number of regions, virtual decoration templates, and map region information of the map area in the virtual map, and send the number of regions, virtual decoration templates, and map region information to server 102. Server 102 is used to generate a virtual map based on the number of regions, virtual decoration templates, and map region information sent by terminal 101.

[0068] In some embodiments, a first application provided by server 102 is installed on terminal 101. This first application has the function of generating a virtual map. For example, the first application is a game development application or other applications. When terminal 101 is running the first application, the user can configure the number of regions, virtual decoration templates, and map region information through the first application running on terminal 101. In response to a map generation command, terminal 101 obtains the number of regions, virtual decoration templates, and map region information through the first application, and sends the number of regions, virtual decoration templates, and map region information to server 102, so that server 102 can generate a virtual map.

[0069] In some embodiments, after generating a virtual map, server 102 sends the virtual map to terminal 101 so that terminal 101 can display the virtual map. For example, terminal 101 receives the virtual map sent by server 102 through a first application and displays the virtual map through the first application.

[0070] It should be noted that the above embodiment uses a first application with virtual map generation functionality to interact with a server 102 to generate a virtual map. In another embodiment, the terminal 101 can also interact with the server through a plugin in an application to generate a virtual map. In some embodiments, a target plugin is installed in a second application installed on the terminal 101, and the server 102 provides services for the target plugin, which has the function of generating a virtual map. The second application can be any application, such as a game development application or other applications. In this embodiment, the user can configure the number of regions, virtual decoration templates, and map region information through the target plugin installed in the first application on the terminal 101. In response to the map generation command, the terminal 101 obtains the number of regions, virtual decoration templates, and map region information through the target plugin in the first application, and sends the number of regions, virtual decoration templates, and map region information to the server 102, which then generates the virtual map.

[0071] For example, the developers develop a target plugin for the virtual map generation method provided in the embodiments of this disclosure. The target plugin can be applied to a variety of applications. Taking the installation of the target plugin in a second application as an example, if the target plugin is already installed in the second application, the second application already has the function of generating a virtual map. Then, the terminal 101 interacts with the server 102 in the manner described above based on the second application with the target plugin installed, in order to generate a virtual map.

[0072] Figure 2 This is a flowchart illustrating a virtual map generation method according to an exemplary embodiment, such as... Figure 2 As shown, the method is performed by an electronic device and includes the following steps:

[0073] In step S201, the electronic device acquires the number of regions in the map area of ​​the virtual map, the virtual decoration templates, and the map area information of the map area. The map area information includes multiple plot templates for generating plots in the map area and first constraint information between the multiple plot templates. Among the multiple plot templates, there are templates for generating plots of different sizes.

[0074] In this embodiment, the virtual map can include one or more map regions, each map region being a portion of the virtual map. Each map region can generate plots, and virtual decorations can be added to each plot. After generating plots and adding virtual decorations to the plots within a created map region, the created map regions can constitute a complete virtual map. By acquiring data used to generate the virtual map, such as the number of regions, virtual decoration templates, and map region information, the virtual map can be subsequently generated based on the acquired data.

[0075] The "region quantity" indicates the number of map regions contained in the virtual map. This region quantity can be any value, such as 1 or 4. The virtual decoration template is used to generate virtual decorations to adorn the virtual map. These virtual decorations can be any type of decoration, such as virtual buildings or virtual furniture.

[0076] The map area information is used to generate plots within the map area. The plot templates included in this map area information are used to generate plots within the map area. These plots are laid out in the map area, and virtual decorations can be added to them. The plots can be represented in any form; for example, they can be represented as hexahedrons, irregularly shaped polyhedra, or planar. For instance, a plot can be represented as a floor, laid out in the map area as its floor; or, the floor can be represented as a three-dimensional structure, laid out in the map area as a framework for adding virtual decorations, so that adding virtual decorations to this three-dimensional structure creates a three-dimensional scene in the map area, such as a multi-story building. The first constraint information included in the map area information is used to constrain the relationships between plots generated by applying multiple plot templates within the map area. In this embodiment of the disclosure, the sizes of the plots generated by applying the multiple plot templates are not exactly the same. For example, different plot templates among the multiple plot templates are used to generate plots of different sizes; or, among the multiple plots, there are templates used to generate plots of the same size, and there are also templates used to generate plots of different sizes.

[0077] In this embodiment of the disclosure, the number of regions limits the number of map regions contained in the virtual map, the virtual decoration template is used to generate virtual decorations in the virtual region, and the map region information of the map region limits the multiple plot templates used to generate plots in the map region and the constraint information between the multiple plot templates, so that plots can be generated in the map region subsequently based on the number of regions, the virtual decoration templates and the map region information.

[0078] In step S202, the electronic device creates a map area for that number of regions.

[0079] In this embodiment of the disclosure, since the number of regions indicates the number of map regions contained in the virtual map, map regions of that number of regions are created so that the created map regions of that number of regions can subsequently form a virtual map.

[0080] In step S203, the electronic device generates at least one plot in each map area based on multiple plot templates and first constraint information.

[0081] In this embodiment of the disclosure, each land parcel template is used to generate a land parcel, and the first constraint information is used to constrain the relationship between the generation of multiple land parcel templates in a map area. Then, for any map area, based on the multiple land parcel templates and the first constraint information, at least one land parcel is generated in the map area so that the land parcel generated in the map area satisfies the first constraint information. In the above manner, land parcels can be generated in each map area so that the land parcels in each map area satisfy the first constraint information.

[0082] In step S204, the electronic device adds virtual decorations to the plots contained in the applicable map area based on the virtual decoration template, and the number of map areas constitutes the virtual map.

[0083] In this embodiment of the disclosure, the virtual decoration template is applicable to one or more map regions within the specified number of map regions. Based on the virtual decoration template, virtual decorations can be added to the map regions to which the template applies. The virtual decorations are used to decorate the map regions. By adding virtual decorations to the applicable map regions based on the template, the map regions are enriched with their content. Subsequently, the created map regions constitute a virtual map, thereby enhancing the display effect of the virtual map.

[0084] This disclosure provides a method for generating virtual maps. By utilizing the number of map regions contained in the virtual map, a corresponding number of map regions are created. Within the created map regions, plots are generated based on multiple plot templates for generating plots of different sizes and first constraint information. Virtual decorations are added to the plots based on virtual decoration templates, so that the virtual regions may contain plots of different sizes, enriching the content contained in the map regions, improving the diversity of the map regions, and avoiding the generation of virtual maps that do not conform to the first constraint information, thereby ensuring the display effect of the virtual map.

[0085] In some embodiments, based on multiple plot templates and first constraint information, at least one plot is generated in each map area, including:

[0086] If the first constraint information includes a first generation quantity of multiple parcel templates, then multiple parcel templates are applied in the map area to generate the first generation quantity of parcels; or...

[0087] If the first constraint information includes a second generation quantity, where the second generation quantity is the upper limit for the number of plots generated using at least two first plot templates, then in a map area, multiple plot templates are applied to generate plots so that the number of plots generated in the map area using at least two first plot templates does not exceed the second generation quantity, and the first plot template is a template among the multiple plot templates; or...

[0088] If the first constraint information includes a third generation quantity, where the third generation quantity is a lower limit for the number of plots generated using at least two second plot templates, then in a map area, multiple plot templates are applied to generate plots so that the number of plots generated in the map area using at least two second plot templates is not less than the third generation quantity, and the second plot template is a template among multiple plot templates; or...

[0089] If the first constraint information includes a first distance, where the first distance is the distance between plots generated using multiple plot templates, then in the map area, based on the first location of existing plots in the map area, plots are generated using plot templates at locations separated from the first location by the first distance; or...

[0090] If the first constraint information includes a second distance, which is the minimum distance between plots generated by applying the third plot template, in the map area, based on the second location of the existing plots in the map area that are generated by applying the third plot template, at a location at least a second distance away from the second location, a plot is generated by applying the third plot template, where the third plot template is a template among multiple plot templates.

[0091] This disclosure provides multiple ways to generate land parcels in a map area. Based on different contents contained in the first constraint information, land parcels can be generated in the map area in different ways. Land parcels can be generated in the map area in any one or more ways, which enriches the ways to generate land parcels in the map area, ensures the display style of the map area, and thus ensures the display effect of the virtual map.

[0092] In some embodiments, the faces of the land parcel templates are filled with color, and at least one land parcel is generated in each map area based on multiple land parcel templates and first constraint information, including:

[0093] If the first constraint information indicates that the contact surface between any two plots generated by applying multiple plot templates has the same color, the target generation location in the map area is determined based on the color of the face of the first plot already generated in the map area and the color of the face of the target plot template. At the target generation location, the target plot template is applied to generate a second plot, and the contact surface between the first plot and the second plot has the same color. The target plot template is any one of the multiple plot templates.

[0094] In this embodiment, if the face of the land parcel template is filled with color, then the face of the land parcel generated using that template is also filled with color, and the face of the land parcel and the face of the land parcel template are filled with the same color. Since the first constraint information restricts two land parcels to only having faces filled with the same color in contact, when generating land parcels in a map area using multiple land parcel templates, the colors filled in the faces of currently generated land parcels in the map area are referenced to ensure that the contact faces between the generated land parcels have the same color. This achieves color-based optimization of the connection relationship between different land parcels, ensuring the accuracy of the connection relationship between the generated land parcels.

[0095] In some embodiments, the method further includes:

[0096] Generate land parcel templates;

[0097] Use the coloring tool to fill the faces of the plot template with color.

[0098] In this embodiment of the disclosure, when generating the land parcel template, if the surface of the ground template is not yet filled with color, the coloring tool is called to fill the surface of the generated land parcel template with color, thereby obtaining a land parcel template with the surface filled with color, which improves the convenience of coloring the land parcel template.

[0099] In some embodiments, based on a virtual decoration template, virtual decorations are added to plots within an applicable map area. Before the virtual map is constructed from the map areas of that area number, the method further includes:

[0100] Obtain second constraint information for multiple virtual decoration templates. The second constraint information includes at least one of the following: the orientation of the virtual decorations added by applying the virtual decoration templates, the positional relationship between two virtual decorations added by applying the virtual decoration templates, or the generation area of ​​the virtual decorations added by applying the virtual decoration templates.

[0101] Based on virtual decoration templates, virtual decorations are added to plots within the applicable map area. The virtual map is composed of a number of map areas, including:

[0102] If the second constraint information includes orientation, apply a virtual decoration template and add virtual decorations to the plots within the map area according to their orientation; or...

[0103] If the second constraint information includes positional relationships, based on the third location of existing virtual decorations in the plots contained in the map area, virtual decorations are added to the plots corresponding to locations that satisfy the positional relationship with the third location using virtual decoration templates; or...

[0104] If the second constraint information includes the generated area, apply the virtual decoration template to add virtual decorations to the plots contained in the map area that also contain the generated area.

[0105] In this embodiment of the disclosure, virtual decorations are added to the map area based on the second constraint information to constrain the orientation or position of the virtual decorations generated in the map area, so as to ensure the display effect of the virtual decorations in the map area, thereby ensuring the display effect of the map area and the display effect of the virtual map.

[0106] In some embodiments, based on a virtual decoration template, virtual decorations are added to plots within an applicable map area. Before the virtual map is constructed from the map areas of that area number, the method further includes:

[0107] Get the cropping ratio of the map region. The cropping ratio indicates the ratio of the third plot in the map region to be cropped. The third plot is the plot in the map region with a size equal to the target size.

[0108] The cropping quantity is determined by multiplying the cropping ratio by the number of third plots in the map area.

[0109] The third plot of land is randomly cut from the map area.

[0110] In this embodiment of the disclosure, after determining the number of plots to be cut, a random cutting method is used to cut the third plot in the map area to remove the number of third plots to be cut. This ensures the randomness of the cut third plots and makes the shape of the map area formed by the remaining plots random. That is, the cut map area has an irregular shape, which enriches the diversity of the map area.

[0111] In some embodiments, before generating at least one plot in each map area based on multiple plot templates and first constraint information, the method further includes:

[0112] Obtain the path template, which is used to generate virtual paths in the virtual region;

[0113] After generating at least one plot in each map area based on multiple plot templates and first constraint information, the method further includes:

[0114] In the case where the map area includes multiple fourth plots, determine the first connection point and the second connection point between any two fourth plots. The fourth plot is a plot in the map area whose size is larger than the target size.

[0115] Based on the locations of the first and second connection points in the map area, the path between the first and second connection points is determined;

[0116] Based on the path template, a virtual path is generated in the plots of land through which the path passes.

[0117] In this embodiment of the disclosure, when the path between the connection points of two fourth plots is determined, a virtual path is generated in the plots through which the path passes based on the path template, presenting the connection path between the two fourth plots, so as to enrich the content displayed in the map area, thereby improving the display effect of the map area, and thus improving the display effect of the virtual map.

[0118] In some embodiments, based on a virtual decoration template, virtual decorations are added to plots within an applicable map area. Before the virtual map is constructed from the map areas of that area number, the method further includes:

[0119] Obtain the region connection template and the region connection identifier. The region connection template is used to generate a virtual connection channel between two map regions, and the region connection identifier indicates the connection method between the number of map regions.

[0120] Given a number of map regions that have already been created, virtual connection channels are generated between these map regions based on the connection method and the region connection template.

[0121] In this embodiment of the disclosure, the connection relationship between the number of map regions is determined according to the connection method of the number of map regions indicated by the region connection identifier. The region connection template is applied to generate a virtual connection channel between every two map regions that are determined to be connected. The generated virtual connection channel and the number of map regions constitute the virtual map, so that the number of map regions are connected, and the virtual object can enter from one map region to another through the virtual connection channel, thereby ensuring the connectivity effect of the virtual map.

[0122] In some embodiments, based on a virtual decoration template, virtual decorations are added to plots within an applicable map area. Before the virtual map is constructed from the map areas of that area number, the method further includes:

[0123] Given that plots have already been generated in the map area, generate images of the map area from multiple perspectives;

[0124] Based on virtual decoration templates, virtual decorations are added to plots within the applicable map area. After the map areas constitute a virtual map, the method further includes:

[0125] Based on the number of regions, multiple perspective images and virtual maps of a map region are generated, and multiple perspective images of the virtual map are generated.

[0126] In this embodiment of the disclosure, the virtual map is composed of a number of map regions with added virtual decorations. Compared with the generated image, the virtual map has added virtual decorations. Based on the generated virtual map and the previously generated image, multiple perspective images of the virtual map are generated to reduce the amount of computation and thus ensure the generation efficiency of multiple perspective images of the virtual map.

[0127] In some embodiments, obtaining the number of map regions, virtual decoration templates, and map region information of the map regions in a virtual map includes:

[0128] Display the map configuration interface;

[0129] In response to the map generation command in the map configuration interface, the number of regions, virtual decoration templates, and map region information are obtained from the map configuration interface.

[0130] Based on virtual decoration templates, virtual decorations are added to plots within the applicable map area. After the map areas constitute a virtual map, the method further includes:

[0131] Display the virtual map in the map configuration interface.

[0132] This disclosure provides a method for generating virtual maps based on a map configuration interface, which facilitates users in configuring data for generating virtual maps and displays the generated virtual maps so that users can intuitively view them, thus facilitating the development of virtual maps.

[0133] In the above Figure 2 Based on the embodiments shown, the embodiments of this disclosure can also randomly crop the created map area and connect the created map areas through virtual connection channels, so that virtual objects in the virtual map can switch the map area they are in through the virtual connection channels, thereby improving the randomness and continuity of the virtual map. For details of the process, please refer to the following embodiments.

[0134] Figure 3 This is a flowchart illustrating another virtual map generation method according to an exemplary embodiment, the method being performed by an electronic device, such as... Figure 3 As shown, the method includes:

[0135] In step S301, the electronic device acquires the number of regions in the map area of ​​the virtual map, the virtual decoration templates, and the map area information of the map area. The map area information includes multiple plot templates for generating plots in the map area and first constraint information between the multiple plot templates. Among the multiple plot templates, there are templates for generating plots of different sizes.

[0136] In some embodiments, the obtained virtual decoration templates include multiple templates, and different templates are used to generate different virtual decorations. In some embodiments, the multiple virtual decoration templates belong to the same type, where the type indicates the type of the virtual decoration generated by the template. For example, if all the virtual decorations belong to the cartoon type, then all the virtual decorations are used to generate virtual decorations of the cartoon type.

[0137] In some embodiments, the plurality of land parcel templates include a template for generating land parcels of a target size and a template for generating land parcels of a size larger than the target size.

[0138] The target size can be any size. In this embodiment, the template used to generate plots of the target size is called a small plot template, and the template used to generate plots larger than the target size is called a large plot template. Plots of the target size are called small plots, and plots larger than the target size are called large plots. That is, the multiple plot templates include both large and small plot templates, so that large or small plots can be generated in the map area to enrich the diversity of the map area.

[0139] In some embodiments, the plurality of plot templates includes a plurality of large plot templates for generating plots of different sizes. In embodiments of this disclosure, the plots generated by different large plot templates may have different sizes. For example, one large plot template is used to generate a plot with dimensions of 10 cm × 20 cm × 1 cm, and another large plot template is used to generate a plot with dimensions of 10 cm × 1 cm × 1 cm.

[0140] In some embodiments, the large plots generated from large plots can serve as interactive areas in a virtual map. In this embodiment, the interactive area is a region in the virtual map where virtual objects can interact, such as exchanging equipment or attacking each other. By obtaining large plot templates and small plot templates, interactive areas can be subsequently generated within the map area, thus enhancing the interactive effect of the virtual map.

[0141] In step S302, the electronic device creates a map area for that number of regions.

[0142] In some embodiments, if the electronic device also obtains the area size of the map region, then the process of creating the map region includes: creating the number of map regions according to the map size.

[0143] In this embodiment of the disclosure, when generating a virtual map, not only can the number of map regions contained in the virtual map be configured, but also the size of the map regions can be configured. Map regions are then created based on the number and size of the map regions to enrich the diversity of the virtual map and thus ensure the display effect of the virtual map.

[0144] In some embodiments, when the electronic device obtains the area size of the area, the process of creating a map area includes: creating a map area according to each area size to obtain the number of map areas.

[0145] In this embodiment of the disclosure, each region size is used to create a map region. Based on the number of region sizes, a certain number of map regions can be created. When generating a virtual map, not only can the number of map regions contained in the virtual map be configured, but the size of each map region can also be arbitrarily configured, so that the virtual map can contain map regions of various sizes, enriching the diversity of the virtual map and thus ensuring the display effect of the virtual map.

[0146] In some embodiments, if the electronic device also obtains the interval distance between map regions, then the process of creating map regions includes: creating the number of map regions according to the interval distance, such that any two map regions are spaced apart by the interval distance.

[0147] In this embodiment of the disclosure, by configuring the interval distance between map regions, the number of map regions contained in the virtual map are separated, and the virtual map is constructed using this number of map regions, so that the virtual map is no longer composed of a single connected region, thus ensuring the display effect of the virtual map.

[0148] In some embodiments, the interval distance obtained by the electronic device includes a maximum interval distance and a minimum interval distance. Then, according to the maximum interval distance and the minimum interval distance, the distance between any two map regions is randomly determined during the creation of the map region, so that the distance between any two map regions in the number of map regions is not less than the minimum interval distance and not greater than the maximum interval distance.

[0149] In this embodiment of the disclosure, by configuring the maximum and minimum interval distance between any two map regions, the distance between any two map regions is determined randomly during the creation of the specified number of map regions. This ensures that the distance between the generated map regions falls between the maximum and minimum interval distances, making the distance between the map regions random. In other words, the virtual map is random, which enriches the display style of the virtual map and thus ensures the display effect of the virtual map.

[0150] In step S303, the electronic device generates at least one plot in each map area based on multiple plot templates and first constraint information.

[0151] In some embodiments, step S303 includes: randomly selecting a plot template from the multiple plot templates based on multiple plot templates and first constraint information, and applying the selected plot template to generate a plot in the map area; based on the first constraint information and the plots already generated in the map area, randomly selecting a plot template that satisfies the first constraint information from the multiple plot templates, and applying the selected plot template to generate a plot in the map area, until the map area is filled with plots, so that the plots already generated in the map area satisfy the first constraint information.

[0152] In this embodiment, the first constraint information is used to constrain the relationship between multiple plot templates generated in the map area. Based on the first constraint information, a plot template that satisfies the first constraint information is randomly selected from the multiple plot templates and the plots generated in the map area are generated in a random manner. This ensures that the relationship between the plots generated in the map area satisfies the first constraint information and guarantees the randomness of the plots generated in the map area, thus ensuring the display effect of the subsequent map area. The above is only an example of a single map area. According to the above method, plots are generated in each map area to fill each map area with plots.

[0153] In some embodiments, each map area is filled with plots of land, and each plot of land in the map area does not exceed the boundary of the map area. In this embodiment of the disclosure, the plots generated in each map area do not exceed the boundary of the map area, avoiding the situation where the map area is disordered due to plots exceeding the boundary of the map area, and ensuring the accuracy of the plots generated in the map area. In some embodiments, a Ban selection algorithm (a constraint algorithm) can be used to ensure that each plot of land does not exceed the boundary of the map area.

[0154] In step S304, the electronic device obtains the cropping ratio of the map area, which indicates the cropping ratio of the third plot in the map area, the third plot being a plot in the map area with a size of the target size.

[0155] In this embodiment of the disclosure, when land parcels have been generated in the created map area, the land parcels in the map area can be randomly cropped to create map areas with irregular shapes, thereby increasing the randomness of the map area and enriching its diversity, so as to ensure the display effect of the virtual map.

[0156] The clipping ratio indicates the proportion of the third plot in the map area. Specifically, if plots have already been generated in the map area, a portion of the third plot is clipped out according to this ratio. The clipping ratio can be any value, such as 0.7 or 0.8. In some embodiments, the third plot is a small plot in the map area, meaning a portion of the small plots in the map area is clipped out according to this ratio.

[0157] In step S305, the electronic device determines the cropping quantity by multiplying the cropping ratio by the number of third plots in the map area.

[0158] In this embodiment of the disclosure, when plots have been generated in a map area, the number of third plots in the map area can be determined. The clipping ratio indicates the proportion of the third plots in the map area to be clipped. The product of the clipping ratio and the number of third plots in the map area can be determined as the number of third plots to be clipped from the map area, that is, the clipping quantity.

[0159] In some embodiments, the process of determining the cropping quantity includes rounding down the product of the cropping ratio and the number of third plots in the map area to obtain the cropping quantity. In this embodiment, the cropping quantity is an integer, while the product of the cropping ratio and the number of third plots in the map area may contain decimals. Therefore, the product is rounded down to ensure that the determined cropping quantity is an integer. For the rounding method, in some embodiments, rounding to the nearest integer, or rounding down or up, is used to determine the cropping quantity.

[0160] In step S306, the electronic device randomly cuts out the third plot of land of the specified number from the map area.

[0161] In this embodiment of the disclosure, after determining the number of plots to be cut, a random cutting method is used to cut the third plot in the map area to remove the number of third plots to be cut. This ensures the randomness of the cut third plots and makes the shape of the map area formed by the remaining plots random. That is, the cut map area has an irregular shape, which enriches the diversity of the map area.

[0162] In some embodiments, the third plot can be randomly cropped using the WFC (Wave Function Collapse) algorithm.

[0163] It should be noted that this embodiment only illustrates the cropping of a third plot within a map region. In another embodiment, according to steps S304-S306, each map region can be randomly cropped to create an irregular shape for each map region formed by the remaining plots. In this embodiment, a random method is used to crop the third plot within each map region, resulting in a number of map regions with irregular shapes, which may vary, thus enriching the diversity of the virtual map and ensuring its display effect.

[0164] In some embodiments, when performing step S304, the cropping ratio of the number of regions is obtained, and each cropping ratio corresponds to a map region. Then, based on each cropping ratio, the corresponding map region is cropped according to steps S305-S306. In this embodiment of the disclosure, a random method is used to randomly crop the map regions according to the cropping ratio corresponding to each map region, so that each cropped map region has a different irregular shape, thereby enriching the diversity of map regions, ensuring the diversity of the subsequently obtained virtual map, and thus ensuring the display effect of the virtual map.

[0165] In step S307, the electronic device obtains a region connection template and a region connection identifier. The region connection template is used to generate a virtual connection channel between two map regions, and the region connection identifier indicates the connection method between the number of map regions.

[0166] In this embodiment of the disclosure, when generating the specified number of map regions, virtual connection channels are also generated between the map regions to connect the specified number of virtual map regions. The region connection template can be of any style and is used to generate the virtual connection channels. For example, the region connection template can be used to generate a staircase-style virtual connection channel, or it can be used to generate a corridor-style virtual connection channel, etc.

[0167] The area connection identifier indicates a connection method. For example, the connection methods indicated by the various area connection identifiers include a series connection or a multi-branch connection. Taking a total of 4 areas as an example, if the area connection identifier indicates a series connection, then the first map area is connected to the second map area, the second map area is connected to the third map area, and the third map area is connected to the fourth map area. That is, after the four map areas are connected in series, the virtual map has only one route to connect the four map areas. If the area connection identifier indicates a multi-branch connection, then the first map area is connected to the second and third map areas respectively, and the third map area is connected to the fourth map area. That is, the first map area is connected to two branches, one branch being the second and third map areas, and the other branch being the fourth map area.

[0168] In step S308, the electronic device generates a virtual connection channel between the number of map regions based on the connection method and the region connection template, provided that the number of map regions has been created.

[0169] In this embodiment of the disclosure, the area connection identifier has indicated the connection method of the number of map areas. According to the connection method, the connection relationship between the number of map areas is determined. The area connection template is applied to generate a virtual connection channel between every two map areas that are determined to be connected. The generated virtual connection channel and the number of map areas constitute the virtual map so that the number of map areas are connected.

[0170] In some embodiments, the electronic device also obtains the size of the area connection template, which is used to define the size of the virtual connection channel generated by applying the area connection template. The process of generating the virtual connection channel includes: if the number of map areas has been created, generating a virtual connection channel of the size between the number of map areas based on the connection method, the area connection template and the size.

[0171] In this embodiment of the disclosure, by configuring the size of the area connection template, the size of the virtual connection channel generated in the virtual map is configured, thereby ensuring the display style of the virtual map and thus ensuring the display effect of the virtual map.

[0172] In some embodiments, the electronic device also obtains the generation range of the virtual connection channel corresponding to the map area. The process of generating the virtual connection channel includes: if the number of map areas has been created, determining the connection relationship of the number of map areas based on the connection method, applying the area connection template, and randomly generating a virtual connection channel within the generation range corresponding to every two map areas that are determined to be connected.

[0173] In this embodiment, each map region corresponds to a generation range, which is the range within which virtual connection channels can be generated. That is, if a virtual connection channel is generated between this map region and other map regions, it can only be generated within the generation range corresponding to this map region. By setting a generation range for each map region, the location of the generated virtual map channel is ensured to be random, thereby ensuring the diversity of the virtual map and thus ensuring the display effect of the virtual map.

[0174] In step S309, the electronic device adds virtual decorations to the plots contained in the applicable map area based on the virtual decoration template, and the number of map areas constitutes the virtual map.

[0175] It should be noted that the embodiments disclosed herein are only described using the execution order of S301-S309 as an example. In another embodiment, the above steps can be executed in other orders. For example, steps S301, S304, and S307 can be executed first, followed by steps S302-S303, S305-S306, and S308. This disclosure does not limit the execution order of the steps.

[0176] It should be noted that in this embodiment, when plots have already been generated in the map area, the plots in the map area are first cropped and virtual connection channels are generated between the number of map areas. In another embodiment, when plots have already been generated in the map area, it is not necessary to perform the above steps S304-S308. Virtual decorations are added to the plots contained in the applicable map area based on the virtual decoration template, and the virtual map is formed by the number of map areas.

[0177] This disclosure provides a method for generating virtual maps. By utilizing the number of map regions contained in the virtual map, a corresponding number of map regions are created. Within the created map regions, plots are generated based on multiple plot templates for generating plots of different sizes and first constraint information. Virtual decorations are added to the plots based on virtual decoration templates, so that the virtual regions may contain plots of different sizes, enriching the content contained in the map regions, improving the diversity of the map regions, and avoiding the generation of virtual maps that do not conform to the first constraint information, thereby ensuring the display effect of the virtual map.

[0178] Furthermore, multiple plot templates, including large plot templates, ensure that large plots can be generated in the virtual map, enriching the types of plots included in the virtual map.

[0179] In this embodiment of the disclosure, after determining the number of plots to be cut, a random cutting method is used to cut the third plot in the map area to remove the number of third plots to be cut. This ensures the randomness of the cut third plots and makes the shape of the map area formed by the remaining plots random. That is, the cut map area has an irregular shape, which enriches the diversity of the map area.

[0180] In this embodiment, the connection relationship between the number of map regions is determined according to the connection method of the region connection identifier. A virtual connection channel is generated between every two connected map regions using the region connection template. The generated virtual connection channel and the number of map regions constitute the virtual map, ensuring connectivity between them. This allows virtual objects in the virtual map to move from one map region to another via the virtual connection channel, thus guaranteeing the connectivity of the virtual map. Furthermore, by setting a generation range for each map region, the location of the generated virtual map channel is randomized, ensuring the diversity of the virtual map and its display effect.

[0181] In the above Figure 2 Based on the embodiments shown, this disclosure can also add virtual decorations to the map area by combining the second constraint information of the virtual decoration template. For details, please refer to the following embodiments.

[0182] Figure 4 This is a flowchart illustrating another virtual map generation method according to an exemplary embodiment, the method being performed by an electronic device, such as... Figure 4 As shown, the method includes:

[0183] In step S401, the electronic device acquires the number of regions in the map area of ​​the virtual map, the virtual decoration templates, and the map area information of the map area. The map area information includes multiple plot templates for generating plots in the map area and first constraint information between the multiple plot templates. Among the multiple plot templates, there are templates for generating plots of different sizes.

[0184] In step S402, the electronic device creates a map area for that number of regions.

[0185] In step S403, the electronic device generates at least one plot in each map area based on multiple plot templates and first constraint information.

[0186] Steps S401-S403 are the same as steps S201-S203 above, and will not be repeated here.

[0187] In step S404, the electronic device acquires second constraint information of multiple virtual decoration templates. The second constraint information includes at least one of the following: the orientation of the virtual decorations added by applying the virtual decoration templates, the positional relationship between two virtual decorations added by applying the virtual decoration templates, or the generation area of ​​the virtual decorations added by applying the virtual decoration templates.

[0188] The multiple virtual decorations are used to generate different virtual decorations, and the second constraint information is used to constrain the virtual decorations generated by the multiple virtual decoration templates. The orientation of a virtual decoration refers to its placement direction. The positional relationship between two virtual decorations indicates their positional relationship within the same map area. For example, the positional relationship between two virtual decorations includes their adjacent positions within the map area, or their positions being spaced apart. The generation area of ​​a virtual decoration represents the location where it can exist within the map area. For example, the generation area is a region not adjacent to the boundary of the map area, meaning the virtual decoration can only be generated in regions not adjacent to the boundary of the map area. In some embodiments, if the faces in the plot template are filled with color, then the faces in the plots generated in the map area are also filled with color. The generation area of ​​the virtual decoration is a region of a specific color; that is, the virtual decoration can only be generated in plots containing faces filled with a specific color.

[0189] In step S405, if the second constraint information includes orientation, the electronic device applies a virtual decoration template and adds virtual decorations to the plots contained in the map area according to the orientation.

[0190] In this embodiment, when the second constraint information restricts the orientation of the virtual decoration, a virtual decoration template is applied, and virtual decorations are added to the plots within the map area according to the specified orientation, so that the orientation of the virtual decorations generated in the map area is the same as the orientation contained in the second constraint information. Since different orientations of virtual decorations may result in different display styles, by constraining the orientation of the virtual decorations, the display style of the virtual decorations in the map area is guaranteed, thereby ensuring the display effect of the virtual map.

[0191] In some embodiments, the second constraint information includes only the orientation of the first virtual decoration template among a plurality of virtual decoration templates. In this case, virtual decorations are added to plots within the map area according to the orientation only when the first virtual decoration template is applied; for other virtual decoration templates, it is not necessary to add virtual decorations to plots within the map area according to the orientation. The first virtual decoration template can be any one of the plurality of virtual decoration templates.

[0192] In some embodiments, the process of adding virtual decorations in a map area includes: randomly selecting a virtual decoration template from a plurality of virtual decoration templates; randomly determining the addition location in the plots included in the map area; if the randomly selected virtual decoration template is the first virtual decoration template, applying the randomly selected virtual decoration template and adding virtual decorations in the plots corresponding to the addition location according to the orientation; if the randomly selected virtual decoration template is not the first virtual decoration template, applying the virtual decoration template and adding virtual decorations in the plots corresponding to the addition location, repeating the above process until virtual decorations have been added to each plot in the map area.

[0193] In this embodiment of the disclosure, by randomly selecting virtual decoration templates and determining the addition positions of virtual decorations, the randomness of virtual decorations in the map area is ensured, enriching the diversity of the map area and thus ensuring the display effect of the virtual map.

[0194] It should be noted that the embodiments disclosed herein describe a process of adding virtual decorations to a map area once. In another embodiment, by repeating the above steps, multiple virtual decorations can be added to the map area to obtain the decorated map area, and thus a virtual map composed of the number of decorated map areas can be obtained.

[0195] In step S406, if the second constraint information of the electronic device includes a positional relationship, based on the third position of the existing virtual decorations in the plots contained in the map area, the electronic device applies the virtual decoration template to add virtual decorations in the plots corresponding to the positions that satisfy the positional relationship with the third position.

[0196] In this embodiment of the disclosure, the second constraint information includes the positional relationship between two virtual decorations added using the virtual decoration template. When adding virtual decorations sequentially in the map area, it is necessary to consider the position of existing virtual decorations in the plots included in the map area to ensure that the positional relationship between each added virtual decoration and other existing virtual decorations satisfies the positional relationship constrained by the second constraint information, thereby ensuring the accuracy of the virtual decorations added in the map area.

[0197] In some embodiments, step S406 includes: if the positional relationship included in the second constraint information indicates that the positions of two virtual decorations are adjacent, based on the third position of the existing virtual decorations in the plots contained in the map area, adding a virtual decoration in the plot corresponding to the position adjacent to the third position; or, if the positional relationship included in the second constraint information indicates the distance between the positions of two virtual decorations in the map area, adding a virtual decoration in the plot corresponding to the position separated from the third position by the distance based on the third position of the existing virtual decorations in the plots contained in the map area, applying the virtual decoration template.

[0198] It should be noted that the embodiments disclosed herein describe a process of adding virtual decorations to a map area once. In another embodiment, by repeating the above steps, multiple virtual decorations can be added to the map area to obtain the decorated map area, and thus a virtual map composed of the number of decorated map areas can be obtained.

[0199] In step S407, if the second constraint information includes a generated area, the electronic device applies a virtual decoration template to add virtual decorations to the plots of land contained in the map area that also contain the generated area, and the number of map areas constitutes a virtual map.

[0200] In this embodiment of the disclosure, the generation area contained in the second constraint information is used to limit the generation location of virtual decorations in the map area, that is, to limit the virtual decorations to be generated only in the corresponding generation area, so as to ensure the display effect of the map area.

[0201] In some embodiments, if the faces in the plot template are filled with color, then the faces in the plots generated in the map area using the plot template are also filled with color, and the generation area of ​​the virtual decoration is an area of ​​a specific color, then step S407 includes: determining the plots contained in the map area that contain the faces of the specific color, applying the virtual decoration template, and adding virtual decorations to the determined plots.

[0202] In this embodiment of the disclosure, the plots in the map area are filled with color, and the second constraint information includes areas of specific colors that allow the generation of virtual decorations. When generating virtual decorations in the map area, the virtual decorations are applied, and virtual decorations are added to the plots containing the areas of specific colors to ensure that the generation position of the virtual decorations is accurate, thereby ensuring the display effect of the map area.

[0203] It should be noted that the embodiments disclosed herein describe a process of adding virtual decorations to a map area once. In another embodiment, by repeating the above steps, multiple virtual decorations can be added to the map area to obtain the decorated map area, and thus a virtual map composed of the number of decorated map areas can be obtained.

[0204] It should be noted that this embodiment only illustrates the example of executing the steps corresponding to the content of the second constraint information in steps S405-S407 after step S404, according to the content contained in the second constraint information. In another embodiment, the second constraint information may also include multiple aspects such as orientation, positional relationship, or generation area. Therefore, when generating virtual decorations in the map area, it is necessary to consider multiple aspects of the second constraint information. Steps S405-S407 can be combined based on the content of the second constraint information to ensure that the virtual decorations added to the map area satisfy the second constraint information. For example, the second constraint information may also include orientation, positional relationship, and generation area. Therefore, when generating virtual decorations in the map area, it is necessary to simultaneously consider the orientation of the virtual decorations, their positional relationship with existing virtual decorations in the map area, and the generation area to ensure the accuracy of the generated virtual decorations and thus the display effect of the map area.

[0205] It should be noted that the embodiments disclosed herein are based on the second constraint information to add virtual decorations to the plots contained in the map area. However, in another embodiment, it is not necessary to perform the above steps S404-S407. Instead, other methods are adopted to add virtual decorations to the plots contained in the applicable map area based on the virtual decoration template, and the map area constitutes a virtual map.

[0206] This disclosure provides a method for generating virtual maps. By utilizing the number of map regions contained in the virtual map, a corresponding number of map regions are created. Within the created map regions, plots are generated based on multiple plot templates for generating plots of different sizes and first constraint information. Virtual decorations are added to the plots based on virtual decoration templates, so that the virtual regions may contain plots of different sizes, enriching the content contained in the map regions, improving the diversity of the map regions, and avoiding the generation of virtual maps that do not conform to the first constraint information, thereby ensuring the display effect of the virtual map.

[0207] Furthermore, based on the second constraint information, virtual decorations are added to the map area to constrain the orientation or position of the virtual decorations generated in the map area, so as to ensure the display of virtual decorations in the map area, thereby ensuring the display effect of the map area and the display effect of the virtual map.

[0208] In the aboveFigure 2 Based on the embodiments shown, this disclosure also provides a method for generating virtual paths in a map area, connecting the fourth plots contained in the map area through virtual paths, so that virtual objects in the virtual map can start from one fourth plot in the map area and enter another fourth plot along the virtual path. That is, virtual objects can switch the fourth plot they are in along the virtual path. For details of the process, please refer to the following embodiments.

[0209] Figure 5 This is a flowchart illustrating another virtual map generation method according to an exemplary embodiment, the method being performed by an electronic device, such as... Figure 5 As shown, the method includes:

[0210] In step S501, the electronic device acquires the number of regions in the map area of ​​the virtual map, the virtual decoration templates, and the map area information of the map area. The map area information includes multiple plot templates for generating plots in the map area and first constraint information between the multiple plot templates. Among the multiple plot templates, there are templates for generating plots of different sizes.

[0211] In step S502, the electronic device creates a map area for that number of regions.

[0212] Steps S501-S502 are the same as steps S201-S202 above, and will not be repeated here.

[0213] In step S503, the electronic device obtains a path template, which is used to generate a virtual path in the virtual area.

[0214] The path template is used to generate virtual paths of any style. For example, it can be used to generate virtual paths in the style of railways or in the style of grasslands.

[0215] It should be noted that the embodiments disclosed herein are only described by taking the execution of the above step S503 after the creation of the map area as an example. In another embodiment, it can also be executed before the above step S502, or simultaneously with the above step S501. That is, while obtaining the number of areas, the virtual decoration template and the map area information of the map area, the path template is obtained. This disclosure does not limit the execution order of the steps.

[0216] In step S504, the electronic device generates at least one plot in each map area based on multiple plot templates and first constraint information.

[0217] This step is the same as step S203 above, and will not be repeated here.

[0218] In step S505, when the map area includes multiple fourth plots, the electronic device determines a first connection point and a second connection point among any two of the multiple fourth plots, wherein the fourth plot is a plot in the map area whose size is larger than the target size.

[0219] In this embodiment of the disclosure, each fourth plot has a connection point for connecting with other fourth plots. When the map area includes multiple fourth plots, the connection point in each fourth plot can be determined. For any two fourth plots, the connection point in one fourth plot is referred to as the first connection point, and the connection point in the other fourth plot is referred to as the second connection point.

[0220] In some embodiments, the sizes of different fourth plots may differ. In this disclosure, plots in the map area that are larger than the target size are referred to as fourth plots, and the sizes of different fourth plots may differ.

[0221] In some embodiments, plots of land with the target size are referred to as small plots, and plots of land with a size larger than the target size are referred to as large plots; that is, the fourth plot is a large plot in the map area.

[0222] In step S506, the electronic device determines the path between the first connection point and the second connection point based on the positions of the first connection point and the second connection point in the map area.

[0223] In this embodiment of the disclosure, after determining the positions of the first connection point and the second connection point in the map area, a path is determined in the map area according to the determined positions. The starting point and the ending point of the path are the first connection point and the second connection point, respectively. At this time, the determined path is only a trajectory that can connect the first connection point and the second connection point.

[0224] In some embodiments, the A-Star algorithm (a path-finding algorithm in static road networks) is used to determine the path between the first and second connection points in the map region.

[0225] In step S507, the electronic device generates a virtual path in the plots traversed by the path based on the path template.

[0226] In this embodiment of the disclosure, when the path between the connection points of two fourth plots is determined, a virtual path is generated in the plots through which the path passes based on the path template, presenting the connection path between the two fourth plots, so as to enrich the content displayed in the map area, thereby improving the display effect of the map area, and thus improving the display effect of the virtual map.

[0227] It should be noted that the above steps S505-S507 are only illustrated using any two fourth plots out of a plurality of fourth plots as an example. In another embodiment, virtual paths between any two fourth plots can also be generated according to the above steps S505-S507 to enable connectivity between any two fourth plots.

[0228] For example, if the fourth plot is an interactive area in the virtual map, virtual paths are generated between multiple fourth plots in the map area so that multiple interactive areas in the map area can be connected. Virtual objects can start from one fourth plot in the map area and enter another fourth plot along the virtual path. This allows virtual objects to switch the fourth plot they are in along the virtual path, thereby improving the interactivity of the map area and thus improving the interactivity of the virtual map.

[0229] It should be noted that the embodiments disclosed herein are illustrated by taking the execution of S502 first and then S503-S507 as an example. In another embodiment, the above steps can be executed in other orders. The execution order of the steps in this disclosure is not limited in this respect.

[0230] In step S508, the electronic device adds virtual decorations to the plots contained in the applicable map area based on the virtual decoration template, and the number of map areas constitutes the virtual map.

[0231] This step is the same as step S204 above, and will not be repeated here.

[0232] This disclosure provides a method for generating virtual maps. By utilizing the number of map regions contained in the virtual map, a corresponding number of map regions are created. Within the created map regions, plots are generated based on multiple plot templates for generating plots of different sizes and first constraint information. Virtual decorations are added to the plots based on virtual decoration templates, so that the virtual regions may contain plots of different sizes, enriching the content contained in the map regions, improving the diversity of the map regions, and avoiding the generation of virtual maps that do not conform to the first constraint information, thereby ensuring the display effect of the virtual map.

[0233] Furthermore, it can generate virtual paths within the map area to connect multiple fourth plots contained within the map area, allowing virtual objects to start from one fourth plot and move along the virtual path to another fourth plot within the map area. This enables virtual objects to switch between their current fourth plot along the virtual path, improving the display effect of the map area and thus enhancing the display effect of the virtual map.

[0234] Furthermore, when the fourth plot is used as an interactive area in the virtual map, virtual paths are generated between multiple fourth plots in the map area so that multiple interactive areas in the map area can be connected, thereby improving the interactivity of the map area and thus the interactivity of the virtual map.

[0235] In the above Figures 2 to 5 Based on the illustrated embodiments, this disclosure also enables the generation of land parcels in a map area in different ways based on different contents contained in the first constraint information. That is, the process of generating land parcels in a map area includes the following six methods:

[0236] The first method: If the first constraint information includes the first generation quantity of multiple plot templates, apply the multiple plot templates in the map area to generate the first generation quantity of plots.

[0237] The first number of generated plots can be any number, such as 10 or 20. This first number of generated plots represents the total number of plots that can be generated in the map area using these multiple plot templates.

[0238] In this embodiment of the disclosure, if the first constraint information includes the first generation quantity, then based on the first constraint information, the multiple plot templates are applied in the map area to generate the first generation quantity of plots, that is, the number of plots generated in the map area satisfies the quantity constrained by the first constraint information.

[0239] The second method: If the first constraint information includes a second generation quantity, the second generation quantity is the upper limit of the number of plots generated by applying at least two first plot templates. In the map area, the multiple plot templates are applied to generate plots so that the number of plots generated by applying at least two first plot templates in the map area is not greater than the second generation quantity. The first plot template is a template among the multiple plot templates.

[0240] In this embodiment of the disclosure, the plurality of land parcel templates may include other land parcel templates besides the first land parcel template. The first constraint information only limits the maximum number of land parcels generated in the map area by applying at least two first land parcel templates, and does not limit the number of land parcels generated in the map area by applying other land parcel templates. The second generation number is the total number of land parcels generated in the map area by applying at least two first land parcel templates. For example, if the plurality of land parcel templates includes 3 first land parcel templates and the second generation number is 3, then applying 3 first land parcel templates in the map area can generate at most 3 land parcels. It is possible to generate land parcels without applying each of the 3 first land parcel templates, or to generate 1 land parcel by applying only one of the 3 first land parcel templates, or to generate 2 land parcels by applying only one or two of the 3 first land parcel templates, or to generate 3 land parcels by applying at least one of the 3 first land parcel templates.

[0241] In some embodiments, the size of the plots generated by the first plot template is larger than the target size. For example, plots of the target size are called small plots, and plots larger than the target size are called large plots. Then, the second generation quantity included in the first constraint information is the upper limit of the number of large plots generated in the map area.

[0242] The third method: If the first constraint information includes a third generation quantity, the third generation quantity is the lower limit of the number of plots generated by applying at least two second plot templates. In the map area, multiple plot templates are applied to generate plots so that the number of plots generated by applying at least two second plot templates in the map area is not less than the third generation quantity. The second plot template is a template among multiple plot templates.

[0243] In this embodiment of the disclosure, the plurality of land parcel templates may include other land parcel templates besides the second land parcel template. The first constraint information only limits the number of land parcels generated in the map area by applying at least two second land parcel templates, and does not limit the number of land parcels generated in the map area by applying other land parcel templates. The third generation number is the total number of land parcels generated in the map area by applying at least two second land parcel templates. For example, if the plurality of land parcel templates includes 3 second land parcel templates and the third generation number is 3, then applying 3 second land parcel templates to generate at least 3 land parcels in the map area can generate at least 3 land parcels by applying only one of the 3 second land parcel templates, or by applying one or two of the 3 second land parcel templates to generate at least 3 land parcels, or by applying each second land parcel template to generate at least 1 land parcel, so that applying 3 second land parcel templates generates at least 3 land parcels.

[0244] In some embodiments, the size of the plots generated by the second plot template is larger than the target size. For example, plots of the target size are called small plots, and plots larger than the target size are called large plots. Then, the third generation quantity included in the first constraint information is the lower limit of the number of large plots generated in the map area.

[0245] In this embodiment of the disclosure, at least two first land parcel templates are not entirely identical to at least two second land parcel templates. That is, one or more first land parcel templates may also serve as second land parcel templates, but not all first land parcel templates serve as second land parcel templates. For example, at least two first land parcel templates include land parcel template 1 and land parcel template 2, and at least two second land parcel templates include land parcel template 1 and land parcel template 3, meaning that land parcel template 1 serves as both a first land parcel template and a second land parcel template.

[0246] The fourth method: If the first constraint information includes a first distance, where the first distance is the distance between plots generated by applying multiple plot templates, in the map area, based on the first location of existing plots in the map area, plots are generated at locations that are separated from the first location by the first distance using plot templates.

[0247] Wherein, the first distance is any distance. In this embodiment of the disclosure, if the first constraint information includes the first distance, then based on the first constraint information, multiple plot templates are applied to sequentially generate plots in the map area, and the plots generated in the map area are spaced apart by the first distance.

[0248] The fifth method: If the first constraint information includes a second distance, which is the minimum distance between plots generated by applying the third plot template, in the map area, based on the second position of the existing plots in the map area that are generated by applying the third plot template, at a position at least at the second distance from the second position, a plot is generated by applying the third plot template, where the third plot template is a template among multiple plot templates.

[0249] The second distance can be any distance. The second distance between plots generated using the third plot template means that the distance between plots generated using the third plot template is greater than or equal to the second distance.

[0250] In this embodiment of the disclosure, the plurality of land parcel templates may include other land parcel templates besides the third land parcel template. The first constraint information only limits the minimum second distance between land parcels generated using the third land parcel template, and does not limit the distance between land parcels generated using other land parcel templates in the map area, nor does it limit the distance between land parcels generated using other land parcel templates in the map area and land parcels generated using the third land parcel template. Based on the second distance constrained by the first constraint information, when multiple land parcel templates are used to generate land parcels in the map area, the land parcels generated using the third land parcel template in the map area are at least spaced by the second distance.

[0251] In some embodiments, the size of the plots generated by the third plot template is larger than the target size. For example, plots of the target size are referred to as small plots, and plots larger than the target size are referred to as large plots. In this case, the first constraint information includes a second distance between the large plots.

[0252] The sixth method: The face of the land parcel template is filled with color. If the first constraint information indicates that the color of the contact surface between any two land parcels generated by applying multiple land parcel templates is the same, the target generation location in the map area is determined based on the color of the face of the first land parcel already generated in the map area and the color of the face of the target land parcel template. At the target generation location, the target land parcel template is applied to generate a second land parcel. The color of the contact surface between the first land parcel and the second land parcel is the same. The target land parcel template is any one of the multiple land parcel templates.

[0253] In this embodiment, if the face of the land parcel template is filled with color, then the face of the land parcel generated using that template will also be filled with color, and the face of the land parcel and the face of the land parcel template will be filled with the same color. Since the first constraint information restricts two land parcels to only having faces filled with the same color in contact, when generating land parcels in a map area using multiple land parcel templates, the colors filled in the faces of currently generated land parcels in the map area will be referenced to ensure that the contact faces between the generated land parcels in the map area have the same color. This achieves optimization of the connection relationship between different land parcels using color, ensuring the accuracy of the connection relationship between the generated land parcels. It should be noted that the above description only uses the target land parcel template among multiple land parcel templates as an example; for other land parcel templates, land parcels can be generated according to the sixth method described above.

[0254] In some embodiments, this disclosure can also utilize a coloring tool to color the land parcel template to obtain the land parcel template. The coloring process includes: generating the land parcel template; and invoking the coloring tool to fill the faces of the land parcel template with color.

[0255] In this embodiment of the disclosure, when generating the land parcel template, if the surface of the ground template is not yet filled with color, the coloring tool is called to fill the surface of the generated land parcel template with color, thereby obtaining a land parcel template with color filled in the surface. This improves the convenience of coloring the land parcel template so that land parcels can be generated in the map area based on the land parcel template with color filled in the surface.

[0256] It should be noted that the above six methods are all illustrated using the process of generating a single plot of land in a map area as an example. In another embodiment, by repeating the execution of any method, multiple plots of land can be generated in the map area.

[0257] It should be noted that the embodiments disclosed herein are merely examples of any one of the above six methods to illustrate the process of generating land parcels in a map area. In another embodiment, the above six methods can be combined arbitrarily. For example, the above six methods can be combined to generate land parcels in a map area according to the combination scheme of the above six methods.

[0258] This disclosure provides multiple ways to generate land parcels in a map area. Based on different contents contained in the first constraint information, land parcels can be generated in the map area in different ways. Land parcels can be generated in the map area in any one or more ways, which enriches the ways to generate land parcels in the map area, ensures the display style of the map area, and thus ensures the display effect of the virtual map.

[0259] In the above Figures 2 to 5 Based on the embodiments shown, this disclosure also enables the generation of multiple perspective images of a virtual region before generating a virtual map, so that multiple perspective images of the virtual map can be generated based on the multiple perspective images of the virtual region, thereby improving the generation efficiency of multiple perspective images of the virtual map. For details of the process, please refer to the following embodiments.

[0260] Figure 6 This is a flowchart illustrating a virtual map generation method according to an exemplary embodiment, such as... Figure 6 As shown, the method is performed by an electronic device and includes the following steps:

[0261] In step S601, the electronic device acquires the number of regions in the map area of ​​the virtual map, the virtual decoration templates, and the map area information of the map area. The map area information includes multiple plot templates for generating plots in the map area and first constraint information between the multiple plot templates. Among the multiple plot templates, there are templates for generating plots of different sizes.

[0262] In step S602, the electronic device creates a map area for that number of regions.

[0263] In step S603, the electronic device generates at least one plot in each map area based on multiple plot templates and first constraint information.

[0264] Steps S601-S603 are the same as steps S201-S203 above, and will not be repeated here.

[0265] In step S604, if plots have already been generated in the map area, the electronic device generates images of the map area from multiple perspectives.

[0266] The multiple viewpoints refer to multiple different arbitrary viewpoints, such as a main viewpoint, a top-down viewpoint, and a viewpoint rotated by a certain angle relative to the main viewpoint. The images of the map area from multiple viewpoints include the scenes presented by the map area from these multiple viewpoints. In this embodiment of the disclosure, when plots have been generated in the map area, the scenes presented by the map area may differ from different viewpoints. Therefore, images of the map area from multiple viewpoints are generated so that the scenes presented by the map area from different viewpoints can be presented based on the generated images.

[0267] In step S605, the electronic device adds virtual decorations to the plots contained in the applicable map area based on the virtual decoration template, and the number of map areas constitutes the virtual map.

[0268] This step is the same as step S204 above, and will not be repeated here.

[0269] In step S606, the electronic device generates images of the virtual map from multiple perspectives based on images of the map area of ​​the number of regions and the virtual map.

[0270] The images of the virtual map from multiple perspectives include the scenes presented by the virtual map from multiple viewpoints.

[0271] In this embodiment of the disclosure, the virtual map is composed of a number of map regions with added virtual decorations. Compared with the generated image, the virtual map has added virtual decorations. Based on the generated virtual map and the previously generated image, multiple perspective images of the virtual map are generated to reduce the amount of computation and thus ensure the generation efficiency of multiple perspective images of the virtual map.

[0272] In the above Figures 2 to 6 Based on the embodiments shown, this disclosure also provides a method for obtaining data for generating a virtual map through a map configuration interface and displaying the generated virtual map. For details, please refer to the following embodiments.

[0273] Figure 7This is a flowchart illustrating another virtual map generation method according to an exemplary embodiment, the method being performed by an electronic device, such as... Figure 7 As shown, the method includes:

[0274] In step S701, the electronic device displays the map configuration interface.

[0275] The map configuration interface is used to configure information for generating virtual maps, such as the number of regions, virtual decoration templates, and map region information.

[0276] In some embodiments, the map configuration interface is an interface provided in a first application. This first application has the function of generating virtual maps. For example, the target application is a game development application.

[0277] In some embodiments, the map configuration interface is implemented by a target plugin installed in a second application. In this embodiment, the second application can be any application. By installing the target plugin in the second application, the second application gains the ability to generate a virtual map and can generate a virtual map according to the virtual map generation method provided in this embodiment.

[0278] In step S702, the electronic device responds to the map generation command in the map configuration interface and obtains the number of map regions, virtual decoration templates and map region information of the map region in the virtual map from the map configuration interface. The map region information includes multiple plot templates for generating plots in the map region and first constraint information between the multiple plot templates. Among the multiple plot templates, there are templates for generating plots of different sizes.

[0279] The map generation command indicates the process of initiating the generation of a virtual map. The map generation command indicates the generation of a virtual map based on the information configured in the map configuration interface. In response to the map generation command, the number of regions, virtual decoration templates and map region information are obtained from the map configuration interface.

[0280] In some embodiments, a map generation option is displayed in the map configuration interface, and in response to triggering the map generation option, it is determined that a map generation instruction has been received.

[0281] It should be noted that in this embodiment, the number of map regions, virtual decoration templates, and map region information of the virtual map are obtained from the map configuration interface. In another embodiment, steps S701-S702 are not required, but other methods are used to obtain the number of map regions, virtual decoration templates, and map region information of the virtual map.

[0282] In step S703, the electronic device creates a map area for that number of regions.

[0283] In some embodiments, when the number of regions, virtual decoration templates, and map region information are obtained from the map configuration interface, the process of creating a map region includes the following three methods:

[0284] The first method: In response to the map generation command in the map configuration interface, create the number of map regions given the number of regions.

[0285] In this embodiment of the disclosure, in response to the map generation command, after obtaining the number of regions from the map configuration interface, the map regions of that number can be created.

[0286] The second method: In response to the confirmation operation of the number of regions configured in the map configuration interface, create the map regions of that number.

[0287] In this embodiment of the disclosure, the user can configure the number of regions in the map configuration interface. Once the confirmation operation for the number of regions is triggered, it means that the number of map regions contained in the virtual map has been determined, and the map regions are created. There is no need to wait for the configuration of other relevant information for generating the virtual map to be completed, so as to ensure the generation efficiency of the virtual map.

[0288] In some embodiments, the confirmation operation for the number of regions configured in the map configuration interface includes: the map configuration interface contains an input area for the number of regions, and if the input area is currently selected, a trigger operation is performed on the regions other than the input area in the map configuration interface; or, the map configuration interface includes a confirmation option corresponding to the number of regions, and a trigger operation is performed on the confirmation option.

[0289] For example, the map configuration interface includes an input area where the user can enter the number of areas. Once the electronic device detects a trigger operation on an area other than the input area in the map configuration interface, it indicates that the number of areas has been entered. The device then retrieves the number of areas contained in the input area and creates a map area for that number of areas. As another example, the map configuration interface includes a confirmation option corresponding to the number of areas. Triggering this confirmation option confirms the number of areas.

[0290] The third method: In response to the region generation command in the map configuration interface, create the number of map regions required.

[0291] In this embodiment of the disclosure, the region generation instruction is used to initiate the process of creating map regions. If the number of regions is obtained from the map configuration interface, once the region generation instruction is received, the process of creating map regions is initiated, and the required number of map regions are created.

[0292] In some embodiments, the method of triggering the region generation instruction includes: receiving the region generation instruction in response to a triggering operation of the region generation option in the map configuration interface.

[0293] In step S704, the electronic device generates at least one plot in each map area based on multiple plot templates and first constraint information.

[0294] In step S705, the electronic device adds virtual decorations to the plots contained in the applicable map area based on the virtual decoration template, and the number of map areas constitutes the virtual map.

[0295] Steps S704-S705 are the same as steps S202-S204 above, and will not be repeated here.

[0296] In step S706, the electronic device displays the virtual map in the map configuration interface.

[0297] In this embodiment of the disclosure, the map configuration interface also has the function of displaying a virtual map. After the virtual map is generated, it can be presented in the map configuration interface for users to view.

[0298] This disclosure provides a method for generating virtual maps based on a map configuration interface, which facilitates users in configuring data for generating virtual maps and displays the generated virtual maps so that users can intuitively view them, thus facilitating the development of virtual maps.

[0299] It should be noted that the above Figures 2 to 7 The embodiments shown are all optional technical solutions, and can be combined in any way to form optional embodiments of this disclosure, which will not be described in detail here.

[0300] It should be noted that the above Figure 7 The illustrated embodiment is merely an example of obtaining the number of regions, virtual decoration templates, and map region information from the map configuration interface. In another embodiment, the above-mentioned... Figures 2 to 7 The illustrated example shows that the cropping ratio, region connection template, region connection identifier, and path template can all be obtained from the map configuration interface.

[0301] The map configuration interface is as follows: Figure 8 and Figure 9 As shown, taking a map area in a virtual map as an example, the map configuration interface displays the scene display area and the data configuration area for the new scene.

[0302] The data configuration area in the map configuration interface allows for the configuration of various region connection templates, such as Region Connection Template 1, Region Connection Template 2, and Region Connection Template 3. For each template, the size and probability of selection can be configured. This probability represents the likelihood of selecting a particular template to generate a virtual connection channel when multiple templates are configured. Furthermore, the map configuration interface also allows configuration of the total number of rooms (i.e., the number of regions), the maximum number of branches, the minimum and maximum distances between rooms, the generation range of virtual connection channels, and the connection method indicated by the region connection identifier. The maximum number of branches refers to the number of branches formed by the rooms within that region.

[0303] Furthermore, the data configuration area includes several options, such as "Generate Virtual Connection Channel," "Restore Virtual Connection Channel," "Generate Room," and "Clear." The "Generate Virtual Connection Channel" option creates virtual connection channels between map areas. Each time this option is triggered, a virtual connection channel is randomly generated between the areas. When this option is triggered again, the previously generated virtual connection channel is removed, and only the currently generated one is displayed. The "Restore Virtual Connection Channel" option restores the previously generated virtual connection channel. The "Generate Room" option generates each room, the plots within the room, and virtual decorations. The "Clear" option clears the currently generated virtual connection channel or room.

[0304] Furthermore, the data configuration area allows users to configure room size and multiple plot templates, such as Plot 1, Plot 2, Plot 3, and Plot 4. It also allows configuration of primary constraints between these templates, such as the maximum or minimum number of Plots 1, 2, 3, and 4 that can be generated, and the distances between them. Additionally, the data configuration area allows users to configure clipping ratios, path templates, and path colors.

[0305] Once the data for generating the virtual map is configured in the data configuration area, in response to the triggering of the option to generate virtual connection channels, the multiple rooms created and the virtual connection channels between the multiple rooms are displayed in the scene display area. In response to the triggering of the option to generate rooms, plots are generated in the rooms and virtual decorations are added to present a virtual map consisting of the number of rooms in that area.

[0306] Furthermore, new land parcel templates can be generated based on the map configuration interface, such as... Figure 10As shown, the map configuration interface also includes a configuration area for the coloring tool. In this area, users can select the coloring grid tool to add or remove coloring grids from the generated plot template displayed in the scene display area. When a plot template already contains coloring grids, users can select different faces of the generated grid using Face 1, Face 2, Face 3, and Face 4. For example, taking a hexahedron as the coloring grid, Face 1 selects the front face of the hexahedron, Face 2 selects the corner faces, Face 3 selects the top face, and so on. Furthermore, users can select a color within the selection area to fill the selected faces with that color.

[0307] It should be noted that, in the above Figures 2 to 7 Based on the illustrated embodiments, the virtual map method provided in this disclosure can be applied to game scenarios. The game can be of any type, such as a Roguelike game (a general term for a type of game). Taking a level-based game as an example, the number of areas represents the number of levels in the game, and each map area corresponds to one level. Virtual connection channels are generated between these map areas, allowing virtual objects to switch map areas by passing through these virtual connection channels. For example, after a user starts a game via an electronic device, the electronic device follows the above... Figures 2 to 7 The illustrated embodiment randomly generates a virtual map. Users control virtual objects via electronic devices to enter the map area corresponding to the first level. Within this map area, users can interact with other virtual objects in interactive zones. They can also move to other interactive zones via virtual paths between multiple interactive zones and control virtual objects to pass through virtual connecting passages to enter the map area corresponding to the second level. Because the virtual map generated by the method provided in this embodiment is random, the virtual map displayed when a user launches the game multiple times via electronic devices may be different, thus enriching the diversity of the game's virtual map.

[0308] Figure 11 This is a block diagram of a virtual map generation apparatus according to an exemplary embodiment, such as... Figure 11 As shown, the device includes:

[0309] The acquisition unit 1101 is configured to acquire the number of regions in the map area of ​​the virtual map, the virtual decoration templates, and the map area information of the map area. The map area information includes multiple plot templates for generating plots in the map area and first constraint information between the multiple plot templates. Among the multiple plot templates, there are templates for generating plots of different sizes.

[0310] Create unit 1102, configured to execute the creation of a map region of a specified number;

[0311] The generation unit 1103 is configured to generate at least one plot in each map area based on multiple plot templates and first constraint information.

[0312] Adding unit 1104 is configured to perform virtual decoration based on a virtual decoration template, adding virtual decorations to plots contained in an applicable map area, the number of map areas constituting a virtual map.

[0313] In some embodiments, the generation unit 1103 is configured to perform the following actions: if the first constraint information includes a first generation quantity of multiple parcel templates, in a map area, apply multiple parcel templates to generate a first generation quantity of parcels; or, if the first constraint information includes a second generation quantity, the second generation quantity being an upper limit for the number of parcels generated by applying at least two first parcel templates, in a map area, apply multiple parcel templates to generate parcels, such that the number of parcels generated in the map area by applying at least two first parcel templates is not greater than the second generation quantity, wherein the first parcel template is a template among multiple parcel templates; or, if the first constraint information includes a third generation quantity, the third generation quantity being a lower limit for the number of parcels generated by applying at least two second parcel templates, in a map area, apply multiple parcel templates to generate parcels, such that the number of parcels generated in the map area by applying at least two second ... number of parcels generated in the map area by applying at least two second parcel templates is greater than the second generation quantity, wherein the number of parcels generated in the map area by applying at least two second parcel templates is greater than the second generation quantity, wherein the number of parcels generated in the map area by applying at least two second parcel templates is greater than the second generation quantity, wherein the number of parcels generated in the map area by applying at least two second parcel templates is greater than the second generation quantity, wherein the number of parcels generated in the map area by applying at least two second parcel templates is greater than the second generation quantity, wherein the number The number of plots generated using at least two second plot templates is not less than the third number of plots generated, wherein the second plot template is a template among multiple plot templates; or, if the first constraint information includes a first distance, wherein the first distance is the distance between plots generated using multiple plot templates, in the map area, based on the first location of existing plots in the map area, plots are generated using plot templates at locations at least a first distance away from the first location; or, if the first constraint information includes a second distance, wherein the second distance is the minimum distance between plots generated using a third plot template, in the map area, based on the second location of existing plots in the map area that are generated using a third plot template, plots are generated using a third plot template at locations at least a second distance away from the second location, wherein the third plot template is a template among multiple plot templates.

[0314] In some embodiments, the face of the land parcel template is filled with color. The generation unit 1103 is configured to perform the following: if the first constraint information indicates that the color of the contact surface between any two land parcels generated by applying multiple land parcel templates is the same, determine the target generation location in the map area based on the color of the face of the first land parcel already generated in the map area and the color of the face of the target land parcel template, and generate a second land parcel at the target generation location by applying the target land parcel template, wherein the color of the contact surface between the first land parcel and the second land parcel is the same, and the target land parcel template is any one of the multiple land parcel templates.

[0315] In some embodiments, such as Figure 12 As shown, the device also includes:

[0316] The generation unit 1103 is also configured to execute the generation of land parcel templates;

[0317] The coloring unit 1105 is configured to execute the coloring tool to fill the surface of the plot template with color.

[0318] In some embodiments, such as Figure 12 As shown, the device also includes:

[0319] The acquisition unit 1101 is further configured to acquire second constraint information of multiple virtual decoration templates. The second constraint information includes at least one of the following: the orientation of the virtual decorations added by applying the virtual decoration templates, the positional relationship between two virtual decorations added by applying the virtual decoration templates, or the generation area of ​​the virtual decorations added by applying the virtual decoration templates.

[0320] The addition unit 1104 is configured to perform the following actions: if the second constraint information includes orientation, apply a virtual decoration template to add virtual decorations to the plots contained in the map area according to the orientation; or, if the second constraint information includes positional relationship, based on the third position of existing virtual decorations in the plots contained in the map area, apply a virtual decoration template to add virtual decorations to the plots corresponding to the positions that satisfy the positional relationship with the third position; or, if the second constraint information includes a generation area, apply a virtual decoration template to add virtual decorations to the plots contained in the map area that also contain a generation area.

[0321] In some embodiments, such as Figure 12 As shown, the device also includes:

[0322] The acquisition unit 1101 is also configured to perform an acquisition of the cropping ratio of the map area, wherein the cropping ratio indicates the cropping ratio of the third plot in the map area, and the third plot is a plot in the map area with a size of the target size;

[0323] The determining unit 1106 is configured to perform the product of the clipping ratio and the number of third plots in the map area to determine the clipping quantity;

[0324] The cropping unit 1107 is configured to perform a third cropping operation, randomly removing a number of plots from the map area.

[0325] In some embodiments, such as Figure 12 As shown, the device also includes:

[0326] The acquisition unit 1101 is also configured to execute the acquisition path template, which is used to generate virtual paths in the virtual region;

[0327] The device also includes:

[0328] The determining unit 1106 is configured to determine, in the case that the map area includes multiple fourth plots, a first connection point and a second connection point among any two fourth plots, wherein the fourth plot is a plot in the map area whose size is larger than the target size;

[0329] The determining unit 1106 is also configured to determine the path between the first connection point and the second connection point based on the positions of the first connection point and the second connection point in the map area;

[0330] The generation unit 1103 is also configured to perform a path template-based process to generate virtual paths in the plots traversed by the path.

[0331] In some embodiments, the acquisition unit 1101 is further configured to acquire a region connection template and a region connection identifier. The region connection template is used to generate a virtual connection channel between two map regions, and the region connection identifier indicates the connection method between a number of map regions.

[0332] The generation unit 1103 is also configured to generate virtual connection channels between map regions of a given number of regions, based on the connection method and region connection template, in the case of map regions of a given number of regions already created.

[0333] In some embodiments, the generation unit 1103 is further configured to generate images of multiple perspectives of the map area if plots have already been generated in the map area;

[0334] The generation unit 1103 is also configured to perform multiple perspective images and virtual maps of a map region based on the number of regions, and to generate multiple perspective images of the virtual map.

[0335] In some embodiments, such as Figure 12 As shown, the acquisition unit 1101 is configured to execute the display map configuration interface; in response to the map generation command in the map configuration interface, it acquires the number of regions, virtual decoration templates and map region information from the map configuration interface;

[0336] The device also includes:

[0337] Display unit 1108 is configured to display a virtual map in the map configuration interface.

[0338] It should be noted that the virtual map generation device provided in the above embodiments is only an example of the division of the above functional units. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the electronic device can be divided into different functional units to complete all or part of the functions described above. In addition, the virtual map generation device and the virtual map generation method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0339] This disclosure provides an electronic device, which includes: one or more processors; and a memory for storing executable program code of the processor; wherein the processor is configured to execute program code to implement the virtual map generation method described above.

[0340] In some embodiments, when the electronic device is provided as a terminal Figure 13 This is a block diagram illustrating a terminal 1300 according to an exemplary embodiment. The terminal... Figure 13 A structural block diagram of a terminal 1300 provided in an exemplary embodiment of the present disclosure is shown. Typically, the terminal 1300 includes a processor 1301 and a memory 1302.

[0341] Processor 1301 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1301 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1301 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1301 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1301 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0342] The memory 1302 may include one or more computer-readable storage media, which may be non-transitory. The memory 1302 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1302 are used to store at least one program code, which is executed by the processor 1301 to implement the virtual map generation method provided in the method embodiments of this disclosure.

[0343] In some embodiments, the terminal 1300 may also optionally include a peripheral device interface 1303 and at least one peripheral device. The processor 1301, memory 1302, and peripheral device interface 1303 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1303 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 1304, a display screen 1305, a camera assembly 1306, an audio circuit 1307, and a power supply 1308.

[0344] Peripheral device interface 1303 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1301 and memory 1302. In some embodiments, processor 1301, memory 1302 and peripheral device interface 1303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1301, memory 1302 and peripheral device interface 1303 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0345] The radio frequency (RF) circuit 1304 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1304 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1304 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 1304 can communicate with other terminals via at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: metropolitan area networks (MANs), various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks (WLANs), and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1304 may also include circuitry related to NFC (Near Field Communication), which is not limited in this disclosure.

[0346] Display screen 1305 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 1305 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1301 for processing. In this case, display screen 1305 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 1305, which serves as the front panel of terminal 1300; in other embodiments, there may be at least two display screens, respectively disposed on different surfaces of terminal 1300 or in a folded design; in still other embodiments, display screen 1305 may be a flexible display screen, disposed on a curved or folded surface of terminal 1300. Furthermore, display screen 1305 may also be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. The display screen 1305 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0347] The camera assembly 1306 is used to acquire images or videos. Optionally, the camera assembly 1306 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 1306 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.

[0348] The audio circuit 1307 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to the processor 1301 for processing, or input to the radio frequency circuit 1304 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each located at a different part of the terminal 1300. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 1301 or the radio frequency circuit 1304 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 1307 may also include a headphone jack.

[0349] Power supply 1308 is used to power the various components in terminal 1300. Power supply 1308 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When power supply 1308 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0350] Those skilled in the art will understand that Figure 13 The structure shown does not constitute a limitation on terminal 1300 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0351] In some embodiments, when the electronic device is provided as a server Figure 14This is a block diagram illustrating a server 1400 according to an exemplary embodiment. The server 1400 can vary significantly due to differences in configuration or performance. It may include one or more Central Processing Units (CPUs) 1401 and one or more memories 1402. The memories 1402 store at least one line of program code, which is loaded and executed by the processor 1401 to implement the virtual map generation method provided in the various method embodiments described above. Of course, the server may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input and output. The server 1400 may also include other components for implementing device functions, which will not be elaborated here.

[0352] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the virtual map generation method described above. Optionally, the computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, or optical data storage device, etc.

[0353] A computer program product includes a computer program / instructions that, when executed by a processor, implement the virtual map generation method described above.

[0354] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0355] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A virtual map generation method characterized by comprising: The method comprises: obtaining a region quantity of map regions in a virtual map, a virtual decoration template, and map region information of the map regions, the map region information comprising a plurality of plot templates for generating plots in the map regions and first constraint information between the plurality of plot templates, and there being plot templates for generating plots of different sizes in the plurality of plot templates; creating the region quantity of map regions; filling a face of the plot template with a color; if the first constraint information indicates that the colors of contact faces between any two plots generated by applying the plurality of plot templates are the same, determining a target generation position in the map region based on the color of a face of a first plot that has been generated in the map region and the color of a face of a target plot template, and applying the target plot template to generate a second plot at the target generation position, the color of the contact face between the first plot and the second plot being the same, and the target plot template being any plot template in the plurality of plot templates; adding virtual decorations in plots contained in applicable map regions based on the virtual decoration template, and constructing the virtual map from the region quantity of map regions; before the step of adding virtual decorations in plots contained in applicable map regions based on the virtual decoration template, and constructing the virtual map from the region quantity of map regions, the method further comprises: obtaining a region connection template and a region connection identifier, the region connection template being used to generate a virtual connection channel between two map regions, and the region connection identifier indicating a connection mode between the region quantity of map regions; in a case where the region quantity of map regions has been created, generating the virtual connection channel between the region quantity of map regions based on the connection mode and the region connection template.

2. The method of claim 1, wherein, The method further comprises: if the first constraint information comprises a first generation quantity of the plurality of plot templates, generating the first generation quantity of plots in the map region by applying the plurality of plot templates; or if the first constraint information comprises a second generation quantity, the second generation quantity being an upper limit of the number of plots generated by applying at least two first plot templates, generating plots in the map region by applying the plurality of plot templates, so that the number of plots generated by applying the at least two first plot templates in the map region is not greater than the second generation quantity, the first plot template being a template in the plurality of plot templates; or if the first constraint information comprises a third generation quantity, the third generation quantity being a lower limit of the number of plots generated by applying at least two second plot templates, generating plots in the map region by applying the plurality of plot templates, so that the number of plots generated by applying the at least two second plot templates in the map region is not less than the third generation quantity, the second plot template being a template in the plurality of plot templates; or if the first constraint information comprises a third generation quantity, the third generation quantity being a lower limit of the number of plots generated by applying at least two second plot templates, generating plots in the map region by applying the plurality of plot templates, so that the number of plots generated by applying the at least two second plot templates in the map region is not less than the third generation quantity, the second plot template being a template in the plurality of plot templates; or If the first constraint information comprises a first distance, the first distance is a distance between the blocks generated by applying the plurality of block templates, and in the map area, based on a first position of an existing block in the map area, a block is generated by applying the block template at a position spaced apart from the first position by the first distance; or If the first constraint information comprises a second distance, the second distance is at least a distance between the blocks generated by applying a third block template, and in the map area, based on a second position of an existing block generated by applying the third block template in the map area, a block is generated by applying the third block template at a position spaced apart from the second position by at least the second distance, the third block template being a template in the plurality of block templates.

3. The method of claim 1, wherein, Before the virtual map is constituted by the region number of map areas based on the virtual decoration template and the virtual decoration is added in the block contained in the applicable map area, the method further comprises: Obtaining second constraint information of a plurality of virtual decoration templates, the second constraint information comprising at least one of an orientation of the virtual decoration added by applying the virtual decoration template, a positional relationship between two virtual decorations added by applying the virtual decoration template, or a generation area of the virtual decoration added by applying the virtual decoration template; The virtual map is constituted by the region number of map areas based on the virtual decoration template and the virtual decoration is added in the block contained in the applicable map area, comprising: If the second constraint information comprises the orientation, the virtual decoration template is applied to add the virtual decoration in the block contained in the map area according to the orientation; or If the second constraint information comprises the positional relationship, based on a third position of an existing virtual decoration in the block contained in the map area, the virtual decoration template is applied to add a virtual decoration in the block corresponding to the position satisfying the positional relationship with the third position; or If the second constraint information comprises the generation area, the virtual decoration template is applied to add a virtual decoration in the block contained in the map area and containing the generation area.

4. The method of claim 1, wherein, Before the virtual map is constituted by the region number of map areas based on the virtual decoration template and the virtual decoration is added in the block contained in the applicable map area, the method further comprises: Obtaining a clipping ratio of the map area, the clipping ratio indicating a proportion of clipping a third block in the map area, the third block being a block with a target size in the map area; A product of the clipping ratio and a number of the third blocks in the map area is determined as a clipping number; A random number of third blocks are clipped from the map area.

5. The method of claim 1, wherein, Before at least one block is generated in each of the map areas based on the plurality of block templates and the first constraint information, the method further comprises: Obtaining a path template, the path template being used to generate a virtual path in a virtual area; After generating at least one plot in each of the map areas based on the plurality of plot templates and the first constraint information, the method further comprises: In a case where the map area comprises a plurality of fourth plots, the first connection point and the second connection point in any two of the plurality of fourth plots are determined, the fourth plot being a plot in the map area with a size greater than a target size; Based on the positions of the first connection point and the second connection point in the map area, a path between the first connection point and the second connection point is determined; Based on the path template, the virtual path is generated in the plots through which the path passes.

6. The method of claim 1, wherein, The method further comprises: generating the plot template; calling a color filling tool to fill the plot template with color.

7. The method according to any one of claims 1 to 6, characterized in that, Before the step of adding virtual decorations in plots contained in applicable map areas based on the virtual decoration template, and composing the virtual map with the region number of map areas, the method further comprises: In a case where plots have been generated in the map area, images of a plurality of perspectives of the map area are generated; After the step of adding virtual decorations in plots contained in applicable map areas based on the virtual decoration template, and composing the virtual map with the region number of map areas, the method further comprises: Based on the images of a plurality of perspectives of the region number of map areas and the virtual map, images of a plurality of perspectives of the virtual map are generated.

8. The method according to any one of claims 1 to 6, characterized in that, The step of obtaining the region number of map areas in a virtual map, a virtual decoration template, and map area information of the map area comprises: displaying a map configuration interface; in response to a map generation instruction in the map configuration interface, obtaining the region number, the virtual decoration template, and the map area information from the map configuration interface; After the step of adding virtual decorations in plots contained in applicable map areas based on the virtual decoration template, and composing the virtual map with the region number of map areas, the method further comprises: displaying the virtual map in the map configuration interface.

9. A virtual map generation apparatus characterized by comprising: The apparatus comprises: an obtaining unit configured to perform obtaining a region number of map areas in a virtual map, a virtual decoration template, and map area information of the map area, the map area information comprising a plurality of plot templates for generating plots in the map area and first constraint information between the plurality of plot templates, there being a template for generating a plot of different sizes in the plurality of plot templates; a creating unit configured to perform creating the region number of map areas; The faces of the plot templates are filled with colors; a generation unit is configured to perform, if the first constraint information indicates that the colors of the contact faces between any two plots generated by applying the plurality of plot templates are the same, based on the color of the face of the first plot already generated in the map area and the color of the face of a target plot template, determining a target generation position in the map area at which a second plot is generated by applying the target plot template, the color of the contact face between the first plot and the second plot being the same, the target plot template being any plot template in the plurality of plot templates; an adding unit configured to perform, based on the virtual decoration template, adding virtual decorations in plots contained in applicable map areas, the virtual map being composed of the region number of map areas; the acquisition unit is further configured to acquire a region connection template and a region connection identifier, the region connection template being used to generate a virtual connection channel between two map areas, the region connection identifier indicating a connection manner between the region number of map areas; the generation unit is further configured to perform, in a case where the region number of map areas have been created, based on the connection manner and the region connection template, generating the virtual connection channel between the region number of map areas.

10. An electronic device, comprising: The electronic device comprises: one or more processors; a memory for storing program codes executable by the processors; wherein the processors are configured to execute the program codes to implement the virtual map generation method according to any one of claims 1 to 8.

11. A computer readable storage medium, characterized in that, When the instructions in the computer readable storage medium are executed by the processors of the electronic device, the electronic device is enabled to perform the virtual map generation method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Map generating method and device, storage medium and terminal

    CN108057245A

  • Map generation method and device, electronic equipment and computer storage medium

    CN115294239A