Graphic display methods, devices, equipment, and computer programs based on virtual scenes
The graphic display method in shooting games uses area indicator graphics to show positional relationships between virtual objects and restricted areas, addressing inefficiencies and ambush risks by eliminating the need to view virtual maps, thereby improving interaction efficiency and gaming experience.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2022-10-12
- Publication Date
- 2026-05-01
AI Technical Summary
In shooting games, the hit points of virtual objects decrease outside restricted areas even without attacks, causing inefficiencies in user interaction and potential ambushes when viewing virtual maps to determine area updates.
A graphic display method that includes displaying area indicator graphics showing the relative positional relationship between virtual objects and restricted areas, eliminating the need to view virtual maps, thus enhancing interaction efficiency.
Improves human-computer interaction efficiency by allowing users to understand positional relationships without obstructing the game view, reducing ambush risks and enhancing the gaming experience.
Smart Images

Figure 0007854453000001 
Figure 0007854453000002 
Figure 0007854453000003
Abstract
Description
Technical Field
[0001] (Reference to Related Applications) This application claims the priority of a Chinese patent application with the application number 202111280250.1 and the invention title "Graphic Display Method, Apparatus, Device and Medium Based on Virtual Scene", which was filed on October 29, 2021, and a Chinese patent application with the application number 202111658265.7 and the invention title "Graphic Display Method, Apparatus, Device and Medium Based on Virtual Scene", which was filed on December 31, 2021. All of their contents are incorporated herein by reference.
[0002] (Technical Field) This application relates to the field of computer technology, and in particular, to a graphic display method, apparatus, device and medium based on a virtual scene.
Background Art
[0003] With the development of multimedia technology and the diversification of terminal functions, the types of games that can be played on terminals are increasing. Shooting games are relatively popular games. In some shooting games, the restricted area is randomly updated. When a virtual object controlled by a user is within the restricted area, the hit points of the virtual object decrease only when it is attacked. When the virtual object is outside the restricted area, the hit points of the virtual object decrease even without being attacked, thereby prompting the user to control the virtual object to enter the restricted area.
Summary of the Invention
[0004] Embodiments of this application provide a graphic display method, apparatus, device and medium based on a virtual scene, which can improve the efficiency of interaction between humans and computers. The technical solutions are as follows.
[0005] In one embodiment, a graphic display method based on a virtual scene is provided, and the graphic display method is A computer device displays a virtual scene, the virtual scene includes a restricted area, and a first virtual object is displayed in the virtual scene, wherein the attribute values of the virtual object located within the restricted area do not change when no interaction action is received. The computer device displays an area indicator graphic based on a restricted area, a target restricted area, and a first virtual object, wherein the area indicator graphic shows the relative positional relationship between the first virtual object and the restricted area and the relative positional relationship between the first virtual object and the target restricted area, and the target restricted area is the restricted area determined by the occurrence of the next area update.
[0006] In one embodiment, a graphics display device based on a virtual scene is provided, and the graphics display device is A virtual scene display module configured to display a virtual scene, wherein the virtual scene includes a restricted area, and a first virtual object is displayed in the virtual scene, and the virtual object located within the restricted area has attribute values that do not change when no interaction action is received. A region indicator graphic display module configured to display region indicator graphics based on a restricted region, a target restricted region, and a first virtual object, wherein the region indicator graphics indicate the relative positional relationship between the first virtual object and the restricted region and the relative positional relationship between the first virtual object and the target restricted region, and the target restricted region is the restricted region determined by the occurrence of the next region update.
[0007] In one possible embodiment, the region indicator graphic display module is configured to generate a region combination graphic based on a restricted region and a target restricted region, the region combination graphic showing the relative positional relationship between the restricted region and the target restricted region, and to display the region indicator graphic in a virtual scene based on the region combination graphic and a first virtual object.
[0008] In one possible embodiment, the region indication graphic display module is configured to generate a region combination graphic based on the respective locations of the restricted region and the target restricted region in the virtual scene.
[0009] In one possible embodiment, the region indication graphic display module is configured to generate a region combination graphic based on the center and boundary positions of the restricted region in the virtual map of the virtual scene and the center and boundary positions of the target restricted region in the virtual map.
[0010] In one possible embodiment, the region indicator graphic display module is configured to add an orientation icon for a first virtual object to a region combination graphic based on the position and orientation of the first virtual object in the virtual scene, thereby obtaining and displaying a region indicator graphic.
[0011] In one possible embodiment, the region indicator graphic display module is: If the first virtual object is located inside the restricted area, the system is configured to add a direction icon inside the area combination graphic based on the distance and direction between the first virtual object and the center position of the restricted area, adjust the orientation of the direction icon to the orientation of the first virtual object, and obtain an area indication graphic, or If the first virtual object is located outside the restricted area, the system is configured to determine the candidate position closest to the first virtual object on the boundary of the restricted area in the area combination graphic based on the connection line between the first virtual object and the center position of the restricted area, add a direction icon to the candidate position, adjust the orientation of the direction icon to the orientation of the first virtual object, and obtain an area indication graphic.
[0012] In one possible embodiment, the region indicator graphic display module is configured to rotate the region indicator graphic and display the rotated region indicator graphic.
[0013] In one possible embodiment, the region indicator graphic includes a direction icon, which indicates the position and orientation of a first virtual object in the virtual scene, and the region indicator graphic display module is The system is configured to rotate the region indicator graphic so that the direction icon is positioned at the bottom of the region indicator graphic, based on the position of the direction icon in the region indicator graphic, and then display the rotated region indicator graphic, or Based on the position and direction of the direction icon in the region indicator graphic, the region indicator graphic is rotated so that the direction of the direction icon points towards the target direction, and the rotated region indicator graphic is then displayed.
[0014] In one possible embodiment, the region indicator graphic includes a region combination graphic and a direction icon, the region combination graphic indicates the relative positional relationship between the restricted region and the target restricted region, the direction icon indicates the position and orientation of the first virtual object in the virtual scene, the region combination graphic includes a first region graphic corresponding to the restricted region and a second region graphic corresponding to the target restricted region, and the region indicator graphic display module is configured to display the first region graphic, the second region graphic and the direction icon in different colors.
[0015] In one possible embodiment, the region indication graphic display module is configured to generate a region combination graphic based on the location of the restricted region in the virtual scene, the distance between the center of the restricted region and a first virtual object, and the location of the target restricted region in the virtual scene.
[0016] In one possible embodiment, the apparatus further includes: The system includes an adjustment module configured to adjust the region indicator graphic based on the current position and orientation of the first virtual object in the virtual scene, in response to a change in either the position or orientation of the first virtual object in the virtual scene.
[0017] In one possible embodiment, the apparatus further includes: It includes a countdown icon display module configured to display a countdown icon based on a region indication graphic, where the countdown icon indicates the remaining time until the region is updated from the restricted region to the target restricted region.
[0018] In one possible embodiment, the countdown icon display module is: The countdown icon is configured to be displayed below the area indicator graphic, or If the area indicator graphic includes a direction icon, the countdown icon is configured to be displayed below the direction icon, and the direction icon indicates the position and orientation of the first virtual object in the virtual scene.
[0019] In one possible embodiment, the target limiting region is located inside the limiting region, the area of the target limiting region is smaller than that of the limiting region, or the target limiting region has a portion that overlaps with the limiting region.
[0020] In one possible embodiment, the device further includes a distance display module, the distance display module is When the first virtual object is located inside the restricted area, it is configured to display the distance between the first virtual object and the target restricted area in the area indication graphic, or, When the first virtual object is located outside the restricted area, it is configured to display the distance between the first virtual object and the restricted area, and the distance between the first virtual object and the target restricted area in the area indication graphic.
[0021] In one possible embodiment, the area indication graphic display module is further configured to cancel the display of the area indication graphic after the target time duration.
[0022] In one aspect, a computer device is provided, which includes one or more processors and one or more memories. At least one computer program is stored in the one or more memories, and the computer program is loaded and executed by the one or more processors to implement a graphic display method based on a virtual scene.
[0023] In one aspect, a computer-readable storage medium is provided, in which at least one computer program is stored, and the computer program is loaded and executed by a processor to implement a graphic display method based on a virtual scene.
[0024] In one aspect, a computer program product or a computer program is provided, the computer program product or the computer program includes program code, the program code is stored in a computer-readable storage medium, the processor of the computer device reads the program code from the computer-readable storage medium, and the processor executes the program code to execute the above-mentioned graphic display method based on a virtual scene on the computer device.
[0025] According to the technical solution provided by the embodiments of the present application, a computer device can display area indication graphics in the virtual scene based on the current restricted area, the updated restricted area, and the first virtual object, and the area indication graphics can indicate the relative positional relationship between the first virtual object and the two restricted areas. The user does not need to view the virtual map of the virtual scene and can know the relative positions between the first virtual object and the two restricted areas just by looking at the area indication graphics, thereby making the efficiency of the interaction between humans and computers relatively high.
Brief Description of the Drawings
[0026] [Figure 1] It is a schematic diagram of the implementation environment of the graphic display method based on the virtual scene according to the embodiments of the present application. [Figure 2] It is a schematic diagram of an interface including a virtual map according to the embodiments of the present application. [Figure 3] It is a schematic diagram of the orientation of a virtual object according to the embodiments of the present application. [Figure 4] It is a schematic diagram of an interface according to the embodiments of the present application. [Figure 5] It is a flowchart of the graphic display method based on the virtual scene according to the embodiments of the present application. [Figure 6] It is a flowchart of the graphic display method based on the virtual scene according to the embodiments of the present application. [Figure 7] It is a schematic diagram of generating area combination graphics according to the embodiments of the present application. [Figure 8] It is a schematic diagram of a direction icon according to the embodiments of the present application. [Figure 9] It is a schematic diagram of area indication graphics according to the embodiments of the present application. [Figure 10] It is a schematic diagram of zooming in on area indication graphics according to the embodiments of the present application. [Figure 11] It is a schematic diagram of an interface including area indication graphics according to the embodiments of the present application. [Figure 12]This is a schematic diagram showing the rotation of the region indicator graphic according to an embodiment of the present invention. [Figure 13] This is a schematic diagram showing a zoomed-in area indication graphic according to an embodiment of the present application. [Figure 14] This is a schematic diagram of an interface including a region indicator graphic according to an embodiment of the present application. [Figure 15] This is a schematic diagram showing the rotation of the region indicator graphic according to an embodiment of the present invention. [Figure 16] This is a schematic diagram showing a zoomed-in area indication graphic according to an embodiment of the present application. [Figure 17] This is a schematic diagram of an interface including a region indicator graphic according to an embodiment of the present application. [Figure 18] This is a schematic diagram of an elliptical region indicator graphic according to an embodiment of the present invention. [Figure 19] This is a schematic diagram of the display position of the countdown icon according to an embodiment of the present invention. [Figure 20] This is a schematic diagram of the display position of the countdown icon according to an embodiment of the present invention. [Figure 21] This is a logical block diagram of a graphic display method based on a virtual scene according to an embodiment of the present invention. [Figure 22] This is a schematic structural diagram of a graphic display device based on a virtual scene according to an embodiment of the present invention. [Figure 23] This is a schematic diagram of the structure of a terminal according to an embodiment of the present invention. [Modes for carrying out the invention]
[0027] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings that are necessary for describing the embodiments above are briefly introduced. Obviously, the drawings described above are only a part of the embodiments of this application, and those skilled in the art can obtain further drawings based on these without expending any creative effort.
[0028] To further clarify the purpose, technical solutions, and advantages of this application, embodiments of this application will be described in more detail below with reference to the drawings.
[0029] In this application, the terms "first" and "second" are used to distinguish between identical or similar terms whose action and function are essentially the same, and it should be understood that there is no logical or timing dependency between "first," "second," and "n," nor are there any limitations on the quantity or execution order.
[0030] In this application, the term "at least one" means one or more, and "multiple" means two or more; for example, "multiple images" means two or more images.
[0031] A virtual scene is a virtual scene that is displayed (or provided) when an application program is executed on a terminal. The virtual scene may be a simulation environment of the real world, a semi-simulated, semi-fictional virtual environment, or a purely fictional virtual environment. The virtual scene may be any one of two-dimensional, 2.5-dimensional, or three-dimensional virtual scenes, and the dimensions of the virtual scene are not limited in the embodiments of this application. For example, the virtual scene may include the sky, land, sea, etc., and the land may include environmental elements such as deserts or cities, and the user may control virtual objects to move around in the virtual scene.
[0032] A virtual object refers to a movable object in a virtual scene. Such movable objects may include people, animals, plants, drums, walls, stones, and other virtual characters, virtual animals, animated characters, etc., that are displayed in the virtual scene. Such a virtual object may also be an avatar used to represent a user in the virtual scene. A virtual scene can contain multiple virtual objects, each having its own shape and volume in the virtual scene and occupying a portion of the space in the virtual scene.
[0033] Optionally, the virtual object may be a user character controlled by operations on the client, or an artificial intelligence (AI) set up for virtual scene battles through training, or a non-player character (NPC) set up in the virtual scene. Optionally, the virtual object may be a virtual character competing in the virtual scene. Optionally, the number of virtual objects participating in the interaction in the virtual scene may be predetermined or dynamically determined based on the number of clients participating in the interaction.
[0034] Taking a shooting game as an example, a user can control a virtual object to freely fall, glide, open a parachute and fall through the sky of the virtual scene, run, jump, crawl, or crouch and move forward on land. They can also control the virtual object to swim, float, or dive in the sea. Of course, the user can also control a virtual object to move around the virtual scene in a virtual vehicle, which may be a virtual car, a virtual aircraft, a virtual yacht, etc. Only the above-mentioned scenes are described as examples here, and the embodiments of this application are not specifically limited to these.
[0035] Figure 1 is a schematic diagram of an implementation environment for a graphic display method based on a virtual scene according to an embodiment of the present invention. Referring to Figure 1, the implementation environment includes a terminal 110 and a server 140.
[0036] Terminal 110 installs and runs an application program that supports the display of a virtual scene. Optionally, the application program may be any one of the following: a first-person shooting game (FPS), a third-person shooting game, a virtual reality application program game, a three-dimensional map program, or a multiplayer gunfight survival game. Terminal 110 is used by a first user, who uses Terminal 110 to control a controlled virtual object located within the virtual scene to perform activities, which include, but are not limited to, adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, and throwing. Outline, the controlled virtual object is a first virtual person, such as a simulation character or an anime character.
[0037] Server 140 is an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The embodiments of this application do not limit the number of servers or the device types. Server 140 provides background services to application programs running on terminal 110, and terminal 110 connects to server 140 via a wireless or wired network.
[0038] After introducing the implementation environment of the embodiment of this application, the application scenarios of the embodiment of this application will be introduced below. In the process of the following explanation, the terminal is terminal 110 in the implementation environment described above, and the server is server 140 described above.
[0039] The technical solutions provided by the embodiments of the present application can be applied to a shooting game scene in which a terminal displays a virtual scene, the virtual scene including a first virtual object, and the user can control the first virtual object via the terminal to move and attack within the virtual scene. The virtual scene includes a restricted area, which limits the range of movement of the virtual object, and when the first virtual object moves within the restricted area, its hit points do not decrease if it is not attacked. When the first virtual object is located outside the restricted area, its hit points continue to decrease even if it is not attacked, and in some embodiments, the restricted area is also called a safe area. In the shooting game, the position of the safe area is updated at regular intervals, and the safe area is reduced at regular intervals, for example, so that virtual objects gather within the safe area and the probability of conflict occurring between virtual objects increases. In related technologies, prompt information is often displayed on the terminal before updating the safe area. This prompt information is used to inform the user that the safe area is being updated, and the user can determine the location of the safe area to be updated and the distance between the first virtual object and the safe area by viewing a virtual map of the virtual scene. In this process, the user must perform a corresponding operation, such as clicking a virtual map viewing control, in order to view the virtual map. Displaying the virtual map obstructs the display of the virtual scene, and the first virtual object may be attacked by other virtual objects when the user views the virtual map. As shown in Figure 2, after the user clicks the virtual map viewing control, the terminal displays a virtual map 201, which obstructs part of the display of the virtual scene 200. However, after adopting the technical solution provided by the embodiment of the present application, the terminal can display an area indicator graphic based on the restricted area, the target restricted area, and the first virtual object, which shows the relative positional relationship between the three, the restricted area, the target restricted area, and the first virtual object, where the target restricted area is the restricted area to be updated.Users can understand the relative positions of the first virtual object and the current restricted area, as well as the relative positions of the first virtual object and the updated target restricted area, simply by looking at the area indication graphic, without needing to view a virtual map of the virtual scene. This reduces the number of steps required for operation, avoids situations where the first virtual object is ambushed while the user is viewing the virtual map, improves the efficiency of human-computer interaction, and enhances the user's gaming experience.
[0040] It should be noted that the above description is performed using the example that a terminal performs the graphics display method based on a virtual scene provided by the embodiment of the present application. If the shooting game is a cloud game, the graphics display method based on a virtual scene provided by the embodiment of the present application may also be performed by a server, the server simply pushing a video stream to the terminal and the terminal only needs to display it, but this is not limited to the embodiment of the present application.
[0041] To more clearly explain the technical solution provided by the embodiment of this application, the virtual scene in this application is introduced below, and referring to Figure 3, in order to make the shooting game more realistic, the game designer designs the display method of the virtual scene by referring to the way in which humans observe the real world. The first virtual object 301 can observe the virtual scene in region 302, and the screen obtained by observing region 302 from the angle of the first virtual object 301 is the displayed virtual scene. The user can adjust the position in which the first virtual object 301 observes the virtual scene by adjusting the orientation of the first virtual object 301.
[0042] In some embodiments, the virtual scene includes controls for manipulating a first virtual object to perform different actions. Referring to Figure 4, a virtual joystick 402, posture adjustment control 403, firing control 404, and prop switching control 405 are displayed in the virtual scene 401, where the virtual joystick 402 is used to control the direction of movement of the first virtual object. The posture adjustment control 403 is used to adjust the posture of the first virtual object, controlling the virtual object to perform actions such as crouching or crawling. The firing control 404 is used to manipulate the virtual tool held by the first virtual object to fire virtual ammunition. The prop switching control 405 is used to switch the virtual tool held by the virtual object. A smaller map 406 is also displayed in the virtual scene 401, which is called the virtual map, and the user can observe the positions of teammates and enemies in the virtual scene using the smaller map 406.
[0043] After introducing the implementation environment, application scenes, and virtual scenes of the embodiment of this application, the graphic display method based on the virtual scene provided by the embodiment of this application will be described below. The implementing entity is a computer device, for example, the computer device is a terminal in the implementation environment shown in Figure 1 above, and referring to Figure 5, the method includes steps 501 to 502.
[0044] In step 501, the computer device displays a virtual scene which includes a restricted area, and a first virtual object is displayed in the virtual scene, wherein the attribute values of the virtual object located within the restricted area do not change if no interaction action is received.
[0045] Here, the restricted area is a region that limits the range of activity of virtual objects in a virtual scene. When a virtual object is located within the restricted area, its attribute values do not change if no interaction action is received. Conversely, when a virtual object is located outside the restricted area, its attribute values also decrease if no interaction action is received. By setting a restricted area, it is possible to encourage users to control virtual objects to enter the restricted area as quickly as possible. Since the restricted area in the virtual scene changes at regular intervals, users need to control virtual objects to enter the new restricted area.
[0046] In step 502, the computer equipment displays an area indicator graphic based on the restricted area, the target restricted area, and the first virtual object, the area indicator graphic showing the relative positional relationship between the first virtual object and the restricted area and the relative positional relationship between the first virtual object and the target restricted area, the target restricted area being the restricted area determined by the occurrence of the next area update.
[0047] Here, the restricted area is the current restricted area in the virtual scene, and the target restricted area is the updated restricted area in the virtual scene.
[0048] In related technologies, the terminal often displays prompt information before updating the restricted area, and the user can find out the location of the updated restricted area by viewing the virtual map of the virtual scene after seeing this prompt information. However, this method has relatively low efficiency in human-computer interaction because the user must first open the virtual map when determining the location of the new restricted area.
[0049] The technical solution provided by the embodiments of the present invention allows a computer device to display a region indicator graphic based on the current restricted area, the updated restricted area, and the first virtual object, the region indicator graphic being able to show the relative positional relationship between the first virtual object and the two restricted areas. The user does not need to look at a virtual map of the virtual scene, but can understand the relative position between the first virtual object and the two restricted areas simply by looking at the region indicator graphic, resulting in relatively high efficiency of human-computer interaction.
[0050] Steps 501-502 described above are a brief introduction to the virtual scene-based graphics display method provided by the embodiments of the present application. Below, several examples will be combined to describe in more detail the virtual scene-based graphics display method provided by the embodiments of the present application. The implementing entity is a computer device, and in the embodiments of the present application, the computer device is an example of a terminal. Referring to Figure 6, the method includes steps 601-604.
[0051] In step 601, the terminal displays a virtual scene which includes a restricted area, and a first virtual object is displayed in the virtual scene, wherein the attribute values of the virtual object located within the restricted area do not change if no interaction action is received.
[0052] In some embodiments, the restricted area is a randomly generated area in the virtual scene, and it serves to limit the range of activity of virtual objects. In some embodiments, the restricted area in the virtual scene is updated, and the updating method of the restricted area includes constantly shrinking the restricted area, and further includes adjusting the position of the restricted area, with an overlapping portion between the restricted area before and after adjustment. In some embodiments, within a certain period after the game starts, there is no restricted area in the virtual scene, and the user can control virtual objects to move freely in the virtual scene, for example, to collect virtual tools and to attack other virtual objects in the virtual scene. After a certain period, a restricted area begins to appear in the virtual scene, and the user controls virtual objects to go to the restricted area in order to avoid the attribute values of virtual objects decreasing due to lack of interaction. If the updating method of the restricted area in the virtual scene is constantly shrinking the restricted area, when determining the restricted area for the first time, the terminal can randomly determine a single position point in the virtual scene, and determine the restricted area with this position point as the center and a predetermined length as the radius. When the restricted area is subsequently updated, the terminal continuously reduces the radius of the restricted area or randomly generates a target restricted area within the restricted area that is smaller in area than the restricted area. In some embodiments, an interaction act includes an interaction act of other virtual objects in a virtual scene with the virtual object, and further includes an interaction act of the virtual scene with the virtual object, where the interaction act of other virtual objects with the virtual object includes the other virtual object attacking the virtual object with a virtual gun, the other virtual object attacking the virtual object with a virtual projectile, the other virtual object driving a virtual vehicle and crashing into the virtual object, the other virtual object calling a virtual airplane in the virtual scene and attacking the virtual object, the other virtual object attacking the virtual object with a virtual knife, and so on.Interactions with a virtual object in a virtual scene include attacking the virtual object by randomly dropping virtual explosives in the virtual scene, and damage inflicted on the virtual object by it falling into a virtual body of water in the virtual scene.
[0053] In some embodiments, when the attribute value drops to 0, the virtual object is eliminated, and the user can no longer control the virtual object to play the game. Alternatively, when the attribute value drops to 0, the virtual object enters a "waiting for rescue" state, and the user can control the virtual object to "crawl" in the virtual scene, while other users can control the virtual object to rescue the "waiting for rescue" virtual object. If the "waiting for rescue" virtual object is not rescued by another virtual object within a certain period, the virtual object is eliminated. In some embodiments, the attribute value is the hit points of the virtual object. That is, when the virtual object is located within the restricted area and no interaction action is received, the hit points of the virtual object do not decrease. When the virtual object is located outside the restricted area and no interaction action is received, the hit points of the virtual object also decrease, and the amount of decrease in hit points is positively correlated with the length of time the virtual object is located outside the restricted area. If the virtual object remains outside the restricted area for an extended period, the hit points of the virtual object may drop to 0, thereby eliminating the virtual object.
[0054] In some embodiments, the virtual scene is a game scene of a shooting game, and the first virtual object is a virtual object controlled by a terminal, which the user can control to move the first virtual object in the virtual scene, use virtual tools, drive virtual vehicles, and perform other activities via the terminal.
[0055] In one possible embodiment, in response to a user starting a round of a competitive match, the terminal displays a virtual scene corresponding to the round of the competitive match, and displays a first virtual object in the virtual scene, where the round of the competitive match is a round of a shooting game, the virtual scene displayed by the terminal is part of the virtual scene, the first virtual object is displayed in the center of the virtual scene displayed by the terminal, the virtual scene displayed by the terminal moves with the movement of the first virtual object, and in some embodiments, the virtual scene displayed by the terminal is also called the field of view of the first virtual object. In such a case, the terminal may display other virtual objects if those other virtual objects enter the field of view of the first virtual object.
[0056] In step 602, the terminal displays an area indicator graphic based on the restricted area, the target restricted area, and the first virtual object, the area indicator graphic showing the relative positional relationship between the first virtual object, the restricted area and the target restricted area, the target restricted area being the restricted area determined by the occurrence of the next area update.
[0057] In one possible embodiment, the terminal displays the region indicator graphic in the virtual scene. In another possible embodiment, the terminal displays a virtual scene interface in which the virtual scene is displayed, and the terminal displays the region indicator graphic in the virtual scene interface, for example, in a target region in the virtual scene interface, or the terminal adds a layer to the virtual scene interface in which the region indicator graphic is displayed.
[0058] Here, the restricted area is the current restricted area in the virtual scene, and the target restricted area is the restricted area to be updated. In some embodiments, the target restricted area is located inside the restricted area, the area of the target restricted area is smaller than that of the restricted area, or the target restricted area has an overlapping portion with the restricted area. If the target restricted area is located inside the restricted area and the area of the target restricted area is smaller than that of the restricted area, the process by which the terminal updates the restricted area is a process of shrinking the restricted area. For example, the restricted area is a first sphere in the virtual scene, the edges of the sphere are visible, and the user can determine the location of the restricted area by looking at the edges. When the terminal updates the restricted area, it can directly decrease the radius of the sphere to obtain a sphere with a smaller volume, which is the target restricted area. Alternatively, the terminal can randomly determine a center of gravity within the sphere and decrease the radius of the sphere to obtain the target restricted area. If the target restricted area has an overlap with the restricted area, the process by which the terminal updates the restricted area is a process of re-determining one target restricted area around the restricted area, having an overlap between the target restricted area and the restricted area, thereby ensuring that virtual objects can move smoothly from the restricted area to the target restricted area. In some embodiments, the area of the target restricted area is smaller than the restricted area, thereby increasing the probability of contact between virtual objects and shortening the game time. In some embodiments, the restricted area is called the current safe area, and the target restricted area is called the next safe area.
[0059] In one possible embodiment, depending on whether the time difference until the region update time satisfies the target condition, the terminal displays a region indicator graphic in the virtual scene based on the restricted region, the target restricted region, and the first virtual object in the virtual scene.
[0060] Here, the domain update time is set by the engineer according to the actual situation, and may be set to a fixed time length such as 1 minute or 2 minutes, or to an indefinite time length. For example, the time for the first domain update may be 3 minutes after the start of the game, and the time for the second domain update may be 5 minutes after the start of the game, and is not limited to the embodiments of this application. Here, the time difference until the domain update time refers to the time difference between the present time and the time when the next domain is updated.
[0061] In some embodiments, the time difference until the domain update time satisfies the target condition, meaning that the time difference until the domain update time is less than or equal to a time difference threshold, which is set by an engineer according to the actual situation and may be set to, for example, 5 minutes, 3 minutes, 1 minute, 30 seconds, 10 seconds, or 0 seconds, but is not limited to the embodiments of this application.
[0062] In such embodiments, the terminal can display an area indicator graphic before updating the target restriction area, which helps to attract the user's attention and improves the efficiency of human-computer interaction.
[0063] In one possible embodiment, the terminal generates a region combination graphic based on the restricted region and the target restricted region, the region combination graphic showing the relative positional relationship between the restricted region and the target restricted region. The terminal displays the region indicator graphic in the virtual scene based on the region combination graphic and the first virtual object.
[0064] In this embodiment, since the relative positional relationship between the restricted area and the target restricted area does not change, the terminal can first generate a region combination graphic based on the restricted area and the target restricted area, and use this region combination graphic to indicate the relative positional relationship between the restricted area and the target restricted area. However, since the position and orientation of the first virtual object in the virtual scene may change from time to time, the relative positional relationship between the first virtual object and the two restricted areas may also change from time to time. By employing such a method of determining the region indication graphic using both constant and variable elements, the computational efficiency of the terminal can be improved.
[0065] To provide a clearer explanation of the above-described embodiment, the embodiment will be described in two parts below.
[0066] In the first part, the terminal generates a region combination graphic based on the restricted region and the target restricted region.
[0067] In one possible embodiment, the terminal generates the region combination graphic based on the respective locations of the restricted region and the target restricted region in the virtual scene.
[0068] In such embodiments, since the relative positional relationship between the restricted area and the target restricted area does not change, the terminal can directly generate the combined area graphic based on the positions of the restricted area and the target restricted area, which is relatively efficient.
[0069] For example, the terminal generates the region combination graphic based on the center and boundary positions of the restricted region in the virtual map of the virtual scene, and the center and boundary positions of the target restricted region in the virtual map.
[0070] Here, the virtual map is a planar projection of the virtual scene, and the virtual map records the boundaries of different regions and the names of different regions in the virtual scene.
[0071] In some embodiments, the terminal uses coordinate form to represent the center position of the restricted area and the target restricted area in the virtual map, and uses function form to represent the boundary positions of the restricted area and the target restricted area in the virtual map. If the restricted area and the target restricted area are spheres in the virtual scene, they are represented as two circles in the virtual map, where the circles include not only perfect circles but also ellipses. This is not limited to the embodiments of the present application. In some embodiments, the terminal obtains the center coordinates and boundary function of the restricted area and the center coordinates and boundary function of the target restricted area, generates a first area graphic based on the center coordinates and boundary function of the restricted area, the first area graphic represents the restricted area. The terminal generates a second area graphic in the same coordinate system as the first area graphic based on the center coordinates and boundary function of the target restricted area, the second area graphic represents the target restricted area, and the combination of the first graphic area and the second graphic area is the combined area graphic. Of course, in the process described above, the terminal was used as an example to generate the first region graphic and the second region graphic separately, but in other possible embodiments, the terminal can generate the first region graphic and the second region graphic simultaneously, and is not limited to the embodiments of this application.
[0072] In some embodiments, the terminal fills a square of a predetermined size with one largest circle, the largest circle representing the restricted area, and the circle is the first area graphic. The terminal generates another circle within the square based on the difference in position between the center of the restricted area and the center of the target restricted area, and the ratio of the radius of the restricted area to the radius of the target restricted area, the circle representing the target restricted area, the circle is the second area graphic, and the combination of these two circles is the combined area graphic, where the predetermined size is set by the technician according to the actual situation and is not limited to the embodiments of the present application.
[0073] In some embodiments, the terminal obtains the center coordinates and boundary function of the restricted area and the center coordinates and boundary function of the target restricted area from a virtual map. Based on the center coordinates and boundary function of the restricted area, the terminal generates a first area graphic on the virtual map. Based on the center coordinates and boundary function of the target restricted area, the terminal generates a second area graphic on the virtual map, and the combination of the first area graphic and the second area graphic is the combined area graphic.
[0074] For example, referring to Figure 7, the terminal obtains the center coordinates and boundary function of the restricted area 702 and the center coordinates and boundary function of the target restricted area 703 from the virtual map 701. Based on the center coordinates and boundary function of the restricted area 702, the terminal generates a first area graphic 704 in the virtual map 701. Based on the center coordinates and boundary function of the target restricted area 703, the terminal generates a second area graphic 705 in the virtual map 701, and the combination of the first area graphic 704 and the second area graphic 705 is the area combination graphic.
[0075] In one possible embodiment, the terminal generates the region combination graphic based on the location of the restricted region in the virtual scene, the distance between the center of the restricted region and the first virtual object, and the location of the target restricted region in the virtual scene.
[0076] In such embodiments, when generating a region combination graphic, the distance between the center of the restricted region and the first virtual object is taken into consideration, so that the generated region combination graphic is more suitable for the first virtual object.
[0077] Taking the example that the restricted area and the target restricted area are circles on a virtual map, the terminal generates a first area graphic with the center of the restricted area as the center of the circle and the distance between the center of the restricted area and the first virtual object as the radius, and the first area graphic represents the distance between the restricted area and the first virtual object. The terminal generates a second area graphic with the center of the target restricted area as the center and the radius of the target restricted area as the radius, and the second area graphic represents the target restricted area, and the combination of the first area graphic and the second area graphic is the area combination graphic.
[0078] In the second part, the terminal displays the region indicator graphic based on the region combination graphic and the first virtual object.
[0079] In one possible embodiment, the terminal adds an orientation icon for the first virtual object to the region combination graphic based on the position and orientation of the first virtual object in the virtual scene, and obtains the region indicator graphic. The terminal displays the region indicator graphic in the virtual scene.
[0080] Here, the direction icon indicates the position and orientation of the first virtual object in the virtual scene, and in some embodiments, the direction icon is also called a “directed role coordinate icon,” and Figure 8 provides one direction icon 800, which includes a body 801 and a pointed corner 802, the direction of which the pointed corner 802 represents the orientation of the first virtual object, that is, if the orientation of the first virtual object changes, the direction of which the pointed corner 802 also changes accordingly.
[0081] To provide a clearer explanation of the above-described embodiment, the embodiment will be described in two parts below.
[0082] (1) The terminal adds a direction icon for the first virtual object to the region combination graphic based on the position and orientation of the first virtual object in the virtual scene, and obtains the region indication graphic.
[0083] In one possible embodiment, if the first virtual object is located inside the restricted area, the terminal adds the orientation icon inside the area combination graphic based on the distance and orientation between the first virtual object and the center position of the restricted area, adjusts the orientation of the orientation icon to the orientation of the first virtual object, and obtains the area indication graphic.
[0084] In such embodiments, if the first virtual object is located within the restricted area, the terminal can add the direction icon to the area combination graphic based on the actual positional relationship between the first virtual object and the restricted area, and the resulting area indication graphic can realistically reflect the position of the first virtual object within the restricted area and the relative positional relationship between the first virtual object and the target restricted area.
[0085] For example, the terminal determines whether the first virtual object is located inside the restricted area based on the coordinates of the first virtual object in the virtual scene, the center coordinates of the restricted area, and the radius of the restricted area. That is, it first determines the distance between the coordinates of the first virtual object in the virtual scene and the center coordinates of the restricted area, and then compares this distance with the radius of the restricted area. If the distance is greater than the radius of the restricted area, it means that the first virtual object is located outside the restricted area; if the distance is less than or equal to the radius of the restricted area, it means that the first virtual object is located inside the restricted area. If the first virtual object is located inside the restricted area, the terminal determines the position of the first virtual object within the restricted area based on the distance between the first virtual object and the center position of the restricted area, and the relative direction between the first virtual object and the restricted area. It then adds a direction icon to the corresponding position inside the area combination graphic, adjusts the orientation of the direction icon to the orientation of the first virtual object, and obtains the area indication graphic. Here, the direction of the direction icon is the orientation of the first virtual object. For example, if the orientation of the first virtual object is the center position of the restricted area, the direction icon points towards the center of the first area graphic in the area combination graphic, and the first area graphic represents the restricted area.
[0086] In some embodiments, the virtual scene includes multiple terrain blocks, and the terminal uses a first numerical value to number the terrain blocks belonging to the restricted area among the multiple terrain blocks, and a second numerical value to number the terrain blocks outside the restricted area. When the terminal determines whether the first virtual object is located in the restricted area, it determines the number of the terrain block in which the first virtual object is located. If the number of the terrain block is the first numerical value, the terminal determines that the first virtual object is located inside the restricted area. If the number of the terrain block is the second numerical value, the terminal determines that the first virtual object is located outside the restricted area. If the first virtual object is located inside the restricted area, the terminal determines the position of the first virtual object in the restricted area based on the distance between the first virtual object and the center of the restricted area, and the relative direction between the first virtual object and the restricted area. The terminal adds a direction icon to the corresponding position inside the area combination graphic, adjusts the orientation of the direction icon to the orientation of the first virtual object, and obtains the area indicator graphic.
[0087] For example, referring to Figure 9, if the first virtual object is located inside the restricted area, the terminal adds a direction icon 901 to the area combination graphic 900 and obtains an area indication graphic 902.
[0088] In one possible embodiment, if the first virtual object is located outside the restricted area, the terminal determines the closest candidate position to the first virtual object on the boundary of the restricted area in the area combination graphic based on the connection line between the first virtual object and the center position of the restricted area, adds the direction icon to the candidate position, adjusts the orientation of the direction icon to the orientation of the first virtual object, and obtains the area indication graphic.
[0089] In such embodiments, if the first virtual object is located outside the restricted area, the terminal can add the direction icon to the boundary of the restricted area in the area indicator graphic, so that the area indicator graphic can represent the relative positional relationship between the first virtual object and the two restricted areas, even if the first virtual object is not within the restricted area.
[0090] For example, the terminal determines whether the first virtual object is located inside the restricted area based on the coordinates of the first virtual object in the virtual scene, the center coordinates of the restricted area, and the radius of the restricted area. If the first virtual object is located outside the restricted area, the terminal determines a candidate position in the area combination graphic based on a connecting line between the first virtual object and the center position of the restricted area, and the candidate position is the intersection of the connecting line and the boundary of the first area graphic. The terminal adds the direction icon to the candidate position, adjusts the orientation of the direction icon to the orientation of the first virtual object, and obtains the area indication graphic. Here, if the direction of the direction icon is the orientation of the first virtual object, and for example the orientation of the first virtual object is the center position of the restricted area, the direction icon is oriented towards the center of the first area graphic in the area combination graphic, and the first area graphic represents the restricted area.
[0091] In some embodiments, the virtual scene includes multiple terrain blocks, and the terminal uses a first numerical value to number the terrain blocks that belong to the restricted area and a second numerical value to number the terrain blocks that do not belong to the restricted area. When the terminal determines whether the first virtual object is located in the restricted area, it determines the number of the terrain block in which the first virtual object is located. If the number of the terrain block is the second numerical value, the terminal determines that the first virtual object is located outside the restricted area. The terminal then determines a candidate position in the region combination graphic based on a connecting line between the first virtual object and the center of the restricted area, where the candidate position is the intersection of the connecting line and the boundary of the first region graphic. The terminal adds a direction icon to the candidate position, adjusts the orientation of the direction icon to the orientation of the first virtual object, and obtains the region indicator graphic.
[0092] (2) The terminal displays the area indicator graphic.
[0093] In one possible embodiment, the terminal zooms in on the region indicator graphic and displays the zoomed-in region indicator graphic in the virtual scene.
[0094] Here, the zoom ratio of the terminal to the region indicator graphic is determined by the area of the region indicator graphic and the target area, where the target area is the area of the region indicator graphic after zooming, and the target area is set by the technician according to the actual situation, but is not limited to the embodiments of the present application.
[0095] In this embodiment, the terminal zooms in on the region indicator graphic before displaying it in the virtual scene. This allows the zoomed-in region indicator graphic to better fit the virtual scene, avoiding situations where the region indicator graphic is too large and obstructs the virtual scene, as well as situations where the region indicator graphic is too small and the user cannot see it clearly. This makes it convenient to use the region indicator graphic to show the relative positional relationship between the first virtual object and the two restricted regions.
[0096] For example, the terminal zooms the region indicator graphic based on the ratio of the area of the region indicator graphic to the target area, obtaining a zoomed region indicator graphic, the area of which is the target area. The terminal then displays the zoomed region indicator graphic.
[0097] For example, referring to Figure 10, the terminal zooms in on the region indicator graphic 1001 to obtain the zoomed region indicator graphic 1002, and the terminal displays the zoomed region indicator graphic 1002 in the virtual scene. The boundary of the largest circle 10021 in the region indicator graphic 1002 represents the boundary of the restricted region, the boundary of the smallest circle 10022 represents the boundary of the target restricted region, and the direction icon 10023 represents the position and orientation of the first virtual object. In some embodiments, the zoomed region indicator graphic is displayed at the top center of the virtual scene. Referring to Figure 11, the terminal displays the zoomed region indicator graphic 1101 in the virtual scene 1102.
[0098] Combining the previous steps, the embodiment may be further described as follows: 1. The area indicator graphic appears at the top center of the virtual scene when adjusting the restricted area. 2. The area indicator graphic consists of three parts, each representing the location of the current restricted area, the location of the next restricted area (target restricted area), and the current location and orientation of the first virtual object. 3. The area indication graphic is generated by the difference in the center coordinates of the three pieces of information described above in the virtual map, and fits the current position of the first virtual object. The positional relationship and orientation between the current limiting area, the next limiting area, and the current position of the first virtual object coincide with the virtual map. 4. The relative positions of the three coordinates in the area indication graphic are scaled proportionally while remaining consistent with the virtual map. 5. The area indication graphic can inform the user of the direction in which the restricted area needs to be adjusted, as well as the direction and distance in which the first virtual object needs to move, through a graphical representation method. 6. When the area indicator graphic appears, the direction icon in the area indicator graphic indicates the position and orientation of the first virtual object. This direction icon is also a type of moving image and provides real-time feedback in response to user actions, which can help the user quickly lock onto a direction.
[0099] In one possible embodiment, the terminal rotates the region indicator graphic and displays the rotated region indicator graphic.
[0100] In this embodiment, after the terminal rotates the region indicator graphic, the rotated region indicator graphic is displayed in the virtual scene, and the terminal can rotate the region indicator graphic to better suit the user's navigation needs, thereby improving the efficiency of human-computer interaction.
[0101] The above embodiments will be explained below with two examples.
[0102] In Example 1, the terminal rotates the region indicator graphic based on the position of the direction icon in the region indicator graphic so that the direction icon is located at the bottom of the region indicator graphic, and displays the rotated region indicator graphic. After rotation, the relative positions of the three elements in the region indicator graphic do not change. For example, the rotated region indicator graphic is displayed in a virtual scene.
[0103] By rotating the direction icon to the bottom of the area indicator graphic, it conforms to general navigation display logic, making it convenient for the user to determine the distance and direction between the first virtual object and the two restricted areas, and resulting in relatively high efficiency of human-computer interaction.
[0104] For example, referring to Figure 12, the terminal rotates the region indicator graphic 1201, rotates the direction icon 1202 on the region indicator graphic 1201 to the bottom of the region indicator graphic 1201, obtains the rotated region indicator graphic 1203, and displays the rotated region indicator graphic 1203 in the virtual scene.
[0105] In some embodiments, after obtaining a rotated region indicator graphic, the terminal further zooms in on the rotated region indicator graphic to obtain a rotated and zoomed region indicator graphic, and displays the rotated and zoomed region indicator graphic in the virtual scene.
[0106] For example, the terminal zooms the rotated region indicator graphic based on the ratio of the area of the region indicator graphic to the target area, obtaining a rotated and zoomed region indicator graphic, the area of which is the target area. The terminal displays the rotated and zoomed region indicator graphic in the virtual scene. Referring to Figure 13, the terminal zooms the rotated region indicator graphic 1301 to obtain a rotated and zoomed region indicator graphic 1302, and the terminal displays the rotated and zoomed region indicator graphic 1302 in the virtual scene. In some embodiments, the rotated and zoomed region indicator graphic is displayed at the top center of the virtual scene. Referring to Figure 14, the terminal displays the rotated and zoomed region indicator graphic 1402 in the virtual scene 1401. In Figure 14, it can be seen that no matter how the orientation of the first virtual object changes, the direction icon in the region indicator graphic 1402 is always located at the bottom of the region indicator graphic 1402.
[0107] Combining the previous steps, the embodiment may be further described as follows: 1. The area indicator graphic appears at the top center of the virtual scene when adjusting the restricted area. 2. The area indicator graphic consists of three parts, each representing the location of the current restricted area, the location of the next restricted area (target restricted area), and the current location and orientation of the first virtual object. 3. The area indication graphic is generated by the difference in the center coordinates of the three pieces of information described above in the virtual map, and fits the current position of the first virtual object. The positional relationship and orientation between the current limiting area, the next limiting area, and the current position of the first virtual object coincide with the virtual map. 4. The area indication graphic can inform the user of the direction in which the restricted area needs to be adjusted, as well as the direction and distance the first virtual object needs to move, through a graphical representation method. 5. When the area indicator graphic appears, the direction icon in the area indicator graphic indicates the position and orientation of the first virtual object. This direction icon is also a type of moving image and provides real-time feedback in response to user actions, which can help the user quickly lock onto a direction. 6. The direction icon in the region indication graphic indicates the position and orientation of the first virtual object, and the direction icon is located in the lower half of the vertical diameter of the outer circle of the region indication graphic.
[0108] In the virtual map, regardless of the relative positions of the three elements, when converting to a region indicator graphic, the center of the outer limiting region is always maintained as the center of the region indicator graphic. The position of the first virtual object rotates around the outer center and moves to the lower half of the vertical diameter of the outer limiting region. Based on the positional relationship between the direction icon of the first virtual object and the center of the limiting region at this time, the precise position in the region indicator graphic of the next limiting region is readjusted.
[0109] In Example 2, the terminal rotates the region indicator graphic so that the direction of the direction icon points towards the target direction, based on the position and direction of the direction icon in the region indicator graphic, and displays the rotated region indicator graphic. For example, the rotated region indicator graphic is displayed in the virtual scene.
[0110] In some embodiments, the target direction is directly upwards.
[0111] By fixing the orientation of the direction icon, it is convenient for the user to quickly determine the orientation of the first virtual object, resulting in relatively high efficiency in human-computer interaction.
[0112] For example, referring to Figure 15, the terminal rotates the region indicator graphic 1501 until the direction icon 1502 on the region indicator graphic 1501 points directly upwards, obtaining the rotated region indicator graphic 1503, and the terminal displays the rotated region indicator graphic 1503 in the virtual scene.
[0113] In some embodiments, after obtaining the rotated region indicator graphic, the terminal further zooms in on the rotated region indicator graphic to obtain the rotated and zoomed region indicator graphic, and displays the rotated and zoomed region indicator graphic in the virtual scene.
[0114] For example, the terminal zooms the rotated region indicator graphic based on the ratio of the area of the region indicator graphic to the target area, obtaining a rotated and zoomed region indicator graphic, the area of which is the target area. The terminal displays the rotated and zoomed region indicator graphic in the virtual scene. Referring to Figure 16, the terminal zooms the rotated region indicator graphic 1601 to obtain a rotated and zoomed region indicator graphic 1602, and the terminal displays the rotated and zoomed region indicator graphic 1602 in the virtual scene. In some embodiments, the rotated and zoomed region indicator graphic is displayed at the top center of the virtual scene. Referring to Figure 17, the terminal displays the rotated and zoomed region indicator graphic 1702 in the virtual scene 1701. In Figure 17, it can be seen that no matter how the orientation of the first virtual object changes, the direction icon in the region indicator graphic 1702 always points straight up.
[0115] Combining the previous steps, the embodiment may be further described as follows: 1. The area indicator graphic appears at the top center of the virtual scene when adjusting the restricted area. 2. The area indicator graphic consists of three parts, each representing the location of the current restricted area, the location of the next restricted area (target restricted area), and the current location and orientation of the first virtual object. 3. The area indication graphic is generated by the difference in the center coordinates of the three pieces of information described above in the virtual map, and fits the current position of the first virtual object. The positional relationship and orientation between the current limiting area, the next limiting area, and the current position of the first virtual object coincide with the virtual map. 4. In the area indication graphic, the direction icon always points directly upwards. This is used as a fixed reference to adjust the position in the area indication graphics for the current and next restricted areas. 5. When the area indication graphic appears, the position of the restricted area in the area indication graphic rotates in accordance with the rotation of the player's viewing angle.
[0116] It should be noted that, in the above explanation, the region indicator graphic was described as a perfect circle as an example, but in other possible embodiments, the region indicator graphic may be of other shapes, such as an ellipse, and is not limited to the embodiments of this application. Referring to Figure 18, the region indicator graphic 1801 is elliptical.
[0117] In one possible embodiment, if the region indicator graphic includes a first region graphic, a second region graphic, and a direction icon, the terminal displays the first region graphic, the second region graphic, and the direction icon in different colors. For example, the first region graphic, the second region graphic, and the direction icon are displayed in different colors in a virtual scene.
[0118] In such embodiments, displaying the first area graphic, the second area graphic, and the directional icon in different colors makes it convenient for the user to distinguish between them, resulting in relatively high efficiency of human-computer interaction.
[0119] For example, in the virtual scene, the terminal displays the first area graphics in blue, the second area graphics in gray, and the direction icons in yellow.
[0120] In one possible embodiment, after displaying the region indicator graphic, or simultaneously with displaying the region indicator graphic, the terminal displays a countdown icon based on the region indicator graphic, the countdown icon indicating the remaining time until the update from the restricted region to the target restricted region. Here, there is a certain time interval between each region update, which is set by the technician according to the actual situation; for example, setting the time interval to 3 minutes means that the restricted region in the virtual scene is updated every 3 minutes, and the countdown icon is used to display the remaining time until the update from the restricted region to the target restricted region.
[0121] In such embodiments, the terminal can notify the user of the remaining time until the area update time is reached by displaying a countdown icon, that is, it notifies the user of the remaining time until the current restricted area is updated to the target restricted area, which is convenient for the user to move the first virtual object to the target restricted area in a timely manner, and the efficiency of human-computer interaction is relatively high.
[0122] The above embodiments will be explained below with two examples.
[0123] In Example 1, the terminal displays the countdown icon below the area indicator graphic.
[0124] For example, referring to Figure 19, the terminal displays a countdown icon 1901 below the area indicator graphic 1902.
[0125] In Example 2, if the area indicator graphic includes a direction icon, the terminal displays the countdown icon below the direction icon, and the direction icon indicates the position and orientation of the first virtual object in the virtual scene.
[0126] For example, referring to Figure 20, the terminal displays the countdown icon 2001 below the direction icon 2002.
[0127] In one possible embodiment, after displaying the region indicator graphic, or simultaneously with displaying the region indicator graphic, the terminal further:
[0128] If the first virtual object is located inside the restricted area, the terminal can perform the step of displaying the distance between the first virtual object and the target restricted area on the area indicator graphic.
[0129] In such embodiments, the terminal provides the user with the distance between the first virtual object and the target restricted area, helping the user know how far the current first virtual object is from the target restricted area, thereby reminding the user to manipulate the first virtual object to move it towards the target restricted area, and improving the efficiency of human-computer interaction.
[0130] If the first virtual object is located outside the restricted area, the terminal displays the distance between the first virtual object and the restricted area, and the distance between the first virtual object and the target restricted area, on the area indicator graphic.
[0131] In such embodiments, the terminal provides the user with the distance between the first virtual object and the restricted area, and the distance between the first virtual object and the target restricted area, helping the user know how far the current first virtual object is from the restricted area or the target restricted area, thereby reminding the user to manipulate the first virtual object to move it to the restricted area or the target restricted area, and improving the efficiency of human-computer interaction.
[0132] In step 603, in response to a change in either the position or orientation of the first virtual object in the virtual scene, the terminal adjusts the region indicator graphic based on the current position and orientation of the first virtual object in the virtual scene.
[0133] In one possible embodiment, in response to a change in either the position or orientation of the first virtual object in the virtual scene, the terminal adjusts the region indicator graphic based on the current position and orientation of the first virtual object in the virtual scene, the restricted region, and the target restricted region.
[0134] Here, the technical solution described in the above embodiment belongs to the same inventive concept as the method in step 602 above in which the terminal displays area indicator graphics in the virtual scene based on the restricted area, target restricted area and first virtual object in the virtual scene, and the implementation process is described above and not repeated here.
[0135] Step 603 allows the terminal to adjust the region indicator graphic in a timely manner when the position or orientation of the first virtual object changes, and the user can know the relative positional relationship between the first virtual object and the two restricted regions in real time through the real-time adjusted region indicator graphic, resulting in relatively high efficiency of human-computer interaction.
[0136] In step 604, the terminal cancels the display of the region indicator graphic after the target time duration.
[0137] Here, the target time length is set by the engineer according to the actual situation and may be set to, for example, 6 seconds, 8 seconds, or 10 seconds, and is not limited to the embodiments of this application.
[0138] Step 604 allows the terminal to cancel the display of the area indicator graphic after a certain period of time, thereby providing the user with more space to display the virtual scene.
[0139] In some embodiments, the region indicator graphic includes a close control, and in response to a click on the close control, the terminal cancels the display of the region indicator graphic. In such embodiments, the user can control the terminal to cancel the display of the region indicator graphic at any time as needed, providing the user with greater autonomy.
[0140] In some embodiments, a call control for the region indicator graphic is displayed in the virtual scene, and after the terminal cancels the display of the region indicator graphic, the terminal redisplays the region indicator graphic in response to a click operation on the call control.
[0141] All of the above selectable technical solutions can be adopted in any combination to form selectable embodiments of the present invention, but this will not be repeated here.
[0142] It should be explained that in steps 601 to 604 above, the execution entity was described as a terminal, but in other possible embodiments, such as in a cloud game scene, the data processing portion in steps 601 to 604 above is performed by a cloud game server, and the terminal plays the role of receiving and displaying the operations, but this is not limited to the embodiments of the present invention.
[0143] In the following, a method for displaying graphics based on a virtual scene provided by an embodiment of the present application will be described by combining Figure 21 and the selectable embodiments described above. Referring to Figure 21, the method includes the terminal acquiring key information when a preset trigger time node is reached, i.e., when the time difference to the region update time satisfies the target condition, the key information includes the position of the current restricted region, the position of the target restricted region, and the position and orientation of the first virtual object. The terminal determines whether the first virtual object is located within the current restricted region, and if the first virtual object is located within the current restricted region, generates a region indicator graphic based on the position of the current restricted region, the position of the target restricted region, and the position and orientation of the first virtual object; if the first virtual object is located outside the current restricted region, generates a region indicator graphic based on the position of the current restricted region, the position of the target restricted region, and the position and orientation of the first virtual object in the current restricted region, i.e., using the edge of the restricted region closest to the first virtual object instead of the position of the first virtual object to generate the region indicator graphic. The terminal displays the region indicator graphic, which synchronizes the position and orientation of the first virtual object in real time. After the target time duration, the terminal cancels the display of the region indicator graphic.
[0144] The technical solution provided by the embodiments of the present invention allows a terminal to display a region indicator graphic in the virtual scene based on the current restricted region, the updated restricted region, and the first virtual object, the region indicator graphic being able to show the relative positional relationship between the first virtual object and the two restricted regions. The user does not need to look at a virtual map of the virtual scene, but can understand the relative position between the first virtual object and the two restricted regions simply by looking at the region indicator graphic, resulting in relatively high efficiency of human-computer interaction.
[0145] Figure 22 is a schematic structural diagram of a virtual scene-based graphic display device according to an embodiment of the present invention, and referring to Figure 22, the device includes a virtual scene display module 2201 and a region indicator graphic display module 2202.
[0146] The virtual scene display module 2201 is configured to display a virtual scene, which includes a restricted area, and a first virtual object is displayed in the virtual scene, wherein the attribute values of the virtual object located within the restricted area do not change when no interaction action is received.
[0147] The region indicator graphic display module 2202 is configured to display a region indicator graphic in the virtual scene based on the restricted region, the target restricted region, and the first virtual object, the region indicator graphic showing the relative positional relationship between the first virtual object and the restricted region and the relative positional relationship between the first virtual object and the target restricted region, the target restricted region being the restricted region determined by the occurrence of the next region update.
[0148] In one possible embodiment, the region indicator graphic display module 2202 is configured to generate a region combination graphic based on the restricted region and the target restricted region, the region combination graphic showing the relative positional relationship between the restricted region and the target restricted region, and to display the region indicator graphic based on the region combination graphic and the first virtual object.
[0149] In one possible embodiment, the region indicator graphic display module 2202 is configured to generate the region combination graphic based on the respective positions of the restricted region and the target restricted region in the virtual scene.
[0150] In one possible embodiment, the region indicator graphic display module 2202 is configured to generate the region combination graphic based on the center and boundary positions of the restricted region in the virtual map of the virtual scene and the center and boundary positions of the target restricted region in the virtual map.
[0151] In one possible embodiment, the region indicator graphic display module 2202 is configured to add an orientation icon for the first virtual object to the region combination graphic based on the position and orientation of the first virtual object in the virtual scene, thereby obtaining and displaying the region indicator graphic.
[0152] In one possible embodiment, the region indicator graphic display module 2202 is
[0153] If the first virtual object is located inside the restricted area, the system is configured to add a direction icon inside the area combination graphic based on the distance and direction between the first virtual object and the center position of the restricted area, adjust the orientation of the direction icon to the orientation of the first virtual object, and obtain the area indicator graphic, or
[0154] If the first virtual object is located outside the restricted area, the system is configured to determine the closest candidate position to the first virtual object on the boundary of the restricted area in the area combination graphic based on the connection line between the first virtual object and the center position of the restricted area, add the direction icon to the candidate position, adjust the orientation of the direction icon to the orientation of the first virtual object, and obtain the area indication graphic.
[0155] In one possible embodiment, the region indicator graphic display module 2202 is configured to rotate the region indicator graphic and display the rotated region indicator graphic.
[0156] In one possible embodiment, the region indicator graphic includes a direction icon, which indicates the position and orientation of the first virtual object in the virtual scene, and the region indicator graphic display module 2202,
[0157] The system is configured to rotate the region indicator graphic so that the direction icon is located at the bottom of the region indicator graphic, based on the position of the direction icon in the region indicator graphic, and then display the rotated region indicator graphic, or
[0158] Based on the position and direction of the direction icon in the region indicator graphic, the region indicator graphic is rotated so that the direction of the direction icon points towards the target direction, and the rotated region indicator graphic is displayed.
[0159] In one possible embodiment, the region indicator graphic includes a region combination graphic and a direction icon, the region combination graphic indicating the relative positional relationship between the restricted region and the target restricted region, the direction icon indicating the position and orientation of the first virtual object in the virtual scene, the region combination graphic includes a first region graphic corresponding to the restricted region and a second region graphic corresponding to the target restricted region, and the region indicator graphic display module 2202 is configured to display the first region graphic, the second region graphic and the direction icon in different colors.
[0160] In one possible embodiment, the region indicator graphic display module 2202 is configured to generate the region combination graphic based on the location of the restricted region in the virtual scene, the distance between the center of the restricted region and the first virtual object, and the location of the target restricted region in the virtual scene.
[0161] In one possible embodiment, the device further includes:
[0162] The system includes an adjustment module configured to adjust the area indicator graphic based on the current position and orientation of the first virtual object in the virtual scene in response to a change in either the position or orientation of the first virtual object in the virtual scene.
[0163] In one possible embodiment, the device further includes:
[0164] The system includes a countdown icon display module configured to display a countdown icon based on the area indication graphic, the countdown icon indicating the remaining time until the update from the restricted area to the target restricted area.
[0165] In one possible embodiment, the countdown icon display module is:
[0166] The countdown icon is configured to be displayed below the area indicator graphic, or If the area indicator graphic includes a direction icon, the countdown icon is configured to be displayed below the direction icon, and the direction icon indicates the position and orientation of the first virtual object in the virtual scene.
[0167] In one possible embodiment, the target limiting region is located inside the limiting region, the area of the target limiting region is smaller than that of the limiting region, or the target limiting region has a portion that overlaps with the limiting region.
[0168] In one possible embodiment, the device further includes a distance display module, the distance display module is If the first virtual object is located inside the restricted area, the distance between the first virtual object and the target restricted area is configured to be displayed in the area indicator graphic, or If the first virtual object is located outside the restricted area, the distance between the first virtual object and the restricted area, and the distance between the first virtual object and the target restricted area are configured to be displayed on the area indicator graphic.
[0169] In one possible embodiment, the region indicator graphic display module is further configured to cancel the display of the region indicator graphic after a target time length.
[0170] It should be explained that when a graphics display device based on a virtual scene, as provided in the above embodiment, displays graphics, only the divisions of each functional module described above were used as examples. However, in actual applications, the above functions can be completed by different functional modules as needed; that is, the internal structure of the computer equipment can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the embodiments of the graphics display device and the graphics display method based on a virtual scene provided in the above embodiment belong to the same concept, and their specific implementation processes should be referred to in detail in the embodiment of the method and will not be repeated here.
[0171] The technical solution provided by the embodiments of the present application allows for the display of region indicator graphics in a virtual scene based on the current restricted region, the updated restricted region, and the first virtual object, the region indicator graphics being able to show the relative positional relationship between the first virtual object and the two restricted regions. The user does not need to look at a virtual map of the virtual scene, but can understand the relative position between the first virtual object and the two restricted regions simply by looking at the region indicator graphics, resulting in relatively high efficiency of human-computer interaction.
[0172] Embodiments of the present application provide a computer device comprising one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the computer program is loaded and executed by the one or more processors.
[0173] A step of displaying a virtual scene, wherein the virtual scene includes a restricted area, and a first virtual object is displayed in the virtual scene, wherein the attribute values of the virtual object located within the restricted area do not change when no interaction action is received.
[0174] The steps of displaying a region indicator graphic based on the restricted region, the target restricted region, and the first virtual object, wherein the region indicator graphic shows the relative positional relationship between the first virtual object and the restricted region and the relative positional relationship between the first virtual object and the target restricted region, and the target restricted region is the restricted region determined by the occurrence of the next region update.
[0175] In one possible embodiment, the computer program is loaded and executed by the one or more processors, A step of generating a region combination graphic based on the restricted region and the target restricted region, wherein the region combination graphic shows the relative positional relationship between the restricted region and the target restricted region. The system implements the steps of displaying a region indicator graphic based on the region combination graphic and the first virtual object.
[0176] In one possible embodiment, the computer program is loaded and executed by the one or more processors, The system implements the step of generating a combined region graphic based on the respective positions of the restricted region and the target restricted region in the virtual scene.
[0177] In one possible embodiment, the computer program is loaded and executed by the one or more processors, The system implements the step of generating a region combination graphic based on the center position and boundary position of the restricted region in the virtual map of the virtual scene, and the center position and boundary position of the target restricted region in the virtual map. In one possible embodiment, the computer program is loaded and executed by the one or more processors, The steps include: adding a direction icon for the first virtual object to the region combination graphic based on the position and orientation of the first virtual object in the virtual scene, and obtaining the region indication graphic; The system implements the steps of displaying a graphic indicating the region.
[0178] In one possible embodiment, the computer program is loaded and executed by the one or more processors, If the first virtual object is located inside the restricted area, the steps include adding a direction icon inside the area combination graphic based on the distance and direction between the first virtual object and the center position of the restricted area, adjusting the orientation of the direction icon to the orientation of the first virtual object, and obtaining the area indication graphic. If the first virtual object is located outside the restricted area, one of the following steps is performed: determine the candidate position closest to the first virtual object on the boundary of the restricted area in the area combination graphic based on the connection line between the first virtual object and the center position of the restricted area, add the direction icon to the candidate position, adjust the orientation of the direction icon to the orientation of the first virtual object, and obtain the area indication graphic.
[0179] In one possible embodiment, the computer program is loaded and executed by the one or more processors, The system implements the steps of rotating the region indicator graphic and displaying the rotated region indicator graphic.
[0180] In one possible embodiment, the region indicator graphic includes a direction icon, which indicates the position and orientation of the first virtual object in the virtual scene, and the computer program is loaded and executed by the one or more processors. The steps include: rotating the region indicator graphic so that the direction icon is located at the bottom of the region indicator graphic, based on the position of the direction icon in the region indicator graphic, and displaying the rotated region indicator graphic; The system implements one of the following steps: rotate the region indicator graphic so that the direction of the direction icon points towards the target direction, based on the position and direction of the direction icon in the region indicator graphic, and then display the rotated region indicator graphic.
[0181] In one possible embodiment, the region indicator graphic includes a region combination graphic and a direction icon, the region combination graphic indicating the relative positional relationship between the restricted region and the target restricted region, the direction icon indicating the position and orientation of the first virtual object in the virtual scene, the region combination graphic includes a first region graphic corresponding to the restricted region and a second region graphic corresponding to the target restricted region, and the computer program is loaded and executed by the one or more processors. The first area graphic, the second area graphic, and the direction icon are displayed in different colors.
[0182] In one possible embodiment, the computer program is loaded and executed by the one or more processors,
[0183] The process involves generating a region combination graphic based on the position of the restricted region in the virtual scene, the distance between the center of the restricted region and the first virtual object, and the position of the target restricted region in the virtual scene.
[0184] In one possible embodiment, the computer program is loaded and executed by the one or more processors, The system implements the step of adjusting the region indicator graphic based on the current position and orientation of the first virtual object in the virtual scene, in response to a change in either the position or orientation of the first virtual object in the virtual scene.
[0185] In one possible embodiment, the computer program is loaded and executed by the one or more processors, The step of displaying a countdown icon based on the area indication graphic, wherein the countdown icon indicates the remaining time until the update from the restricted area to the target restricted area.
[0186] In one possible embodiment, the computer program is loaded and executed by the one or more processors, The steps include displaying the countdown icon below the area indicator graphic, If the area indicator graphic includes a direction icon, the step of displaying the countdown icon below the direction icon, wherein the direction icon indicates the position and orientation of the first virtual object in the virtual scene, is implemented.
[0187] In one possible embodiment, the target limiting region is located inside the limiting region, the area of the target limiting region is smaller than that of the limiting region, or the target limiting region has a portion that overlaps with the limiting region.
[0188] In one possible embodiment, the computer program is loaded and executed by the one or more processors, If the first virtual object is located inside the restricted area, the steps include displaying the distance between the first virtual object and the target restricted area on the area indicator graphic, If the first virtual object is located outside the restricted area, one of the following steps is implemented: display the distance between the first virtual object and the restricted area, and the distance between the first virtual object and the target restricted area on the area indicator graphic.
[0189] In one possible embodiment, the computer program is loaded and executed by the one or more processors, After the target time duration, the display of the region indicator graphic is canceled.
[0190] In an exemplary embodiment, the computer device may be implemented as a terminal, and the structure of the terminal is described below.
[0191] Figure 23 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal 2300 may be a smartphone, tablet computer, notebook computer, or desktop computer. The terminal 2300 may also be called by other names such as user device, mobile terminal, laptop terminal, or desktop terminal.
[0192] Typically, terminal 2300 includes one or more processors 2301 and one or more memory 2302.
[0193] The processor 2301 may include one or more processing cores, such as a 4-core processor or an 8-core processor. The processor 2301 can be implemented by employing at least one hardware form from among Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 2301 may also include a main processor and a coprocessor, the main processor being a processor for processing data in the wake-up state and also called a Central Processing Unit (CPU), and the coprocessor being a low-power processor for processing data in the standby state. In some embodiments, the processor 2301 may integrate a Graphics Processing Unit (GPU), which is used to render and draw content that needs to be displayed on a display screen. In some embodiments, the processor 2301 may further include an Artificial Intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0194] The memory 2302 may include one or more computer-readable storage media, which may be non-temporary. The memory 2302 may further include high-speed random-access memory and non-volatile memory, such as one or more magnetic disk storage devices and flash memory storage devices. In some embodiments, the non-temporary computer-readable storage media in the memory 2302 are used to store at least one computer program, which is used to be executed by the processor 2301 to realize a virtual scene-based graphics display method provided by embodiments of the method of the present application.
[0195] In some embodiments, the terminal 2300 optionally further includes a peripheral interface 2303 and at least one peripheral device. The processor 2301, memory 2302, and peripheral interface 2303 may be connected via a bus or signal lines. Each peripheral device can be connected to the peripheral interface 2303 via a bus, signal lines, or circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 2304 or a display screen 2305.
[0196] The peripheral interface 2303 may be used to connect at least one I / O (Input / Output) related peripheral to the processor 2301 and the memory 2302. In some embodiments, the processor 2301, memory 2302, and peripheral interface 2303 are integrated on the same chip or circuit board. In some other embodiments, any one or two of the processor 2301, memory 2302, and peripheral interface 2303 may be implemented on a single chip or circuit board, and are not limited to these embodiments.
[0197] The radio frequency circuit 2304 is used to receive and transmit radio frequency (RF) signals, also known as electromagnetic signals. The radio frequency circuit 2304 communicates with communication networks and other communication equipment via electromagnetic signals. The radio frequency circuit 2304 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 2304 includes an antenna system, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, user identification module cards, etc.
[0198] The display screen 2305 is used to display a user interface (UI). The UI may include shapes, text, directional icons, videos, and any combination thereof. If the display screen 2305 is a touch display screen, the display screen 2305 also has the ability to collect touch signals on or above the surface of the display screen 2305. The touch signals may be input to the processor 2301 as control signals for processing. In this case, the display screen 2305 may also be used to provide virtual buttons and / or a virtual keyboard, which are also called soft buttons and / or a soft keyboard.
[0199] In some embodiments, the terminal 2300 further includes one or more sensors 2306. These one or more sensors 2306 include, but are not limited to, an accelerometer 2307, a gyroscope sensor 2308, and a pressure sensor 2309.
[0200] The acceleration sensor 2307 can detect the magnitude of acceleration on three coordinate axes of the coordinate system established by the terminal 2300.
[0201] The gyroscope sensor 2308 can measure the orientation and rotation angle of the terminal 2300, and in cooperation with the accelerometer sensor 2307, the gyroscope sensor 2308 can collect the user's 3D motion relative to the terminal 2300.
[0202] The pressure sensor 2309 may be configured on the side frame of the terminal 2300 and / or beneath the display screen 2305. When the pressure sensor 2309 is configured on the side frame of the terminal 2300, it can detect the user's grip signal toward the terminal 2300, and the processor 2301 can perform left-hand and right-hand recognition or shortcut operations based on the grip signal collected by the pressure sensor 2309. When the pressure sensor 2309 is configured beneath the display screen 2305, the processor 2301 can control operable controls on the UI interface based on the user's pressure operation toward the display screen 2305.
[0203] Those skilled in the art will understand that the structure shown in Figure 23 does not constitute a limitation to terminal 2300, and that it may include more or fewer components than shown, or combine several components, or employ a different component arrangement.
[0204] In exemplary embodiments, a computer-readable storage medium, such as memory containing a computer program, is further provided, and the computer program is executed by a processor to complete the virtual scene-based graphic display method in the above embodiment. For example, the computer-readable storage medium may be read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device.
[0205] In an exemplary embodiment, a computer program product or computer program is provided, the computer program product or computer program includes program code, the program code is stored in a computer-readable storage medium, the processor of a computer device reads the program code from the computer-readable storage medium, the processor executes the program code to cause the computer device to execute the virtual scene-based graphics display method described above.
[0206] In some embodiments, a computer program relating to an embodiment of the present invention may run on a single computer device, on multiple computer devices located at a single site, or on multiple computer devices distributed across multiple sites and interconnected by a communication network, and these multiple computer devices distributed across multiple sites and interconnected by a communication network may form a blockchain system.
[0207] As those skilled in the art will understand, all or part of the steps for realizing the above-described embodiment may be completed by hardware, or by instructing the relevant hardware through a program, the program may be stored in a computer-readable storage medium, the storage medium may be read-only memory, a magnetic disk, or an optical disk, etc.
[0208] The above are merely selectable embodiments of the Application and are not intended to limit the Application. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the Application should be included within the scope of protection.
Claims
1. A graphic display method based on a virtual scene, A computer device displays a virtual scene, wherein the virtual scene includes a restricted area, and a first virtual object is displayed in the virtual scene, wherein the attribute values of the virtual object located within the restricted area do not change when no interaction action is received. The computer device displays a region indicator graphic in the virtual scene based on the restricted area, the target restricted area, and the first virtual object, wherein the region indicator graphic shows the relative positional relationship between the first virtual object and the restricted area and the relative positional relationship between the first virtual object and the target restricted area, and the target restricted area is a restricted area determined by the occurrence of the next region update. The step of the computer device displaying an area indicator graphic based on the restricted area, the target restricted area, and the first virtual object is: The steps include: a computer device generating a region combination graphic based on the restricted region and the target restricted region, wherein the region combination graphic shows the relative positional relationship between the restricted region and the target restricted region; The computer device includes the step of displaying the region indicator graphic based on the region combination graphic and the first virtual object, The step of the computer device displaying the region indicator graphic based on the region combination graphic and the first virtual object is: The computer device adds a direction icon for the first virtual object to the region combination graphic based on the position and orientation of the first virtual object in the virtual scene, and obtains the region indication graphic. The steps include the computer device displaying the area indicator graphic, The steps of the computer device adding a direction icon for the first virtual object to the region combination graphic based on the position and orientation of the first virtual object in the virtual scene, and obtaining the region indication graphic, are as follows: The computer device, when the first virtual object is located inside the restricted area, adds the direction icon inside the area combination graphic based on the distance and direction between the first virtual object and the center position of the restricted area, adjusts the orientation of the direction icon to the orientation of the first virtual object, and obtains the area indication graphic. The computer device includes, if the first virtual object is located outside the restricted area, determining the candidate position closest to the first virtual object on the boundary of the restricted area in the area combination graphic based on the connection line between the first virtual object and the center position of the restricted area, adding the direction icon to the candidate position, adjusting the orientation of the direction icon to the orientation of the first virtual object, and obtaining the area indication graphic. A graphic display method based on a virtual scene.
2. The step of the computer device generating a region combination graphic based on the restricted region and the target restricted region is: The computer device includes the step of generating the region combination graphic based on the respective positions of the restricted region and the target restricted region in the virtual scene, A method for displaying graphics based on a virtual scene as described in claim 1.
3. The step of the computer device generating the region combination graphic based on the respective positions of the restricted region and the target restricted region in the virtual scene is as follows: The computer device includes the step of generating the region combination graphic based on the center position and boundary position of the restricted region in the virtual map of the virtual scene and the center position and boundary position of the target restricted region in the virtual map, A method for displaying graphics based on a virtual scene as described in claim 2.
4. The step of the computer device displaying the area indicator graphic is: The computer device includes the step of rotating the region indicator graphic and displaying the region indicator graphic after rotation. A method for displaying graphics based on a virtual scene as described in claim 1.
5. The region indicator graphic includes a direction icon, the direction icon indicates the position and orientation of the first virtual object in the virtual scene, and the computer device rotates the region indicator graphic and displays the rotated region indicator graphic. The computer device rotates the region indicator graphic based on the position of the direction icon in the region indicator graphic so that the direction icon is located at the bottom of the region indicator graphic, and displays the rotated region indicator graphic. The computer device rotates the region indicator graphic based on the position and direction of the direction icon in the region indicator graphic so that the direction of the direction icon points towards the target direction, and displays the rotated region indicator graphic, the computer device includes any one of these steps. A method for displaying graphics based on a virtual scene as described in claim 4.
6. The region indicator graphic includes a region combination graphic and a direction icon, the region combination graphic indicates the relative positional relationship between the restricted region and the target restricted region, the direction icon indicates the position and orientation of the first virtual object in the virtual scene, the region combination graphic includes a first region graphic corresponding to the restricted region and a second region graphic corresponding to the target restricted region, and the step of the computer device displaying the region indicator graphic is: The computer device includes the step of displaying the first area graphic, the second area graphic, and the direction icon in different colors. A method for displaying graphics based on a virtual scene as described in claim 1.
7. The step of the computer device generating a region combination graphic based on the restricted region and the target restricted region is: The computer device includes the step of generating the region combination graphic based on the position of the restricted region in the virtual scene, the distance between the center of the restricted region and the first virtual object, and the position of the target restricted region in the virtual scene. A method for displaying graphics based on a virtual scene as described in claim 1.
8. After the computer device displays the area indicator graphic, The computer device further includes the step of adjusting the region indicator graphic based on the current position and orientation of the first virtual object in the virtual scene in response to a change in either the position or orientation of the first virtual object in the virtual scene. A method for displaying graphics based on a virtual scene according to any one of claims 1 to 7.
9. The computer device displays a countdown icon based on the area indicator graphic, the countdown icon indicating the remaining time until the area is updated from the restricted area to the target restricted area, further comprising the step of: A method for displaying graphics based on a virtual scene according to any one of claims 1 to 7.
10. The step of the computer device displaying a countdown icon based on the area indicator graphic is: The steps include: the computer device displays the countdown icon below the area indicator graphic; If the area indicator graphic includes a direction icon, the computer device includes one of the following steps: displaying the countdown icon below the direction icon, wherein the direction icon indicates the position and orientation of the first virtual object in the virtual scene; A method for displaying graphics based on a virtual scene as described in claim 9.
11. The target restriction region is located inside the restriction region, the area of the target restriction region is smaller than the restriction region, or the target restriction region has a portion that overlaps with the restriction region. A method for displaying graphics based on a virtual scene according to any one of claims 1 to 7.
12. If the first virtual object is located inside the restricted area, the computer device may perform the steps of displaying the distance between the first virtual object and the target restricted area on the area indicator graphic, If the first virtual object is located outside the restricted area, the computer device further includes one of the following steps: displaying the distance between the first virtual object and the restricted area, and the distance between the first virtual object and the target restricted area on the area indicator graphic. A method for displaying graphics based on a virtual scene according to any one of claims 1 to 7.
13. After the computer device displays the area indicator graphic, The computer device further includes the step of canceling the display of the region indicator graphic after the target time length, A method for displaying graphics based on a virtual scene according to any one of claims 1 to 7.
14. A graphics display device based on a virtual scene, A virtual scene display module configured to display a virtual scene, wherein the virtual scene includes a restricted area, and a first virtual object is displayed in the virtual scene, and the virtual object located within the restricted area has attribute values that do not change when no interaction action is received. A region indicator graphic display module configured to display region indicator graphics in the virtual scene based on the restricted region, target restricted region, and first virtual object, wherein the region indicator graphics indicate the relative positional relationship between the first virtual object and the restricted region and the relative positional relationship between the first virtual object and the target restricted region, and the target restricted region is the restricted region determined by the occurrence of the next region update, includes: Displaying a region indicator graphic based on the aforementioned restricted region, target restricted region, and first virtual object is: The process involves generating a region combination graphic based on the aforementioned restricted region and the aforementioned target restricted region, wherein the region combination graphic represents the relative positional relationship between the restricted region and the aforementioned target restricted region. This includes displaying the region indicator graphic based on the region combination graphic and the first virtual object, Displaying the region indicator graphic based on the region combination graphic and the first virtual object is: Based on the position and orientation of the first virtual object in the virtual scene, the orientation icon of the first virtual object is added to the region combination graphic to obtain the region indication graphic. This includes displaying the aforementioned area indicator graphic, Based on the position and orientation of the first virtual object in the virtual scene, adding the orientation icon of the first virtual object to the region combination graphic and obtaining the region indication graphic is: If the first virtual object is located inside the restricted area, the direction icon is added inside the area combination graphic based on the distance and direction between the first virtual object and the center position of the restricted area, the orientation of the direction icon is adjusted to the orientation of the first virtual object, and the area indication graphic is obtained, and If the first virtual object is located outside the restricted area, the method includes any one of the following: determining the candidate position closest to the first virtual object on the boundary of the restricted area in the area combination graphic based on the connection line between the first virtual object and the center position of the restricted area; adding the direction icon to the candidate position; adjusting the orientation of the direction icon to the orientation of the first virtual object; and obtaining the area indication graphic. A graphics display device based on virtual scenes.
15. Computer equipment, One or more memory locations for storing at least one computer program, The system comprises one or more processors that load and execute the aforementioned computer program to realize a graphics display method based on a virtual scene as described in any one of claims 1 to 7. Computer equipment.
16. A computer program that causes a computer to execute a graphic display method based on a virtual scene as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Method and device for displaying distance information in virtual scene and computer device
CN108619721A
Virtual character control method and device
CN112870701A
Game interface element control method and device, computer equipment and storage medium
CN113101657A
Virtual item use method and device in games, equipment and storage medium
CN113262475A
Graphic display method and device based on virtual scene, equipment and medium
CN114042315A