Virtual object display method, device, computer device, and storage medium
By obtaining the focus position and the focus time of the virtual object in the game screen and adjusting the display style of the virtual object, the problem of not fine adjustment of the display style of the virtual object in the prior art is solved, and a better display effect is achieved.
Patent Information
- Application Number
- CN202211138889.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-19
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2042-09-19
AI Technical Summary
In the prior art, when changing the display style of individual virtual objects in a large number of virtual objects, there is a problem of poor display effect, especially when the number of virtual objects exceeds 256, it is difficult to adjust the display style of multiple virtual objects with the same Stencil value separately.
By obtaining the focus position in the current game screen, it is determined whether there is a focused virtual object. If it exists, the object to be adjusted is determined based on the virtual object, and its focus time and initial display style are obtained. Adjust the display style of the objects to be adjusted according to the focus time, get the adjusted display style, and display these objects according to the new display style.
It realizes the display style of individual objects separately in a large number of virtual objects, improves the meticulousness and accuracy of the display effect, and avoids the problem of the display styles of multiple virtual objects changing simultaneously.
Smart Images

Figure CN115445192B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and more particularly, to a method and apparatus for displaying virtual objects, a computer device, and a storage medium. Background Art
[0002] More and more video games have entered people's lives. During the game process, sometimes it is necessary to change the display effect of one or a part of virtual objects to distinguish different virtual objects and achieve the purpose of prompting players.
[0003] In the related art, generally, there are a large number of virtual objects in a virtual scene. If you want to separately change the display style of individual virtual objects, you need to assign different custom depth stencil values to each virtual object. However, the stencil value can only have up to 256 values. When the number of virtual objects exceeds 256, there will be at least two virtual objects with the same stencil value. At this time, if the display style corresponding to the stencil value is adjusted, the display styles of multiple virtual objects will change simultaneously. If you need to separately change the display effect of one virtual object among multiple virtual objects with the same stencil value, you need to draw a render target (RT) texture to separately change the display style of this virtual object at the object level. In this way, it is possible to achieve the purpose of adjusting the display effect of individual virtual objects in a virtual scene with a large number of virtual objects.
[0004] However, since the RT texture is just a flat image with depth information, if there is an occlusion relationship between virtual objects, it is easy to cause the problem that the display effect of the occluded virtual object cannot be adjusted. In addition, in the related art, when changing the stencil value of a virtual object, the display effect of the virtual object will change very abruptly. Therefore, the solutions in the related art have the problem of poor display effect when changing the display style of individual virtual objects among a large number of virtual objects. Summary of the Invention
[0005] The purpose of this application is to provide a method and apparatus for displaying virtual objects, a computer device, and a storage medium, which can improve the display effect when changing the display style of individual virtual objects among a large number of virtual objects.
[0006] The embodiments of this application are implemented as follows:
[0007] In the first aspect of the embodiments of this application, a method for displaying virtual objects is provided. A graphical user interface of a game is provided through a terminal device, and the content displayed on the graphical user interface includes a virtual scene, and the virtual scene includes virtual objects. The method includes:
[0008] Obtain the current game screen, where the current game screen includes multiple virtual objects in a virtual scene, and each virtual object corresponds to an initial display style, and the initial display style is determined by the depth template value assigned to the virtual object;
[0009] Determine whether there is a first virtual object in focus in the current game screen according to the position of the focus in the current game screen;
[0010] If so, determine the virtual object to be adjusted according to the first virtual object, and obtain the first focusing duration of the first virtual object and the display styles of the virtual objects to be adjusted;
[0011] Adjust the display styles of the virtual objects to be adjusted according to the first focusing duration to obtain the adjusted display styles of the virtual objects to be adjusted. The first focusing duration is used to indicate the focusing duration of the first virtual object, and the depth template value corresponding to the adjusted display style is different from the depth template value corresponding to the initial display style;
[0012] Display each virtual object to be adjusted according to the adjusted display style of each virtual object to be adjusted.
[0013] In a second aspect of the embodiments of the present application, a virtual object display device is provided, and the device includes:
[0014] An obtaining module, configured to obtain the current game screen, where the current game screen includes multiple virtual objects in a virtual scene, and each virtual object corresponds to an initial display style, and the initial display style is determined by the depth template value assigned to the virtual object;
[0015] A determining module, configured to determine whether there is a first virtual object in focus in the current game screen according to the position of the focus in the current game screen;
[0016] A determining and obtaining module, configured to, when there is a first virtual object in focus in the current game screen, determine the virtual object to be adjusted according to the first virtual object, and obtain the first focusing duration of the first virtual object and the display styles of the virtual objects to be adjusted;
[0017] An adjusting module, configured to adjust the display styles of the virtual objects to be adjusted according to the first focusing duration to obtain the adjusted display styles of the virtual objects to be adjusted. The first focusing duration is used to indicate the focusing duration of the first virtual object, and the depth template value corresponding to the adjusted display style is different from the depth template value corresponding to the initial display style;
[0018] A display module, configured to display each virtual object to be adjusted according to the adjusted display style of each virtual object to be adjusted.
[0019] In a third aspect of the embodiments of the present application, a computer device is provided. The computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the virtual object display method described in the first aspect above is implemented.
[0020] In a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the virtual object display method described in the first aspect above is implemented.
[0021] The beneficial effects of the embodiments of the present application include:
[0022] A virtual object display method provided by the embodiments of the present application obtains a current game screen, determines whether there is a first virtual object in focus in the current game screen according to the position of the focus in the current game screen. If so, determines a virtual object to be adjusted according to the first virtual object, obtains a first focus duration of the first virtual object and display styles of each virtual object to be adjusted, adjusts the display styles of each virtual object to be adjusted according to the first focus duration to obtain adjusted display styles of each virtual object to be adjusted, and displays each virtual object to be adjusted according to the adjusted display styles of each virtual object to be adjusted.
[0023] Among them, obtaining the current game screen and determining whether there is a first virtual object in focus in the current game screen according to the position of the focus in the current game screen can obtain multiple virtual objects displayed in the game screen and initial display styles of each virtual object, and can also accurately determine whether the user selects a virtual object in the current game screen through the focus, and the first virtual object selected by the user through the focus.
[0024] When there is a first virtual object in focus in the current game screen, determining a virtual object to be adjusted according to the first virtual object, and obtaining a first focus duration of the first virtual object and display styles of each virtual object to be adjusted can accurately determine each virtual object to be adjusted whose display style needs to be adjusted, the first focus duration of continuously selecting the first virtual object before the current moment, and display styles of each virtual object to be adjusted.
[0025] Adjust the display styles of the virtual objects to be adjusted according to the first focusing duration to obtain the adjusted display styles of the virtual objects to be adjusted. Since the depth template value corresponding to the adjusted display style is different from the depth template value corresponding to the initial display style, it can be ensured that the display styles of the virtual objects to be adjusted displayed in the next frame of the game screen are different from the initial display styles of the virtual objects to be adjusted displayed in the current game screen. Thus, it is possible to determine in real time and accurately how to adjust the display styles of the virtual objects to be adjusted to provide effective display assistance. Moreover, since the adjusted display style is obtained by adjusting the display styles of the virtual objects to be adjusted according to the first focusing duration, in this way, the display styles of the virtual objects to be adjusted can be gradually adjusted according to the first focusing duration, rather than directly changing the initial display styles of the virtual objects to be adjusted to another completely different display style. In this way, the effect that the virtual objects to be adjusted gradually change from the initial display style to the adjusted display style can be achieved, thereby improving the display effect when changing the display styles of individual virtual objects among a large number of virtual objects.
[0026] Display the virtual objects to be adjusted according to their adjusted display styles, and the virtual objects to be adjusted whose display styles need to be adjusted in the current game screen can be accurately adjusted to the adjusted display styles and displayed in the game screen. In this way, the next frame of the game screen can be obtained to achieve the purpose of changing the display styles of individual virtual objects among a large number of virtual objects in the virtual scene.
[0027] In this way, the display effect when changing the display styles of individual virtual objects among a large number of virtual objects can be improved. Brief Description of the Drawings
[0028] To more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application, and thus should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0029] Figure 1 It is a flowchart of the first virtual object display method provided by the embodiment of the present application;
[0030] Figure 2 It is a flowchart of the second virtual object display method provided by the embodiment of the present application;
[0031] Figure 3 It is a flowchart of the third virtual object display method provided by the embodiment of the present application;
[0032] Figure 4Flowchart of the fourth virtual object display method provided by the embodiments of the present application;
[0033] Figure 5 Flowchart of the fifth virtual object display method provided by the embodiments of the present application;
[0034] Figure 6 Flowchart of the sixth virtual object display method provided by the embodiments of the present application;
[0035] Figure 7 Schematic diagram of the first game screen provided by the embodiments of the present application;
[0036] Figure 8 Schematic diagram of the second game screen provided by the embodiments of the present application;
[0037] Figure 9 Schematic diagram of the third game screen provided by the embodiments of the present application;
[0038] Figure 10 Schematic diagram of the structure of a virtual object display device provided by the embodiments of the present application;
[0039] Figure 11 Schematic diagram of the structure of a computer device provided by the embodiments of the present application. Detailed implementation manners
[0040] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are some but not all of the embodiments of the present application. Usually, the components of the embodiments of the present application described and illustrated in the accompanying drawings herein can be arranged and designed in various different configurations.
[0041] Therefore, the detailed description of the embodiments of the present application provided in the accompanying drawings below is not intended to limit the scope of the claimed present application, but merely represents selected embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0042] In the related art, there are a large number of virtual objects in a virtual scene. If we want to separately change the display style of individual virtual objects, we need to assign different Stencil values to each virtual object. However, there are at most 256 Stencil values. When the number of virtual objects exceeds 256, there will be at least two virtual objects with the same Stencil value. At this time, if we adjust the display style corresponding to the Stencil value, the display styles of multiple virtual objects will change simultaneously. If we need to separately change the display effect of one virtual object among multiple virtual objects with the same Stencil value, we need to draw an RT texture to separately change the display style of this virtual object at the object level. In this way, we can achieve the purpose of adjusting the display effect of individual virtual objects in a virtual scene with a large number of virtual objects.
[0043] However, since the RT texture is just a planar image with depth information, if there is an occlusion relationship between virtual objects, it is easy to cause the problem that the display effect of the occluded virtual object cannot be adjusted. In addition, in the related art, when changing the Stencil value of a virtual object, the display effect of the virtual object will change very abruptly. Therefore, the solutions in the related art have the problem of poor display effect when changing the display style of individual virtual objects among a large number of virtual objects.
[0044] Therefore, the embodiment of the present application provides a virtual object display method. By obtaining the current game screen, determining whether there is a first virtual object in focus in the current game screen according to the position of the focus in the current game screen. If so, determining the virtual object to be adjusted according to the first virtual object, obtaining the first focus duration of the first virtual object and the display styles of each virtual object to be adjusted, adjusting the display styles of each virtual object to be adjusted according to the first focus duration to obtain the adjusted display styles of each virtual object to be adjusted, and displaying each virtual object to be adjusted according to the adjusted display styles of each virtual object to be adjusted, the display effect when changing the display style of individual virtual objects among a large number of virtual objects can be improved.
[0045] In one embodiment of the present application, the virtual object display method can run on a terminal device or a server. Among them, the terminal device can be a local terminal device. When the virtual object display method runs on the server, the method can be implemented and executed based on a cloud interaction system, where the cloud interaction system includes a server and a client device.
[0046] In an optional implementation, various cloud applications, such as cloud games, can be run under the cloud interaction system. Taking cloud games as an example, cloud games refer to a game method based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the game display method are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the terminal device for information processing is a cloud game server in the cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0047] In an optional embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0048] In a possible implementation, an embodiment of the present invention provides a virtual object display method, providing a graphical user interface through a first terminal device, wherein the first terminal device can be the local terminal device mentioned above, or can be a client device in the cloud interaction system mentioned above.
[0049] The embodiments of the present application are described by taking the virtual object display method applied in a terminal game or in the post-processing process during game development as an example, but it does not mean that the embodiments of the present application can only be applied to terminal games or post-processing processes for displaying virtual objects.
[0050] The virtual object display method provided in the embodiment of the present application is explained in detail below.
[0051] Figure 1 This is a flowchart of a virtual object display method provided by the present application. The method can be applied to a computer device, which can be the aforementioned terminal device or server. Figure 1, an embodiment of the present application provides a method for displaying virtual objects, including:
[0052] Step 1001: Obtain the current game screen.
[0053] Optionally, the current game screen includes multiple virtual objects in the virtual scene. The current game screen can be a screen during the game operation or a screen during the post-processing in game development.
[0054] Specifically, the current game screen can refer to the game screen displayed on the screen of the computer device at the current moment, or the screen being displayed in the game or game development software at the current moment. The embodiments of the present application do not make any limitations in this regard.
[0055] Each virtual object corresponds to an initial display style, which is determined by the depth template value assigned to the virtual object.
[0056] The depth template value can be the above-mentioned custom depth template value.
[0057] Exemplarily, the initial display style can be various styles such as anti-Fresnel effect, Gaussian blur effect, and specular highlight effect.
[0058] Generally, each depth template value can correspond to a display style, and the display styles corresponding to each depth template value can be the same or different.
[0059] For example, the display styles corresponding to the depth template values of 0, 1, and 2 are Gaussian blur effects, the display styles corresponding to the depth template values of 3 and 4 are specular highlight effects, and the display style corresponding to the depth template value of 5 is anti-Fresnel effect. Then, if the depth template value assigned to virtual object A is 1, the initial display style of virtual object A is Gaussian blur effect. If the depth template value assigned to virtual object B is 4, the initial display style of virtual object B is specular highlight effect. If the depth template value of virtual object A is adjusted to 5 again, the display style of virtual object A will become anti-Fresnel effect.
[0060] In addition, in the current game screen, the virtual objects or virtual objects assigned with depth template values will be displayed in the game screen with the display style corresponding to the depth template value, while the virtual objects or virtual objects not assigned with depth template values will be displayed in the game screen with the default color of the virtual scene. The default color can be black, white, or any other color.
[0061] In this way, multiple virtual objects displayed in the game screen and the initial display styles of each virtual object can be obtained, which is convenient for subsequent operations.
[0062] Step 1002: Determine whether there is a first virtual object in focus in the current game screen according to the position of the focus in the current game screen.
[0063] Optionally, the focus can be a virtual pointer, a virtual sight, etc. displayed in the above-mentioned graphical user interface, and the focus is used to indicate that the user points to or selects a position in the game screen through an input device.
[0064] The input device can be an electronic device such as a mouse, a remote control, a keyboard, a gamepad, etc.
[0065] Optionally, being in focus means being pointed to or selected by the focus. Then, the first virtual object can refer to a virtual object pointed to or selected by the focus in the current game screen, or a virtual object overlapping with the focus in the current game screen.
[0066] In addition, if there is the first virtual object in the current game screen, it indicates that the user points to or selects a virtual object through the focus at the current moment. If there is no such first virtual object in the current game screen, it indicates that the user points to or selects a blank area in the current game screen through the focus without selecting any virtual object.
[0067] Generally, at the same moment, the number of the first virtual objects can be only one or multiple. For example, if the shape of the virtual object focused by the focus is larger when displayed on the current game screen, that is, the size of the virtual object focused by the focus is larger than the size of the focus, then the number of the first virtual objects is only one. If the shape of the virtual object focused by the focus is smaller when displayed on the current game screen, that is, the size of the virtual object focused by the focus is smaller than or equal to the size of the focus, and there are multiple other virtual objects around the virtual object focused by the focus, the virtual object focused by the focus and other virtual objects near the virtual object focused by the focus can be regarded as the first virtual objects, and then the number of the first virtual objects can be multiple.
[0068] In this way, it can be accurately determined whether the user selects a virtual object in the current game screen through the focus, and the first virtual object selected by the user through the focus.
[0069] Step 1003: If so, determine the virtual object to be adjusted according to the first virtual object, and obtain the first focusing duration of the first virtual object and the display styles of the virtual objects to be adjusted.
[0070] Optionally, the virtual object to be adjusted can refer to a virtual object whose display style needs to be adjusted in the current game screen.
[0071] The virtual object to be adjusted includes the first virtual object, may not include the first virtual object, or may include other virtual objects other than the first virtual object.
[0072] Optionally, the first focusing duration is used to indicate the focusing duration of the first virtual object.
[0073] Optionally, the first focusing duration may specifically be based on the current moment as the end moment and the moment when the focus last focused on the first virtual object as the start moment. That is to say, the first focusing duration may refer to the duration of continuously selecting the first virtual object before the current moment.
[0074] In addition, the display styles of the virtual objects to be adjusted may refer to the initial display styles of the virtual objects to be adjusted when they are displayed in the current game screen.
[0075] It should be noted that generally, in the game or during the game development process, if the user selects one or more virtual objects through the focus, then it is necessary to adjust the display styles of the selected virtual objects to highlight the currently selected virtual objects and provide effective display assistance for the user. And if other virtual objects were selected before the current game screen, then in the previous game screen, the display styles of the other selected virtual objects were also adjusted. If in the current game screen, it is necessary to adjust the display styles of the other previously selected virtual objects to the display styles before they were selected to cancel the highlighting of the other previously selected virtual objects.
[0076] It should be noted that since the first virtual object is the virtual object pointed to or selected by the focus in the current game screen, in this way, it is possible to accurately determine the virtual objects to be adjusted whose display styles need to be adjusted. And the first focusing duration may refer to the duration of continuously selecting the first virtual object before the current moment, and the display styles of the virtual objects to be adjusted may be the initial display styles of the virtual objects to be adjusted when they are displayed in the current game screen. Then, by obtaining the first focusing duration of the first virtual object and the display styles of the virtual objects to be adjusted, it is convenient to perform subsequent operations.
[0077] Step 1004: Adjust the display styles of the virtual objects to be adjusted according to the first focusing duration to obtain the adjusted display styles of the virtual objects to be adjusted.
[0078] Optionally, the adjusted display style may refer to the display style of the virtual objects to be adjusted when they are displayed in the next frame of the current game screen.
[0079] The adjusted display style can be the target display style corresponding to each virtual object to be adjusted, or can be an intermediate style between the initial display style and the target display style.
[0080] The intermediate style can refer to a style in which parameters such as color and brightness are between the initial display style and the target display style.
[0081] Exemplarily, if it is necessary to continuously adjust each virtual object to be adjusted from the initial display style to the target display style, then the intermediate style can be gradually adjusted from 0% of the target display style to 100% of the target display style until the intermediate style completely becomes the target display style.
[0082] In addition, the depth template value corresponding to the adjusted display style is different from the depth template value corresponding to the initial display style.
[0083] The depth template value corresponding to the adjusted display style corresponds to each target display style.
[0084] It should be noted that since the depth template value corresponding to the adjusted display style is different from the depth template value corresponding to the initial display style, it can be ensured that the display styles of each virtual object to be adjusted in the next frame of the game screen are different from the initial display styles of each virtual object to be adjusted in the current game screen, and thus it can be determined in real time and accurately how to adjust the display styles of each virtual object to be adjusted to provide effective display assistance. Moreover, since the adjusted display style is obtained by adjusting the display styles of each virtual object to be adjusted according to the first focusing duration, in this way, the display styles of each virtual object to be adjusted can be gradually adjusted according to the first focusing duration, rather than directly displaying each virtual object to be adjusted from the initial display style to another completely different display style. In this way, the display effect can be improved when changing the display styles of individual virtual objects among a large number of virtual objects.
[0085] Step 1005: Display each virtual object to be adjusted according to the adjusted display style of each virtual object to be adjusted.
[0086] In this way, each virtual object to be adjusted whose display style needs to be adjusted in the current game screen can be accurately adjusted to the adjusted display style and displayed in the game screen. In this way, the next frame of the game screen can be obtained to achieve the purpose of changing the display styles of individual virtual objects among a large number of virtual objects in the virtual scene.
[0087] In the embodiment of the present application, by obtaining the current game screen, determining whether there is a first virtual object in focus in the current game screen according to the position of the focus in the current game screen, if so, determining the virtual object to be adjusted according to the first virtual object, obtaining the first focusing duration of the first virtual object and the display styles of the virtual objects to be adjusted, adjusting the display styles of the virtual objects to be adjusted according to the first focusing duration to obtain the adjusted display styles of the virtual objects to be adjusted, and displaying the virtual objects to be adjusted according to the adjusted display styles of the virtual objects to be adjusted.
[0088] Among them, by obtaining the current game screen and determining whether there is a first virtual object in focus in the current game screen according to the position of the focus in the current game screen, it is possible to obtain multiple virtual objects displayed in the game screen and the initial display styles of the virtual objects, and it is also possible to accurately determine whether the user has selected a virtual object in the current game screen through the focus, and the first virtual object selected by the user through the focus.
[0089] When there is a first virtual object in focus in the current game screen, by determining the virtual object to be adjusted according to the first virtual object and obtaining the first focusing duration of the first virtual object and the display styles of the virtual objects to be adjusted, it is possible to accurately determine the virtual objects to be adjusted whose display styles need to be adjusted, the first focusing duration of continuously selecting the first virtual object before the current moment, and the display styles of the virtual objects to be adjusted.
[0090] By adjusting the display styles of the virtual objects to be adjusted according to the first focusing duration to obtain the adjusted display styles of the virtual objects to be adjusted, since the depth template value corresponding to the adjusted display style is different from the depth template value corresponding to the initial display style, it can be ensured that the display styles of the virtual objects to be adjusted displayed in the next frame of the game screen are different from the initial display styles of the virtual objects to be adjusted displayed in the current game screen, and it is possible to determine in real time and accurately how to adjust the display styles of the virtual objects to be adjusted to provide effective display assistance. Moreover, since the adjusted display style is obtained by adjusting the display styles of the virtual objects to be adjusted according to the first focusing duration, in this way, the display styles of the virtual objects to be adjusted can be gradually adjusted according to the first focusing duration, rather than directly displaying the virtual objects to be adjusted from the initial display style to another completely different display style. In this way, the effect that the virtual objects to be adjusted gradually change from the initial display style to the adjusted display style can be achieved, and thus the display effect when changing the display styles of individual virtual objects among a large number of virtual objects can be improved.
[0091] By displaying each virtual object to be adjusted according to the adjusted display style thereof, each virtual object to be adjusted whose display style needs to be adjusted in the current game screen can be accurately adjusted to the adjusted display style and displayed in the game screen. In this way, the next frame of the game screen can be obtained to achieve the purpose of changing the display style of individual virtual objects among a large number of virtual objects in the virtual scene.
[0092] In this way, the display effect when changing the display style of individual virtual objects among a large number of virtual objects can be improved.
[0093] In a possible implementation manner, referring to Figure 2 , determining the virtual object to be adjusted according to the first virtual object includes:
[0094] Step 1006: Determine whether there is a focused second virtual object in the previous frame of the game screen of the current game screen.
[0095] Optionally, the second virtual object may refer to the virtual object pointed to or selected by the focus in the previous frame of the game screen. The second virtual object may be the same as the first virtual object or different from the first virtual object.
[0096] Step 1007: If so, determine whether the first virtual object and the second virtual object are the same virtual object.
[0097] It should be noted that if it is determined that the first virtual object and the second virtual object are the same virtual object, it indicates that the virtual object selected by the focus in the current game screen and the previous frame of the game screen is the same one. If it is determined that the first virtual object and the second virtual object are different virtual objects, it indicates that the virtual object selected by the focus in the current game screen is not the same as the virtual object selected in the previous frame of the game screen.
[0098] Step 1008: If it is determined that the first virtual object and the second virtual object are the same virtual object, determine the virtual object to be adjusted according to the preset adjustment mark.
[0099] Optionally, the preset adjustment mark may be a label added or assigned to each virtual object in advance by relevant technicians. Generally, if a virtual object has the preset adjustment mark, then it can indicate that this virtual object can adjust the initial display style to another display style. If a virtual object does not have the preset adjustment mark, then it can indicate that this virtual object can only be displayed in the initial display style and cannot adjust the display style.
[0100] By determining the virtual object to be adjusted according to the preset adjustment mark, the virtual object whose display style can be adjusted can be accurately used as the virtual object to be adjusted, while the virtual object whose display style cannot be adjusted is not used as the virtual object to be adjusted. That is to say, it can be ensured that the determined virtual object to be adjusted is a virtual object whose display style can be adjusted.
[0101] Step 1009: If it is determined that the first virtual object and the second virtual object are different virtual objects, determine the virtual object to be adjusted according to the first virtual object and the second virtual object.
[0102] It should be noted that since the focus selects two different virtual objects in two consecutive frames, then both the first virtual object and the second virtual object may need to adjust the display style, or it is possible that only the first virtual object or the second virtual object needs to adjust the display style, or it is also possible that neither the first virtual object nor the second virtual object needs to adjust the display style.
[0103] In this way, the flexibility and accuracy of determining the virtual object to be adjusted can be improved.
[0104] In a possible implementation, refer to Figure 3 , determining the virtual object to be adjusted according to the preset adjustment mark includes:
[0105] Step 1010: If the first virtual object does not have the preset adjustment mark, determine the third virtual object that the focus focused on before focusing on the first virtual object.
[0106] It should be noted that before step 1010, it has been determined that the first virtual object and the second virtual object are the same virtual object. Then the third virtual object focused on before the first virtual object refers to the last virtual object different from the first virtual object that the focus selected before the current game screen.
[0107] Since the third virtual object has been focused on by the focus, the display style of the third virtual object may also have been adjusted. Then after unfocusing the third virtual object, the display style of the third virtual object needs to be adjusted to the initial display style when it was not focused on.
[0108] Step 1011: Determine the virtual object to be adjusted according to the third focusing duration of the third virtual object and the first focusing duration.
[0109] Optionally, the third focusing duration is used to indicate the duration of the focus on the third virtual object last time. Generally, the third focusing duration ends at the moment when the focus last leaves the third virtual object and starts at the moment when the focus last selects the third virtual object.
[0110] Determining the virtual object to be adjusted based on the duration of the last focus on the third virtual object and the duration of the current focus on the first virtual object can improve the flexibility and accuracy of determining the virtual object to be adjusted.
[0111] In a possible implementation, determining the virtual object to be adjusted according to the third focus duration of the third virtual object and the first focus duration includes:
[0112] If the third focus duration is greater than or equal to the first focus duration, determine the third virtual object as the virtual object to be adjusted.
[0113] It can be understood that during the process of the third virtual object being selected before, it also gradually changed from the initial display style to the adjusted display style. Then, after unselecting the third virtual object, the display style of the third virtual object needs to gradually change back from the current display style to the original display style before it was not selected. If the third focus duration is greater than or equal to the first focus duration, it can indicate that the duration of the focus on the third virtual object before is at least the same as the duration of the current selection of the first virtual object. Then, it can indicate that at the current moment, the display style of the third virtual object has not completely changed back to the original display style before it was not selected. Therefore, it is necessary to use the third virtual object as the virtual object to be adjusted and continue to adjust the display style of the third virtual object.
[0114] In this way, the accuracy of determining the virtual object to be adjusted can be improved, and it can be ensured that the unselected virtual object can correctly fade back to the style when it was not selected, thereby improving the display effect when adjusting the display style of the virtual object.
[0115] In a possible implementation, adjusting the display style of each virtual object to be adjusted according to the first focus duration includes:
[0116] Adjust the display style of the third virtual object according to the first focus duration, the third focus duration, and the historical display style of the third virtual object.
[0117] Optionally, the historical display style of the third virtual object includes: the initial display style of the third virtual object or the display style when the focus last left the third virtual object.
[0118] Exemplarily, the initial display style of the third virtual object refers to the display style when the third virtual object is not focused or selected by the focus.
[0119] The display style when the focus last left the third virtual object refers to the display style of the third virtual object when the focus deselects the third virtual object. It can also be the adjusted display style of the third virtual object.
[0120] It can be understood that after deselecting the third virtual object, the longer the time interval, the closer the current display style of the third virtual object is to its initial display style until it completely returns to the initial display style.
[0121] Moreover, relevant technical personnel can set in advance the preset duration required for a virtual object to be fully adjusted from one display style A to another display style B. Generally, if the focus duration on any virtual object is equal to or greater than the preset duration, then the display style of the virtual object will continuously remain as display style B. If the focus duration on any virtual object is less than the preset duration, then the current display style of the virtual object will be displayed according to the ratio of the focus duration to the preset duration. For example, if the focus duration is 1 second and the preset duration is 4 seconds, then the current display style of the virtual object will be adjusted to 25% of display style B, such as adjusting parameters like color and brightness to 25% of display style B.
[0122] In this case, it has been determined that the third focus duration is greater than or equal to the first focus duration. Then, the difference obtained by subtracting the first focus duration from the third focus duration and dividing it by the preset duration can be used to determine the relationship between the display style of the third virtual object and its initial display style.
[0123] In this way, the display style of the third virtual object can be accurately adjusted, and the adjusted display style of the third virtual object can be correctly displayed in the next frame of the game screen, thereby improving the display effect when adjusting the display style of the virtual object.
[0124] In a possible implementation manner, determining the virtual object to be adjusted according to a preset adjustment mark includes:
[0125] If the first virtual object has the preset adjustment mark, then determine the virtual object to be adjusted according to the first virtual object.
[0126] Optionally, determining the virtual object to be adjusted according to the first virtual object may refer to continuing to execute other corresponding steps according to the steps after step 1003. The embodiments of the present application do not limit this.
[0127] It should be noted that before this step, it has been determined that the first virtual object and the second virtual object are the same virtual object. When the first virtual object has the preset adjustment mark, it indicates that the display style of the first virtual object can be adjusted. Then, the virtual object to be adjusted can be accurately determined based on the first virtual object.
[0128] In a possible implementation, refer to Figure 4 , determining the virtual object to be adjusted according to the first virtual object includes:
[0129] Step 1012: Determine whether the first virtual object and the third virtual object are the same virtual object.
[0130] It should be noted that since the user may, after unfocusing the third virtual object, control the focus to select or point to a blank area in the game screen. In this case, the focus does not focus on any object. If the user, after focusing on the blank area, refocuses on a virtual object through the focus again, then the virtual object refocused may be the same virtual object as the third virtual object focused before, or may be a different virtual object from the third virtual object focused before.
[0131] Step 1013: If it is determined that the first virtual object and the third virtual object are the same virtual object, determine the first virtual object as the virtual object to be adjusted.
[0132] In this way, it can be determined that after the focus focuses on a blank area and then refocuses on the third virtual object focused before. At this time, it can be confirmed that the focus only focuses on one virtual object, that is, the first virtual object. Therefore, only the display style of the first virtual object needs to be adjusted, and it is necessary to determine the first virtual object as the virtual object to be adjusted.
[0133] In this way, the accuracy and reliability of determining the virtual object to be adjusted can be improved. Furthermore, when refocusing on a virtual object focused before, the display style of this virtual object can continue to be adjusted, and the display effect when changing the display style of the virtual object can be improved.
[0134] In a possible way, continue to refer to Figure 4 , adjusting the display styles of the virtual objects to be adjusted according to the first focusing duration includes:
[0135] Step 1014: Adjust the display style of the first virtual object according to the first focusing duration, the third focusing duration of the third virtual object, and the initial display style of the first virtual object.
[0136] It can be understood that before step 1014, it has been confirmed that the first virtual object and the third virtual object are the same virtual object. Then, the cumulative focus duration on the first virtual object is confirmed based on the first focus duration and the third focus duration, and the display style of the first virtual object is adjusted according to the cumulative focus duration.
[0137] Moreover, since there is also a duration during which the focus points to the blank area between the first focus duration and the third focus duration, it is necessary to calculate the cumulative focus duration on the first virtual object based on the duration during which the focus points to the blank area, the first focus duration, and the third focus duration.
[0138] Exemplarily, if the above-mentioned preset duration is 4 seconds, the first focus duration is 3 seconds, the third focus duration is 2 seconds, and the duration during which the focus points to the blank area is 1 second, then adding the first focus duration and the third focus duration and subtracting the duration during which the focus points to the blank area can calculate the cumulative focus duration on the first virtual object to be 4 seconds. Then, it can be determined that it is necessary to completely adjust the style of the first virtual object to the target display style of the first virtual object.
[0139] In this way, the display style of the virtual object to be adjusted that needs to be displayed currently can be accurately determined, so as to improve the display effect when adjusting the display style of the virtual object.
[0140] In a possible implementation manner, continue to refer to Figure 4 , after executing step 1012, the method further includes:
[0141] Step 1015: If it is determined that the first virtual object and the third virtual object are not the same virtual object, then determine the virtual object to be adjusted according to the first virtual object and the third virtual object.
[0142] In this way, it can be determined that after the focus focuses on a blank area, it refocuses on a virtual object different from the third virtual object focused on before. At this time, it can be confirmed that the focus focuses on two different virtual objects, that is, the first virtual object and the third virtual object. Therefore, it is necessary to adjust the display styles of the first virtual object and the third virtual object at the same time. Specifically, it is necessary to adjust the first virtual object from the initial display style to the target display style, and adjust the third virtual object from the target display style or the transition style to the initial display style. That is, it is necessary to determine that the first virtual object and the third virtual object are the virtual objects to be adjusted.
[0143] A possible way to determine the virtual object to be adjusted according to the first virtual object and the third virtual object includes:
[0144] If the third focusing duration is greater than or equal to the first focusing duration, determine that the third virtual object is the virtual object to be adjusted.
[0145] Optionally, regardless of whether the third focusing duration is greater than, equal to, or less than the first focusing duration, the first virtual object can also be used as the virtual object to be adjusted at the same time.
[0146] If the third focusing duration is greater than or equal to the first focusing duration, it can indicate that the duration for which the third virtual object was selected before the focus is at least the same as the duration for which the first virtual object is currently selected. Then, it can indicate that at the current moment, the display style of the third virtual object has not completely changed back to its original display style before it was not selected.
[0147] In a possible implementation, continue to refer to Figure 4 and adjust the display styles of the virtual objects to be adjusted according to the first focusing duration, including:
[0148] Step 1016: Adjust the display style of the third virtual object according to the first focusing duration, the third focusing duration, and the historical display style of the third virtual object.
[0149] In this way, the display style of the third virtual object can be accurately adjusted, and the adjusted display style of the third virtual object can be correctly displayed in the next frame of the game screen, thereby improving the display effect when adjusting the display style of the virtual object.
[0150] In a possible way, while performing step 1016, the display style of the first virtual object can also be adjusted according to the first focusing duration, the initial display style or the target display style of the first virtual object.
[0151] Exemplarily, calculate the ratio of the first focusing duration to the above-mentioned preset duration, and adjust the display style of the first virtual object with this ratio and the target display style, that is, the adjusted display style. If the ratio is 0.1, it can be determined that the adjusted display style is the 10% transition style corresponding to the target display style.
[0152] In a possible implementation, refer to Figure 5 and determine the virtual object to be adjusted according to the first virtual object and the second virtual object, including:
[0153] Step 1017: If the second virtual object does not have the preset adjustment mark, determine the third virtual object that the focus focused on before focusing on the first virtual object.
[0154] It should be noted that if the second virtual object does not have the preset adjustment mark, it indicates that the second virtual object can only be displayed in the initial display style and cannot adjust the display style. Therefore, there is no need to adjust the display style of the second virtual object, and it is necessary to determine whether the third virtual object exists.
[0155] Step 1018: Determine the virtual object to be adjusted according to the third focusing duration of the third virtual object, the first focusing duration, and the second focusing duration of the second virtual object.
[0156] It can be understood that if the third virtual object exists, it can be determined that the third virtual object was also focused before focusing on the second virtual object. Then, the display style of the third virtual object may have been adjusted. After unfocusing the third virtual object, it is necessary to adjust the display style of the third virtual object to the initial display style when it was not focused.
[0157] In addition, it can specifically be determined whether the third virtual object has the preset adjustment mark. If the third virtual object has the preset adjustment mark, both the first virtual object and the third virtual object are used as the virtual object to be adjusted. Otherwise, the first virtual object is used as the virtual object to be adjusted.
[0158] In a possible implementation, continue to refer to Figure 5 , the method further includes:
[0159] Step 1019: If the second virtual object has the preset adjustment mark, determine the first virtual object and the second virtual object as the virtual objects to be adjusted.
[0160] It should be noted that if the second virtual object has the preset adjustment mark, it indicates that after focusing on the second virtual object, the initial display style of the second virtual object can be adjusted to other display styles. Therefore, it is necessary to adjust the display style of the second virtual object.
[0161] In addition, in this case, it can continue to be determined whether the third virtual object exists, and the third focusing time of focusing on the third virtual object is determined. Then, according to the third focusing time, the second focusing time, and the first focusing time, it is determined whether it is necessary to adjust the display style of the third virtual object.
[0162] In this way, the flexibility and accuracy of determining the virtual object to be adjusted can be greatly improved.
[0163] In a possible implementation, continue to refer to Figure 5 , adjusting the display styles of the virtual objects to be adjusted according to the first focusing duration, including:
[0164] Step 1020: Adjust the display style of the first virtual object according to the first focusing duration and the initial display style of the first virtual object.
[0165] It should be noted that since the first focusing duration is the duration of focusing on the first virtual object before the current moment, then, adjusting the display styles of the virtual objects to be adjusted according to the first focusing duration, in this way, the display styles of the virtual objects to be adjusted can be gradually adjusted according to the first focusing duration, rather than directly changing the initial display styles of the virtual objects to be adjusted to completely different display styles at once. In this way, the effect that the virtual objects to be adjusted gradually change from the initial display style to the adjusted display style can be achieved, and thus the display effect when changing the display styles of individual virtual objects among a large number of virtual objects can be improved.
[0166] Step 1021: Adjust the display style of the second virtual object according to the first focusing duration and the historical display style of the second virtual object.
[0167] Optionally, the historical display style of the second virtual object includes: the initial display style of the second virtual object or the display style when the focus last left the second virtual object.
[0168] Exemplarily, the initial display style of the second virtual object refers to the display style when the second virtual object is not focused or selected by the focus.
[0169] The display style when the focus last left the second virtual object refers to the display style of the second virtual object when the focus deselects the second virtual object. It can also be the adjusted display style of the second virtual object.
[0170] It can be understood that after the second virtual object is deselected, the longer the interval time, the closer the current display style of the second virtual object is to the initial display style of the second virtual object, until it completely returns to the initial display style.
[0171] In this case, if it is determined that the second focusing duration is greater than or equal to the first focusing duration, then, the difference obtained by subtracting the first focusing duration from the second focusing duration can be divided by the preset duration to determine the relationship between the display style of the second virtual object and the initial display style of the second virtual object.
[0172] In this way, the display style of the second virtual object can be accurately adjusted, and the adjusted display style of the second virtual object can be correctly displayed in the next frame of the game screen, thereby improving the display effect when adjusting the display styles of virtual objects.
[0173] In a possible implementation, continue to refer toFigure 2 , the method further includes:
[0174] Step 1022: If there is no focused second virtual object in the previous frame of the current game screen, determine whether the first virtual object and the previous third virtual object focused by the focus are the same virtual object.
[0175] It should be noted that if there is no focused second virtual object in the previous frame of the current game screen, it indicates that in the previous frame of the game screen, the focus selected or pointed to a blank area and did not select any virtual object. Therefore, it can be directly determined whether the previous third virtual object focused on the focus is the same virtual object as the first virtual object. If so, the display style of the first virtual object can be adjusted according to the third focus duration and the first focus duration. If not, the display style of the third virtual object can be adjusted according to the third focus duration and the first focus duration, and the display style of the first virtual object can be adjusted according to the first focus duration.
[0176] Step 1023: If it is determined that the first virtual object and the third virtual object are the same virtual object, determine the virtual object to be adjusted according to the first virtual object.
[0177] In this way, it can be determined that after the focus focuses on a blank area, it focuses on the previously focused third virtual object again. At this time, it can be confirmed that the focus only focuses on one virtual object, that is, the first virtual object. Therefore, only the display style of the first virtual object needs to be adjusted, and it is necessary to determine that the first virtual object is the virtual object to be adjusted.
[0178] In this way, the accuracy and reliability of determining the virtual object to be adjusted can be improved. Furthermore, when refocusing on a previously focused virtual object, the display style of this virtual object can continue to be adjusted, and the display effect when changing the display style of the virtual object can be improved.
[0179] In a possible implementation manner, adjusting the display style of each virtual object to be adjusted according to the first focus duration includes:
[0180] Adjust the display style of the first virtual object according to the first focus duration, the third focus duration, and the initial display style of the first virtual object.
[0181] It should be noted that since the third virtual object and the first virtual object are the same virtual object, the third focusing duration and the first focusing duration need to be accumulated as the duration for the focus to focus on the first virtual object. And since there is a period of time pointing to the blank area between the focus on the first virtual object and the third virtual object, it is also necessary to subtract the duration when the focus points to the blank area from the sum of the third focusing duration and the first focusing duration. In this way, the duration of cumulative pointing to or selecting the first virtual object can be accurately determined. And since it has been determined that the first virtual object is the virtual object to be adjusted, the display style of the first virtual object can be accurately adjusted according to the first focusing duration and the third focusing duration, and the adjusted display style of the first virtual object can be correctly displayed in the next frame of the game screen, thereby improving the display effect when adjusting the display style of the virtual object.
[0182] In a possible implementation, continue to refer to Figure 2 , the method further includes:
[0183] Step 1024: If it is determined that the first virtual object and the third virtual object are not the same virtual object, determine the virtual object to be adjusted according to the first virtual object and the third virtual object.
[0184] In this way, it can be determined that after the focus focuses on a blank area, it refocuses on a virtual object different from the previously focused third virtual object. At this time, it can be confirmed that the focus focuses on two different virtual objects, that is, the first virtual object and the third virtual object. Therefore, it is necessary to adjust the display styles of the first virtual object and the third virtual object at the same time. Specifically, the first virtual object needs to be adjusted from the initial display style to the target display style, and the third virtual object needs to be adjusted from the target display style or the transition style to the initial display style. That is, it is necessary to determine that the first virtual object and the third virtual object are the virtual objects to be adjusted.
[0185] In a possible way, determining the virtual object to be adjusted according to the first virtual object and the third virtual object includes:
[0186] If the third focusing duration is greater than or equal to the first focusing duration, determine that the third virtual object is the virtual object to be adjusted.
[0187] Optionally, regardless of whether the third focusing duration is greater than, equal to, or less than the first focusing duration, the first virtual object can also be used as the virtual object to be adjusted at the same time.
[0188] If the third focusing duration is greater than or equal to the first focusing duration, it can indicate that the duration for which the focus previously selected the third virtual object is at least the same as the duration for which the first virtual object is currently selected. Then, it can indicate that at the current moment, the display style of the third virtual object has not completely changed back to its original display style before being unselected.
[0189] It should be noted that, at the same time, before determining the virtual object to be adjusted, it is also possible to determine whether the above-mentioned preset adjustment marks exist for the first virtual object and the third virtual object. If neither the first virtual object nor the third virtual object has the preset adjustment mark, it can be determined that there is no virtual object to be adjusted. If the first virtual object or the third virtual object has the preset adjustment mark, it can be determined that the first virtual object or the third virtual object with the preset adjustment mark is the virtual object to be adjusted.
[0190] In a possible implementation manner, adjusting the display styles of the virtual objects to be adjusted according to the first focusing duration includes:
[0191] Adjusting the display style of the third virtual object according to the first focusing duration, the third focusing duration, and the historical display style of the third virtual object.
[0192] It can be understood that after unselecting the third virtual object, the longer the interval time, the closer the current display style of the third virtual object is to the initial display style of the third virtual object, until it completely changes back to the initial display style.
[0193] In this case, it has been determined that the third focusing duration is greater than or equal to the first focusing duration. Then, the difference obtained by subtracting the first focusing duration from the third focusing duration can be divided by the preset duration to determine the relationship between the display style of the third virtual object and the initial display style of the third virtual object.
[0194] In this way, the display style of the third virtual object can be accurately adjusted, and the adjusted display style of the third virtual object can be correctly displayed in the next frame of the game screen, thereby improving the display effect when adjusting the display styles of virtual objects.
[0195] In a possible implementation manner, referring to Figure 6 , the method further includes:
[0196] Step 1025: If it is determined that the first virtual object does not exist in the current game screen, determine the virtual object to be adjusted according to the second virtual object and the third virtual object.
[0197] It should be noted that if it is determined that the first virtual object does not exist in the current game screen, it indicates that in the current game screen, the focus does not select any virtual object, but points to or selects a blank area. Therefore, it is only necessary to adjust the display style of the second virtual object focused in the previous frame or the third virtual object focused previously to be closer to the initial display style.
[0198] In addition, the specific steps for determining the virtual object to be adjusted according to the second virtual object and the third virtual object can refer to the above-mentioned other embodiments, which determine whether the second virtual object and the third virtual object have the above-mentioned preset adjustment marks, determine the second focus duration of the second virtual object and the third focus duration of the third virtual object, determine whether the second virtual object and the third virtual object are the same virtual object, and determine the display style of the virtual object to be adjusted.
[0199] In this way, the flexibility and accuracy of determining the virtual object to be adjusted can be improved.
[0200] In a possible implementation manner, determining the virtual object to be adjusted according to the second virtual object and the third virtual object includes:
[0201] If the duration between the moment when the focus last leaves the third virtual object and the current moment is less than a preset duration, determine that the third virtual object is the virtual object to be adjusted.
[0202] Optionally, the preset duration may refer to the time length required to completely adjust any virtual object from one display style to another. The preset duration can be set in advance by relevant technical personnel according to actual needs, so as to achieve a gradual change effect, and the embodiments of the present application do not limit this.
[0203] If the second virtual object has a preset adjustment mark, determine that the second virtual object is the virtual object to be adjusted.
[0204] It should be noted that if the second virtual object has the preset adjustment mark, it indicates that the second virtual object can be adjusted from the current initial display style to another display style. Therefore, it is necessary to adjust the display style of the second virtual object.
[0205] It should be noted that before determining that the third virtual object is the virtual object to be adjusted, it is also possible to first determine whether the third virtual object has the preset adjustment mark. If it has, the third virtual object can be used as the virtual object to be adjusted. If it does not have, it is determined that the third virtual object is not the virtual object to be adjusted.
[0206] To illustrate in detail the virtual object display method provided by the embodiments of the present application,Figures 7 - 9 The schematic diagram of the interface shown
[0207] Specifically refer to Figure 7 , Figure 7 which shows the screen M1. There are specifically four virtual objects in the screen M1, namely object J1, object J2, object J3, object J4 and the focus D.
[0208] From Figure 7 it can be seen that the focus D is located on object J3. That is to say, the focus D is focused on object J3, and the display style of object J3 is different from that of other objects.
[0209] At this time, if object J3 moves its position and the focus D continues to focus on object J3, it is just like Figure 8 shown in the screen M2. In addition, since the focus D continues to focus on object J3, in this case, that is to say, in continuous multi-frame game screens, the virtual object selected by the focus D is the same virtual object, then it is necessary to continuously adjust the display style of object J3. From Figure 7 and Figure 8 it can be seen that the display style of object J3 in screen M1 has been adjusted compared with the display style of object J3 in screen M2.
[0210] Furthermore, if the focus D moves away from object J3 and selects object J1, then it is necessary to gradually adjust the display style of object J3 to the display style when it is not focused, and adjust the display style of object J1 from the display style when it is not focused to another display style. Specifically refer to Figure 9 From Figure 9 it can be seen that Figure 9 shows the screen M3. The focus D is located on object J1. That is to say, the focus D is focused on object J1, and the positions of object J3 and object J1 in the game screen have changed.
[0211] It can be seen that the display style of object J3 has been readjusted from the display style in screen M2 to the same display style as that in screen M1, and the display style of object J1 has been adjusted from the display styles in screen M1 and screen M2 to a new display style.
[0212] If object J3 is continuously not focused, then the display style of object J3 will continue to be adjusted until object J3 is displayed with the display style when it is not focused.
[0213] If object J1 is continuously focused, then the display style of object J1 will continue to be adjusted until the duration of focusing on object J1 is greater than or equal to the above preset duration, then the display style of object J1 will be completely adjusted to another display style.
[0214] The following describes the apparatuses, devices, computer-readable storage media, etc. for implementing the virtual object display method provided in this application. For the specific implementation process and technical effects, please refer to the above, and will not be elaborated below.
[0215] Figure 10 It is a schematic structural diagram of a virtual object display device provided in an embodiment of this application. Refer to Figure 10 This device includes:
[0216] An acquisition module 201, configured to acquire a current game screen, where the current game screen includes multiple virtual objects in a virtual scene, and each virtual object corresponds to an initial display style, and the initial display style is determined by a depth template value assigned to the virtual object;
[0217] A determination module 202, configured to determine whether there is a first virtual object in focus in the current game screen according to the position of the focus in the current game screen;
[0218] A determination and acquisition module 203, configured to, when there is a first virtual object in focus in the current game screen, determine a virtual object to be adjusted according to the first virtual object, and acquire the first focus duration of the first virtual object and the display styles of each virtual object to be adjusted;
[0219] An adjustment module 204, configured to adjust the display styles of each virtual object to be adjusted according to the first focus duration to obtain the adjusted display styles of each virtual object to be adjusted. The first focus duration is used to indicate the focus duration of the first virtual object, and the depth template value corresponding to the adjusted display style is different from the depth template value corresponding to the initial display style;
[0220] A display module 205, configured to display each virtual object to be adjusted according to the adjusted display styles of each virtual object to be adjusted.
[0221] Optionally, the determination and acquisition module 203 is further configured to determine whether there is a second virtual object in focus in the previous frame of the current game screen. If so, determine whether the first virtual object and the second virtual object are the same virtual object. When it is determined that the first virtual object and the second virtual object are the same virtual object, the virtual object to be adjusted is determined according to a preset adjustment flag. When it is determined that the first virtual object and the second virtual object are different virtual objects, the virtual object to be adjusted is determined according to the first virtual object and the second virtual object.
[0222] The determining and obtaining module 203 is further configured to, when the first virtual object does not have the preset adjustment mark, determine a third virtual object that the focus focuses on before focusing on the first virtual object. The virtual object to be adjusted is determined according to the third focusing duration of the third virtual object and the first focusing duration.
[0223] The determining and obtaining module 203 is further configured to, when the third focusing duration is greater than or equal to the first focusing duration, determine the third virtual object as the virtual object to be adjusted.
[0224] The adjustment module 204 is further configured to adjust the display style of the third virtual object according to the first focusing duration, the third focusing duration, and the historical display style of the third virtual object.
[0225] The determining and obtaining module 203 is further configured to, when the first virtual object has the preset adjustment mark, determine the virtual object to be adjusted according to the first virtual object.
[0226] The determining and obtaining module 203 is further configured to determine whether the first virtual object and the third virtual object are the same virtual object. When it is determined that the first virtual object and the third virtual object are the same virtual object, the first virtual object is determined as the virtual object to be adjusted.
[0227] The adjustment module 204 is further configured to adjust the display style of the first virtual object according to the first focusing duration, the third focusing duration, and the initial display style of the first virtual object.
[0228] The determining and obtaining module 203 is further configured to, when it is determined that the first virtual object and the third virtual object are not the same virtual object, determine the virtual object to be adjusted according to the first virtual object and the third virtual object.
[0229] The determining and obtaining module 203 is further configured to, when the third focusing duration is greater than or equal to the first focusing duration, determine the third virtual object as the virtual object to be adjusted.
[0230] The adjustment module 204 is further configured to adjust the display style of the third virtual object according to the first focusing duration, the third focusing duration, and the historical display style of the third virtual object.
[0231] The determining and obtaining module 203 is further configured to, when the second virtual object does not have the preset adjustment mark, determine a third virtual object that the focus focuses on before focusing on the first virtual object. The virtual object to be adjusted is determined according to the third focusing duration of the third virtual object, the first focusing duration, and the second focusing duration of the second virtual object.
[0232] The determining and obtaining module 203 is further configured to determine the first virtual object and the second virtual object as the virtual objects to be adjusted when the second virtual object has the preset adjustment mark.
[0233] The adjustment module 204 is further configured to adjust the display style of the first virtual object according to the first focusing duration and the initial display style of the first virtual object. The adjustment module 204 is further configured to adjust the display style of the second virtual object according to the first focusing duration and the historical display style of the second virtual object.
[0234] The determining and obtaining module 203 is further configured to determine whether the first virtual object is the same as the previous third virtual object focused by the focus when there is no focused second virtual object in the previous frame of the current game screen. When it is determined that the first virtual object is the same as the third virtual object, the first virtual object is determined as the virtual object to be adjusted.
[0235] The adjustment module 204 is further configured to adjust the display style of the first virtual object according to the first focusing duration, the third focusing duration of the third virtual object, and the initial display style of the first virtual object.
[0236] The determining and obtaining module 203 is further configured to determine the virtual object to be adjusted according to the first virtual object and the third virtual object when it is determined that the first virtual object is not the same as the third virtual object.
[0237] The determining and obtaining module 203 is further configured to determine the third virtual object as the virtual object to be adjusted when the third focusing duration is greater than or equal to the first focusing duration.
[0238] The adjustment module 204 is further configured to adjust the display style of the third virtual object according to the first focusing duration, the third focusing duration, and the historical display style of the third virtual object.
[0239] The determining and obtaining module 203 is further configured to determine the virtual object to be adjusted according to the second virtual object and the third virtual object when it is determined that the first virtual object does not exist in the current game screen.
[0240] The determining and obtaining module 203 is further configured to determine the third virtual object as the virtual object to be adjusted when the duration between the moment when the focus last leaves the third virtual object and the current moment is less than the preset duration.
[0241] When the second virtual object has the preset adjustment mark, the second virtual object is determined as the virtual object to be adjusted.
[0242] The above-mentioned device is used to execute the method provided in the foregoing embodiment, and its implementation principle and technical effects are similar, which will not be elaborated here.
[0243] The above modules can be one or more integrated circuits configured to implement the above method. For example: one or more Application Specific Integrated Circuits (ASICs), or, one or more microprocessors, or, one or more Field Programmable Gate Arrays (FPGAs), etc. Again, when a certain module above is implemented in the form of a processing element scheduling program code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processors that can call program code. Again, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0244] Figure 11 It is a schematic structural diagram of a computer device provided by an embodiment of the present application. Refer to Figure 11 , the computer device includes: a memory 301 and a processor 302. The memory 301 stores a computer program that can run on the processor 302. When the processor 302 executes the computer program, the steps in any of the above method embodiments are implemented.
[0245] Optionally, the processor 302 is used to obtain the current game screen, which includes multiple virtual objects in the virtual scene. Each virtual object corresponds to an initial display style, and the initial display style is determined by the depth template value assigned to the virtual object;
[0246] The processor 302 is used to determine whether there is a first virtual object in focus in the current game screen according to the position of the focus in the current game screen;
[0247] When there is a first virtual object in focus in the current game screen, the processor 302 is used to determine the virtual object to be adjusted according to the first virtual object, and obtain the first focus duration of the first virtual object and the display styles of each virtual object to be adjusted;
[0248] The processor 302 is used to adjust the display styles of each virtual object to be adjusted according to the first focus duration to obtain the adjusted display styles of each virtual object to be adjusted. The first focus duration is used to indicate the focus duration of the first virtual object, and the depth template value corresponding to the adjusted display style is different from the depth template value corresponding to the initial display style;
[0249] The processor 302 is configured to display each virtual object to be adjusted according to the adjusted display style of each virtual object to be adjusted.
[0250] Optionally, the processor 302 is further configured to determine whether there is a second virtual object in focus in the previous frame of the current game screen. If so, determine whether the first virtual object and the second virtual object are the same virtual object. If it is determined that the first virtual object and the second virtual object are the same virtual object, then determine the virtual object to be adjusted according to a preset adjustment flag. If it is determined that the first virtual object and the second virtual object are different virtual objects, then determine the virtual object to be adjusted according to the first virtual object and the second virtual object.
[0251] The processor 302 is further configured to, when the first virtual object does not have the preset adjustment flag, determine a third virtual object that the focus focused on before focusing on the first virtual object. Determine the virtual object to be adjusted according to the third focusing duration of the third virtual object and the first focusing duration.
[0252] The processor 302 is further configured to, when the third focusing duration is greater than or equal to the first focusing duration, determine the third virtual object as the virtual object to be adjusted.
[0253] The processor 302 is further configured to adjust the display style of the third virtual object according to the first focusing duration, the third focusing duration, and the historical display style of the third virtual object.
[0254] The processor 302 is further configured to, when the first virtual object has the preset adjustment flag, determine the virtual object to be adjusted according to the first virtual object.
[0255] The processor 302 is further configured to determine whether the first virtual object and the third virtual object are the same virtual object. If it is determined that the first virtual object and the third virtual object are the same virtual object, then determine the first virtual object as the virtual object to be adjusted.
[0256] The processor 302 is further configured to adjust the display style of the first virtual object according to the first focusing duration, the third focusing duration, and the initial display style of the first virtual object.
[0257] The processor 302 is further configured to, when it is determined that the first virtual object and the third virtual object are not the same virtual object, determine the virtual object to be adjusted according to the first virtual object and the third virtual object.
[0258] The processor 302 is further configured to, when the third focusing duration is greater than or equal to the first focusing duration, then determine the third virtual object as the virtual object to be adjusted.
[0259] The processor 302 is further configured to adjust the display style of the third virtual object according to the first focusing duration, the third focusing duration, and the historical display style of the third virtual object.
[0260] The processor 302 is further configured to, when the second virtual object does not have the preset adjustment mark, determine the third virtual object that the focus focused on before focusing on the first virtual object. Determine the virtual object to be adjusted according to the third focusing duration of the third virtual object, the first focusing duration, and the second focusing duration of the second virtual object.
[0261] The processor 302 is further configured to, when the second virtual object has the preset adjustment mark, determine the first virtual object and the second virtual object as the virtual object to be adjusted.
[0262] The processor 302 is further configured to adjust the display style of the first virtual object according to the first focusing duration and the initial display style of the first virtual object. Adjust the display style of the second virtual object according to the first focusing duration and the historical display style of the second virtual object.
[0263] The processor 302 is further configured to, when there is no focused second virtual object in the previous frame of the current game screen, determine whether the first virtual object and the previous third virtual object focused by the focus are the same virtual object. When it is determined that the first virtual object and the third virtual object are the same virtual object, then determine the first virtual object as the virtual object to be adjusted.
[0264] The processor 302 is further configured to adjust the display style of the first virtual object according to the first focusing duration, the third focusing duration of the third virtual object, and the initial display style of the first virtual object.
[0265] The processor 302 is further configured to, when it is determined that the first virtual object and the third virtual object are not the same virtual object, then determine the virtual object to be adjusted according to the first virtual object and the third virtual object.
[0266] The processor 302 is further configured to, when the third focusing duration is greater than or equal to the first focusing duration, determine the third virtual object as the virtual object to be adjusted.
[0267] The processor 302 is further configured to adjust the display style of the third virtual object according to the first focusing duration, the third focusing duration, and the historical display style of the third virtual object.
[0268] The processor 302 is further configured to, when determining that the first virtual object does not exist in the current game screen, determine the virtual object to be adjusted according to the second virtual object and the third virtual object.
[0269] The processor 302 is further configured to, when the duration between the moment when the focus last left the third virtual object and the current moment is less than a preset duration, determine that the third virtual object is the virtual object to be adjusted.
[0270] When the second virtual object has a preset adjustment mark, determine that the second virtual object is the virtual object to be adjusted.
[0271] The embodiments of the present application further provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0272] Optionally, the processor is configured to obtain a current game screen, the current game screen includes a plurality of virtual objects in a virtual scene, and each virtual object corresponds to an initial display style, and the initial display style is determined by a depth template value assigned to the virtual object;
[0273] The processor is configured to determine whether there is a focused first virtual object in the current game screen according to the position of the focus in the current game screen;
[0274] When there is a focused first virtual object in the current game screen, the processor is configured to determine the virtual object to be adjusted according to the first virtual object, and obtain the first focusing duration of the first virtual object and the display styles of the virtual objects to be adjusted;
[0275] The processor is configured to adjust the display styles of the virtual objects to be adjusted according to the first focusing duration to obtain the adjusted display styles of the virtual objects to be adjusted, the first focusing duration is used to indicate the focusing duration of the first virtual object, and the depth template value corresponding to the adjusted display style is different from the depth template value corresponding to the initial display style;
[0276] The processor is configured to display the virtual objects to be adjusted according to the adjusted display styles of the virtual objects to be adjusted.
[0277] Optionally, the processor is further configured to determine whether there is a focused second virtual object in the previous frame of the current game screen. In the case of yes, determine whether the first virtual object and the second virtual object are the same virtual object. In the case of determining that the first virtual object and the second virtual object are the same virtual object, the virtual object to be adjusted is determined according to a preset adjustment flag. In the case of determining that the first virtual object and the second virtual object are different virtual objects, the virtual object to be adjusted is determined according to the first virtual object and the second virtual object.
[0278] The processor is further configured to, in the case that the first virtual object does not have the preset adjustment flag, determine a third virtual object that the focus focused on before focusing on the first virtual object. The virtual object to be adjusted is determined according to the third focusing duration of the third virtual object and the first focusing duration.
[0279] The processor is further configured to, in the case that the third focusing duration is greater than or equal to the first focusing duration, determine the third virtual object as the virtual object to be adjusted.
[0280] The processor is further configured to adjust the display style of the third virtual object according to the first focusing duration, the third focusing duration, and the historical display style of the third virtual object.
[0281] The processor is further configured to, in the case that the first virtual object has the preset adjustment flag, determine the virtual object to be adjusted according to the first virtual object.
[0282] The processor is further configured to determine whether the first virtual object and the third virtual object are the same virtual object. In the case of determining that the first virtual object and the third virtual object are the same virtual object, determine the first virtual object as the virtual object to be adjusted.
[0283] The processor is further configured to adjust the display style of the first virtual object according to the first focusing duration, the third focusing duration, and the initial display style of the first virtual object.
[0284] The processor is further configured to, in the case of determining that the first virtual object and the third virtual object are not the same virtual object, determine the virtual object to be adjusted according to the first virtual object and the third virtual object.
[0285] The processor is further configured to, in the case that the third focusing duration is greater than or equal to the first focusing duration, determine the third virtual object as the virtual object to be adjusted.
[0286] The processor is further configured to adjust the display style of the third virtual object according to the first focusing duration, the third focusing duration, and the historical display style of the third virtual object.
[0287] The processor is further configured to, when the second virtual object does not have the preset adjustment mark, determine a third virtual object that the focus focused on before focusing on the first virtual object. The virtual object to be adjusted is determined according to the third focusing duration of the third virtual object, the first focusing duration, and the second focusing duration of the second virtual object.
[0288] The processor is further configured to, when the second virtual object has the preset adjustment mark, determine the first virtual object and the second virtual object as the virtual object to be adjusted.
[0289] The processor is further configured to adjust the display style of the first virtual object according to the first focusing duration and the initial display style of the first virtual object. The display style of the second virtual object is adjusted according to the first focusing duration and the historical display style of the second virtual object.
[0290] The processor is further configured to, when there is no focused second virtual object in the previous frame of the current game screen, determine whether the first virtual object is the same virtual object as the previous third virtual object focused by the focus. If it is determined that the first virtual object and the third virtual object are the same virtual object, then the first virtual object is determined as the virtual object to be adjusted.
[0291] The processor is further configured to adjust the display style of the first virtual object according to the first focusing duration, the third focusing duration of the third virtual object, and the initial display style of the first virtual object.
[0292] The processor is further configured to, when it is determined that the first virtual object and the third virtual object are not the same virtual object, determine the virtual object to be adjusted according to the first virtual object and the third virtual object.
[0293] The processor is further configured to, when the third focusing duration is greater than or equal to the first focusing duration, determine the third virtual object as the virtual object to be adjusted.
[0294] The processor is further configured to adjust the display style of the third virtual object according to the first focusing duration, the third focusing duration, and the historical display style of the third virtual object.
[0295] The processor is further configured to, when it is determined that the first virtual object does not exist in the current game screen, determine the virtual object to be adjusted according to the second virtual object and the third virtual object.
[0296] The processor is further configured to determine that the third virtual object is the virtual object to be adjusted when the duration between the moment when the focus last leaves the third virtual object and the current moment is less than a preset duration.
[0297] When the second virtual object has a preset adjustment mark, it is determined that the second virtual object is the virtual object to be adjusted.
[0298] Optionally, the present application further provides a program product, such as a computer-readable storage medium, including a program which, when executed by a processor, is configured to execute any of the above-described virtual object display method embodiments.
[0299] In several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces, and the indirect coupling or communication connection of the apparatus or unit can be in an electrical, mechanical or other form.
[0300] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0301] In addition, in each embodiment of the present invention, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of a combination of hardware and software functional units.
[0302] The integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium. The above-mentioned software functional units stored in a storage medium include a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute some steps of the methods of the various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (English: Read-Only Memory, abbreviated as: ROM), random access memories (English: Random Access Memory, abbreviated as: RAM), magnetic disks, or optical discs that can store program codes.
[0303] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, and all of them should be covered by the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
[0304] The foregoing is only the preferred embodiment of the present application and is not used to limit the present application. For those skilled in the art, the present application may have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for displaying virtual objects, characterized in that, a graphical user interface of a game is provided by a terminal device, and the content displayed on the graphical user interface includes a virtual scene, and the virtual scene includes virtual objects; the method includes: obtaining a current game screen, the current game screen including a plurality of virtual objects in the virtual scene, each virtual object corresponding to an initial display style, and the initial display style being determined by a depth template value assigned to the virtual object; determining whether there is a first virtual object in focus in the current game screen according to the position of the focus in the current game screen; if so, determining a virtual object to be adjusted according to the first virtual object, and obtaining a first focusing duration of the first virtual object and display styles of each virtual object to be adjusted, the first focusing duration being used to indicate the focusing duration of the first virtual object; gradually adjusting the display styles of each virtual object to be adjusted according to the first focusing duration to obtain adjusted display styles of each virtual object to be adjusted, and the depth template value corresponding to the adjusted display style is different from the depth template value corresponding to the initial display style; displaying each virtual object to be adjusted according to the adjusted display style of each virtual object to be adjusted.
2. The virtual object display method according to claim 1, characterized in that, the determining the virtual object to be adjusted according to the first virtual object includes: determining whether there is a second virtual object in focus in the previous frame game screen of the current game screen; if so, determining whether the first virtual object and the second virtual object are the same virtual object; if it is determined that the first virtual object and the second virtual object are the same virtual object, determining the virtual object to be adjusted according to a preset adjustment flag; the preset adjustment flag indicates that the first virtual object can adjust the initial display style to another display style; if it is determined that the first virtual object and the second virtual object are different virtual objects, determining the virtual object to be adjusted according to the first virtual object and the second virtual object.
3. The virtual object display method according to claim 2, characterized in that, the determining the virtual object to be adjusted according to the preset adjustment flag includes: if the first virtual object does not have the preset adjustment flag, determining a third virtual object that the focus focused on before focusing on the first virtual object; determining the virtual object to be adjusted according to a third focusing duration of the third virtual object and the first focusing duration.
4. The virtual object display method according to claim 3, characterized in that, determining the virtual object to be adjusted according to the third focusing duration of the third virtual object and the first focusing duration includes: if the third focusing duration is greater than or equal to the first focusing duration, determining the third virtual object as the virtual object to be adjusted.
5. The virtual object display method according to claim 4, characterized in that, the adjusting the display styles of each virtual object to be adjusted according to the first focusing duration includes: Adjust the display style of the third virtual object according to the first focusing duration, the third focusing duration, and the historical display style of the third virtual object, where the historical display style of the third virtual object includes: the initial display style of the third virtual object or the display style when the focus last left the third virtual object.
6. The virtual object display method according to claim 3, wherein, the determining the virtual object to be adjusted according to a preset adjustment mark includes: if the first virtual object has the preset adjustment mark, determining the virtual object to be adjusted according to the first virtual object.
7. The virtual object display method according to claim 6, wherein, determining the virtual object to be adjusted according to the first virtual object includes: determining whether the first virtual object and the third virtual object are the same virtual object; if it is determined that the first virtual object and the third virtual object are the same virtual object, determining the first virtual object as the virtual object to be adjusted; the adjusting the display style of each virtual object to be adjusted according to the first focusing duration includes: adjusting the display style of the first virtual object according to the first focusing duration, the third focusing duration, and the initial display style of the first virtual object.
8. The virtual object display method according to claim 7, wherein, if it is determined that the first virtual object and the third virtual object are not the same virtual object, determining the virtual object to be adjusted according to the first virtual object and the third virtual object; the determining the virtual object to be adjusted according to the first virtual object and the third virtual object includes: if the third focusing duration is greater than or equal to the first focusing duration, determining the third virtual object as the virtual object to be adjusted.
9. The virtual object display method according to claim 8, wherein, the adjusting the display style of each virtual object to be adjusted according to the first focusing duration includes: adjusting the display style of the third virtual object according to the first focusing duration, the third focusing duration, and the historical display style of the third virtual object.
10. The virtual object display method according to claim 2, wherein, the determining the virtual object to be adjusted according to the first virtual object and the second virtual object includes: if the second virtual object does not have the preset adjustment mark, determining the third virtual object that the focus focused on before focusing on the first virtual object; determining the virtual object to be adjusted according to the third focusing duration of the third virtual object, the first focusing duration, and the second focusing duration of the second virtual object.
11. The virtual object display method according to claim 10, wherein, if the second virtual object has the preset adjustment mark, determining the first virtual object and the second virtual object as the virtual objects to be adjusted.
12. The virtual object display method according to claim 11, wherein, Adjust the display styles of the virtual objects to be adjusted according to the first focusing duration, including: Adjust the display style of the first virtual object according to the first focusing duration and the initial display style of the first virtual object; Adjust the display style of the second virtual object according to the first focusing duration, the second focusing duration, and the historical display style of the second virtual object, where the historical display style of the second virtual object includes: the initial display style of the second virtual object or the display style when the focus last left the second virtual object.
13. The virtual object display method according to claim 2, characterized in that if there is no focused second virtual object in the previous frame of the current game screen, determine whether the first virtual object and the previous third virtual object focused by the focus are the same virtual object; if it is determined that the first virtual object and the third virtual object are the same virtual object, then determine the virtual object to be adjusted according to the first virtual object.
14. The virtual object display method according to claim 13, characterized in that the adjusting the display styles of the virtual objects to be adjusted according to the first focusing duration includes: Adjust the display style of the first virtual object according to the first focusing duration, the third focusing duration of the third virtual object, and the initial display style of the first virtual object.
15. The virtual object display method according to claim 13, characterized in that if it is determined that the first virtual object and the third virtual object are not the same virtual object, then determine the virtual object to be adjusted according to the first virtual object and the third virtual object; the determining the virtual object to be adjusted according to the first virtual object and the third virtual object includes: if the third focusing duration is greater than or equal to the first focusing duration, then determine the third virtual object as the virtual object to be adjusted.
16. The virtual object display method according to claim 15, characterized in that the adjusting the display styles of the virtual objects to be adjusted according to the first focusing duration includes: Adjust the display style of the third virtual object according to the first focusing duration, the third focusing duration, and the historical display style of the third virtual object.
17. The virtual object display method according to claim 1, characterized in that if it is determined that the first virtual object does not exist in the current game screen, then determine the virtual object to be adjusted according to the second virtual object focused in the previous frame and the third virtual object focused previously.
18. The virtual object display method according to claim 17, characterized in that the determining the virtual object to be adjusted according to the second virtual object focused in the previous frame and the third virtual object focused previously includes: if the duration between the moment when the focus last left the previously focused third virtual object and the current moment is less than a preset duration, then determine the previously focused third virtual object as the virtual object to be adjusted; If the second virtual object focused in the previous frame has a preset adjustment mark, determine the second virtual object focused in the previous frame as the virtual object to be adjusted.
19. A virtual object display device, characterized in that the device includes: an acquisition module, configured to acquire a current game screen, the current game screen including a plurality of virtual objects in a virtual scene, each virtual object corresponding to an initial display style, and the initial display style being determined by a depth template value assigned to the virtual object; a determination module, configured to determine whether there is a first virtual object in focus in the current game screen according to the position of the focus in the current game screen; a determination and acquisition module, configured to, when there is a first virtual object in focus in the current game screen, determine a virtual object to be adjusted according to the first virtual object, and acquire a first focus duration of the first virtual object and display styles of each virtual object to be adjusted; an adjustment module, configured to gradually adjust the display styles of each virtual object to be adjusted according to the first focus duration to obtain adjusted display styles of each virtual object to be adjusted, the first focus duration being used to indicate the focus duration of the first virtual object, and the depth template value corresponding to the adjusted display style being different from the depth template value corresponding to the initial display style; a display module, configured to display each virtual object to be adjusted according to the adjusted display style of each virtual object to be adjusted.
20. A computer device, characterized in that it includes: a memory and a processor, where a computer program executable on the processor is stored in the memory, and when the processor executes the computer program, the steps of the method according to any one of claims 1 to 18 above are implemented.
21. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 18 are implemented.
Citation Information
Patent Citations
Character display, character displaying method, information recording medium, and program
CN101622647A
Electronic display adjustments to mitigate motion sickness
CN110855825A