Method, device, equipment and storage medium for displaying interactive screen

By directly selecting and displaying the second virtual scene in the loaded first virtual scene, the efficiency and fluency problems during virtual scene switching are solved, and the display efficiency and human-computer interaction rate of the interactive picture are improved.

CN114470763BActive Publication Date: 2024-11-08TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210103052.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-27
Publication Date
2024-11-08
Estimated Expiration
2042-01-27

Smart Images

  • Figure CN114470763B_ABST
    Figure CN114470763B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and storage medium for displaying an interactive screen, and belongs to the field of computer technology. The method includes: displaying a first interactive screen, the first interactive screen includes a first virtual scene, and the first virtual scene is a scene for a first virtual object to perform a first activity; in response to an activation operation of a second activity, a second interactive screen is displayed based on the first virtual scene, the second interactive screen includes a second virtual scene, and the second virtual scene is a scene for the first virtual object to perform a second activity, and the second virtual scene is selected from the first virtual scene. In this way, when the second interactive screen needs to be displayed, the second interactive screen can be directly displayed based on the first virtual scene without the need to additionally load the second virtual scene, which is conducive to improving the efficiency of displaying the interactive screen and the display smoothness of the interactive screen, thereby improving the human-computer interaction rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and more particularly to a method, apparatus, device and storage medium for displaying an interactive screen. Background Art

[0002] With the development of computer technology, more and more applications are available that can provide virtual scenes. When an interactive object controls a virtual object in a virtual scene to perform activities, an interactive screen is displayed, which includes the virtual scene.

[0003] In the related art, different virtual scenes are independent of each other. When it is necessary to switch virtual scenes, the switched virtual scenes will be loaded first. After loading is completed, the interactive screen will be displayed, and the interactive screen includes the switched virtual scenes. In this way, the efficiency of displaying the interactive screen is low, the display fluency of the interactive screen is poor, and it is easy to reduce the human-computer interaction rate. Summary of the invention

[0004] The embodiments of the present application provide a method, device, equipment and storage medium for displaying an interactive screen, which can be used to improve the efficiency of displaying an interactive screen and improve the display fluency of the interactive screen. The technical solution is as follows:

[0005] In one aspect, an embodiment of the present application provides a method for displaying an interactive screen, the method comprising:

[0006] Displaying a first interactive screen, wherein the first interactive screen includes a first virtual scene, and the first virtual scene is a scene for a first virtual object to perform a first activity;

[0007] In response to an activation operation of a second activity, a second interaction screen is displayed based on the first virtual scene, the second interaction screen includes a second virtual scene, the second virtual scene is a scene for the first virtual object to perform the second activity, and the second virtual scene is selected from the first virtual scene.

[0008] In another aspect, a device for displaying an interactive screen is provided, the device comprising:

[0009] A display unit, configured to display a first interactive screen, wherein the first interactive screen includes a first virtual scene, and the first virtual scene is a scene for a first virtual object to perform a first activity;

[0010] The display unit is also used to display a second interactive screen based on the first virtual scene in response to an activation operation of the second activity, wherein the second interactive screen includes a second virtual scene, and the second virtual scene is a scene for the first virtual object to perform the second activity, and the second virtual scene is selected from the first virtual scene.

[0011] In one possible implementation, the second activity includes a competitive interaction between the first virtual object and the second virtual object, and the display unit is further used to display a third interaction screen in response to an activation operation of the second activity, and the third interaction screen includes a first animation of the second virtual object; in response to the first animation of the second virtual object being displayed, the second interaction screen is displayed based on the first virtual scene.

[0012] In one possible implementation, the display unit is further used to display a fourth interaction screen in response to the first animation of the second virtual object being displayed, and the fourth interaction screen includes the first animation of the first virtual object; in response to the first animation of the first virtual object being displayed, the second interaction screen is displayed based on the first virtual scene.

[0013] In one possible implementation, the third interaction screen also includes the first virtual scene, and the fourth interaction screen also includes the first virtual scene; or, the third interaction screen also includes the first virtual scene, and the fourth interaction screen also includes the second virtual scene; or, the third interaction screen also includes the second virtual scene, and the fourth interaction screen also includes the second virtual scene.

[0014] In a possible implementation, the display unit is further configured to display the first interaction screen in response to the second activity ending.

[0015] In one possible implementation, the display unit is further used to display a fifth interaction screen in response to the end of the second activity, where the fifth interaction screen includes the second animation of the first virtual object; and to display the first interaction screen in response to the completion of the display of the second animation of the first virtual object.

[0016] In a possible implementation, the display unit is further configured to display an activation entrance of the second activity;

[0017] The device also includes:

[0018] An acquiring unit is used to acquire an activation operation of the second activity in response to a triggering operation of the activation entry.

[0019] In a possible implementation, the device further includes:

[0020] A determination unit is used to determine a first position of the first virtual object in the first virtual scene in response to an activation operation of the second activity; determine a target position matching the first position, and use a scene within a selection range in the first virtual scene as the second virtual scene, where the selection range is a range including the target position.

[0021] In one possible implementation, the determination unit is used to map the first position to a query image to obtain a mapping position of the first position in the query image; the query image is an image obtained by displaying the at least one query sub-region using a display style corresponding to the at least one query sub-region, and different query sub-regions correspond to different positions in the first virtual scene; in response to the display style corresponding to the first query sub-region where the mapping position is located being a first style, the position in the first virtual scene corresponding to the first query sub-region is used as the target position, and the first style is a style used to display the query sub-region that meets the selection conditions.

[0022] In one possible implementation, the determination unit is used to map the first position to a query image to obtain a mapping position of the first position in the query image; the query image is an image obtained after displaying the at least one query sub-region using a display style corresponding to the at least one query sub-region, and different query sub-regions correspond to different positions in the first virtual scene; in response to the display style corresponding to the first query sub-region where the mapping position is located is not the first style, the position in the first virtual scene corresponding to the second query sub-region is used as the target position; wherein the first style is a style used to display the query sub-region that meets the selection condition; the second query sub-region is the query sub-region that is closest to the first query sub-region among the reference query sub-regions, and the reference query sub-regions are query sub-regions in the query image whose display style is the first style.

[0023] In one possible implementation, the first virtual scene is composed of at least one polygonal surface, and the acquisition unit is further used to determine a target polygonal surface that meets the screening condition based on the at least one polygonal surface, and use the query subregion in which the projection line in the at least one query subregion hits the target polygonal surface as the target query subregion; obtain a measurement index of the target query subregion, and determine a query subregion that meets the selection condition from the target query subregion based on the measurement index of the target query subregion; use the first style as the display style corresponding to the query subregion that meets the selection condition, and use other styles except the first style as the display styles corresponding to other query subregions except the query subregion that meets the selection condition; display the at least one query subregion using the display style corresponding to the at least one query subregion to obtain the query image.

[0024] In a possible implementation, the number of the target query sub-regions is at least one, the measurement index of any target query sub-region includes a distance index of any target query sub-region, and the acquisition unit is further used to acquire the shortest distance between any target query sub-region and other query sub-regions except at least one target query sub-region, and use the shortest distance as the distance index of any target query sub-region;

[0025] The determining unit is further configured to determine, in response to a distance index of any target query sub-region being not less than a distance threshold, that any target query sub-region is a query sub-region satisfying the selection condition.

[0026] In a possible implementation, the number of the target query sub-regions is at least one, and the measurement index of any target query sub-region includes a height difference index of the any target query sub-region, and the acquisition unit is further used to determine an adjacent query sub-region of the any target query sub-region in the at least one target query sub-region; based on the difference between the projection line height of the any target query sub-region and the projection line height of the adjacent query sub-region, acquire the height difference index of the any target query sub-region;

[0027] The determining unit is further configured to determine, in response to a height difference index of any target query sub-region being not greater than a height difference threshold, that any target query sub-region is a query sub-region satisfying the selection condition.

[0028] On the other hand, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor so that the computer device implements any of the above-mentioned methods for displaying an interactive screen.

[0029] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor so that a computer implements any of the above-mentioned methods for displaying an interactive screen.

[0030] On the other hand, a computer program product is also provided, the computer program product comprising a computer program or computer instructions, the computer program or the computer instructions being loaded and executed by a processor so that a computer implements any of the above-mentioned methods for displaying an interactive screen.

[0031] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:

[0032] In the technical solution provided by the embodiment of the present application, the second virtual scene is selected from the first virtual scene. On the basis that the first interactive screen has been displayed, the first virtual scene has been loaded. When the second interactive screen needs to be displayed, the second interactive screen can be directly displayed based on the first virtual scene without the need to load the second virtual scene additionally. In this way, the efficiency of displaying the interactive screen is high, and the display fluency of the interactive screen is high, which is conducive to improving the human-computer interaction rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0034] Figure 1 It is a schematic diagram of an implementation environment for displaying an interactive screen provided by an embodiment of the present application;

[0035] Figure 2 is a flow chart of a method for displaying an interactive screen provided by an embodiment of the present application;

[0036] Figure 3 is a schematic diagram of a first interactive screen provided in an embodiment of the present application;

[0037] Figure 4 is a schematic diagram of a process of displaying a second interactive screen provided by an embodiment of the present application;

[0038] Figure 5 is a schematic diagram of a second interactive screen provided in an embodiment of the present application;

[0039] Figure 6 is a schematic diagram of a process of displaying a first interactive screen in response to the end of a second activity provided by an embodiment of the present application;

[0040] Figure 7 is a schematic diagram of a display process of an interactive screen provided in an embodiment of the present application;

[0041] Figure 8 is a schematic diagram of a cut-in process and a cut-out process provided in an embodiment of the present application;

[0042] Fig. 9 is a schematic diagram of a first virtual scene and a second virtual scene provided in an embodiment of the present application;

[0043] Fig.10 is a schematic diagram of a polygonal face marking result provided in an embodiment of the present application;

[0044] Fig.11 is a schematic diagram of a processing result provided in an embodiment of the present application;

[0045] Fig.12 is a schematic diagram of a processing result provided in an embodiment of the present application;

[0046] Fig.13 is a schematic diagram of a process of pixelating a large area provided by an embodiment of the present application;

[0047] Fig.14 is a schematic diagram of a processing result provided in an embodiment of the present application;

[0048] Fig.15 is a schematic diagram of a processing result provided in an embodiment of the present application;

[0049] Fig.16 is a schematic diagram of a mapping process provided in an embodiment of the present application;

[0050] Fig.17 is a schematic diagram of a query image provided by an embodiment of the present application;

[0051] Fig.18 is a virtual camera switching flow chart provided in an embodiment of the present application;

[0052] Fig.19 is a schematic diagram of a virtual camera switching process provided by an embodiment of the present application;

[0053] Fig. 20 is a schematic diagram of a process in which a first virtual object performs a first activity and then performs a second activity, provided in an embodiment of the present application;

[0054] Fig.21 is a schematic diagram of a device for displaying an interactive screen provided in an embodiment of the present application;

[0055] Fig. 22 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0057] The nouns involved in the embodiments of the present application are introduced as follows:

[0058] Virtual scene: A scene provided (or displayed) when an application is running on a terminal. The virtual scene refers to a scene created for virtual objects to perform activities. A virtual scene can be a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene. The virtual scene can be a simulation of the real world, a semi-simulated and semi-fictional scene, or a purely fictional scene. Exemplarily, a virtual scene can also be called a virtual environment.

[0059] Virtual object: refers to an object that can be moved in a virtual scene. The virtual object can be a virtual person, a virtual animal, an animated character, etc. The interactive object can manipulate the virtual object through external components or by clicking on the touch screen. Each virtual object has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene. For example, when the virtual scene is a three-dimensional virtual scene, the virtual object is a three-dimensional model created based on animation skeleton technology.

[0060] Competitive Interaction Scene: The virtual scene where the virtual objects are in when they are in a competitive interaction. In this scene, the virtual objects cannot move freely. The virtual objects can jump out of the competitive interaction scene and enter the world scene by defeating / escaping / being defeated.

[0061] World scene: The virtual scene where virtual objects perform daily exploration and other behaviors. In this scene, virtual objects can move freely. When virtual objects encounter competitive interactive objects in the world scene, they will enter the competitive interactive scene.

[0062] Procedural: To complete a large or complex task automatically rather than manually, such as asset generation (PCG (Procedural Content Generation)) or some real-time procedural parts of GamePlay (an engine).

[0063] Competition interaction point selection: By imposing some restrictions on the ground geometry environment of the world scene, the competition interaction scene is selected from the world scene.

[0064] Triangle: Art assets are composed of faces, which can be described as quadrilateral faces, curved surfaces, etc. when stored. For games, they are generally triangle meshes.

[0065] Figure 1 The schematic diagram of the implementation environment of the method for displaying an interactive screen provided in the embodiment of the present application is shown. The implementation environment includes: a terminal 11 and a server 12.

[0066] The terminal 11 is installed and runs an application that supports virtual scenes. The interactive object can use the terminal 11 to control the virtual object to perform activities in the virtual scene provided by the application, including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, competitive interaction with other virtual objects, throwing, changing positions, etc.

[0067] The embodiments of the present application do not limit the application programs that support virtual scenes. By way of example, the application programs that support virtual scenes include, but are not limited to: VR (Virtual Reality) applications, AR (Augmented Reality) applications, three-dimensional map applications, game applications, social applications, interactive entertainment applications, etc.

[0068] For example, game applications include but are not limited to shooting games, MOBA (Multiplayer Online Battle Arena) games, SLG (Simulation Game) games, etc. Shooting games refer to all games that use props for long-range attacks, including FPS (First-Person Shooting) games and TPS (Third-Person Shooting) games, but not limited to these.

[0069] In some embodiments, the application supporting the virtual scene can support at least one of the Windows operating system, the Apple operating system, the Android operating system, the IOS operating system, and the Linux operating system, and the application programs running in different operating systems can be interconnected. In some embodiments, the application supporting the virtual scene is an application developed based on a three-dimensional engine. In some embodiments, the application supporting the virtual scene is a stand-alone application, or a network-connected application.

[0070] The server 12 is used to provide background services for the application supporting virtual scenes installed in the terminal 11. In a possible implementation, the server 12 undertakes the main computing work and the terminal 11 undertakes the secondary computing work; or, the server 12 undertakes the secondary computing work and the terminal 11 undertakes the main computing work; or, the server 12 and the terminal 11 use a distributed computing architecture to perform collaborative computing.

[0071] In a possible implementation, the terminal 11 is any electronic product that can perform human-computer interaction with an interactive object through one or more methods such as a keyboard, a touchpad, a touch screen, a remote control, voice interaction, or a handwriting device, for example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a handheld portable game device, a PPC (Pocket PC), a tablet computer, a smart car machine, a smart TV, a smart speaker, a car terminal, etc. The server 12 can be a server, a server cluster consisting of multiple servers, or a cloud computing service center. The terminal 11 establishes a communication connection with the server 12 through a wired or wireless network.

[0072] Those skilled in the art should understand that the above-mentioned terminal 11 and server 12 are only examples, and other existing or future terminals or servers that are applicable to the present application should also be included in the protection scope of the present application and are included here by reference.

[0073] Based on the above Figure 1 In the implementation environment shown, the present application embodiment provides a method for displaying an interactive screen, taking the method applied to the terminal 11 as an example. Figure 2 As shown, the method for displaying an interactive screen provided in an embodiment of the present application includes the following steps 201 and 202.

[0074] In step 201, a first interaction screen is displayed, the first interaction screen including a first virtual scene, and the first virtual scene is a scene for a first virtual object to perform a first activity.

[0075] The interactive screen refers to the screen presented to the interactive object during the process of the interactive object controlling the virtual object to perform activities. The interactive screen may include the virtual scene in which the virtual object is located, the virtual object, the animation of the virtual object, etc. The content displayed in the interactive screen is determined based on the perspective of the virtual object controlled by the interactive object (referred to as the first virtual object in the embodiment of the present application). Optionally, the content displayed in the interactive screen is determined based on the first-person perspective of the first virtual object, or the content displayed in the interactive screen is determined based on the third-person perspective of the first virtual object.

[0076] In the embodiment of the present application, the application installed in the terminal can at least support the first virtual scene, and the application includes but is not limited to: VR application, AR application, three-dimensional map application, game application, social application, interactive entertainment application, etc. Exemplarily, game application includes but is not limited to FPS game, TPS game, MOBA game, SLG, etc.

[0077] The first virtual scene is a scene for the first virtual object to perform a first activity. The first activity is set according to experience or flexibly adjusted according to the application scenario, and the embodiments of the present application do not limit this. Exemplarily, the first activity includes but is not limited to adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, throwing, changing position, etc. Exemplarily, the first activity can also be called a daily exploration activity. The first virtual scene can also be called a world scene.

[0078] When the first virtual object performs the first activity, the first virtual object is in the first virtual scene, and the first interaction screen including the first virtual scene can be displayed on the screen of the terminal, so as to inform the interaction object by using the first interaction screen that the first virtual object is currently in the first virtual scene. The first interaction screen is used to present the situation that the first virtual object performs the first activity in the first virtual scene.

[0079] In an exemplary embodiment, the first interactive screen including the first virtual scene means that the first interactive screen includes part or all of the scenes in the first virtual scene. Exemplarily, which part of the scene in the first virtual scene is included in the first interactive screen is determined by the field of view of the first virtual camera. The first virtual camera is a virtual camera bound to the first virtual object in the first virtual scene and used to determine the visible range of the first virtual scene. It should be noted that the first virtual camera will not be presented on the screen of the terminal.

[0080] In an exemplary embodiment, in addition to the first virtual scene, the first interactive screen may also include the first virtual object and other virtual objects, etc., which are not limited in the embodiments of the present application. Other virtual objects may refer to virtual objects other than the first virtual object within the field of view of the first virtual camera, and other virtual objects may include virtual objects in the same camp as the first virtual object, or virtual objects in different camps from the first virtual object, etc., which are not limited in the embodiments of the present application.

[0081] During the process of the first virtual object performing the first activity, the content displayed in the first interactive screen may be continuously updated as time goes by, but always includes the first virtual scene.

[0082] In an exemplary embodiment, in addition to being able to perform the first activity, the first virtual object can also perform a second activity, the second activity is an activity different from the first activity, the second activity is set based on experience, or flexibly adjusted according to the application scenario, and the embodiments of the present application do not limit this. Exemplarily, the second activity includes the first virtual object and the second virtual object interacting competitively, the second virtual object is any virtual object in an opposing camp to the first virtual object, and the first virtual object can interact competitively with the second virtual object. Exemplarily, the second activity includes the first virtual object changing its outfit or changing its equipment, etc.

[0083] In the embodiment of the present application, the scene for the first virtual object to perform the second activity is different from the scene for the first virtual object to perform the first activity, so as to enrich the virtual scene and thus improve the interactive experience of the interactive object. In the embodiment of the present application, the scene for the first virtual object to perform the second activity is referred to as the second virtual scene. Exemplarily, in the case where the second activity is a competitive interaction between the first virtual object and the second virtual object, the second virtual scene can also be referred to as a competitive interaction scene.

[0084] After the first interactive screen is displayed, it can be detected whether an activation operation of the second activity is obtained. The activation operation of the second activity indicates that the first virtual object needs to perform the second activity, that is, it indicates that the scene where the first virtual object is located needs to be switched from the first virtual scene to the second virtual scene. If the activation operation of the second activity is obtained, step 202 is executed. If the activation operation of the second activity is not obtained, the first interactive screen continues to be displayed.

[0085] The method for obtaining the activation operation of the second activity is set according to experience, or flexibly adjusted according to the application scenario, and the embodiment of the present application does not limit this.

[0086] In an exemplary embodiment, the method for acquiring the activation operation of the second activity includes: displaying an activation entrance of the second activity, and acquiring the activation operation of the second activity in response to a trigger operation of the activation entrance. The activation entrance of the second activity is used to activate the second activity, and the activation entrance of the second activity enables the interactive object to confirm whether to control the first virtual object to perform the second activity. If the trigger operation of the activation entrance of the second activity is acquired, it means that the interactive object confirms to control the first virtual object to perform the second activity, that is, it means that the first virtual scene needs to be switched to the second virtual scene, so as to acquire the activation operation of the second activity.

[0087] The embodiment of the present application does not limit the expression form of the activation entrance of the second activity. For example, the expression form of the activation entrance of the second activity can be a triggerable icon; or, the expression form of the activation entrance of the second activity can be a button control, etc. For example, the activation entrance of the second activity can be an element embedded in the first interactive screen, or can be superimposed and displayed on the first interactive screen, etc., and the embodiment of the present application does not limit this.

[0088] The embodiment of the present application does not limit the display timing of the activation entrance of the second activity. Exemplarily, in response to the duration that the first virtual object has been in the first virtual scene reaching a reference duration, the activation entrance of the second activity is displayed. The reference duration is set based on experience or flexibly adjusted according to the application scenario. The embodiment of the present application does not limit this.

[0089] Exemplarily, in the case where the second activity is a competitive interaction between the first virtual object and the second virtual object, in response to the presence of the second virtual object within the specified range of the position of the first virtual object in the first virtual scene, an activation entrance for the second activity is displayed. The specified range is set based on experience or flexibly adjusted according to the application scenario. Exemplarily, the specified range is a circular range with the position of the first virtual object in the first virtual scene as the center and the specified value as the radius; or the specified range is a square range with the position of the first virtual object in the first virtual scene as the center and the first value as the side length, etc.

[0090] It should be noted that the above is only an exemplary description of a method for obtaining the activation operation of the second activity, and the embodiments of the present application are not limited thereto. In some embodiments, the activation operation of the second activity may also be obtained in other ways.

[0091] Exemplarily, in the case where the second activity is a competitive interaction between the first virtual object and the second virtual object, the method of obtaining the activation operation of the second activity may also include: in response to the presence of the second virtual object within a specified range of the position of the first virtual object in the first virtual scene, obtaining the activation operation of the second activity; or, in response to the distance between the first virtual object and the second virtual object being no greater than a specified distance, obtaining the activation operation of the second activity.

[0092] Exemplarily, the method of obtaining the activation operation of the second activity may also include: in response to the first virtual object performing a target action in the first virtual scene, obtaining the activation operation of the second activity. The target action is a pre-set action for triggering the activation operation of the second activity, and the target action is set based on experience or flexibly adjusted according to the application scenario. Exemplarily, the target action may refer to an action of releasing a virtual pet, releasing a specified skill, or using a specified prop, etc.

[0093] Exemplarily, the method of obtaining the activation operation of the second activity may also include: obtaining the activation operation of the second activity in response to a target shortcut operation. The target shortcut operation is a preset shortcut operation for triggering the activation operation of the second activity, such as a slide operation, a long press operation, a double-click operation, etc.

[0094] For example, the first interactive screen is as follows: Figure 3 As shown, in Figure 3 The first interactive screen shown in (1) and (2) includes a first virtual scene 301, a first virtual object 302, and a second virtual object 303. Figure 3 On the first interactive screen shown in (2), an activation entry 304 of the second activity is also superimposed and displayed, and in response to the triggering operation of the activation entry 304 of the second activity, the activation operation of the second activity is obtained. The activation entry 304 of the second activity can be expressed as a triggerable icon or a button control.

[0095] In step 202, in response to the activation operation of the second activity, a second interactive screen is displayed based on the first virtual scene, the second interactive screen includes a second virtual scene, the second virtual scene is a scene for the first virtual object to perform the second activity, and the second virtual scene is selected from the first virtual scene.

[0096] After obtaining the activation operation of the second activity, it means that the interactive object wants to control the first virtual object to perform the second activity. Since the scene for the first virtual object to perform the second activity is the second virtual scene, it is necessary to display the second interactive screen including the second virtual scene, so as to use the second interactive screen to prompt the interactive object that the virtual scene currently in which the first virtual object is located is the second virtual scene. The second interactive screen is used to present the situation that the first virtual object performs the second activity in the second virtual scene.

[0097] In an exemplary embodiment, the second interactive screen including the second virtual scene means that the second interactive screen includes part or all of the scenes in the second virtual scene. Exemplarily, which part of the scene in the second virtual scene is included in the second interactive screen is determined by the field of view of the second virtual camera. The second virtual camera is a virtual camera bound to the first virtual object in the second virtual scene and used to determine the visible range of the second virtual scene. It should be noted that the second virtual camera will not be presented on the screen of the terminal.

[0098] It should be noted that the first virtual object in the second virtual scene can be obtained by moving the first virtual object in the first virtual scene to the second virtual scene, or by constructing a virtual object that is exactly the same as the first virtual object in the first virtual scene. This embodiment of the present application is not limited to this.

[0099] In an exemplary embodiment, in addition to the second virtual scene, the second interactive screen may also include the first virtual object and other virtual objects, etc., which are not limited in the embodiments of the present application. Other virtual objects may refer to virtual objects other than the first virtual object within the field of view of the second virtual camera, and other virtual objects may include virtual objects in the same camp as the first virtual object, or virtual objects in different camps from the first virtual object, etc., which are not limited in the embodiments of the present application.

[0100] Exemplarily, in the case where the second activity is a competitive interaction between the first virtual object and the second virtual object, the second interactive screen includes the first virtual object and the second virtual object, so as to present the competitive interaction between the first virtual object and the second virtual object through the second interactive screen. Exemplarily, the second interactive screen including the first virtual object may mean that the second interactive screen includes the first virtual object itself, or may mean that the second interactive screen includes a virtual pet used by the first virtual object for competitive interaction with the second virtual object, etc., which is not limited in the embodiments of the present application.

[0101] Exemplarily, the competitive interaction between the first virtual object and the second virtual object is a turn-based method, that is, one of the first virtual object and the second virtual object is in an attacking state, and the other virtual object is in an attacked state, and the virtual objects included in the interactive screen are virtual objects that match the corresponding states.

[0102] In an exemplary embodiment, when the second activity is a competitive interaction between the first virtual object and the second virtual object, at least one control may be displayed while displaying the second interactive screen, and different controls are used to implement different functions. For example, when the first virtual object is in an attacking state, at least one prop or at least one skill may be displayed for the interactive object to select.

[0103] In the embodiment of the present application, the second virtual scene is selected from the first virtual scene, and the second interactive screen is displayed based on the first virtual scene. On the basis that the first interactive screen has been displayed, the first virtual scene has been loaded, so that the second virtual scene can be directly selected from the first virtual scene, and then the second interactive screen can be directly displayed based on the first virtual scene, without the need to load the second virtual scene additionally. The efficiency of displaying the second interactive screen is high, and the display smoothness of the interactive screen is high, which is conducive to improving the human-computer interaction rate. In other words, the second virtual scene is selected from the first virtual scene and does not need to be loaded.

[0104] Exemplarily, displaying the second interactive screen based on the first virtual scene means first selecting the second virtual scene from the first virtual scene, and then displaying the second interactive screen including the second virtual scene. The second virtual scene is a scene in the first virtual scene suitable for the first virtual object to perform the second activity. The process of selecting the second virtual scene from the first virtual scene will be described in detail below and will not be described here.

[0105] In a possible implementation, in response to the activation operation of the second activity, displaying the second interaction screen based on the first virtual scene may be implemented by: in response to the activation operation of the second activity, directly displaying the second interaction screen based on the first virtual scene.

[0106] In one possible implementation, in response to the activation operation of the second activity, the implementation method of displaying the second interactive screen based on the first virtual scene can also be: in response to the activation operation of the second activity, other interactive screens are displayed first, and when certain conditions are met, the second interactive screen is displayed based on the first virtual scene. In this way, the displayed interactive screens can be enriched and the visual effects of the interactive objects can be improved. The content of other interactive screens displayed and the conditions that need to be met for displaying the second interactive screen based on the first virtual scene are set according to experience, or flexibly adjusted according to the application scenario, the type of the second activity, etc., and the embodiments of the present application are not limited to this.

[0107] Next, taking the example of the second activity including the competitive interaction between the first virtual object and the second virtual object, the implementation process of first displaying other interactive screens in response to the activation operation of the second activity, and then displaying the second interactive screen based on the first virtual scene when certain conditions are met is exemplified.

[0108] In an exemplary embodiment, in response to the activation operation of the second activity, other interactive screens are displayed first, and when certain conditions are met, the second interactive screen is displayed based on the first virtual scene. The implementation process includes: in response to the activation operation of the second activity, the third interactive screen is displayed, and the third interactive screen includes the first animation of the second virtual object; in response to the first animation of the second virtual object being displayed, the second interactive screen is displayed based on the first virtual scene.

[0109] The first animation of the second virtual object is used to highlight the second virtual object. Exemplarily, the first animation of the second virtual object is a close-up animation of the second virtual object. The first animation of the second virtual object is set according to experience, or flexibly adjusted according to the application scenario, which is not limited in the embodiment of the present application. By displaying the third interactive screen, the display of the first animation of the second virtual object can be completed. In response to the completion of the display of the first animation of the second virtual object, the second interactive screen is displayed based on the first virtual scene.

[0110] Exemplarily, the first animation of the second virtual object is composed of a plurality of animation frames, each of which includes the second virtual object, and the postures of the second virtual objects included in different animation frames may be the same or different. By displaying the third interactive screen, the animation frames constituting the first animation of the second virtual object can be displayed in sequence, thereby realizing the display of the first animation of the second virtual object.

[0111] Exemplarily, in addition to the first animation of the second virtual object, the third interactive screen may also include the first virtual scene, or the second virtual scene, which is not limited in the embodiment of the present application.

[0112] Exemplarily, in the case where the first animation of the second virtual object is an animation that needs to be displayed before the first virtual scene is switched to the second virtual scene, the third interactive screen also includes the first virtual scene. In this case, the third interactive screen is a screen displayed before the first virtual scene is switched to the second virtual scene. Exemplarily, in the case where the first animation of the second virtual object is an animation that needs to be displayed after the first virtual scene is switched to the second virtual scene, the third interactive screen also includes the second virtual scene. In this case, the third interactive screen is a screen displayed after the first virtual scene is switched to the second virtual scene.

[0113] Exemplarily, in response to the completion of the first animation display of the second virtual object, the implementation process of displaying the second interactive screen based on the first virtual scene may be: in response to the completion of the first animation display of the second virtual object, directly displaying the second interactive screen based on the first virtual scene.

[0114] Exemplarily, in response to the completion of the first animation of the second virtual object, the implementation process of displaying the second interactive screen based on the first virtual scene can also be: in response to the completion of the first animation of the second virtual object, displaying the fourth interactive screen, the fourth interactive screen including the first animation of the first virtual object; in response to the completion of the first animation of the first virtual object, displaying the second interactive screen based on the first virtual scene.

[0115] The first animation of the first virtual object is used to highlight the first virtual object. Exemplarily, the first animation of the first virtual object is a first close-up animation of the first virtual object. The first animation of the first virtual object is set according to experience, or flexibly adjusted according to the application scenario, which is not limited in the embodiments of the present application. By displaying the fourth interactive screen, the display of the first animation of the first virtual object can be completed. In response to the completion of the display of the first animation of the first virtual object, a second interactive screen is displayed based on the first virtual scene.

[0116] Exemplarily, the first animation of the first virtual object is composed of multiple animation frames, each of which includes the first virtual object, and the postures of the first virtual objects included in different animation frames may be the same or different. By displaying the fourth interactive screen, the animation frames constituting the first animation of the first virtual object can be displayed in sequence, thereby realizing the display of the first animation of the first virtual object.

[0117] Exemplarily, the fourth interaction screen may include a virtual scene in addition to the first animation of the first virtual object, and the virtual scene included in the fourth interaction screen is related to the virtual scene included in the third interaction screen.

[0118] For example, if the third interactive screen also includes the first virtual scene, the fourth interactive screen may include the first virtual scene or the second virtual scene; if the third interactive screen also includes the second virtual scene, the second interactive screen includes the second virtual scene. In this way, the visual abruptness caused by the virtual scene included in the fourth interactive screen can be avoided.

[0119] For example, if the third interactive screen includes the second virtual scene and the fourth interactive screen includes the first virtual scene, then when changing from the first interactive screen to the third interactive screen, from the third interactive screen to the fourth interactive screen, and from the fourth interactive screen to the second interactive screen, the interactive object will have a visual experience of switching virtual scenes. Frequent switching of the visual experience of virtual scenes will increase the visual abruptness.

[0120] That is to say, in the implementation mode of displaying the third interactive screen first and then the fourth interactive screen, the virtual scene included in the third interactive screen and the virtual scene included in the fourth interactive screen include the following three situations:

[0121] Case 1: the third interactive screen also includes the first virtual scene, and the fourth interactive screen also includes the first virtual scene.

[0122] In this situation, which may occur when the first animation of the second virtual object and the first animation of the first virtual object are both animations that need to be displayed before switching the first virtual scene to the second virtual scene, the third interaction screen and the fourth interaction screen are both screens displayed before switching the first virtual scene to the second virtual scene.

[0123] Case 2: The third interactive screen also includes the first virtual scene, and the fourth interactive screen also includes the second virtual scene.

[0124] In this situation two, which may occur when the first animation of the second virtual object is an animation that needs to be displayed before switching the first virtual scene to the second virtual scene, and the first animation of the first virtual object is an animation that needs to be displayed after switching the first virtual scene to the second virtual scene, the third interactive screen is the screen displayed before switching the first virtual scene to the second virtual scene, and the fourth interactive screen is the screen displayed after switching the first virtual scene to the second virtual scene.

[0125] Case 3: The third interactive screen also includes the second virtual scene, and the fourth interactive screen also includes the second virtual scene.

[0126] In this situation three, which can occur when the first animation of the second virtual object and the first animation of the first virtual object are both animations that need to be displayed after the first virtual scene is switched to the second virtual scene, the third interaction screen and the fourth interaction screen are both screens displayed after the first virtual scene is switched to the second virtual scene.

[0127] Exemplarily, the process of displaying the second interactive screen is as follows: Figure 4 In response to the activation operation of the second activity, the display is as shown. Figure 4 The third interactive screen shown in (1) includes a first virtual scene 401 and a first animation 402 of a second virtual object. It should be noted that: Figure 4 The first animation 402 of the second virtual object shown in (1) refers to an animation frame in the first animation of the second virtual object, and does not fully show the first animation of the second virtual object. In the process of displaying the first animation of the second virtual object through the third interactive screen, the animation frames displayed in the third interactive screen are constantly changing, thereby giving the interactive object a visual experience of watching animation.

[0128] In response to the first animation of the second virtual object being displayed, the following is displayed: Figure 4 The fourth interactive screen shown in (2) includes a second virtual scene 403 and a first animation 404 of a first virtual object. It should be noted that: Figure 4 The first animation 404 of the first virtual object shown in (2) refers to an animation frame in the first animation of the first virtual object, and does not fully show the first animation of the first virtual object. In the process of displaying the first animation of the first virtual object through the fourth interactive screen, the animation frames displayed in the fourth interactive screen are constantly changing, thereby giving the interactive object a visual experience of watching animation.

[0129] In response to the first animation display of the first virtual object being completed, the first virtual scene is displayed as follows Figure 4The second interactive screen shown in (3) includes a second virtual scene 405, a virtual pet 406 used by the first virtual object to interact with the second virtual object in competition, and a second virtual object 407. Multiple controls and multiple skills are superimposed on the second interactive screen.

[0130] In an exemplary embodiment, in response to the activation operation of the second activity, other interactive screens are displayed first, and when certain conditions are met, the second interactive screen is displayed based on the first virtual scene. The implementation process includes: in response to the activation operation of the second activity, a fourth interactive screen is displayed, and the fourth interactive screen includes a first animation of the first virtual object; in response to the first animation of the first virtual object being displayed, the second interactive screen is displayed based on the first virtual scene.

[0131] Exemplarily, in response to the first animation of the first virtual object being displayed, the implementation process of displaying the second interactive screen based on the first virtual scene may be: in response to the first animation of the first virtual object being displayed, directly displaying the second interactive screen based on the first virtual scene. Exemplarily, in response to the first animation of the first virtual object being displayed, the implementation process of displaying the second interactive screen based on the first virtual scene may also be: in response to the first animation of the first virtual object being displayed, displaying the third interactive screen, the third interactive screen including the first animation of the second virtual object; in response to the first animation of the second virtual object being displayed, displaying the second interactive screen based on the first virtual scene.

[0132] Exemplarily, in the implementation method of displaying the fourth interactive screen first and then displaying the third interactive screen, the virtual scene included in the fourth interactive screen and the virtual scene included in the third interactive screen may have three situations: the fourth interactive screen also includes the first virtual scene, and the third interactive screen also includes the first virtual scene; or, the fourth interactive screen also includes the first virtual scene, and the third interactive screen also includes the second virtual scene; or again, the fourth interactive screen also includes the second virtual scene, and the third interactive screen also includes the second virtual scene.

[0133] The implementation principle of displaying only the fourth interactive screen between the first interactive screen and the second interactive screen, or displaying the fourth interactive screen first and then displaying the third interactive screen, is the same as the implementation principle of displaying only the third interactive screen between the first interactive screen and the second interactive screen, or displaying the third interactive screen first and then displaying the fourth interactive screen, and will not be repeated here.

[0134] In an exemplary embodiment, in response to the activation operation of the second activity, other interaction screens are displayed first, and when certain conditions are met, the implementation process of displaying the second interaction screen based on the first virtual scene includes: in response to the activation operation of the second activity, the target interaction screen is displayed, and the target interaction screen includes the first animation of the first virtual object and the first animation of the second virtual object; in response to the first animation of the first virtual object and the first animation of the second virtual object being displayed, the second interaction screen is displayed based on the first virtual scene.

[0135] In an embodiment of the present application, before displaying the second interactive screen, that is, before switching the virtual scene in which the first virtual object is located from the first virtual scene to the second virtual scene, displaying the first animation of the second virtual object and / or the first animation of the first virtual object can attract the interactive object's attention to the animation and reduce the interactive object's attention to the switching process of the virtual scene, thereby helping to reduce the visual abruptness brought to the interactive object by the switching of the virtual scene, improve the interactive experience of the interactive object, and thereby improve the human-computer interaction rate.

[0136] It should be noted that the above description only takes the second activity as the competitive interaction between the first virtual object and the second virtual object as an example, and illustrates the implementation process of first displaying other interactive screens in response to the activation operation of the second activity, and then displaying the second interactive screen based on the first virtual scene when certain conditions are met. The embodiments of the present application are not limited to this. In the case where the second activity is other activities, the content of the other interactive screens displayed and the conditions that need to be met for displaying the second interactive screen based on the first virtual scene can also be other situations, and the embodiments of the present application will not be repeated here one by one.

[0137] In a possible implementation, during the process of the first virtual object performing the second activity, the content displayed in the second interactive screen may be continuously updated as time goes by, but all include the second virtual scene.

[0138] In an exemplary embodiment, after displaying the second interactive screen based on the first virtual scene, the method further includes: in response to the end of the second activity, displaying the first interactive screen. That is, when it is determined that the second activity is over, it is necessary to exit the second virtual scene, that is, switch the second virtual scene back to the first virtual scene, and at this time, display the first interactive screen including the first virtual scene, so as to use the first interactive screen to inform the interactive object that the virtual scene currently located by the first virtual object is the first virtual scene.

[0139] The present application does not limit the method for determining the end of the second activity, and it can be flexibly set according to the type of the second activity. Exemplarily, for the case where the second activity is a competitive interaction between the first virtual object and the second virtual object, the method for determining the end of the second activity includes: in response to the virtual life value of the first virtual object being lower than the first threshold, or in response to the virtual life value of the second virtual object being lower than the first threshold, determining the end of the second activity. Exemplarily, the virtual life value of the virtual object is the first value before the competitive interaction, and during the competitive interaction, the virtual life value of the attacked virtual object will decrease until it is lower than the first threshold. Exemplarily, if the virtual life value of the first virtual object is lower than the first threshold, it means that the first virtual object has failed in the competitive interaction process; if the virtual life value of the second virtual object is lower than the first threshold, it means that the second virtual object has failed in the competitive interaction process. Both the first value and the first threshold can be set according to experience, or flexibly adjusted according to the application scenario, for example, the first value is 100 and the first threshold is 0.

[0140] For example, if the virtual health value of a virtual object is lower than the first threshold, the virtual object can be displayed in the second interactive screen by displaying a disappearing special effect. The disappearing special effect is used to indicate that the virtual object has failed in the competitive interaction process. The disappearing special effect is set based on experience or flexibly adjusted according to the application scenario, and the embodiments of the present application do not limit this. For example, if Figure 5 As shown in (1), if the virtual health value of the second virtual object is lower than the first threshold, the second virtual object is displayed in the second interactive screen by displaying a disappearing special effect 501.

[0141] For example, if the virtual health value of a virtual object is lower than the first threshold, in the second interactive screen, in addition to displaying the virtual object by using the disappearing special effect, another virtual object can also be displayed by displaying the enhanced special effect. The enhanced special effect is used to indicate that the virtual object has won the competitive interaction. The enhanced special effect is set based on experience or flexibly adjusted according to the application scenario, and the embodiments of the present application do not limit this. For example, if Figure 5 As shown in (2), if the virtual health value of the second virtual object is lower than the first threshold, the second virtual object is displayed by displaying a disappearing special effect 502, and the first virtual object is displayed by displaying an enhancing special effect 503 in the second interactive screen.

[0142] Exemplarily, when the second activity is a first virtual object changing its appearance, the method for determining the end of the second activity includes: in response to the first virtual object's appearance changing being completed, determining the end of the second activity. Of course, in some embodiments, when the second activity is other activities, the method for determining the end of the second activity may also be other methods.

[0143] Exemplarily, the method of determining the end of the second activity may further include: in response to the first virtual object performing a reference action in the second virtual scene, determining the end of the second activity. The reference action is a pre-set action for indicating the end of the second activity. Exemplarily, the reference action is an action of retracting a virtual pet, an action of continuous jumping, etc.

[0144] Exemplarily, the method of determining the end of the second activity may further include: determining the end of the second activity in response to a trigger operation of an exit control of the second activity. The exit control of the second activity is used to indicate that the first virtual object no longer performs the second activity. If the trigger operation of the exit control of the second activity is obtained, the end of the second activity is determined.

[0145] Of course, in some embodiments, the method for determining the end of the second activity may also be other methods, which will not be described in detail in the embodiments of the present application.

[0146] After determining that the second activity ends, in response to the second activity ending, the first interaction screen is displayed. In an exemplary embodiment, in response to the second activity ending, the first interaction screen is displayed by directly displaying the first interaction screen.

[0147] In an exemplary embodiment, in response to the end of the second activity, the implementation method of displaying the first interaction screen can also be: in response to the end of the second activity, displaying the fifth interaction screen, the fifth interaction screen includes the second animation of the first virtual object; in response to the completion of the display of the second animation of the first virtual object, displaying the first interaction screen.

[0148] The second animation of the first virtual object is an animation that needs to be displayed after the second activity ends. The fifth interactive screen includes the second animation of the first virtual object. The number of second animations of the first virtual object is one or more, which is not limited in the embodiment of the present application. By displaying the fifth interactive screen, the display of each second animation of the first virtual object can be completed in sequence. In the case where the number of second animations of the first virtual object is multiple, the display of the second animation in response to the first virtual object means that the display of each second animation in response to the first virtual object has been completed.

[0149] Exemplarily, in the case where there are multiple second animations of the first virtual object, different second animations have different display orders. Different second animations are used to highlight the first virtual object from different angles. Exemplarily, any second animation may be the same as the first animation of the first virtual object, or each second animation is different from the first animation of the first virtual object. The number of second animations of the first virtual object and the content of each second animation are set based on experience or flexibly adjusted according to the application scenario, and the embodiments of the present application do not limit this.

[0150] It should be noted that the fifth interactive screen may include a virtual scene in addition to the second animation of the first virtual object. If the number of the second animation of the first virtual object is one, the fifth interactive screen may include the second virtual scene or the first virtual scene.

[0151] For the case where there are multiple second animations of the first virtual object, the fifth interactive screen of each second animation also includes the second virtual scene; or, the fifth interactive screen of each second animation also includes the first virtual scene; or, the fifth interactive screen of the second animation with an earlier display order also includes the second virtual scene, and the fifth interactive screen of the second animation with a later display order also includes the first virtual scene.

[0152] In an exemplary embodiment, taking the second activity as a competitive interaction between the first virtual object and the second virtual object, and the result of the competitive activity is the victory of the first virtual object as an example, the number of second animations of the first virtual object can be three, and in the order of display from front to back, the first second animation is used to prompt that the result of the competitive interaction of the first virtual object is a victory in the second virtual scene, the second second animation is used to take a close-up of the first virtual object in the first virtual scene, and the third second animation is used to prompt that the result of the competitive interaction of the first virtual object is a victory in the first virtual scene. In other words, the first second animation is the animation that needs to be displayed before switching the second virtual scene back to the first virtual scene, and the second second animation and the third second animation are both animations that need to be displayed after switching the second virtual scene back to the first virtual scene.

[0153] Exemplarily, the fifth interactive screen including the first second animation also includes the second virtual scene; the fifth interactive screen including the second second animation also includes the first virtual scene; and the fifth interactive screen including the third second animation also includes the first virtual scene.

[0154] In an exemplary embodiment, for a case where the second activity is a competitive interaction between a first virtual object and a second virtual object, the first interaction screen may also include settlement information of the competitive interaction between the first virtual object and the second virtual object, so as to prompt the interacting objects of the resources acquired or lost by the first virtual object in the process of the competitive interaction with the second virtual object.

[0155] For example, taking the number of the second animations of the first virtual object as three, in response to the end of the second activity, the process of displaying the first interactive screen is as follows: Figure 6 In response to the second activity ending, the following is displayed: Figure 6 The fifth interactive screen shown in (1) in FIG. Figure 6The fifth interactive screen shown in (1) includes the first second animation 601 and the second virtual scene 602. In response to the first second animation being displayed, the following is displayed: Figure 6 The fifth interactive screen shown in (2) in FIG. Figure 6 The fifth interactive screen shown in (2) includes the second second animation 603 and the first virtual scene 604. In response to the second second animation being displayed, the following is displayed: Figure 6 The fifth interactive screen shown in (3) in FIG. Figure 6 The fifth interactive screen shown in (3) includes a third second animation 605 and a first virtual scene 606.

[0156] It should be noted that Figure 6 The first second animation 601 shown in (1) refers to an animation frame in the first second animation of the first virtual object, and does not completely show the first second animation of the first virtual object; Figure 6 The second second animation 603 shown in (2) refers to an animation frame in the second second animation of the first virtual object, and does not fully show the second second animation of the first virtual object; Figure 6 The third second animation 605 shown in (3) refers to an animation frame in the third second animation of the first virtual object, and does not fully show the third second animation of the first virtual object. In the process of sequentially displaying the second animations of the first virtual object through the fifth interactive screen, the animation frames displayed in the fifth interactive screen are constantly changing, thereby giving the interactive object a visual experience of watching animation.

[0157] For example, Figure 6 The visual range of the first virtual scene 606 included in the fifth interactive screen shown in (3) is Figure 6 The first virtual scene 604 included in the fifth interactive screen shown in (2) has a large field of view, so Figure 6 The fifth interactive screen shown in (2) can be regarded as being rendered based on the first virtual camera close to the first virtual object. Figure 6 The fifth interactive screen shown in (3) can be considered as being rendered based on the homed first virtual camera.

[0158] In response to the third second animation being displayed, the following is displayed: Figure 6 The first interactive screen shown in (4) or (5) in Figure 6 The first interactive screens shown in (4) and (5) both include a first virtual object 607 and a first virtual scene 608. Figure 6 The first interactive screen shown in (5) also includes settlement information 609.

[0159] In an embodiment of the present application, before returning to displaying the first interactive screen, that is, before switching the virtual scene where the first virtual object is located from the second virtual scene back to the first virtual scene, displaying the second animation of the first virtual object can attract the interactive object's attention to the animation and reduce the interactive object's attention to the switching process of the virtual scene, thereby helping to reduce the visual abruptness brought to the interactive object by the switching of the virtual scene, improve the interactive experience of the interactive object, and thereby improve the human-computer interaction rate.

[0160] For example, the display process of the interactive screen is as follows: Figure 7 As shown. When the first virtual object performs a first activity in the first virtual scene, a first interaction screen is displayed. When the first virtual object encounters a second virtual object in the first virtual scene, it is determined whether to activate the second activity. In response to not activating the second activity, the first interaction screen continues to be displayed. In response to activating the second activity, the first animation of the second virtual object and the first animation of the first virtual object are displayed in sequence by displaying a third interaction screen and a fourth interaction screen. Among them, the first animation of the second virtual object is displayed before the first virtual scene is switched to the second virtual scene, and the first animation of the first virtual object is displayed after the first virtual scene is switched to the second virtual scene.

[0161] In response to the first animation of the first virtual object being displayed, a second interactive screen is displayed based on the first virtual scene to indicate that the first virtual object is performing a second activity in the second virtual scene. It is determined whether the second activity is ended, and in response to the second activity not being ended, the second interactive screen continues to be displayed. In response to the second activity being ended, the second animation of the first virtual object is displayed by displaying a fifth interactive screen. There are multiple second animations of the first virtual object, part of which is displayed before the second virtual scene is switched back to the first virtual scene, and the remaining part of the second animation is displayed after the second virtual scene is switched back to the first virtual scene. In response to the second animation of the first virtual object being displayed, the first interactive screen is displayed to indicate that the first virtual object returns to the first virtual scene to perform the first activity.

[0162] Exemplarily, the display process of the interactive screen can be divided into a process of switching the first virtual scene to the second virtual scene (switching-in process) and a process of switching the second virtual scene back to the first virtual scene (switching-out process). The switching-in process and the switching-out process can be respectively as follows: Figure 8As shown in (1) and (2) in . The switching-in process includes: in response to the activation of the second activity, by displaying the third interactive screen and the fourth interactive screen, the first animation of the second virtual object and the first animation of the first virtual object are displayed in sequence. In response to the completion of the display of the first animation of the first virtual object, the second interactive screen is displayed based on the first virtual scene to indicate that the first virtual object performs the second activity in the second virtual scene. The switching-out process includes: in response to the end of the second activity, by displaying the fifth interactive screen, the second animation of the first virtual object is displayed; in response to the completion of the display of the second animation of the first virtual object, the first interactive screen is displayed to indicate that the first virtual object returns to the first virtual scene to perform the first activity.

[0163] During the cut-in process, after the first virtual object encounters the second virtual object in the first virtual scene, the virtual scene is switched through a close-up of the virtual object without any black screen or white screen processing. For example, the close-up of the virtual object can be achieved by controlling the distance change between the virtual camera and the virtual object. During the cut-out process, after the second activity ends, the same set of animations is used to switch the scene behind when switching the lens.

[0164] For example, since the second virtual scene is selected from the first virtual scene, the second virtual scene is the same scene as the first virtual scene, and the difference in landscape is almost negligible. Fig. 9 As shown in the virtual scene 901 in (1), the second virtual scene is as follows Fig. 9 As shown in the virtual scene 902 in (2), the difference between the first virtual scene and the second virtual scene is mainly reflected in the field of view, and there is almost no difference in the landscape.

[0165] The process of switching the first virtual scene and the second virtual scene provided in the embodiment of the present application does not need to be reloaded, but directly selects a suitable scene from the first virtual scene as the second virtual scene. By coordinating artistic expression (such as displaying animation, etc.) and lens language, the scene where the first virtual object is located can be quickly switched while the subject (such as the first virtual object, the second virtual object, etc.) is always present on the screen, which can avoid black screen or white screen. At the same time, the selection algorithm of the second virtual scene makes the second virtual scene as close as possible to the first virtual scene, achieving a "seamless" smooth experience. Based on the display method of the interactive screen provided in the embodiment of the present application, the immersion of the interactive object performing the first activity in the first virtual scene and the second activity in the second virtual scene will not be interrupted by the scene switching. From the perspective of the interactive object, the entire scene switching process is "integrated" rather than fragmented, thereby enhancing the sense of immersion of the interactive object and enhancing the fun of the game.

[0166] In the method for displaying an interactive screen provided by the embodiment of the present application, the second virtual scene is selected from the first virtual scene. On the basis that the first interactive screen has been displayed, the first virtual scene has been loaded. When the second interactive screen needs to be displayed, the second interactive screen can be directly displayed based on the first virtual scene without the need to load the second virtual scene additionally. In this way, the efficiency of displaying the interactive screen is high, and the display fluency of the interactive screen is high, which is conducive to improving the human-computer interaction rate.

[0167] Next, the implementation process of selecting the second virtual scene from the first virtual scene is introduced. Exemplarily, the implementation process of selecting the second virtual scene from the first virtual scene includes: in response to the activation operation of the second activity, determining the first position of the first virtual object in the first virtual scene; determining the target position matching the first position, and taking the scene in the first virtual scene within the selection range as the second virtual scene. The selection range is a range including the target position.

[0168] The first position refers to the position of the first virtual object in the first virtual scene when the activation operation of the second activity is obtained. After determining the first position, a target position matching the first position is determined, and then the scene in the first virtual scene within a reference range including the target position is used as the second virtual scene.

[0169] The target position refers to a position that matches the first position and can be used to assist in selecting the second virtual scene. The type and size of the reference range are set according to experience, or flexibly adjusted according to the application scenario. The embodiments of the present application do not limit this, as long as the reference range includes the target position. Exemplarily, the reference range refers to a circular range with the target position as the center and the reference value as the radius. Exemplarily, the reference range refers to a rectangular range with the target position as the center and the first target value and the second target value as the side length. Exemplarily, the reference range refers to a fan-shaped range with the target position as the starting point, facing the specified direction and the angle being the specified angle. The reference value, the first target value, the second target value, the specified direction and the specified angle are set according to experience, or flexibly adjusted according to the application scenario. The embodiments of the present application do not limit this.

[0170] According to the above content, after the target position is determined, the second virtual scene can be selected from the first virtual scene. Next, the implementation method of determining the target position matching the first position is introduced.

[0171] In a possible implementation, the terminal records the matching positions of various positions in the first virtual scene, and the matching position of the first position can be used as the target position that matches the first position.

[0172] In one possible implementation, the implementation method of determining the target position matching the first position includes: if the first position meets the reliability condition, the first position is used as the target position; if the first position does not meet the reliability condition, the position closest to the first position among the positions that meet the reliability condition is used as the target position. Exemplarily, the embodiment of the present application does not limit the calculation method of the distance between the two positions. Exemplarily, the Euclidean distance between the two positions can be calculated.

[0173] The reliability condition is used to measure the reliability of the position in the first virtual scene. If a position in the first virtual scene meets the reliability condition, it means that the reliability of the position is high, that is, it means that the position is suitable as the position based on which the second virtual scene is selected. The method for determining whether the position in the first virtual scene meets the reliability condition is set based on experience or flexibly adjusted according to the application scenario, and the embodiments of the present application do not limit this.

[0174] Exemplarily, the first virtual scene is composed of at least one polygonal surface, and the polygonal surface may refer to a triangular surface, a quadrilateral surface, etc. Exemplarily, a method for determining whether the first position satisfies the reliability condition may include: if the slope of the polygonal surface where the first position is located is not greater than a slope threshold, then it is determined that the first position satisfies the reliability condition; if the slope of the polygonal surface where the first position is located is greater than the slope threshold, then it is determined that the first position does not meet the reliability condition. Exemplarily, a method for calculating the slope of the polygonal surface includes: taking the angle between the normal of the polygonal surface and the normal of the horizontal plane as the slope of the polygonal surface. The slope threshold is set based on experience or flexibly adjusted according to the application scenario, and the embodiments of the present application do not limit this.

[0175] Exemplarily, the method of determining whether the first position meets the reliability condition may also include: if the type of the polygonal surface where the first position is located is a target type, determining that the first position meets the reliability condition; if the type of the polygonal surface where the first position is located is not a target type, determining that the first position does not meet the reliability condition. The target type refers to the type of the polygonal surface that supports the first virtual object to perform the second activity. Exemplarily, the target type includes but is not limited to flat ground, grass, etc.

[0176] Exemplarily, the method for determining whether the first position meets the reliability condition may also include: if the slope of the polygonal surface where the first position is located is not greater than the slope threshold and the type is a target type, determining that the first position meets the reliability condition; if the slope of the polygonal surface where the first position is located is greater than the slope threshold, or the type is not a target type, determining that the first position does not meet the reliability condition.

[0177] If the first position meets the reliability condition, it means that the reliability of the first position is high, and the first position is directly used as the target position based on which the second virtual scene is selected. If the first position does not meet the reliability condition, it means that the reliability of the first position is low. In this case, the position closest to the first position among the positions that meet the reliability condition is used as the target position based on which the second virtual scene is selected.

[0178] In one possible implementation, the process of determining a target location matching the first location includes the following steps 1 to 3.

[0179] Step 1: Map the first position to the query image to obtain the mapping position of the first position in the query image.

[0180] The query image is an image obtained by displaying at least one query sub-region using a display style corresponding to the at least one query sub-region, and different query sub-regions correspond to different positions in the first virtual scene.

[0181] The terminal records a mapping rule for mapping a position in the first virtual scene to a query image, and the first position can be mapped to the query image according to the mapping rule, thereby obtaining a mapping position of the first position in the query image. Exemplarily, the mapping rule is used to indicate how to map the position in the first virtual scene to the query image, and the mapping rule is set based on experience or flexibly adjusted according to the method of obtaining the query image, which is not limited in the embodiments of the present application.

[0182] The query image is an image obtained by displaying at least one query sub-region using the display style corresponding to at least one query sub-region. The query image acquisition process will be described in detail below. The display style corresponding to any query sub-region is the first style, or other styles except the first style. The first style is the style used to display the query sub-region that meets the selection condition. If the display style corresponding to a query sub-region is the first style, it means that the query sub-region meets the selection condition. Through the query image, it is possible to intuitively visualize whether each query sub-region meets the selection condition, thereby improving the efficiency of selecting the second virtual scene.

[0183] The first style is set based on experience or flexibly adjusted according to the application scenario, and the embodiment of the present application does not limit this. For example, the first style is displayed in black; or the first style is displayed in brown, etc. Other styles other than the first style are different colors from the first style. The embodiment of the present application does not limit other styles other than the first style. The number of other styles other than the first style may be one or more, as long as they are all different from the first style.

[0184] The embodiment of the present application does not limit the size of the query sub-region. For example, the sizes of different query sub-regions are the same, or the sizes of different query sub-regions are different. For example, the query sub-region is a region obtained by pixelating an image of the same size as the first virtual scene, that is, each query sub-region can be regarded as a pixelated region.

[0185] Each query sub-region corresponds to a position in the first virtual scene, and different query sub-regions correspond to different positions in the first virtual scene. The correspondence between the query sub-region and the position in the first virtual scene is pre-set. The embodiment of the present application does not limit the size of the position in the first virtual scene corresponding to the query sub-region. Exemplarily, if the size of the query image is the same as the size of the first virtual scene, then the size of the position in the first virtual scene corresponding to the query sub-region is the same as the size of the query sub-region.

[0186] After the mapping position is determined, the query sub-region where the mapping position is located can be determined, and the query region where the mapping position is located is referred to as the first query sub-region. After the first query sub-region is determined, it is determined whether the display style corresponding to the first query sub-region is the first style. If the display style corresponding to the first query sub-region is the first style, the target position is determined based on step 2; if the display style corresponding to the first query sub-region is not the first style, the target position is determined based on step 3.

[0187] Step 2: In response to the first query sub-region where the mapping position is located having a first display style, the position in the first virtual scene corresponding to the first query sub-region is used as the target position, and the first style is the style used to display the query sub-region that meets the selection condition.

[0188] When the display style corresponding to the first query sub-region is the first style, it means that the first query sub-region meets the selection condition. At this time, the position in the first virtual scene corresponding to the first query sub-region is directly used as the target position.

[0189] The target position determined in this way can be regarded as a position without offset relative to the first position. The second virtual scene selected based on the target position is the scene corresponding to the position of the first virtual object. The process of switching from the first virtual scene to the second virtual scene is an integrated process, and the scene switching is more smooth.

[0190] Step 3: In response to the display style corresponding to the first query sub-region where the mapping position is located not being the first style, the position in the first virtual scene corresponding to the second query sub-region is used as the target position.

[0191] Among them, the first style is the style used to display the query sub-region that meets the selection conditions; the second query sub-region is the query sub-region closest to the first query sub-region among the reference query sub-regions, and each reference query sub-region is a query sub-region in the query image whose display style is the first style.

[0192] When the display style corresponding to the first query sub-region is not the first style, it means that the first query sub-region does not meet the selection condition. At this time, the second query sub-region is determined. The second query sub-region is the query sub-region that is closest to the first query sub-region among the reference query sub-regions whose display style is the first style. The embodiment of the present application does not limit the method for calculating the distance between the two sub-regions. For example, the Euclidean distance between the centers of the two sub-regions is calculated, or the Euclidean distance between two points at the same position (such as the upper left corner, the lower right corner, etc.) of the two sub-regions is calculated.

[0193] After the second query sub-region is determined, the position in the first virtual scene corresponding to the second query sub-region is used as the target position, thereby determining the target position.

[0194] The target position determined in this way is a position offset relative to the first position. The second virtual scene selected based on the target position refers to the scene corresponding to the position near the position of the first virtual object. However, since the distance between the query sub-area corresponding to the target position and the query sub-area corresponding to the first position is small, the offset of the target position relative to the first position is also small, thereby ensuring that the visual abruptness caused by the scene switching is weak. This weak visual abruptness can be further reduced by displaying animations, thereby ensuring the interactive experience of the interactive objects and thereby improving the human-computer interaction rate.

[0195] After the target position is determined, a reference range is determined with the target position as the center, and the scene in the first virtual scene within the reference range is used as the second virtual scene, thereby completing the process of selecting the second virtual scene from the first virtual scene.

[0196] The selection process of the second virtual scene is realized by relying on the first position of the first virtual object in the first virtual scene and the query image. If the display style of the first query sub-region where the mapping position of the first position is located is the first style (e.g., the display color is black), the position in the first virtual scene corresponding to the first query sub-region can be directly used as the target position, and the second virtual scene is constructed and provided for the first virtual object to perform the second activity. If the display style of the first query sub-region where the mapping position of the first position is located is not the first style (e.g., the display color is not black), the second query sub-region with the display style of the first style closest to the first query sub-region is found, and then the position in the first virtual scene corresponding to the second query sub-region is used as the target position, and the second virtual scene is constructed and provided for the first virtual object to perform the second activity.

[0197] That is to say, each query sub-region in the query image whose display style is the first style is a legal center point for constructing the second virtual scene. When the second virtual scene needs to be selected, the query sub-region whose display style is the first style closest to the mapping position of the position where the first virtual object is located will be retrieved, and then the second virtual scene will be constructed with the position in the first virtual scene corresponding to the query sub-region as the center.

[0198] According to the above-described implementation method of selecting the second virtual scene from the first virtual scene, it can be known that in the embodiment of the present application, the second virtual scene is selected from the first virtual scene based on the target position. Before determining to select the second virtual scene, it is first determined whether the first position of the first virtual object in the first virtual scene is suitable as the position based on which the second virtual scene is selected. If the first position is suitable as the position based on which the second virtual scene is selected, the position with no offset relative to the first position is used as the target position. If the first position is not suitable as the position based on which the second virtual scene is selected, the position suitable as the position based on which the second virtual scene is selected and with a small offset relative to the first position is used as the target position.

[0199] In this way, when it is necessary to switch the first virtual scene to the second virtual scene, the second virtual scene can be directly selected from the first virtual scene according to the target position, without the need to load the second virtual scene additionally, the efficiency of scene switching is high, and the efficiency of displaying the interactive screen including the second virtual scene is also high. In addition, since in the process of selecting the second virtual scene, it is judged whether the first position is suitable as the position based on which the second virtual scene is selected, no matter how the first virtual scene is configured, the method provided in the embodiment of the present application can select a second virtual scene suitable for the first virtual object to perform the second activity, which is conducive to improving the configuration flexibility of the first virtual scene.

[0200] In addition, when the target position is slightly offset from the first position, although the switching of virtual scenes will bring a certain visual abruptness, the visual abruptness caused by the scene switching can be further reduced by displaying animation during the scene switching process, thereby improving the interactive experience of the interactive object.

[0201] In a related technology, a first virtual scene for a first virtual object to perform a first activity and a second virtual scene for the first virtual object to perform a second activity are two completely independent scenes. When it is determined that the second activity needs to be performed, the second virtual scene needs to be loaded first. Before the second virtual scene is loaded, a black screen or a white screen will be displayed.

[0202] In this way, it takes a long time to load the second virtual scene, resulting in a long time to switch virtual scenes. In addition, the black screen or white screen will interrupt the display process of the interactive screen, reduce the immersion of the interactive object, and bring a poor interactive experience to the interactive object, thereby reducing the human-computer interaction rate. In the embodiment of the present application, the second virtual scene is a scene selected from the first virtual scene. When it is determined that the second activity needs to be performed, it is only necessary to determine the target position and select the second virtual scene from the first virtual scene based on the target position. There is no need to load the second virtual scene, and there is no need to display a black screen or a white screen. This is conducive to improving the display smoothness of the interactive screen, thereby improving the immersion of the interactive object, improving the interactive experience of the interactive object, and thus improving the human-computer interaction rate.

[0203] In another related technology, the scenes for the first virtual object to perform the first activity and the second activity are both first virtual scenes. When it is determined that the second activity needs to be performed, the current position of the first virtual object is directly used as the position for performing the second activity.

[0204] In this way, the first virtual scene needs to be configured in advance as a scene where all positions are suitable for the first virtual object to perform the second activity, so as to ensure that the first virtual object can smoothly perform the second activity. The configuration requirements of the first virtual scene are relatively high, and the landscape of the configured first virtual scene may be relatively simple, for example, the landscape of the configured first virtual scene may be a plane with a small slope, a grassland, etc. A first virtual scene with a relatively simple landscape will reduce the interactive experience of the interactive object, thereby reducing the human-computer interaction rate.

[0205] In the embodiment of the present application, it is first determined whether the first position of the first virtual object when the second activity is required is suitable as the position based on which the second virtual scene is selected. If the first position is suitable as the position based on which the second virtual scene is selected, the position without offset relative to the first position is used as the target position. If the first position is not suitable as the position based on which the second virtual scene is selected, the position suitable as the position based on which the second virtual scene is selected and with a small offset relative to the first position is used as the target position. In this way, regardless of the configuration of the first virtual scene, a second virtual scene suitable for the first virtual object to perform the second activity can be selected, thereby ensuring that the first virtual object smoothly performs the second activity. The configuration requirements for the first virtual scene are relatively low, and there is no need to pre-configure the first virtual scene into a scene where all positions are suitable for the first virtual object to perform the second activity, which is conducive to improving the configuration flexibility of the first virtual scene and improving the richness of the landscape of the first virtual scene, thereby improving the interactive experience of the interactive object and further improving the human-computer interaction rate.

[0206] In an exemplary embodiment, the first virtual scene is composed of at least one polygonal surface, and the process of acquiring the query image includes the following steps A to C.

[0207] Step A: Based on at least one polygonal surface, determine a target polygonal surface that meets the screening condition, and use a query sub-region in which a projection line in at least one query sub-region hits the target polygonal surface as a target query sub-region.

[0208] The first virtual scene is composed of at least one polygonal surface. In the process of acquiring the query image, the at least one polygonal surface constituting the first virtual scene can be first imported into the graphics processing software, and then the target polygonal surface that meets the screening condition is determined in the at least one polygonal surface. Exemplarily, before importing the at least one polygonal surface constituting the first virtual scene into the graphics processing software, the polygonal surfaces constituting the first virtual scene and the attribute information of each polygonal surface are first scanned in the application program, and then the polygonal surfaces and the attribute information of each polygonal surface are exported together to the graphics processing software to further acquire the query image in the graphics processing software. The embodiment of the present application does not limit the type of graphics processing software.

[0209] Exemplarily, in the graphics processing software, it is possible to set parameters related to the process of acquiring the query image, such as a slope threshold, a distance threshold, a height difference threshold, and the like.

[0210] The target polygonal surface that meets the screening condition is a polygonal surface with high reliability in the application scenario of selecting the virtual scene. Based on at least one polygonal surface, the method of determining the target polygonal surface that meets the screening condition is set according to experience or flexibly adjusted according to the application scenario, and the embodiment of the present application does not limit this.

[0211] In one possible implementation, based on at least one polygonal face, a method for determining a target polygonal face that meets a filtering condition includes: eliminating polygonal faces whose slope does not meet a slope condition, whose position does not meet a position condition, or whose attribute information does not meet an attribute condition in at least one polygonal face; and based on the remaining polygonal faces, determining a target polygonal face that meets the filtering condition.

[0212] Exemplarily, the slope of any polygonal surface is calculated by calculating the normal of any polygonal surface, and taking the angle between the normal of any polygonal surface and the normal of the horizontal plane as the slope of any polygonal surface. Exemplarily, the slope of any polygonal surface does not meet the slope condition means that the slope of any polygonal surface is greater than the slope threshold. The slope threshold is set based on experience or flexibly adjusted according to the application scenario, and the embodiments of the present application do not limit this.

[0213] Exemplarily, the position of any polygonal surface does not meet the position condition means that any polygonal surface is not a surface polygonal surface, that is, there are other polygonal surfaces above any polygonal surface. Exemplarily, whether the position of any polygonal surface meets the position condition can be determined by emitting a ray upward from the center point of any polygonal surface. If the ray hits other polygonal surfaces, it means that the position of any polygonal surface does not meet the position condition; if the ray does not hit other polygonal surfaces, it means that the position of any polygonal surface meets the position condition.

[0214] Exemplarily, the attribute condition is used to constrain the attribute information of any polygonal surface. Exemplarily, the attribute information of any polygonal surface indicates that the any polygonal surface is a polygonal surface constituting a bounding box, then the attribute information of any polygonal surface not satisfying the attribute condition may mean that the length of the bounding box constituted by the any polygonal surface is greater than the length threshold or the width of the bounding box is greater than the width threshold. Exemplarily, the attribute information of any polygonal surface includes the type of any polygonal surface, and if the type of any polygonal surface is a water surface, it means that the attribute information of any polygonal surface does not satisfy the attribute condition.

[0215] For example, in the process of judging whether the slope of any polygonal surface meets the slope condition, whether the position meets the position condition, and whether the attribute information meets the attribute condition, different marks can be used to reflect different judgment results for easy intuitive viewing. For example, after processing some judgment steps, the marking results of the polygonal surface are as follows: Fig.10 As shown, Fig.10 In the marking results shown, the polygonal faces marked in black are the polygonal faces that meet the corresponding conditions after some judgment steps.

[0216] Will Fig.10 By removing polygons marked with colors other than black, we can get Fig.11The processing results are shown. Fig.11 The polygonal faces of the type of water surface are removed from the retained polygonal faces, and we can get Fig.12 The processing results are shown. Fig.12 The processing result shown can visualize the remaining polygonal faces after removing at least one polygonal face whose slope does not meet the slope condition, whose position does not meet the position condition, or whose attribute information does not meet the attribute condition.

[0217] Exemplarily, after obtaining the remaining polygonal faces, target polygonal faces that meet the screening condition are determined based on the remaining polygonal faces. Exemplarily, the method of determining the target polygonal faces that meet the screening condition based on the remaining polygonal faces can be: each of the remaining polygonal faces is regarded as a target polygonal face that meets the screening condition.

[0218] Exemplarily, based on the remaining polygonal faces, the method for determining the target polygonal faces that meet the screening conditions can also be: for any remaining polygonal faces, if the size of any polygonal face is less than the size threshold, then directly use any polygonal face as a target polygonal face that meets the screening conditions. If the size of any polygonal face is not less than the size threshold, divide the any polygonal face into multiple polygonal faces whose sizes are less than the size threshold, and use the polygonal faces obtained after division as target polygonal faces that meet the screening conditions. This method can prevent excessively large polygonal faces from affecting the accuracy of subsequent algorithms. Exemplarily, the graphics processing software has a measurement node and a division node, and the size of the polygonal face can be measured according to the measurement node, and the polygonal face can be divided according to the division node.

[0219] After determining the target polygonal surface that meets the screening condition, the query sub-region in which the projection line in at least one query sub-region hits the target polygonal surface is used as the target query sub-region. The at least one query sub-region can be regarded as each small region obtained by pixelating a large area above the first virtual scene. For example, the process of pixelating a large area above the first virtual scene is as follows: Fig.13 shown. Fig.13 (1) shows a side view. Fig.13 The top view is shown in (2). Fig.13 Each small square in (2) is a query sub-region.

[0220] After determining at least one query sub-region, it can be determined whether the projection line of the query sub-region hits the target polygonal surface. That is, a projection line is emitted in the vertical direction of any query sub-region. If the projection line intersects with any target polygonal surface, it means that the projection line of any query sub-region hits the target polygonal surface. If the projection line does not intersect with any target polygonal surface, it means that the projection line of any query sub-region does not hit the target polygonal surface. According to this method, a target query sub-region can be determined from at least one query sub-region. The number of target query sub-regions is one or more, which is related to the actual situation.

[0221] For example, if the projection line of a query sub-region hits the target polygonal surface, the projection line height of any query sub-region can be recorded, and the projection line height refers to the distance from the position where the projection line occurs to the position where the projection line intersects with any target polygonal surface. In other words, each target query sub-region has its own projection line height.

[0222] Exemplarily, the query sub-regions in which the projection line hits the target polygonal surface and the query sub-regions in which the projection line does not hit the target polygonal surface in at least one query sub-region are marked with different colors. The processing result is as follows: Fig.14 As shown in (1) in Fig.14 In (1), the marking color of the query sub-region where the projection line hits the target polygonal surface is shown as 1401, and the marking color of the query sub-region where the projection line does not hit the target polygonal surface is shown as 1402. For example, by retaining the query sub-region where the projection line does not hit the target polygonal surface, the following can be obtained: Fig.14 The processing result is shown in (2) in . By retaining the query sub-region where the projection line hits the target polygon, we can get the following Fig.14 The processing result shown in (3) is Fig.14 The query sub-region retained in (3) is the target query sub-region.

[0223] Step B: Obtain a measurement index of the target query sub-region, and determine a query sub-region that meets the selection condition from the target query sub-region based on the measurement index of the target query sub-region.

[0224] After determining the target query sub-region, a measurement index of the target query sub-region is obtained, where the measurement index of the target query sub-region is information based on which it is determined whether the target query sub-region is a query sub-region that meets the selection condition.

[0225] Exemplarily, the number of target query sub-regions is at least one, and the method of obtaining the measurement index of each target query sub-region is the same, and the process of obtaining the measurement index of any target query sub-region is used as an example for explanation. Exemplarily, the measurement index of any target query sub-region includes at least one of a distance index of any target query sub-region and a height difference index of any target query sub-region.

[0226] The distance index of any target query sub-region is used to measure the reliability of the any target query sub-region from the perspective of distance. Exemplarily, the process of obtaining the distance index of any target query sub-region includes: obtaining the shortest distance between any target query sub-region and other query sub-regions except at least one target query sub-region, and using the shortest distance as the distance index of any target query sub-region.

[0227] The embodiment of the present application does not limit the method of obtaining the distance between the two query sub-regions. For example, the Euclidean distance between the centers of the two query sub-regions is calculated, or the Euclidean distance between two points at the same position (such as the upper left corner, the lower right corner, etc.) of the two query sub-regions is calculated.

[0228] The height difference index corresponding to any target query sub-region is used to measure the reliability of any target query sub-region from the perspective of height difference. Exemplarily, the method for obtaining the height difference index corresponding to any target query sub-region includes: determining an adjacent query sub-region of any target query sub-region in at least one target query sub-region; and obtaining the height difference index of any target query sub-region based on the difference between the projection line height of any target query sub-region and the projection line height of the adjacent query sub-region.

[0229] The adjacent query sub-region refers to a query sub-region in at least one target query sub-region that is adjacent to any target query sub-region. Each target query sub-region has its own projection line height. Since the adjacent query sub-region is determined from at least one target query sub-region, the adjacent query sub-region also has a projection line height. After the adjacent query sub-region is determined, the height difference index of any target query sub-region is obtained based on the difference between the projection line height of any target query sub-region and the projection line height of the adjacent query sub-region.

[0230] The number of adjacent query sub-regions is one or more. Exemplarily, based on the difference between the projection line height of any target query sub-region and the projection line height of the adjacent query sub-region, the height difference index of any target query sub-region is obtained by taking the absolute value of the difference between the projection line height of any target query sub-region and the projection line height of each adjacent query sub-region as a height difference index. In this way, the number of height difference indicators of any target query sub-region obtained is the same as the number of adjacent query sub-regions.

[0231] Exemplarily, based on the difference between the projection line height of any target query sub-region and the projection line height of an adjacent query sub-region, the height difference index of any target query sub-region is obtained by calculating the difference between the projection line height of any target query sub-region and the projection line height of each adjacent query sub-region, and taking the maximum value of each difference as the height difference index. In this way, the number of height difference indicators of any target query sub-region obtained is one.

[0232] After obtaining the measurement index of any target query sub-region, it is possible to determine whether the any target query sub-region is a query sub-region that meets the selection condition based on the measurement index of the any target query sub-region. Exemplarily, the measurement index of any target query sub-region includes at least one of a distance index of any target query sub-region and a height difference index of any target query sub-region. In different cases of the measurement index of any target query sub-region, the method of determining whether the any target query sub-region is a query sub-region that meets the selection condition is different.

[0233] Exemplarily, in the case where the measurement index of any target query sub-region only includes the distance index of any target query sub-region, the method for determining whether any target query sub-region is a query sub-region that meets the selection condition can be: in response to the distance index of any target query sub-region being not less than the distance threshold, determining that any target query sub-region is a query sub-region that meets the selection condition. The distance threshold is set based on experience or flexibly adjusted according to the application scenario, and the embodiments of the present application are not limited to this.

[0234] When the distance index of any target query sub-region is not less than the distance threshold, it means that there is no query sub-region that does not meet the selection condition within a larger range centered on the any target query sub-region, which means that the reliability of the any target query sub-region is high. At this time, the any target query sub-region is considered to be a query sub-region that meets the selection condition.

[0235] Exemplarily, for a case where the measurement index of any target query sub-region only includes the height difference index of any target query sub-region, the method for determining whether any target query sub-region is a query sub-region that meets the selection condition can be: in response to the height difference index of any target query sub-region being not greater than the height difference threshold, determining that any target query sub-region is a query sub-region that meets the selection condition. The height difference threshold is set based on experience or flexibly adjusted based on the application scenario, and the embodiments of the present application do not limit this.

[0236] It should be noted that, for the case where the number of height difference indicators of any target query sub-area is one, the height difference indicator of any target query sub-area is not greater than the height difference threshold means that the one height difference indicator is not greater than the height difference threshold. For the case where the number of height difference indicators of any target query sub-area is multiple, the height difference indicator of any target query sub-area is not greater than the height difference threshold means that each height difference indicator is not greater than the height difference threshold.

[0237] When the height difference index of any target query sub-region is not greater than the height difference threshold, it means that the height difference of the head projection line between the any target query sub-region and the adjacent target query sub-region is small, which means that the reliability of the any target query sub-region is high. At this time, it is considered that the any target query sub-region is a query sub-region that meets the selection conditions.

[0238] Exemplarily, for the case where the measurement index of any target query sub-region includes the distance index of any target query sub-region and the height difference index of any target query sub-region, the method for determining whether any target query sub-region is a query sub-region that meets the selection condition may also be: in response to the distance index of any target query sub-region being not less than the distance threshold, and in response to the height difference index of any target query sub-region being not greater than the height difference threshold, determining that any target query sub-region is a query sub-region that meets the selection condition. Exemplarily, the method for determining whether any target query sub-region is a query sub-region that meets the selection condition may also be: in response to the distance index of any target query sub-region being not less than the distance threshold, or in response to the height difference index of any target query sub-region being not greater than the height difference threshold, determining that any target query sub-region is a query sub-region that meets the selection condition.

[0239] By referring to the measurement indicators based on any target query sub-region, determining whether any target query sub-region is a query sub-region that meets the selection conditions, and traversing each target query sub-region, the process of determining the query sub-region that meets the selection conditions from the target query sub-region can be realized.

[0240] It should be noted that the above description is only exemplified by taking the measurement index of any target query sub-region including at least one of the distance index of any target query sub-region and the height difference index of any target query sub-region as an example, and the embodiments of the present application are not limited to this. The measurement index of any target query sub-region can also be set to other types of indicators, and the method of determining whether any target query sub-region is a query sub-region that meets the selection conditions can also be flexibly adjusted to a method that matches other types of indicators.

[0241] For example, Fig.14The query sub-regions that do not meet the selection conditions in the target query sub-region shown in (3) are eliminated, and the obtained Fig.15 The processing results are shown. Fig.15 The sub-region that meets the selection condition is shown. The sub-region that meets the query condition can fully describe the region information in the first virtual scene that can be used as the second virtual scene.

[0242] Step C: Using the first style as the display style corresponding to the query sub-region that meets the selection condition, and using other styles except the first style as the display styles corresponding to other query sub-regions except the query sub-region that meets the selection condition; displaying at least one query sub-region using the display style corresponding to at least one query sub-region to obtain a query image.

[0243] After determining the query sub-area that meets the selection criteria, the first style is used as the display style corresponding to the query sub-area that meets the selection criteria, and other styles except the first style are used as display styles corresponding to other query sub-areas except the query sub-area that meets the selection criteria, thereby determining the display style corresponding to at least one query sub-area.

[0244] In an exemplary embodiment, the implementation method of using styles other than the first style as display styles corresponding to other query sub-areas except the query sub-areas that meet the selection conditions is: using a fixed style other than the first style as the display style corresponding to each other query sub-area except the query sub-area that meets the selection conditions.

[0245] In an exemplary embodiment, the implementation method of using other styles except the first style as display styles corresponding to other query sub-areas except the query sub-area that meets the selection condition is as follows: for any other query sub-area, determine the closest distance between the any query sub-area and the query sub-area that meets the selection condition, and use the style corresponding to the closest distance as the display style corresponding to the any query sub-area. Exemplarily, the terminal records the styles corresponding to each distance, and the styles corresponding to each distance are all styles other than the first style. Exemplarily, the styles corresponding to each distance are the display colors corresponding to each distance.

[0246] Exemplarily, the process of determining the shortest distance between any query sub-region and the query sub-region that meets the selection condition can be implemented based on the coordinates of the query sub-region in the graphics processing software, or based on the mapped coordinates. The mapped coordinates refer to the coordinates of the query sub-region in the graphics processing software mapped to 0-1. For example, the mapping process is as follows: Fig.16 Through this mapping, the efficiency of distance calculation can be improved, and the format of the processing result in the graphics processing software can be converted into a format that can be used in an application that supports virtual scenes.

[0247] After determining the display style corresponding to the at least one query sub-region, the at least one query sub-region is displayed using the display style corresponding to the at least one query sub-region to obtain a query image.

[0248] For example, the process of determining the shortest distance between any query sub-region and the query sub-region satisfying the selection condition can be implemented according to the mapped coordinates. The query image obtained can be as follows: Fig.17 As shown. Fig.17 In the figure, the black area is the query sub-area that meets the selection conditions (corresponding to Fig.15 The areas with other colors are the sub-areas that do not meet the selection criteria. The display color of the query sub-areas that do not meet the selection criteria is determined based on the shortest distance between the query sub-areas that do not meet the selection criteria and the query sub-areas that meet the selection criteria.

[0249] For example, the query image can be regarded as a texture suitable for an application that is synthesized using a synthesis node in graphics processing software.

[0250] For example, the process of switching the first virtual scene to the second virtual scene can be regarded as the process of switching the virtual camera. Fig.18 First, a first virtual camera in a first virtual scene is captured; then, based on a selected second virtual scene, a second virtual camera for observing the second virtual scene is acquired; and finally, the first virtual camera is converted into a second virtual camera.

[0251] Exemplarily, the switching process of the virtual camera can be as follows: Fig.19 A schematic diagram of capturing a first virtual camera in a first virtual scene is shown in Fig.19 Based on the selected second virtual scene, a schematic diagram of obtaining a second virtual camera for observing the second virtual scene is shown in (1); Fig.19 As shown in (2) in FIG. 1 ; a schematic diagram of converting the first virtual camera into the second virtual camera is shown in FIG. Fig.19 As shown in (3) in the figure, the first virtual camera is used to observe the scene around the position (first position) where the first virtual object is located when activating the second activity, and the second virtual camera is used to observe the scene around the position (target position) where the first virtual object is located when performing the second activity.

[0252] Exemplarily, the process of the first virtual object from performing the first activity to performing the second activity is as follows: Fig. 20As shown. In response to the activation operation of the second activity, the second virtual scene is selected in the first virtual scene, the second virtual scene is constructed, and the first virtual object in the second virtual scene is constructed. Then the first virtual camera can be captured, the skills used for the second activity are constructed, and the second virtual camera is obtained. The second virtual camera is bound to the first virtual object in the second virtual scene, and the first virtual camera is converted to the second virtual camera. By displaying the animation, the transition of the virtual camera is completed, and the first virtual object performs the second activity. By displaying the animation, the sense of jamming caused by the transition of the virtual camera can be reduced, and the switching connection can be made smoother, thereby improving the interactive experience of the interactive object and thus improving the human-computer interaction rate.

[0253] See also Fig.21 , an embodiment of the present application provides a device for displaying an interactive screen, the device comprising:

[0254] The display unit 2101 is used to display a first interactive screen, where the first interactive screen includes a first virtual scene, where the first virtual scene is a scene for a first virtual object to perform a first activity;

[0255] The display unit 2101 is also used to display a second interactive screen based on the first virtual scene in response to an activation operation of the second activity. The second interactive screen includes a second virtual scene, which is a scene for the first virtual object to perform the second activity. The second virtual scene is selected from the first virtual scene.

[0256] In one possible implementation, the second activity includes a competitive interaction between the first virtual object and the second virtual object, and the display unit 2101 is further used to display a third interactive screen in response to an activation operation of the second activity, and the third interactive screen includes a first animation of the second virtual object; in response to the first animation of the second virtual object being displayed, a second interactive screen is displayed based on the first virtual scene.

[0257] In one possible implementation, the display unit 2101 is also used to display a fourth interactive screen in response to the completion of the first animation of the second virtual object, where the fourth interactive screen includes the first animation of the first virtual object; and display a second interactive screen based on the first virtual scene in response to the completion of the first animation of the first virtual object.

[0258] In one possible implementation, the third interactive screen also includes the first virtual scene, and the fourth interactive screen also includes the first virtual scene; or, the third interactive screen also includes the first virtual scene, and the fourth interactive screen also includes the second virtual scene; or, the third interactive screen also includes the second virtual scene, and the fourth interactive screen also includes the second virtual scene.

[0259] In a possible implementation, the display unit 2101 is further configured to display the first interaction screen in response to the second activity ending.

[0260] In one possible implementation, the display unit 2101 is further used to display a fifth interaction screen in response to the end of the second activity, where the fifth interaction screen includes the second animation of the first virtual object; and to display the first interaction screen in response to the completion of the display of the second animation of the first virtual object.

[0261] In a possible implementation, the display unit 2101 is further configured to display an activation entrance of the second activity;

[0262] The device also includes:

[0263] The acquisition unit is used to acquire the activation operation of the second activity in response to the trigger operation of the activation entry.

[0264] In a possible implementation, the device further includes:

[0265] A determination unit is used to determine a first position of the first virtual object in the first virtual scene in response to an activation operation of the second activity; determine a target position matching the first position, and use a scene within a selection range in the first virtual scene as a second virtual scene, where the selection range is a range including the target position.

[0266] In one possible implementation, a determination unit is used to map the first position into a query image to obtain a mapping position of the first position in the query image; the query image is an image obtained by displaying at least one query sub-region using a display style corresponding to at least one query sub-region, and different query sub-regions correspond to different positions in the first virtual scene; in response to the display style corresponding to the first query sub-region where the mapping position is located being a first style, the position in the first virtual scene corresponding to the first query sub-region is used as the target position, and the first style is a style used to display the query sub-region that meets the selection condition.

[0267] In one possible implementation, a determination unit is used to map a first position into a query image to obtain a mapping position of the first position in the query image; the query image is an image obtained after displaying at least one query sub-region using a display style corresponding to at least one query sub-region, and different query sub-regions correspond to different positions in the first virtual scene; in response to the display style corresponding to the first query sub-region where the mapping position is located not being the first style, the position in the first virtual scene corresponding to the second query sub-region is used as the target position; wherein the first style is a style used to display the query sub-region that meets the selection condition; the second query sub-region is the query sub-region that is closest to the first query sub-region among the reference query sub-regions, and each reference query sub-region is a query sub-region whose display style in the query image is the first style.

[0268] In one possible implementation, the first virtual scene is composed of at least one polygonal surface, and the acquisition unit is further used to determine a target polygonal surface that meets the screening condition based on the at least one polygonal surface, and use the query subregion in which the projection line in at least one query subregion hits the target polygonal surface as the target query subregion; obtain a measurement index of the target query subregion, and determine the query subregion that meets the selection condition from the target query subregion based on the measurement index of the target query subregion; use the first style as the display style corresponding to the query subregion that meets the selection condition, and use other styles except the first style as the display styles corresponding to other query subregions except the query subregion that meets the selection condition; display at least one query subregion using the display style corresponding to at least one query subregion to obtain a query image.

[0269] In a possible implementation, the number of target query sub-regions is at least one, the measurement index of any target query sub-region includes a distance index of any target query sub-region, and the acquisition unit is further used to acquire the shortest distance between any target query sub-region and other query sub-regions except the at least one target query sub-region, and use the shortest distance as the distance index of any target query sub-region;

[0270] The determination unit is further configured to determine that any target query sub-region is a query sub-region that meets the selection condition in response to the distance index of any target query sub-region being not less than a distance threshold.

[0271] In a possible implementation, the number of target query sub-regions is at least one, and the measurement index of any target query sub-region includes a height difference index of any target query sub-region. The acquisition unit is further used to determine an adjacent query sub-region of any target query sub-region in the at least one target query sub-region; based on the difference between the projection line height of any target query sub-region and the projection line height of the adjacent query sub-region, acquire the height difference index of any target query sub-region;

[0272] The determination unit is further configured to determine that any target query sub-region is a query sub-region that meets the selection condition in response to the height difference index of any target query sub-region being not greater than a height difference threshold.

[0273] In the device for displaying an interactive screen provided by the embodiment of the present application, the second virtual scene is selected from the first virtual scene. On the basis that the first interactive screen has been displayed, the first virtual scene has been loaded. When the second interactive screen needs to be displayed, the second interactive screen can be directly displayed based on the first virtual scene without the need to load the second virtual scene additionally. In this way, the efficiency of displaying the interactive screen is high, and the display fluency of the interactive screen is high, which is conducive to improving the human-computer interaction rate.

[0274] It should be noted that the device provided in the above embodiment only uses the division of the above functional units as an example to implement its functions. In actual applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device is divided into different functional units to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0275] Fig. 22 1 is a schematic diagram of a terminal structure provided by an embodiment of the present application. The terminal may be: a PC, a mobile phone, a smart phone, a PDA, a wearable device, a handheld portable game device, a PPC, a tablet computer, a smart car machine, a smart TV, a smart speaker, or a vehicle-mounted terminal. The terminal may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal, or other names.

[0276] Typically, the terminal includes: a processor 2201 and a memory 2202 .

[0277] The processor 2201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 2201 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 2201 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 2201 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 2201 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0278] The memory 2202 may include one or more computer-readable storage media, which may be non-transitory. The memory 2202 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 2202 is used to store at least one instruction, which is used to be executed by the processor 2201 so that the terminal implements the method for displaying an interactive screen provided in the method embodiment of the present application.

[0279] In some embodiments, the terminal may further optionally include: a peripheral device interface 2203 and at least one peripheral device. The processor 2201, the memory 2202 and the peripheral device interface 2203 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 2203 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 2204, a display screen 2205, a camera assembly 2206, an audio circuit 2207 and a power supply 2208.

[0280] The peripheral device interface 2203 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 2201 and the memory 2202. In some embodiments, the processor 2201, the memory 2202, and the peripheral device interface 2203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 2201, the memory 2202, and the peripheral device interface 2203 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

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

[0282] The display screen 2205 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 2205 is a touch display screen, the display screen 2205 also has the ability to collect touch signals on the surface or above the surface of the display screen 2205. The touch signal can be input to the processor 2201 as a control signal for processing. At this time, the display screen 2205 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 2205 can be one, set on the front panel of the terminal; in other embodiments, the display screen 2205 can be at least two, respectively set on different surfaces of the terminal or in a folding design; in other embodiments, the display screen 2205 can be a flexible display screen, set on a curved surface or a folding surface of the terminal. Even, the display screen 2205 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 2205 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc.

[0283] The camera assembly 2206 is used to capture images or videos. Optionally, the camera assembly 2206 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 2206 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0284] The audio circuit 2207 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 2201 for processing, or input them into the RF circuit 2204 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 2201 or the RF circuit 2204 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 2207 may also include a headphone jack.

[0285] The power supply 2208 is used to power various components in the terminal. The power supply 2208 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 2208 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0286] In some embodiments, the terminal further includes one or more sensors 2209 , including but not limited to: an acceleration sensor 2210 , a gyroscope sensor 2211 , a pressure sensor 2212 , an optical sensor 2213 , and a proximity sensor 2214 .

[0287] The acceleration sensor 2210 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal. For example, the acceleration sensor 2210 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 2201 can control the display screen 2205 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 2210. The acceleration sensor 2210 can also be used for collecting game or user motion data.

[0288] The gyro sensor 2211 can detect the body direction and rotation angle of the terminal, and the gyro sensor 2211 can cooperate with the acceleration sensor 2210 to collect the user's 3D (Three Dimensions) action on the terminal. The processor 2201 can implement the following functions based on the data collected by the gyro sensor 2211: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0289] The pressure sensor 2212 can be set in the side frame of the terminal and / or the lower layer of the display screen 2205. When the pressure sensor 2212 is set in the side frame of the terminal, it can detect the user's holding signal of the terminal, and the processor 2201 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 2212. When the pressure sensor 2212 is set in the lower layer of the display screen 2205, the processor 2201 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 2205. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0290] The optical sensor 2213 is used to collect the ambient light intensity. In one embodiment, the processor 2201 can control the display brightness of the display screen 2205 according to the ambient light intensity collected by the optical sensor 2213. Specifically, when the ambient light intensity is high, the display brightness of the display screen 2205 is increased; when the ambient light intensity is low, the display brightness of the display screen 2205 is reduced. In another embodiment, the processor 2201 can also dynamically adjust the shooting parameters of the camera assembly 2206 according to the ambient light intensity collected by the optical sensor 2213.

[0291] The proximity sensor 2214, also known as a distance sensor, is usually arranged on the front panel of the terminal. The proximity sensor 2214 is used to collect the distance between the user and the front of the terminal. In one embodiment, when the proximity sensor 2214 detects that the distance between the user and the front of the terminal is gradually decreasing, the processor 2201 controls the display screen 2205 to switch from the screen-on state to the screen-off state; when the proximity sensor 2214 detects that the distance between the user and the front of the terminal is gradually increasing, the processor 2201 controls the display screen 2205 to switch from the screen-off state to the screen-on state.

[0292] Those skilled in the art will understand that Fig. 22 The structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than those shown in the figure, or combine certain components, or adopt a different component arrangement.

[0293] In an exemplary embodiment, a computer device is also provided, the computer device comprising a processor and a memory, wherein at least one computer program is stored in the memory. The at least one computer program is loaded and executed by one or more processors, so that the computer device implements any of the above methods for displaying an interactive screen.

[0294] In an exemplary embodiment, a computer-readable storage medium is further provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor of a computer device to enable the computer to implement any of the above-mentioned methods for displaying an interactive screen.

[0295] In one possible implementation, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0296] In an exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program or a computer instruction. The computer program or the computer instruction is loaded and executed by a processor to enable a computer to implement any of the above methods for displaying an interactive screen.

[0297] It should be noted that the terms "first", "second", etc. in this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the above exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0298] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0299] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for displaying an interactive screen, characterized in that: The method comprises: Displaying a first interactive screen, wherein the first interactive screen includes a first virtual scene, and the first virtual scene is a scene for a first virtual object to perform a first activity; In response to an activation operation of a second activity, determining a first position of the first virtual object in the first virtual scene; Mapping the first position to a query image to obtain a mapping position of the first position in the query image; the query image is an image obtained by displaying the at least one query sub-region using a display style corresponding to the at least one query sub-region, and different query sub-regions correspond to different positions in the first virtual scene; In response to the first query sub-region where the mapping position is located having a display style corresponding to a first style, taking the position in the first virtual scene corresponding to the first query sub-region as a target position, wherein the first style is a style used for displaying the query sub-region that meets the selection condition; Using a scene in a selected range in the first virtual scene as a second virtual scene, wherein the selected range is a range including the target location; A second interaction screen is displayed, where the second interaction screen includes the second virtual scene, where the second virtual scene is a scene for the first virtual object to perform the second activity.

2. The method according to claim 1, characterized in that The second activity includes the first virtual object and the second virtual object performing a competitive interaction, and the displaying of the second interactive screen includes: displaying a third interaction screen, wherein the third interaction screen includes a first animation of the second virtual object; In response to the first animation of the second virtual object being displayed, the second interaction screen is displayed.

3. The method according to claim 2, characterized in that In response to the first animation of the second virtual object being displayed, displaying the second interaction screen includes: In response to the first animation of the second virtual object being displayed, displaying a fourth interaction screen, wherein the fourth interaction screen includes the first animation of the first virtual object; In response to the first animation of the first virtual object being displayed, the second interaction screen is displayed.

4. The method according to claim 3, characterized in that The third interactive screen also includes the first virtual scene, and the fourth interactive screen also includes the first virtual scene; or, The third interactive screen also includes the first virtual scene, and the fourth interactive screen also includes the second virtual scene; or, The third interactive screen also includes the second virtual scene, and the fourth interactive screen also includes the second virtual scene.

5. The method according to any one of claims 1 to 4, characterized in that: After displaying the second interactive screen, the method further includes: In response to the second activity ending, the first interaction screen is displayed.

6. The method according to claim 5, characterized in that In response to the second activity ending, displaying the first interaction screen includes: In response to the second activity ending, displaying a fifth interaction screen, wherein the fifth interaction screen includes a second animation of the first virtual object; In response to the second animation of the first virtual object being displayed, the first interaction screen is displayed.

7. The method according to any one of claims 1 to 4 and 6, characterized in that: The method further comprises: displaying an activation entrance for the second activity; In response to the triggering operation of the activation entry, an activation operation of the second activity is obtained.

8. The method according to any one of claims 1 to 4 and 6, characterized in that: The method further comprises: In response to the display style corresponding to the first query sub-region where the mapping position is located not being the first style, taking the position in the first virtual scene corresponding to the second query sub-region as the target position; The second query sub-region is a query sub-region that is closest to the first query sub-region among the reference query sub-regions, and the reference query sub-regions are query sub-regions whose display style in the query image is the first style.

9. The method according to any one of claims 1 to 4 and 6, characterized in that: The first virtual scene is composed of at least one polygonal surface, and before mapping the first position to the query image to obtain the mapping position of the first position in the query image, the method further includes: Based on the at least one polygonal surface, determine a target polygonal surface that meets the screening condition, and use a query sub-region in which a projection line in the at least one query sub-region hits the target polygonal surface as a target query sub-region; Acquire a measurement index of the target query sub-region, and determine a query sub-region that meets the selection condition from the target query sub-region based on the measurement index of the target query sub-region; The first style is used as the display style corresponding to the query sub-region that meets the selection condition, and other styles except the first style are used as display styles corresponding to other query sub-regions except the query sub-region that meets the selection condition; the at least one query sub-region is displayed using the display style corresponding to the at least one query sub-region to obtain the query image.

10. The method according to claim 9, characterized in that The number of the target query sub-regions is at least one, the measurement index of any target query sub-region includes the distance index of any target query sub-region, and obtaining the measurement index of the target query sub-region includes: Obtaining the shortest distance between any one of the target query sub-regions and other query sub-regions except at least one of the target query sub-regions, and using the shortest distance as a distance indicator of any one of the target query sub-regions; The determining, based on the measurement index of the target query sub-region, a query sub-region satisfying the selection condition from the target query sub-region comprises: In response to the distance index of any target query sub-region being not less than a distance threshold, determining that any target query sub-region is a query sub-region that meets the selection condition.

11. The method according to claim 9, characterized in that The number of the target query sub-regions is at least one, the measurement index of any target query sub-region includes a height difference index of any target query sub-region, and obtaining the measurement index of the target query sub-region includes: Determine, in at least one target query sub-region, an adjacent query sub-region of any target query sub-region; Based on the difference between the projection line height of any target query sub-region and the projection line height of the adjacent query sub-region, obtaining a height difference index of any target query sub-region; The determining, based on the measurement index of the target query sub-region, a query sub-region satisfying the selection condition from the target query sub-region comprises: In response to the height difference index of any target query sub-region being not greater than a height difference threshold, determining that any target query sub-region is a query sub-region that meets the selection condition.

12. A device for displaying an interactive screen, characterized in that: The device comprises: A display unit, configured to display a first interactive screen, wherein the first interactive screen includes a first virtual scene, and the first virtual scene is a scene for a first virtual object to perform a first activity; A determination unit, configured to determine, in response to an activation operation of a second activity, a first position of the first virtual object in the first virtual scene; map the first position to a query image to obtain a mapping position of the first position in the query image; the query image is an image obtained by displaying the at least one query sub-region using a display style corresponding to at least one query sub-region, and different query sub-regions correspond to different positions in the first virtual scene; in response to the display style corresponding to the first query sub-region where the mapping position is located being a first style, use the position in the first virtual scene corresponding to the first query sub-region as a target position, and the first style is a style used for displaying query sub-regions that meet a selection condition; use a scene in the first virtual scene within a selection range as a second virtual scene, and the selection range is a range including the target position; The display unit is further used to display a second interaction screen, where the second interaction screen includes the second virtual scene, and the second virtual scene is a scene for the first virtual object to perform the second activity.

13. A computer device, characterized in that: The computer device includes a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor so that the computer device implements the method for displaying an interactive screen as described in any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by a processor so that a computer implements the method for displaying an interactive screen as described in any one of claims 1 to 11.

15. A computer program product, characterized in that The computer program product includes a computer program or computer instructions, and the computer program or the computer instructions are loaded and executed by a processor to enable a computer to implement the method for displaying an interactive screen as described in any one of claims 1 to 11.