CN115186026A - Map display method and device, storage medium and electronic equipment - Google Patents

Map display method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN115186026A
CN115186026A CN202210777790.9A CN202210777790A CN115186026A CN 115186026 A CN115186026 A CN 115186026A CN 202210777790 A CN202210777790 A CN 202210777790A CN 115186026 A CN115186026 A CN 115186026A
Authority
CN
China
Prior art keywords
map
region area
area
parameter
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210777790.9A
Other languages
Chinese (zh)
Inventor
张静雅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202210777790.9A priority Critical patent/CN115186026A/en
Publication of CN115186026A publication Critical patent/CN115186026A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a map display method and device, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring a moving parameter of a virtual object in a virtual scene, wherein the virtual object and the virtual scene are displayed on a target interface, and the target interface also displays a map related to the virtual scene; and determining whether a map updating condition is met or not based on the mobile parameter, and updating the region area displayed by the map in response to the condition that the map updating condition is met. The method and the device enable the mobile parameters of the virtual object to be related to the geographical area of the map display, can improve the operation accuracy of the user, and improve the operation experience of the user.

Description

Map display method and device, storage medium and electronic equipment
[ technical field ] A method for producing a semiconductor device
The present disclosure relates to the field of human-computer interaction technologies, and in particular, to a map display method and apparatus, a storage medium, and an electronic device.
[ background of the invention ]
A small Map (Mini-Map) is often arranged on a game operation interface to assist a user in determining the position of a corresponding virtual object in a game world, and the small Map plays a very important role as an important tactical information source.
However, in the related art, the area of the region displayed by the small map usually remains unchanged, and the requirement of the user to acquire more information such as resource icons or terrain in some scenes cannot be met.
[ summary of the invention ]
According to a first aspect of an embodiment of the present disclosure, there is provided a map display method, including: acquiring the moving parameters of the virtual object in the virtual scene, displaying the virtual object and the virtual scene on a target interface, and displaying a map associated with the virtual scene on the target interface; and determining whether the map updating condition is met or not based on the movement parameter, and updating the region area displayed by the map in response to the condition that the map updating condition is met.
In an exemplary embodiment, the movement parameter includes at least one of a velocity and an acceleration.
In an exemplary embodiment, determining whether a map update condition is satisfied based on the movement parameter includes: determining a target region area corresponding to the map according to the mobile parameter, wherein the target region area is used for representing the region area which is determined according to the mobile parameter and displayed by the map;
determining that a map update condition is satisfied in response to a case where the target zone area is different from a reference zone area, the reference zone area being a zone area of the map display before the update.
In an exemplary embodiment, determining the target zone area according to the movement parameter includes:
acquiring mapping information, wherein the mapping information represents the corresponding relation between any mobile parameter and the corresponding region area;
determining a region area corresponding to the mobile parameter according to the mapping information;
and obtaining the target region area according to the region area corresponding to the mobile parameter.
In an exemplary embodiment, obtaining the target area according to the area corresponding to the movement parameter includes:
responding to the situation that the region area corresponding to the mobile parameter is different from the reference region area, acquiring incremental map information, wherein the incremental map information is used for indicating the map information in the incremental region area, and the incremental map region area is determined according to the region area corresponding to the mobile parameter and the reference region area;
and in response to the condition that the incremental map information is larger than the first threshold value, determining the region area corresponding to the movement parameter as the target region area.
In an exemplary embodiment, obtaining the target area according to the area corresponding to the mobile parameter further includes: and determining the reference region area as the target region area in response to a case that the information amount of the incremental map information is less than or equal to a first threshold.
In an exemplary embodiment, determining whether a map update condition is satisfied based on the movement parameter includes: in the case where the movement parameter is larger than the second threshold value, it is determined that the map update condition is satisfied.
In an exemplary embodiment, the updating the area of the region displayed on the map comprises: updating a zoom scale of the map, and/or updating a display size of the map at the target interface.
In an exemplary embodiment, the size of the information identifier on the map is kept unchanged when the area of the region displayed on the map is updated.
In an exemplary embodiment, the method further comprises: and adjusting the visual field range of the virtual object in the virtual scene according to the movement parameters.
According to a second aspect of an embodiment of the present disclosure, there is provided a map display apparatus including:
the mobile parameter acquisition module is configured to acquire mobile parameters of the virtual object in a virtual scene, the virtual object and the virtual scene are displayed on a target interface, and the target interface also displays a map related to the virtual scene;
and the map updating module is configured to determine whether the map updating condition is met or not based on the mobile parameter, and update the regional area displayed by the map in response to the condition that the map updating condition is met.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor and a memory, the memory storing processor-executable machine-readable instructions, the processor executing the machine-readable instructions to perform the steps of the method as described above in any one of the first aspect when the electronic device is run.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, the computer program being executed by a processor to perform the steps of the method according to any one of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the embodiment of the disclosure provides a map display scheme, which determines whether a map update condition is satisfied through a movement parameter of a virtual object in a virtual scene, and updates a region area displayed by a map when the map update condition is satisfied. According to the embodiment of the disclosure, the moving parameter of the virtual object is associated with the region area of the map display, and the region area of the map display can be adaptively adapted to the moving parameter of the virtual object without user operation, for example, the moving parameter is the moving speed of the virtual object, and when the map updating condition is satisfied, the region area of the map display is set to be increased along with the increase of the moving parameter, so that more resources and terrain information can be displayed in the map, and the possibility of missing resources and blocking terrain due to the fact that the moving speed of the virtual object is higher and the prediction of a user is insufficient is reduced. In conclusion, the mobile parameters of the virtual objects are related to the updating of the geographical area of the map display, so that the operation accuracy of the user can be improved, and the operation experience of the user can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is an application environment diagram of a map display method provided in an embodiment of the present disclosure;
fig. 2 is a first flowchart of a map display method according to an embodiment of the present disclosure;
FIG. 3 is a first schematic diagram of a target interface provided in accordance with an embodiment of the present disclosure;
FIG. 4 is a second schematic diagram of a target interface provided in accordance with an embodiment of the present disclosure;
FIG. 5 is a third schematic view of a target interface provided in accordance with an embodiment of the present disclosure;
FIG. 6 is a second flowchart of a map display method according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a map display device according to an embodiment of the present disclosure;
fig. 8 is a schematic block diagram of an electronic device provided in accordance with an embodiment of the present disclosure;
fig. 9 is a block diagram of an electronic device provided in accordance with an embodiment of the present disclosure.
[ detailed description ] A
The technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments in the present description, belong to the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
The term "and/or" herein is merely an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of a, B, C, and may mean including any one or more elements selected from the group consisting of a, B, and C.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
In the related art, the area of the region displayed by the small map is generally a default, which does not change with the moving state of the user. When the user moves faster, for example, runs or drives a vehicle, because the information such as the resource icon or the terrain displayed by the small map is limited, the user is prone to have the problems of missing resources, blocking the terrain and the like under the condition of insufficient prediction, and the operation experience of the user is affected.
In view of this, the embodiments of the present disclosure provide a map display method and apparatus, a storage medium, and an electronic device. Referring to fig. 1, an application environment diagram of a map display method according to an embodiment of the present disclosure is shown, where the application environment may include a terminal 110 and a server 120.
The terminal 110 may be, for example, a mobile phone, a tablet computer, a notebook computer, a game console, a handheld computer, a wearable device (such as VR (Virtual Reality) glasses, a VR helmet, a smart watch, and the like, but is not limited thereto.
The operating system of the terminal may include Android (Android), IOS, windows Phone, windows, and the like, and may support running of various applications, such as a virtual social application, a 3D map, a game, and the like. The terminal can display a graphical user interface of any application, the graphical user interface generally refers to an interface corresponding to the application displayed on the terminal, and a user can operate the application or obtain information displayed by the application through the graphical user interface.
In an exemplary embodiment, the client 110 may present a target interface in response to an application display instruction, on which a virtual object, a virtual scene, and a map associated with the virtual scene may be displayed. The user can watch the close-range space where the virtual object is located through the virtual scene, the user can overlook the virtual object through the map, and therefore objective perception of the position of the virtual object in the far-range space is formed, and the user can control movement of the virtual object in the close-range space conveniently.
The specific display mode and the display content of the target interface are not limited in the embodiment of the disclosure, and the setting can be performed according to different applications, for example, for a game application, the target interface can display equipment information of a virtual object, an operation control of the virtual object, and a manual zooming control of map information. For the live broadcast application, the target interface may display e-commerce information associated with the virtual object, an e-commerce operation control, and a manual scaling control for displaying map information, and may even display a switching control for a two-dimensional space and a three-dimensional space, and the like, which is not limited in the embodiment of the present disclosure.
The server 120 shown in fig. 1 may be a single physical server, or may be a server cluster or a distributed system formed by a plurality of physical servers, and the terminal 110 and the server 120 may be connected through a wired network or a wireless network. The server 120 may be considered to provide a service for the client 110 so as to support the interaction of the client 110 with the user, and the client 110 may obtain operation information of the user through the interaction with the user, obtain information required to be displayed based on the operation information through the interaction with the server 120, and render the information on the target interface.
Fig. 2 is a first flowchart of a map display method according to an embodiment of the present disclosure, as shown in fig. 2, including the following steps:
s201, obtaining a moving parameter of a virtual object in a virtual scene, wherein the virtual object and the virtual scene are displayed on a target interface, and the target interface also displays a map related to the virtual scene;
the embodiment of the present disclosure does not limit the specific meaning of the target interface, and may be a visual interface displayed on any terminal with a graphical user interface.
The embodiment of the present disclosure does not limit the application to which the target interface belongs, and taking a game application as an example, the target interface may be used to display a virtual scene in a game. For example, the virtual scene may include a building scene, a MOBA (Multiplayer online battle Arena Games) scene, a shooting scene, and the like, and the virtual objects in the virtual scene may include objects that can be controlled by a user, such as a virtual building, a virtual character, and the like, or virtual objects that are automatically controlled by a game, and the like.
In this disclosure, the target interface may display all or part of virtual scenes, where the virtual scenes may be changed according to specific factors such as the progress of a game and the control condition of the game, and the present disclosure does not limit the types and switching manners of the virtual scenes, and the present disclosure does not limit the number of regions displaying the virtual scenes in the target interface. For any region in the target interface, controls for controlling the virtual object and the virtual scene, such as a skill control, an attack control, a retreat control, a direction control, and the like, may also be included.
In the target interface, a map associated with the virtual scene is further included, and the map is displayed to facilitate an operator of the virtual object or an observer of the target interface to know the position of the virtual object in the map associated with the virtual scene, so as to facilitate control of the motion of the virtual object.
In one embodiment, please refer to fig. 3, wherein fig. 3 is a first schematic diagram of a target interface provided according to an embodiment of the present disclosure. As shown in fig. 3, a virtual scene 301 and a map 302 are displayed on a target interface 30, at least one virtual object 3011 and a road 3012 is displayed on the virtual scene 301, where the virtual object 3011 may be, for example, a character of a user in a game, and may also be, for example, an NPC non-game user (NPC), and the virtual object 3011 travels along the road 3012, and optionally, the target interface 30 may also display control information such as control skills and direction controls, and a specific implementation manner of the target interface 30 is not limited in this embodiment.
The map 302 is associated with the virtual scene 301, and is configured to express map information within a target range associated with a location where at least one virtual object 3011 is located, where the map information corresponds to a virtual scene of an actual game, and displays the virtual scene of the game in a scaled manner at a preset scale, and is configured to display a panoramic map of the virtual scene of the game and important information in the game, such as a resource map 3021, a real-time location 3022 of the virtual object, a real-time location of an enemy or a field of view information of a current game scene, and the like, and the area where the map 302 is located may also display a game signal control, such as an attack control, a retreat control, a scaled control map, and the like, where a specific implementation manner of the map 302 is not limited.
It can be understood that the relative position relationship between the virtual scene 301 and the map 302 can be set as required; for example, the map 302 may be disposed on the left side of the virtual scene 301, or the map 302 may be disposed on the right side of the virtual scene 301, and the map 302 may also be disposed on top of the virtual scene 301 in a stacked manner, for example; the relative position relationship between the virtual scene 301 and the map 302 is not particularly limited in the embodiment of the present disclosure.
In this disclosure, the step includes obtaining a movement parameter of the virtual object in the virtual scene, and this disclosure does not specifically limit the movement parameter, where the movement parameter may be at least one of a speed or an acceleration, the speed may be an instantaneous speed or an average speed, and the acceleration may be an average acceleration or an instantaneous acceleration.
S202, determining whether a map updating condition is met or not based on the mobile parameters, and updating the region area displayed by the map in response to the condition that the map updating condition is met.
The embodiment of the present disclosure does not specifically limit how to determine whether the map update condition is satisfied according to the movement parameter, for example, whether the map update condition is satisfied may be determined according to a relationship between the movement parameter and a preset movement parameter threshold. For example, the map update condition is determined to be satisfied when the movement parameter is greater than a second threshold value, which is a specific numerical value associated with the movement parameter.
Or determining a target region area according to the mobile parameter, and determining whether a map updating condition is met according to the relation between the target region area and a reference region area, wherein the reference region area represents the region area displayed before the map updating. Specifically, when the target region area is different from the reference region area, it is determined that the map update condition is satisfied; and when the target region area is the same as the reference region area, judging that the map updating condition is not met.
For example, the virtual scene is a mountain region M, and a map N including the mountain region M is a map associated with the virtual scene. The movement parameter is a speed S1 of the virtual object, and the area of the target region determined according to the speed S1 is 100mx 100m, that is, the area of the region displayed on the map N determined according to the speed S1 is 100mx 100m; before updating, the map N shows a zone area of 50m × 50m, i.e., the reference zone area of the map N is 50m × 50m. At this time, the target region area is different from the reference region area, the map update condition is satisfied, and the map display region area is updated to the target region area 100mx 100m. Or the movement parameter is the speed S2 of the virtual object, and the target area determined according to the speed S2 is 80mx 80m, that is, the area of the map N displayed according to the speed S2 is 80mx 80m; before updating, the map N shows an area of the territory 80m × 80m, that is, the reference area of the territory of the map N is 80m × 80m. At this time, the target region area is the same as the reference region area, the map update condition is not satisfied, and the region area displayed on the map is not updated. That is to say, if the target region area is the same as the reference region area, the region area displayed in the map does not need to be changed, and if the target region area is different from the reference region area, the region area displayed in the map can be changed, so that the region area displayed in the map can be adaptively changed according to the mobile parameters, the display requirement of a user on the space where the virtual object is located is met, and updating is triggered only when the target region area is different from the reference region area, so that frequent updating of map information in the map can be avoided, and the operation burden of the device is reduced.
The method for updating the map display area according to the embodiment of the present disclosure is not particularly limited, and in an implementable manner, the map display area may be updated by changing the zoom scale of the map. For example, a reference region area of the map display and a target region area are known, the reference region area representing the region area displayed before the map update, and the target region area representing the region area of the map display after the map update, which can be determined according to the obtained movement parameter. Assuming that the scaling of the map for displaying the reference region area is the first scaling and the scaling of the map for displaying the target region area is the second scaling, the scaling of the map can be adjusted from the first scaling to the second scaling during updating, and the updating of the region area of the map can be completed.
It will be appreciated that the scale of the map may determine the geographic area of the map display, and the scale of the map may be determined by the movement parameters of the virtual object being captured.
In another practical way, the displayed region area can be updated by updating the display size of the map on the target interface, namely, the region area displayed by the map is adjusted by changing the display size of the map on the target interface. For example, given a reference region area and a target region area of a map display, if the reference region area is displayed on the target interface in a first size when the map display is performed, and the target region area is displayed on the target interface in a second size when the map display is performed, the size of the map displayed on the target interface may be updated from the first size to the second size when the map display is updated, and the update of the area of the map display region may be completed. Referring to fig. 4, fig. 4 is a schematic diagram of a second target interface provided according to an embodiment of the present disclosure, where fig. 4 (a) shows a state before a map update, and fig. 4 (b) shows a state after the map update, as shown in the figure, after the update, a display size of the map on the target interface is increased.
It is understood that the size of the map displayed on the target interface may determine the area of the region where the map is displayed, and the size of the map displayed on the target interface may be determined by the obtained movement parameter.
In another implementable manner, the geographic area of the map display may be adjusted by simultaneously adjusting the map zoom and the size of the map displayed at the target interface. For example, in an actual operation, the moving speed of the virtual object is increased from the first speed to the second speed, where the second speed is greater than the preset speed threshold, and the user wants to acquire more map information from the map because the moving speed of the virtual object is faster, at this time, it may be determined that the map update condition is satisfied, and the scaling of the map is adjusted to increase the area of the map displayed, so as to display more map information to the user. After the moving speed of the virtual object is increased from the first speed to the second speed, the virtual object moves at the second speed for a preset time period at a constant speed, namely the moving acceleration of the virtual object in the preset time period is small or close to zero, at the moment, a user is busy on driving a road, does not pay much attention to the periphery of the position where the virtual object is located, and tends to pay more attention to map information; in this case, it may be determined that the map update condition is satisfied, and since the user does not pay much attention to the periphery of the position where the virtual object is located, the size of the map displayed on the target interface may be increased, a portion of the virtual scene may be covered to increase the area of the map displayed, so that the user may obtain more map information.
For example, in one embodiment, the movement parameter is the movement speed of the virtual object, and when the movement speed is increased, the area of the area displayed on the map is increased, so that more resources and terrain information can be displayed on the map, thereby reducing the possibility that the resources and the terrain are missed due to the fact that the movement speed of the virtual object is higher and the user does not judge enough. Referring to fig. 5, fig. 5 is a schematic diagram of a second target interface according to an embodiment of the disclosure, as shown in the figure, the virtual object 3011 is located on the vehicle 3013, the moving speed of the virtual object 3011 in fig. 5 is greater than the moving speed of the virtual object 3011 in fig. 3, and the area of the map shown in fig. 5 is greater than the area of the map shown in fig. 3. In practical application, the map may be set to have a maximum display region area and a minimum display region area, that is, the region area displayed by the map cannot be increased or decreased without limitation.
In another embodiment, the movement parameter is a movement acceleration of the virtual object, and when the acceleration is small within a preset time period, the virtual object is in a uniform motion state, and at this time, the area of a region displayed on the map is increased, so that more resources and topographic information can be displayed on the map, and the next operation of a user is facilitated.
In some embodiments, the updated geographic area of the map may be determined based on the movement parameter, i.e., the target geographic area may be determined based on the movement parameter.
In an embodiment of the present disclosure, a specific manner of determining the target area according to the mobility parameter is not limited, and in an implementable manner, determining the target area according to the mobility parameter includes:
and acquiring mapping information, wherein the mapping information represents the corresponding relation between any one mobile parameter and the corresponding region area.
The embodiment of the present disclosure does not limit the specific type of the mapping information, and in some embodiments, the mobile parameter and the area of the region have a positive correlation, that is, the larger the mobile parameter is, the larger the area of the region corresponding to the mobile parameter is.
In some embodiments, the relationship between the movement parameter and the area of the region is linear, that is, the following relationship is satisfied between the area of the region and the movement parameter: y = aX + b, where X denotes a movement parameter, Y denotes a zone area, and a, b are parameters, where a >0.
In another embodiment, the movement parameter and the area of the region are in a non-linear relationship, for example, the movement parameters in different time segments correspond to different areas of the region, and the movement parameter is taken as the movement speed for the example: assuming that the moving speed of the virtual object can vary from 1 m/s to 20 m/s, dividing 1-20 m/s into different sections, and corresponding the different sections to different areas of the region: if the moving speed is between 1 m/s and 10 m/s, the corresponding zone area is 50m × 50m, and if the moving speed is between 10 m/s and 20 m/s, the corresponding zone area is 100m × 100m.
Determining a region area corresponding to the mobile parameter according to the mapping information; and obtaining the target region area according to the region area corresponding to the mobile parameter.
The embodiment of the present disclosure does not limit the specific manner of obtaining the target region area according to the region area corresponding to the mobile parameter, but in an implementable manner, the region area corresponding to the mobile parameter is determined as the target region area, but is not limited to this, please refer to fig. 6, which is a second flowchart of the map display method according to the embodiment of the present disclosure. As shown in fig. 6, obtaining the target region area according to the region area corresponding to the mobile parameter includes:
s601, responding to the situation that the region area corresponding to the mobile parameter is different from the reference region area, obtaining incremental map information, wherein the incremental map information is used for indicating the map information in the incremental region area, and the incremental region area is determined according to the region area corresponding to the mobile parameter and the reference region area.
Continuing with the foregoing example, for the map N, at the time a, the reference geographic area displayed by the map is 50m × 50m, at a certain time or a certain time segment subsequent to the time a, the geographic area corresponding to the movement parameter is 100m × 100m, and if the reference geographic area is different from the geographic area corresponding to the movement parameter, incremental map information is obtained; the embodiment of the present disclosure does not limit a specific method for obtaining the incremental map information, for example, first determining an incremental region area according to a region area corresponding to the mobile parameter and a reference region area, and then obtaining the map information in the incremental region area to obtain the incremental map information; or obtaining the map information of the map under the reference region area, then obtaining the map information of the map under the region area corresponding to the mobile parameter, and comparing the two to obtain the incremental map information.
The specific content of the map information is not particularly limited, and may be at least one of a resource icon, road information, terrain information, a real-time location of teammates, or a real-time location of enemy troops.
In the above example, for the map N, the reference area of the map displayed at the time a is 50mx 50m, the number of resource icons included in the map at the reference area is 5, the area corresponding to the movement parameter obtained at a time or a time zone subsequent to the time a is 100mx 100m, and the number of resource icons included in the map at the time 100mx 100m is 8, so that the incremental map information is 3.
Alternatively, it is known that the number of road junctions included in the map at time a,50m × 50m area is 4, that at a certain time or a certain time zone subsequent to time a, the area of the region corresponding to the movement parameter is 100m × 100m, and that at the area of 100m × 100m, the number of road junctions included in the map is 6, and that the incremental map information is 2.
S602, in response to the condition that the incremental map information is larger than a first threshold value, determining the region area corresponding to the movement parameter as the target region area.
The embodiment of the disclosure compares the incremental map information with a first threshold, and determines the region area corresponding to the mobile parameter as the target region area when the incremental map information is greater than the first threshold. The specific value of the first threshold is not limited in the embodiment of the disclosure, and can be set according to actual requirements.
Through the configuration, when the incremental map information is larger than the first threshold value, the region area displayed by the updated map is triggered, and the region area displayed by the updated map is not triggered under other conditions, so that the selective updating can avoid frequent triggering of updating, and the operation burden of equipment is reduced.
Obtaining a target region area according to the region area corresponding to the mobile parameter, and further comprising: and in response to the condition that the information amount of the incremental map information is less than or equal to a first threshold value, determining a reference region area as a target region area. At this time, it is determined that the map update condition is not satisfied.
In the embodiment of the present disclosure, when the incremental map information is less than or equal to the first threshold, it indicates that the map information of the map under the region area corresponding to the movement parameter has a small change range compared with the map information of the map under the reference region area, that is, the map information of the map cannot introduce a sufficient amount of incremental map information after being updated, such as resource icons, road information, terrain information, real-time positions of teammates, or real-time positions of enemies. In this case, the area of the map display region may be controlled not to be updated, that is, the reference area of the map display region may be determined as the target area of the map display region, and it may be determined that the map update condition is not satisfied, and the area of the map display region may not be refreshed. Through the configuration, when the incremental map information is smaller than or equal to the first threshold, the region area displayed by the map is not triggered to be updated, so that the region area displayed by the map can be prevented from being frequently refreshed, and the operation burden of equipment is reduced.
In some embodiments, the size of the information identifiers on the map is kept constant while updating the geographical area of the map display. The size of the information identifier is not changed along with the change of the area of the region, the information identifier can be clearly distinguished when the area of the region displayed on the map is large by a user, the accuracy of user operation is improved, and the viscosity of the user is improved.
The information identification comprises a resource icon, a real-time position identification of an enemy, a position identification of a virtual object and the like. Without being limited thereto, the information identifier may also be an identifier of other key information.
According to the embodiment of the disclosure, the mobile parameter is associated with the geographical area of the map display, so that the geographical area of the map display is adaptive to the mobile parameter of the virtual object on the premise of no user control, the accuracy of user operation can be improved, and the operation experience of the user is improved.
In some embodiments, the field of view of the virtual object in the virtual scene may also be adjusted according to the movement parameters.
The embodiment of the present disclosure does not limit a specific manner of adjusting the visual field range of the virtual object in the virtual scene according to the movement parameter, for example, the visual field range of the virtual scene corresponding to the movement parameter may be obtained by acquiring a mapping relationship between the movement parameter and the visual field range of the virtual scene. The specific mapping relationship between the movement parameter and the visual field range of the virtual scene is not limited in the embodiments of the present disclosure, and may be linear or discrete. In an optional embodiment, the visual field range of the virtual scene is in positive correlation with the movement parameter, that is, the larger the movement parameter is, the larger the visual field range of the virtual scene is, and the movement parameter may be at least one of an instantaneous speed, an average acceleration and an instantaneous acceleration corresponding to the virtual object at the first time. Through the configuration, in the virtual scene, the visual field range in the virtual scene is adjusted through the movement information of the virtual object, the game visual field of a user can be effectively expanded, the user operation is facilitated, and the user viscosity is improved.
In the case of dividing each function module corresponding to each function, as shown in fig. 7, a schematic structural diagram of an embodiment of a map display apparatus provided in the embodiment of the present disclosure is shown, and the map display apparatus may be an electronic device.
The apparatus may include:
a movement parameter acquiring module 701 configured to acquire a movement parameter of a virtual object in a virtual scene, where the virtual object and the virtual scene are displayed on a target interface, and the target interface further displays a map associated with the virtual scene;
the map update module 702 is configured to determine whether a map update condition is satisfied based on the movement parameter, and update a geographical area of the map display in response to the map update condition being satisfied.
As an alternative embodiment, the movement parameter includes at least one of a speed and an acceleration.
As an optional implementation, the map update module includes:
a first determination unit configured to perform a determination of a target region area according to the movement parameter, the target region area being used to represent a region area of the map display determined according to the movement parameter;
a second determination unit configured to perform, in response to a case where the target region area is different from a reference region area, a determination that a map update condition is satisfied, the reference region area being a region area of the map display before the update.
As an optional embodiment, the first determining unit is configured to perform:
acquiring mapping information, wherein the mapping information represents the corresponding relation between any mobile parameter and the corresponding region area;
determining a region area corresponding to the mobile parameter according to the mapping information;
and obtaining the target region area according to the region area corresponding to the mobile parameter. .
As an optional embodiment, the first determining unit is configured to perform:
responding to the condition that the region area corresponding to the mobile parameter is different from the reference region area, acquiring incremental map information, wherein the incremental map information is used for indicating the map information in the incremental region area, and the incremental region area is determined according to the region area corresponding to the mobile parameter and the reference region area;
and determining the region area corresponding to the movement parameter as the target region area in response to the condition that the incremental map information is larger than the first threshold value.
As an optional implementation, the first determining unit is configured to perform:
and determining the reference region area as the target region area in response to a case that the information amount of the incremental map information is less than or equal to a first threshold.
As an optional implementation, the map updating module is configured to perform: updating the scale of the map, and/or updating the display size of the map at the target interface.
As an optional implementation, the map updating module is configured to perform: in a case where the movement parameter is greater than a second threshold value, it is determined that the map update condition is satisfied.
As an optional implementation, the map updating module is configured to perform: when the area of the region displayed on the map is updated, the size of the information mark on the map is kept unchanged.
As an alternative embodiment, the apparatus further comprises:
and the visual field adjusting module is configured to adjust the visual field range of the virtual object in the virtual scene according to the movement parameters.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 shows a schematic block diagram of an electronic device according to an exemplary embodiment of the present disclosure. As shown in fig. 8, the electronic device 800 includes one or more (including two) processors 801 and a communication interface 802. The communication interface 802 may support the server to perform the data transceiving steps in the map display method described above, and the processor 801 may support the server to perform the data processing steps in the map display method described above.
Optionally, as shown in fig. 8, the chip 800 further includes a memory 803, and the memory 803 may include a read-only memory and a random access memory, and provides the processor with operation instructions and data. The portion of memory may also include non-volatile random access memory (NVRAM).
In some embodiments, as shown in fig. 8, the processor 801 performs the corresponding operation by calling an operation instruction stored in the memory (the operation instruction may be stored in the operating system). The processor 801 controls the processing operations of any of the terminal devices, and may also be referred to as a Central Processing Unit (CPU). The memory 803 may include both read-only memory and random-access memory, and provides instructions and data to the processor 801. A portion of the memory 803 may also include NVRAM. For example, in applications where the memory, communication interface, and memory are coupled together by a bus system that may include a power bus, a control bus, a status signal bus, etc., in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 804 in FIG. 8.
The method disclosed by the embodiment of the disclosure can be applied to a processor or implemented by the processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The processor may be a general purpose processor, a Digital Signal Processor (DSP), an ASIC, an FPGA (field-programmable gate array) or other programmable logic device, discrete gate or transistor logic, or discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present disclosure may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present disclosure may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
An exemplary embodiment of the present disclosure also provides an electronic device including: a processor and a memory, the memory storing machine-readable instructions executable by the processor, the processor executing the machine-readable instructions when the electronic device is executed to perform a method according to an embodiment of the disclosure.
The exemplary embodiments of the present disclosure also provide a computer-readable storage medium, wherein the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs a method according to an embodiment of the present disclosure.
The exemplary embodiments of the present disclosure also provide a computer program product comprising a computer program, wherein the computer program, when being executed by a processor of a computer, is adapted to cause the computer to carry out the method according to the embodiments of the present disclosure.
As shown in fig. 9, the electronic device 900 includes a computing unit 901 that can perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM) 902 or a computer program loaded from a storage unit 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 can also be stored. The calculation unit 901, ROM902, and RAM 903 are connected to each other via a bus 904. An input/output (I/O) interface 905 is also connected to bus 904.
A number of components in the electronic device 900 are connected to the I/O interface 905, including: an input unit 906, an output unit 907, a storage unit 908, and a communication unit 909. The input unit 906 may be any type of device capable of inputting information to the electronic device 900, and the input unit 906 may receive input numeric or character information and generate key signal inputs related to user settings and/or function controls of the electronic device. Output unit 907 may be any type of device capable of presenting information and may include, but is not limited to, a display, speakers, a video/audio output terminal, a vibrator, and/or a printer. Storage unit 904 may include, but is not limited to, magnetic or optical disks. The communication unit 909 allows the electronic device 900 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers, and/or chipsets, such as bluetooth (TM) devices, wiFi devices, wiMax devices, cellular communication devices, and/or the like.
The computing unit 901 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 901 performs the respective methods and processes described above. For example, in some embodiments, the map display method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 908. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto electronic device 900 via ROM902 and/or communications unit 909. In some embodiments, the computing unit 901 may be configured to perform the map display method in any other suitable manner (e.g., by means of firmware).
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, causes the functions/acts specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the procedures or functions described in the embodiments of the present disclosure are performed in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, a terminal, a user device, or other programmable apparatus. The computer program or instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wire or wirelessly. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that integrates one or more available media. The usable medium may be a magnetic medium, such as a floppy disk, hard disk, magnetic tape; or optical media such as Digital Video Disks (DVDs); it may also be a semiconductor medium, such as a Solid State Drive (SSD).
While the disclosure has been described in conjunction with specific features and embodiments thereof, it will be evident that various modifications and combinations can be made thereto without departing from the spirit and scope of the disclosure. Accordingly, the specification and drawings are merely illustrative of the present disclosure as defined in the appended claims and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the disclosure. It will be apparent to those skilled in the art that various changes and modifications may be made to the present disclosure without departing from the spirit and scope of the disclosure. Thus, it is intended that the present disclosure also include such modifications and variations insofar as they come within the scope of the appended claims and their equivalents.

Claims (13)

1. A map display method, characterized in that the method comprises:
acquiring the moving parameters of a virtual object in a virtual scene, wherein the virtual object and the virtual scene are displayed on a target interface, and the target interface also displays a map associated with the virtual scene;
and determining whether a map updating condition is met or not based on the mobile parameter, and updating the region area displayed by the map in response to the condition that the map updating condition is met.
2. The display method according to claim 1, wherein the movement parameter includes at least one of a speed and an acceleration.
3. The display method according to claim 1, wherein the determining whether a map update condition is satisfied based on the movement parameter includes:
determining a target region area according to the mobile parameter, wherein the target region area is used for representing the region area which is determined according to the mobile parameter and is displayed by the map;
determining that the map update condition is satisfied in response to a case where the target zone area is different from a reference zone area, the reference zone area being a zone area of the map display before the update.
4. The display method according to claim 3, wherein the determining a target zone area according to the movement parameter comprises:
acquiring mapping information, wherein the mapping information represents the corresponding relation between any mobile parameter and the corresponding region area;
determining a region area corresponding to the mobile parameter according to the mapping information;
and obtaining a target region area according to the region area corresponding to the mobile parameter.
5. The display method according to claim 4, wherein obtaining the target geographical area according to the geographical area corresponding to the movement parameter includes:
responding to the situation that the region area corresponding to the mobile parameter is different from the reference region area, and acquiring incremental map information, wherein the incremental map information is used for indicating map information in an incremental region area, and the incremental region area is determined according to the region area corresponding to the mobile parameter and the reference region area;
and determining the region area corresponding to the movement parameter as the target region area in response to the condition that the incremental map information is larger than a first threshold value.
6. The display method according to claim 5, wherein obtaining a target geographical area according to the geographical area corresponding to the movement parameter further comprises:
and determining the reference region area as the target region area in response to a situation that the information amount of the incremental map information is less than or equal to a first threshold.
7. The display method according to claim 1, wherein the determining whether a map update condition is satisfied based on the movement parameter includes:
in a case where the movement parameter is greater than a second threshold value, it is determined that the map update condition is satisfied.
8. The display method according to any one of claims 1 to 7, wherein updating the geographical area of the map display includes: updating a zoom scale of the map, and/or updating a display size of the map at the target interface.
9. The display method according to any one of claims 1 to 7, wherein the size of the information mark on the map is kept constant when the area of the region displayed on the map is updated.
10. The display method according to any one of claims 1 to 7, wherein the method further comprises:
and adjusting the visual field range of the virtual object in the virtual scene according to the movement parameters.
11. A map display apparatus, characterized in that the apparatus comprises:
the mobile parameter acquisition module is configured to acquire mobile parameters of a virtual object in a virtual scene, wherein the virtual object and the virtual scene are displayed on a target interface, and the target interface also displays a map related to the virtual scene;
and the map updating module is configured to determine whether a map updating condition is met or not based on the mobile parameter, and update the region area displayed by the map in response to the condition that the map updating condition is met.
12. An electronic device, comprising: a processor and a memory, the memory storing machine readable instructions executable by the processor, the processor executing the machine readable instructions to perform the steps of the method of any of claims 1 to 10 when the electronic device is run.
13. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, is adapted to carry out the steps of the method according to any one of the claims 1 to 10.
CN202210777790.9A 2022-06-30 2022-06-30 Map display method and device, storage medium and electronic equipment Pending CN115186026A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210777790.9A CN115186026A (en) 2022-06-30 2022-06-30 Map display method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210777790.9A CN115186026A (en) 2022-06-30 2022-06-30 Map display method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115186026A true CN115186026A (en) 2022-10-14

Family

ID=83515387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210777790.9A Pending CN115186026A (en) 2022-06-30 2022-06-30 Map display method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115186026A (en)

Similar Documents

Publication Publication Date Title
CN109767447B (en) Template matching method, device, equipment and medium
CN105916060A (en) Method, apparatus and system for transmitting data
CN111659120B (en) Virtual role position synchronization method, device, medium and electronic equipment
CN111338838A (en) Method for controlling frequency of central processing unit and related device
CN107204044B (en) Picture display method based on virtual reality and related equipment
US10942617B2 (en) Runtime adaptation of augmented reality gaming content based on context of surrounding physical environment
US20190171346A1 (en) Virtual-reality based control method and apparatus
CN112634414A (en) Map display method and device
JP5956831B2 (en) Display control system, display control method, display control apparatus, and display control program
CN114972594A (en) Data processing method, device, equipment and medium for meta universe
CN112843680A (en) Picture display method and device, terminal equipment and storage medium
CN114627268A (en) Visual map updating method and device, electronic equipment and medium
JPWO2010023963A1 (en) Avatar display method, avatar display device and storage medium
CN114449162A (en) Method and device for playing panoramic video, computer equipment and storage medium
CN116071377A (en) Map labeling method and device and map labeling device
CN109718540B (en) Method, device, equipment and storage medium for realizing drift effect in game
CN115186026A (en) Map display method and device, storage medium and electronic equipment
CN113703704B (en) Interface display method, head-mounted display device, and computer-readable medium
CN113617027B (en) Cloud game processing method, device, equipment and medium
CN115423919A (en) Image rendering method, device, equipment and storage medium
CN112015274B (en) Immersive virtual reality system display method, immersive virtual reality system display system and readable storage medium
CN114307145A (en) Picture display method, device, terminal, storage medium and program product
CN112799502A (en) Walking redirection control method, equipment and storage medium in virtual reality space
CN111324826A (en) Map viewpoint dynamic method and device under user following mode based on Mapbox
CN111068311B (en) Game scene display control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination