Map processing method and device, equipment and storage medium
By identifying and removing private textures in transition areas within a virtual scene, and then using public texture information to fill the areas to be filled, the seam problem during texture splicing in a virtual scene is solved, resulting in a better user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2023-03-10
- Publication Date
- 2026-04-10
AI Technical Summary
In virtual scenes, noticeable seams can easily appear when textures from adjacent map areas are stitched together, affecting the user's interactive experience.
By identifying the transition region associated with the first map region and the second map region, private textures are identified and removed based on texture information, and the area to be filled is filled using public texture information. Texture refilling is then performed to achieve a smooth transition.
It improves the smooth transition of textures between different map areas in virtual scenes, enhancing the user's interactive experience.
Smart Images

Figure CN116309944B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Example embodiments of the present disclosure generally relate to the field of computers, and in particular, to a map processing method, apparatus, device and computer readable storage medium. BACKGROUND
[0002] With the development of computers, various forms of electronic devices can greatly enrich people's daily life. For example, electronic devices can present virtual scenes by making images of virtual scenes.
[0003] However, virtual scenes are becoming more and more complex, and the number of textures involved is also increasing. Thus, when merging the textures of different map regions of a virtual scene, there can be obvious splits or seams. SUMMARY
[0004] In a first aspect of the present disclosure, a map processing method is provided. The method comprises: determining a transition region associated with a first map region and a second map region; determining a set of private textures based on first texture information of the first map region and second texture information of the second map region, the set of private textures comprising a first set of private textures corresponding to the first map region and / or a second set of private textures corresponding to the second map region; determining a to-be-filled region in the transition region by removing the set of private textures from the transition region; and filling the to-be-filled region using the first texture information and the second texture information.
[0005] In a second aspect of the present disclosure, an apparatus for map processing is provided. The apparatus comprises: a first region determining module configured to determine a transition region associated with a first map region and a second map region; a private texture determining module configured to determine a set of private textures based on first texture information of the first map region and second texture information of the second map region, the set of private textures comprising a first set of private textures corresponding to the first map region and / or a second set of private textures corresponding to the second map region; a second region determining module configured to determine a to-be-filled region in the transition region by removing the set of private textures from the transition region; and a texture filling module configured to fill the to-be-filled region using the first texture information and the second texture information.
[0006] In a third aspect of the present disclosure, an electronic device is provided. The device comprises at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. The instructions, when executed by the at least one processing unit, cause the device to perform the method of the first aspect.
[0007] In a fourth aspect of the present disclosure, a computer readable storage medium is provided. The computer readable storage medium has stored thereon a computer program, which is executable by a processor to implement the method of the first aspect.
[0008] It should be understood that nothing in the Summary is to be construed as a limitation on the scope of the embodiments of the present disclosure. Other features, aspects, and advantages of the present disclosure will become apparent from the following description, which is given by way of example only, with reference to the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS
[0009] The above and other features, aspects, and advantages of embodiments of the present disclosure will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings. In the drawings, like reference numerals refer to like elements, in which:
[0010] Figure 1 An example image generated according to a conventional scheme is shown;
[0011] Figure 2 A schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented is shown;
[0012] Figure 3 A flowchart showing a process of map processing according to some embodiments of the present disclosure is shown;
[0013] Figures 4A-4D A schematic diagram showing map processing according to some embodiments of the present disclosure is shown;
[0014] Figure 5 A schematic structural block diagram of a map processing apparatus according to certain embodiments of the present disclosure is shown; and
[0015] Figure 6 A block diagram of an electronic device capable of implementing a number of embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0016] Embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings. While several embodiments of the present disclosure are illustrated, it is to be understood that the present disclosure is not to be limited to the precise embodiments and that various changes and modifications can be effected therein by one skilled in the art. It should be understood that the drawings and detailed description thereto are not intended to limit the scope of the present disclosure to the precise embodiments illustrated. Rather, the embodiments are intended to illustrate by way of example the various aspects of the present disclosure.
[0017] It should be noted that the headings provided in any section / subsection of the disclosure herein are not limitations. Various embodiments are described throughout this document and any type of embodiment can be included under any section / subsection. Furthermore, embodiments described in any section / subsection can be combined with any other embodiment described in the same section / subsection and / or a different section / subsection in any manner.
[0018] In the description of embodiments of the disclosure, the term "includes" and its derivatives, such as "including," should be understood in an open-ended way, that is, "including but not limited to." The term "based on" should be understood as "based at least in part on." The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment." The term "some embodiments" should be understood as "at least some embodiments." Other explicit and implicit definitions can also be included below. The terms "first," "second," and the like can refer to different or the same objects. Other explicit and implicit definitions can also be included below.
[0019] Data of users, acquisition and / or use of data, etc. can be involved in embodiments of the disclosure. These aspects all comply with corresponding laws and regulations and relevant provisions. In embodiments of the disclosure, all data collection, acquisition, processing, processing, forwarding, use, etc. are carried out on the premise that the user is aware of and confirms. Accordingly, when implementing embodiments of the disclosure, the type of data or information that can be involved, the use range, the use scenario, etc. should be notified to the user and the authorization of the user should be obtained through appropriate means according to relevant laws and regulations. The specific notification and / or authorization mode can vary according to the actual situation and application scenario, and the scope of the disclosure is not limited in this respect.
[0020] In the specification and embodiments of the disclosure, if personal information processing is involved, it will be processed on the premise of legality (for example, obtaining the consent of the subject of personal information, or being necessary for the performance of a contract, etc.), and only within the prescribed or agreed range. Users refuse to process personal information other than the necessary information required for basic functions, which will not affect the user's use of basic functions.
[0021] As briefly mentioned above, some complex virtual scenes can involve multiple texture elements. In addition, in the production of some large virtual scenes, different regions can be produced by different designers, and splicing for different regions is performed. This can cause obvious seams when splicing textures.
[0022] For example, Figure 1An example map 100 generated according to a conventional scheme is shown. In the example map 100, the textures of two adjacent map regions 110 and 120 may, for example, be made by different designers, which results in an obvious seam 130 when the two adjacent map regions 110 and 120 are spliced. This will greatly affect the interactive experience of the user, which is undesirable.
[0023] Embodiments of the present disclosure propose a scheme for map processing. According to various embodiments of the present disclosure, an electronic device can determine a transition region associated with a first map region and a second map region. Further, the electronic device can determine a set of private textures based on first texture information of the first map region and second texture information of the second map region, where the set of private textures includes a first set of private textures corresponding to the first map region and / or a second set of private textures corresponding to the second map region.
[0024] Correspondingly, by removing the set of private textures from the transition region, the electronic device can determine a to-be-filled region in the transition region, and can fill the to-be-filled region with the first texture information and the second texture information.
[0025] In this way, embodiments of the present disclosure can achieve smooth transition of textures between different map regions by eliminating private textures in map regions from the transition region and performing re-filling of textures, thereby improving the interactive experience of the user.
[0026] Various example implementations of the scheme are described in further detail below in conjunction with the accompanying drawings. Embodiments of the present disclosure can be applied in various fields of games, simulations, simulations, virtual reality, augmented reality, etc.
[0027] Example Environment
[0028] Figure 2 A schematic diagram of an example environment 200 in which embodiments of the present disclosure can be implemented is shown. As shown, the example environment 200 can include an electronic device 230. Figure 2
[0029] In some embodiments, electronic device 230 may be any type of mobile terminal, fixed terminal, or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, handheld computers, portable gaming terminals, VR / AR devices, personal communication system (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio receivers, e-book devices, gaming devices, or any combination thereof, including accessories and peripherals of these devices or any combination thereof. In some embodiments, electronic device 230 may also include computing systems / servers, such as mainframes, edge computing nodes, computing devices in cloud environments, etc.
[0030] like Figure 2 As shown, the electronic device 230 can acquire first texture information corresponding to the first map region 210 and second texture information corresponding to the second map region 220. Such first map region 210 and second map region 220 can be, for example, adjacent regions in a virtual scene.
[0031] In this disclosure, textures can represent appropriate objects used to construct virtual scenes, such as grasslands, deserts, water bodies, snow-capped mountains, etc. Different objects can correspond to different textures, for example.
[0032] In some embodiments, the first map region 210 and the second map region 220 may be, for example, adjacent surface regions in a virtual scene (also referred to as map regions in some scenarios). Such surface regions may be used to represent the surface environment in a virtual scene.
[0033] As will be described in detail below, the electronic device 230 can perform transition processing on the texture information of the first map region 210 and the second map region 220. In some embodiments, the electronic device 230 may also generate a surface image 240 corresponding to the first map region 210 and the second map region 220 based on the transitioned texture information.
[0034] Such a surface image 240 can be applied to any suitable application, such as gaming applications, simulation applications, and so on. This disclosure is not intended to be limiting.
[0035] The following description will continue with reference to the accompanying drawings, which will provide some exemplary embodiments of this disclosure.
[0036] Example Process
[0037] Figure 3 A flowchart of a process 300 for map processing according to some embodiments of the present disclosure is shown. The process 300 can be implemented at an electronic device 230 as shown in Figure 2 For ease of discussion, the process 300 will be described with reference to the environment 200. Figure 2
[0038] At block 310, the electronic device 230 determines a transition region associated with the first map region and the second map region.
[0039] The specific process of block 310 will be described below with reference to Figure 4A Figure 4A A schematic diagram 400A of map processing according to some embodiments of the present disclosure is shown.
[0040] As shown in Figure 4A For adjacent first map region 405 and second map region 410, the electronic device 230 can determine a transition region 415 based on the positional relationship of the two regions.
[0041] In some embodiments, the electronic device 230 can determine the transition region 415 by utilizing a noise generation algorithm. Specifically, the electronic device 230 determines a target noise generation algorithm from a set of pre-set noise generation algorithms. Illustratively, the electronic device 230 can provide a set of selectable noise generation algorithms, examples of which can include but are not limited to: Berlin noise generation algorithm, Worley noise generation algorithm, grid noise generation algorithm, etc.
[0042] Further, the electronic device 230 can generate the transition region 415 associated with the first map region 405 and the second map region 410 according to the selected target noise generation algorithm.
[0043] Illustratively, the electronic device 230 can perform a plurality of noise generation processes according to the Berlin noise generation algorithm, thereby determining the transition region 415. Such transition region 415 can be represented, for example, by way of a mask.
[0044] In some embodiments, the electronic device 230 can also determine, for example, a range in which the noise region is generated, for example, a range to the boundary of the first map region 405 and the second map region 410, and ensure that the transition region 415 is always within the range. Illustratively, such range can be specified by a user, for example.
[0045] Continuing with reference to Figure 3 At block 320, the electronic device 230 determines a set of private textures based on the first texture information of the first map region and the second texture information of the second map region, the set of private textures including a first set of private textures corresponding to the first map region and / or a second set of private textures corresponding to the second map region.
[0046] Continuing Figure 4A For example, the electronic device 230 can perform statistics on the first texture information of the first map region 405 and the second texture information of the second map region 410, and accordingly can divide the textures into two types: public textures and private textures.
[0047] The public textures represent textures that are contained in both the first map region 405 and the second map region 410. For example, if the first map region 405 and the second map region 410 can both include a desert texture, the desert texture can be determined as a public texture of the first map region 405 and the second map region 410.
[0048] The private textures are textures corresponding to a certain region. For example, if only the first map region 405 includes a forest, the forest texture can be determined as a private texture of the first map region 405. If only the second map region 410 includes a snowfield, the snowfield texture can be determined as a private texture of the second map region 410.
[0049] Thus, the electronic device 230 can determine a set of private textures. It should be understood that the first map region 405 and the second map region 410 can both have their corresponding private textures, or one of the regions can not have any private textures.
[0050] Continuing to refer to Figure 3 At block 330, the electronic device 230 determines a region to be filled in the transition region by removing the set of private textures from the transition region.
[0051] In some embodiments, after determining the set of private textures, the electronic device 230 can remove the set of private textures from the transition region. For example, Figure 4A For example, if the forest texture is determined as a private texture of the first map region 405, and the snowfield texture can be determined as a private texture of the second map region 410, the electronic device 230 can remove the voxels corresponding to the forest texture and the snowfield texture from the transition region 415.
[0052] Further, the electronic device 230 can determine a region in the transition region 415 where no texture exists, and thus determine it as a region to be filled. For example, Figure 4B An example of a region to be filled 400B is shown, according to some embodiments of the present disclosure, where the black part represents the position of the texture to be filled.
[0053] With reference to both Figure 3 At block 340, the electronic device 230 fills the to-be-filled region with the first texture information and the second texture information.
[0054] In some embodiments, the electronic device 230 may, for example, determine one or more textures for filling the to-be-filled region with the first texture information and the second texture information. For example, the electronic device 230 may, for example, fill such a to-be-filled region with a common texture corresponding to the most voxels in the first map region and the second map region.
[0055] In some embodiments, the electronic device 230 may, for example, also perform a more fine-grained texture filling. Specifically, as Figure 4B illustrated, the electronic device 230 may, for example, determine a plurality of reference regions 420 associated with the transition region 415, such a plurality of reference regions 420 may, for example, have a preset shape, e.g., a rectangle, a square, a triangle, etc.
[0056] In some embodiments, such a plurality of reference regions 420 may, for example, be determined based on a partitioning of the region restricted for noise generation as discussed above.
[0057] Further, for such a reference region 420, the electronic device 230 may, for example, perform a region-level texture analysis and filling. For example, Figure 4B As an example, the electronic device 230 may, for example, first determine whether the first portion 422 and the second portion 424 of the reference region 420 include a region common texture, i.e., have the same texture. As Figure 4B illustrated, the first portion 422 may, for example, correspond to the first map region 405, and the second portion 424 may, for example, correspond to the second map region 410.
[0058] If it is determined that the first portion 422 and the second portion 424 include a region common texture, the electronic device 230 may, for example, fill the to-be-filled portion in the reference region 420 with the region common texture, such a to-be-filled portion may, for example, be determined based on the to-be-filled region.
[0059] For example, if the first portion 422 and the second portion 424 both have a desert texture, the electronic device 230 may, for example, fill the to-be-filled portion in the reference region 420 with the desert texture.
[0060] In some embodiments, if the first portion 422 and the second portion 424 include a plurality of region common textures, the electronic device 230 may, for example, determine a target region common texture having the most voxels in the target reference region from the plurality of region common textures.
[0061] For example, if the first portion 422 and the second portion 424 both include a desert texture and a grass texture, the electronic device 230 can determine the texture (e.g., the desert texture) having more voxels in the reference region 420 as the target region common texture.
[0062] Further, the electronic device 230 can fill the portion to be filled in the reference region 420 with the target region common texture.
[0063] In some embodiments, if the first portion 422 and the second portion 424 do not include any region common texture, the electronic device 230 can determine a set of global common textures of the first map region 405 and the second map region 410.
[0064] Further, the electronic device 230 can determine a target global common texture having the most voxels in the first map region 405 and the second map region 410 from the set of global common textures. For example, if the first map region 405 and the second map region 410 include a plurality of global common textures, and the desert texture is the texture having the most voxels in the first map region 405 and the second map region 410 from the plurality of global common textures, the electronic device 230 can determine the desert texture as the target global common texture.
[0065] Further, the electronic device 230 can fill the portion to be filled in the target reference region with the determined target global common texture.
[0066] Based on such a manner, embodiments of the present disclosure can further improve the fineness of the texture transition processing, and improve the interactive experience of the user.
[0067] For example, the texture result filled based on the above-discussed process can be as shown in Figure 4C As shown in Figure 4C Embodiments of the present disclosure can improve the realism of the texture transition.
[0068] However, in some cases, there can be a jump in the filled textures used by two adjacent regions, and thus some seams can still be generated between different reference regions. To further avoid the generation of seams between reference regions, the electronic device 230 can further perform a further texture transition processing between different reference regions.
[0069] In some embodiments, the electronic device 230 can perform a transition processing on two adjacent map regions with texture jumps. As shown in Figure 4D In some embodiments, the electronic device 230 can perform a transition processing on two adjacent map regions with texture jumps. As shown in
[0070] For example, the first reference region 430 can be filled with a desert texture, and the second reference region 440 can be filled with a grass texture. Thus, due to the abrupt change of the filling textures, a seam 435 can be generated between the first reference region 430 and the second reference region 440.
[0071] Further, as shown in FIG. 2B, the electronic device 230 can determine a first update region 450 associated with the first reference region 430 and the second reference region 440. Similar to the generation of the transition region 415, the electronic device 230 can determine the first update region 450 by using a preset noise generation algorithm, for example. Figure 4D Accordingly, the electronic device 230 can determine a target common texture having the most voxels in the first reference region 430 and the second reference region 440.
[0072] For example, the first reference region 430 and the second reference region 440 can include multiple common textures, and the texture corresponding to the most voxels can be a desert texture. Thus, as shown in FIG. 2C, the electronic device 230 can fill the first update region 450 with the desert texture, i.e., replace the part of the first update region 450 previously filled with the common texture with the desert texture. Thus, embodiments of the present disclosure can avoid the generation of seams between different reference regions due to texture filling.
[0073] Figure 4D In some embodiments, the electronic device 230 can also avoid using the same texture to fill multiple reference regions continuously.
[0074] Specifically, the electronic device 230 can determine a set of reference regions in the multiple reference regions 420 that are continuous in position, wherein the set of reference regions are filled with the same third texture, and the number of the set of reference regions is greater than a threshold number.
[0075] For example, the electronic device 230 can determine that there are more than three reference regions 420 that are continuous in position and filled with the same texture in the lateral direction. Accordingly, the electronic device 230 can perform further map processing on such reference regions.
[0076] Specifically, the electronic device 230 can determine a second update region associated with the set of reference regions. For example, the electronic device 230 can determine a third reference region and a fourth reference region from the set of reference regions based on the positions of the set of reference regions. For example, the electronic device 230 can determine the last two position-adjacent reference regions as the third reference region and the fourth reference region according to the filling order.
[0077] Specifically, the electronic device 230 can determine a second update region associated with the set of reference regions. For example, the electronic device 230 can determine a third reference region and a fourth reference region from the set of reference regions based on the positions of the set of reference regions. For example, the electronic device 230 can determine the last two position-adjacent reference regions as the third reference region and the fourth reference region according to the filling order.
[0078] Further, the electronic device 230 can generate a second update region associated with the third reference region and the fourth reference region, for example, using a preset noise generation algorithm. The generation process of such a second update region can refer to the generation process of the transition region 415 and the first update region 450, for example.
[0079] Further, the electronic device 230 can determine a neighbor reference region adjacent to the set of reference regions, wherein the neighbor reference region is filled using a fourth texture different from the third texture. Accordingly, the electronic device 230 can fill the second update region using the fourth texture.
[0080] Illustratively, if the electronic device 230 determines that four horizontally continuous reference regions are all filled using the desert texture, the electronic device 230 can generate the second update region according to the position of the third and fourth reference regions among the four reference regions.
[0081] Further, the electronic device 230 can search forward from the last filled reference region filled using the desert texture according to the filling order. For example, the reference region before the four horizontally continuous reference regions can be filled using the snow texture, for example.
[0082] Accordingly, the electronic device 230 can fill the determined second update region using the snow texture, thereby avoiding filling using the same kind of continuous texture, and thus improving the realism of the picture.
[0083] The above discusses the processing process for the private texture in the transition region 415. In a series of embodiments, the electronic device 230 can also perform transition processing on the public texture in the transition region 415.
[0084] Specifically, the electronic device 230 can determine a set of public textures based on the first texture information of the first map region 405 and the second texture information of the second map region 410, wherein the set of public textures includes textures included in both the first map region 405 and the second map region 410. For example, the first map region 405 and the second map region 410 can both include the snow texture, for example.
[0085] Further, the electronic device 230 can perform transition processing on the part of the transition region 415 corresponding to the set of public textures. Illustratively, the electronic device 230 can apply a preset blur algorithm to the part of the transition region 415 corresponding to the set of public textures to perform transition processing. For example, the electronic device 230 can perform a Gaussian blur operation on the snow texture in the transition region 415, thereby improving the transition smoothness of the transition region 415.
[0086] In some embodiments, the first map region 405 and the second map region 410 may, for example, also have corresponding height information. The electronic device 230 may, for example, also fuse the first height information of the first map region 405 and the second height information of the second map region 410 in the transition region 415 based on an appropriate fusion manner. The fused height information may, for example, be further used to perform a filling process of the texture.
[0087] Such a fusion manner may, for example, be based on a manner of smooth transition, or may also consider the height characteristics in different regions to perform the fusion. The present disclosure is not intended to limit the specific manner of height fusion.
[0088] In some embodiments, as discussed with reference to Figure 2 the first map region and the second map region are, for example, adjacent ground regions in a virtual scene.
[0089] In some embodiments, the electronic device 230 may, for example, also generate a ground image corresponding to the first map region and the second map region based on the processed texture information.
[0090] Based on the above discussed processes, embodiments of the present disclosure are able to achieve smooth transition of textures between different regions by eliminating private textures in the region from the transition region, and performing re-filling of the texture, thereby improving the interactive experience of the user.
[0091] It should be understood that the specific region layout, texture type, etc. shown in the above description and the accompanying drawings are exemplary, and are not intended to constitute a limitation on the present disclosure.
[0092] Example Devices and Equipment
[0093] Embodiments of the present disclosure also provide a corresponding apparatus for implementing the above described method or process. Figure 5 A schematic structural block diagram of an apparatus 500 for map processing according to certain embodiments of the present disclosure is shown. The apparatus 500 may, for example, be implemented as or included in the electronic device 230 as discussed above. Various modules / components in the apparatus 500 may, for example, be implemented by hardware, software, firmware, or any combination thereof.
[0094] As Figure 5As shown, the apparatus 500 includes a first map region determination module 510 configured to determine a transition region associated with a first map region and a second map region; a private texture determination module 520 configured to determine a set of private textures based on first texture information of the first map region and second texture information of the second map region, the set of private textures including a first set of private textures corresponding to the first map region and / or a second set of private textures corresponding to the second map region; a second map region determination module 530 configured to determine a to-be-filled region in the transition region by removing the set of private textures from the transition region; and a texture filling module 540 configured to fill the to-be-filled region with the first texture information and the second texture information.
[0095] In some embodiments, the first region determination module 510 is further configured to determine a target noise generation algorithm from a set of preset noise generation algorithms, and generate the transition region associated with the first map region and the second map region according to the target noise generation algorithm.
[0096] In some embodiments, the apparatus 500 further includes a transition module configured to determine a set of common textures based on the first texture information and the second texture information, the set of common textures including textures included in both the first map region and the second map region, and perform transition processing on a portion of the transition region corresponding to the set of common textures.
[0097] In some embodiments, the transition module is further configured to apply a preset blur algorithm to the portion of the transition region corresponding to the set of common textures.
[0098] In some embodiments, the texture filling module 540 is further configured to determine a plurality of reference regions corresponding to the transition region, the plurality of reference regions having a preset shape, and for a target reference region in the plurality of reference regions, determine whether a first portion and a second portion of the target reference region include a region common texture, the first portion corresponding to the first map region and the second portion corresponding to the second map region, and in response to the first portion and the second portion including the region common texture, fill a to-be-filled portion in the target reference region with the region common texture.
[0099] In some embodiments, the texture filling module 540 is further configured to determine that the first portion and the second portion include a plurality of region common textures, determine a target region common texture having the most voxels in the target reference region from the plurality of region common textures, and fill the to-be-filled portion in the target reference region with the target region common texture.
[0100] In some embodiments, the texture filling module 540 is further configured to: in response to the first portion and the second portion not including the region common texture, determine a set of global common textures for the first map region and the second map region; determine, from the set of global common textures, a target global common texture having the most voxels in the first map region and the second map region; and fill the portion to be filled in the target reference region with the target global common texture.
[0101] In some embodiments, the texture filling module 540 is further configured to: determine a first reference region and a second reference region in the plurality of reference regions, wherein a first texture used to fill the first reference region is different from a second texture used to fill the second reference region; determine a first update region associated with the first reference region and the second reference region; determine a target common texture having the most voxels in the first reference region and the second reference region; and fill the first update region with the target common texture.
[0102] In some embodiments, the texture filling module 540 is further configured to: generate the first update region associated with the first reference region and the second reference region with a preset noise generation algorithm.
[0103] In some embodiments, the texture filling module 540 is further configured to: determine a set of reference regions in the plurality of reference regions that are position continuous, the set of reference regions being filled with a same third texture, and a number of the set of reference regions being greater than a threshold number;
[0104] determine a second update region associated with the set of reference regions; determine a neighbor reference region adjacent to the set of reference regions, the neighbor reference region being filled with a fourth texture different from the third texture; and fill the second update region with the fourth texture.
[0105] In some embodiments, the texture filling module 540 is further configured to: determine a third reference region and a fourth reference region from the set of reference regions; and
[0106] generate a second update region associated with the third reference region and the fourth reference region with a preset noise generation algorithm.
[0107] In some embodiments, the third reference region and the fourth reference region are determined based on positions of the set of reference regions.
[0108] In some embodiments, the first map region and the second map region are adjacent ground surface regions in a virtual scene.
[0109] In some embodiments, the apparatus 500 further comprises a generation module configured to: generate a ground surface image corresponding to the first map region and the second map region.
[0110] In some embodiments, the texture filling module 540 is further configured to fuse the first height information of the first map region and the second height information of the second map region, and fill the region to be filled based on the fused height information and using the first texture information and the second texture information.
[0111] The units included in the apparatus 500 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units can be implemented using software and / or firmware, e.g., machine-executable instructions stored on a storage medium. In addition to or alternatively, some or all of the units in the apparatus 500 can be implemented at least partially by one or more hardware logic components. As an example and not by way of limitation, example types of hardware logic components that can be used include field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SOCs), complex programmable logic devices (CPLDs), etc.
[0112] Figure 6 A block diagram of an electronic device 600 in which one or more embodiments of the disclosure can be implemented is shown. It should be understood that Figure 6 The electronic device 600 shown is merely exemplary and should not be construed as limiting the scope of the embodiments described herein. Figure 6 The electronic device 600 shown can be used to implement Figure 2 the electronic device 230.
[0113] As Figure 6 shown, the electronic device 600 is in the form of a general-purpose electronic device. Components of the electronic device 600 can include, but are not limited to, one or more processors or processing units 610, a memory 620, a storage device 630, one or more communication units 640, one or more input devices 650, and one or more output devices 660. The processing unit 610 can be a real or virtual processor and capable of performing various processes according to programs stored in the memory 620. In a multi-processor system, multiple processing units perform computer-executable instructions in parallel to improve the parallel processing capability of the electronic device 600.
[0114] The electronic device 600 typically includes a plurality of computer storage media. Such media can be any available media that is accessible by the electronic device 600 and includes both volatile and nonvolatile media, removable and non-removable media. The memory 620 can be volatile (such as register, cache, RAM), non-volatile (such as ROM, EEPROM, flash memory), or some combination of the two. The storage device 630 can be a removable or non-removable media, and can include machine-readable media, such as flash drives, magnetic disks, or any other media that can be used to store information and / or data (e.g., training data for training) and that can be accessed by the electronic device 600.
[0115] The electronic device 600 can further include additional removable / non-removable, volatile / nonvolatile storage media. Although not shown in Figure 6 FIG. 6, a disk drive for reading from or writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM) can be provided. In such instances, each drive can be connected to the bus (not shown) by one or more data media interfaces. The memory 620 can include a computer program product 625 having one or more program modules configured to carry out the various methods or actions of the various embodiments of the present disclosure.
[0116] The communication unit 640 enables communications with other electronic devices over a communication medium. Additionally, the functionality of the components of the electronic device 600 can be implemented in a single computing cluster or a plurality of computer machines that are capable of communicating over a communication connection. As such, the electronic device 600 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another network nodes in the networking environment.
[0117] The input device 650 can be one or more input devices, such as a mouse, a keyboard, a trackball, etc. The output device 660 can be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 600 can also communicate with one or more external devices (not shown) such as a storage device, a display device, etc. through the communication unit 640, as needed, devices that enable a user to interact with the electronic device 600, or any devices (e.g., a network card, a modem, etc.) that enable the electronic device 600 to communicate with one or more other electronic devices. Such communication can be carried out via an input / output (I / O) interface (not shown).
[0118] According to an example implementation of the present disclosure, a computer readable storage medium is provided having computer executable instructions stored thereon, where the computer executable instructions are executed by a processor to implement the method described above. According to an example implementation of the present disclosure, a computer program product is also provided that is tangibly stored on a non-transitory computer readable medium and includes computer executable instructions, where the computer executable instructions are executed by a processor to implement the method described above.
[0119] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0120] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0121] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0122] The computer program product of the present disclosure can have a signal including said computer program. This signal can be electronic, electromagnetic, optical, or any other suitable type of signal. Such a signal can be provided through a communication connection, such as electrical wiring, optical fiber, wireless interface, etc. Examples of computer program products include computer program implemented on a personal computer, server, or other networked device. A non-transitory computer readable medium, such as a floppy disk, CD-ROM, DVD-ROM, Blu-ray Disc, hard disk drive, or any other suitable non-transitory computer readable medium can store the computer program product.
[0123] Having described several implementations of the present disclosure, it will be clear to those skilled in the art that many modifications, additions, and deletions can be made to the disclosed implementations without materially departing from the novel teachings of the disclosure set forth herein. Accordingly, embodiments of the present disclosure shall not be limited by what has been particularly shown and described hereinabove. Rather, the scope of the present disclosure includes both combinations and sub-combinations of the various features described hereinabove, as well as variations and modifications thereof that would be apparent to one of ordinary skill in the art upon reading the foregoing description.
Claims
1. A map processing method, comprising: Identify the transition area associated with the first map region and the second map region; Based on the first texture information of the first map region and the second texture information of the second map region, a set of private textures is determined, wherein the set of private textures includes a first set of private textures corresponding to the first map region and / or a second set of private textures corresponding to the second map region; By removing the set of private textures from the transition region, the area to be filled in the transition region is determined; as well as The area to be filled is filled using the common texture corresponding to the most voxels in the first texture information and the second texture information.
2. The method of claim 1, wherein determining the transition region associated with the first map region and the second map region comprises: According to the noise generation algorithm, the transition region associated with the first map region and the second map region is generated.
3. The method according to claim 1, further comprising: Based on the first texture information and the second texture information, a set of common textures is determined, the set of common textures including textures included in both the first map region and the second map region; and A transition process is performed on the portion of the transition region corresponding to the set of common textures.
4. The method of claim 3, wherein performing transition processing on the portion of the transition region corresponding to the set of common textures comprises: A preset blur algorithm is applied to the portion of the transition region corresponding to the set of common textures to perform transition processing.
5. The method of claim 1, wherein filling the area to be filled comprises: A plurality of reference regions corresponding to the transition region are determined, and the plurality of reference regions have a preset shape; as well as For the target reference region among the multiple reference regions: Determine whether the first part and the second part of the target reference area include a region common texture, wherein the first part corresponds to the first map area and the second part corresponds to the second map area; as well as In response to the inclusion of a region common texture in the first and second portions, the region common texture is used to fill the portion of the target reference region to be filled.
6. The method of claim 5, wherein filling the portion to be filled in the target reference region using the regional common texture comprises: It is determined that the first part and the second part include multiple regions sharing a common texture; Determine the target region common texture with the most voxels in the target reference region from the plurality of region common textures; as well as The portion of the target reference area to be filled is filled using the common texture of the target area.
7. The method of claim 5, wherein filling the area to be filled further comprises: In response to the fact that the first part and the second part do not include regional common textures, a set of global common textures for the first map region and the second map region are determined; Determine the target global common texture with the most voxels in the first map region and the second map region from the set of global common textures; as well as The target global common texture is used to fill the portion of the target reference area that needs to be filled.
8. The method according to any one of claims 5 to 7, further comprising: A first reference region and a second reference region are determined among the plurality of reference regions, wherein a first texture used to fill the first reference region is different from a second texture used to fill the second reference region; Determine a first update region associated with the first reference region and the second reference region; Determine the target common texture with the most voxels in the first reference region and the second reference region; as well as The first updated region is filled using the target common texture.
9. The method of claim 8, wherein determining the first update region associated with the first reference region and the second reference region comprises: Using a preset noise generation algorithm, the first updated region associated with the first reference region and the second reference region is generated.
10. The method according to any one of claims 5 to 7, further comprising: A set of reference regions that are positionally consecutive among the plurality of reference regions is determined, the set of reference regions being filled with the same third texture, and the number of the set of reference regions being greater than a threshold number; Determine the second update region associated with the set of reference regions; Determine neighboring reference regions adjacent to the set of reference regions, wherein the neighboring reference regions are filled with a fourth texture different from the third texture; as well as The second updated region is filled using the fourth texture.
11. The method of claim 10, wherein determining the second updated region associated with the set of reference regions comprises: Determine the third reference region and the fourth reference region from the set of reference regions; as well as Using a preset noise generation algorithm, a second updated region associated with the third reference region and the fourth reference region is generated.
12. The method of claim 11, wherein the third reference region and the fourth reference region are determined based on the positions of the set of reference regions.
13. The method according to claim 1, wherein the first map region and the second map region are adjacent surface regions in a virtual scene.
14. The method of claim 13, further comprising: Generate surface images corresponding to the first map region and the second map region.
15. The method of claim 1, wherein filling the area to be filled comprises: The first elevation information of the first map region and the second elevation information of the second map region are integrated; as well as Based on the fused height information, the common texture is used to fill the area to be filled.
16. An apparatus for map processing, comprising: The first region determination module is configured to determine the transition region associated with the first map region and the second map region; The private texture determination module is configured to determine a set of private textures based on the first texture information of the first map region and the second texture information of the second map region. The set of private textures includes a first set of private textures corresponding to the first map region and / or a second set of private textures corresponding to the second map region. The second region determination module determines the region to be filled in the transition region by removing the set of private textures from the transition region; as well as The texture filling module is configured to fill the area to be filled using the common texture corresponding to the most voxels in the first texture information and the second texture information.
17. An electronic device comprising: At least one processing unit; as well as At least one memory, coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, which, when executed by the at least one processing unit, cause the electronic device to perform the method according to any one of claims 1 to 15.
18. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Texture fusion method and device, electronic equipment and storage medium
CN111754635A
Map generation method and device, electronic equipment and computer storage medium
CN115294239A