Scene picture displaying method, apparatus, terminal, and storage medium

HK40089519BActive Publication Date: 2026-08-28TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
HK42023078230
Authority / Receiving Office
HK · HK
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-08-28
Publication Date
2026-08-28

AI Technical Summary

Technical Problem

In existing technologies, the transition from 3D skill animation to 2D virtual scene visuals is not smooth, resulting in poor display quality.

Method used

After the 3D skill animation finishes playing, the target position and target posture of the virtual object in the 2D virtual scene are determined based on the target segment of the 3D skill animation, so that the position and posture of the virtual object are consistent with those in the target segment, thus ensuring a smooth transition during the transition.

Benefits of technology

Improved the smoothness and display effect when switching from 3D skill animations to 2D virtual scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The application relates to a scene picture display method and device, a terminal and a storage medium, and belongs to the computer technical field. The method comprises the following steps: displaying a scene picture of a two-dimensional virtual scene; in response to a use operation of a target skill of a virtual object, playing a three-dimensional skill animation corresponding to the target skill; and in response to the completion of the playing of the three-dimensional skill animation, displaying the virtual object in a target posture at a target position in the scene picture of the two-dimensional virtual scene. The technical scheme is based on a target segment of a three-dimensional skill animation to determine a target position and a target posture of a virtual object in a scene picture of a two-dimensional virtual scene, so that the position and posture of the virtual object can be consistent with the target segment, thereby achieving smooth connection when the three-dimensional skill animation is switched to the scene picture of the two-dimensional virtual scene, improving the smoothness of picture connection, and improving the display effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, terminal and storage medium for displaying scene images. Background Technology

[0002] With the diversification of terminal functions, the types of games that can be played on these devices are increasing. Among them, side-scrolling action mobile games are quite popular, allowing users to control virtual objects moving within a two-dimensional virtual environment. These games typically include 3D story animations and skill animations, and how to seamlessly integrate these 3D animations with the 2D scene visuals is a problem that needs to be solved.

[0003] Currently, the common method for transitioning between scenes is editing, where the cutscene or skill animation ends and the scene is immediately switched to a 2D virtual environment. This transition is abrupt, resulting in poor smoothness and unsatisfactory display quality. Summary of the Invention

[0004] This application provides a method, device, terminal, and storage medium for displaying scene visuals, enabling smooth transitions when switching from 3D skill animation to 2D virtual scene visuals, improving the smoothness of the transitions and enhancing the display effect. The technical solution is as follows:

[0005] On one hand, according to an embodiment of this application, a method for displaying a scene is provided, the method comprising:

[0006] The scene screen displays a two-dimensional virtual scene, in which virtual objects are displayed;

[0007] In response to an operation that uses a target skill of the virtual object, a 3D skill animation corresponding to the target skill is played, the 3D skill animation being generated based on a 3D virtual scene corresponding to the 2D virtual scene;

[0008] In response to the completion of the 3D skill animation, the virtual object is displayed at the target position and in the target pose in the scene screen of the 2D virtual scene. The target position and the target pose are determined based on the target segment of the 3D skill animation.

[0009] On the other hand, according to an embodiment of this application, a display device for a scene image is provided, the device comprising:

[0010] The first display module displays a scene of a two-dimensional virtual scene, in which virtual objects are displayed;

[0011] The first playback module is used to play a three-dimensional skill animation corresponding to the target skill in response to the operation of using the target skill of the virtual object. The three-dimensional skill animation is generated based on the three-dimensional virtual scene corresponding to the two-dimensional virtual scene.

[0012] The first display module is further configured to, in response to the completion of the playback of the three-dimensional skill animation, display the virtual object at the target position in the scene screen of the two-dimensional virtual scene in a target posture, wherein the target position and the target posture are determined based on the target segment of the three-dimensional skill animation.

[0013] In some embodiments, the first playback module includes:

[0014] A generation unit is configured to, in response to an operation of using a target skill of the virtual object, capture the skill action of the virtual object performing the target skill in the three-dimensional virtual scene, thereby obtaining the three-dimensional skill animation corresponding to the target skill;

[0015] The playback unit is used to play the three-dimensional skill animation.

[0016] In some embodiments, the generation unit is configured to, in response to an operation of using a target skill of the virtual object, determine a second position of the virtual object in a three-dimensional virtual scene based on a first position of the virtual object in the two-dimensional virtual scene; determine shooting parameter information based on the second position and the action trajectory of the skill action, the shooting parameter information including a shooting start position, a shooting end position, and a shooting trajectory in the three-dimensional virtual scene; and, based on the shooting parameter information, film the virtual object performing the skill action of the target skill in the three-dimensional virtual scene to obtain the three-dimensional skill animation.

[0017] In some embodiments, the first display module includes:

[0018] A determining unit is configured to, in response to the completion of the playback of the 3D skill animation, determine the target position and the target posture based on the target segment of the 3D skill animation;

[0019] A rendering unit is used to render a scene image of the two-dimensional virtual scene based on the target position and the target pose, wherein the target position in the scene image is rendered with the virtual object in the target pose.

[0020] In some embodiments, the determining unit is configured to determine, based on the target segment of the three-dimensional skill animation, a third position and a first pose of the virtual object in the three-dimensional virtual scene; and based on the third position and the first pose, determine the target position and the target pose of the virtual object in the two-dimensional virtual scene.

[0021] In some embodiments, the apparatus further includes:

[0022] The determining module determines a first virtual background based on the target segment, wherein the first virtual background is used to indicate the scene in the target segment other than the virtual object;

[0023] The alignment module is used to align the second virtual background in the scene frame of the two-dimensional virtual scene with the first virtual background, and to display the aligned second virtual background in the scene frame of the two-dimensional virtual scene. The second virtual background is used to indicate the scene frame other than the virtual object.

[0024] In some embodiments, the first display module is configured to display the virtual object in a target pose at a target position in the scene frame of the two-dimensional virtual scene in response to the completion of the second-to-last frame of the three-dimensional skill animation; or, in response to the completion of the last frame of the three-dimensional skill animation, display the virtual object in a target pose at a target position in the scene frame of the two-dimensional virtual scene.

[0025] In some embodiments, the apparatus further includes:

[0026] The perspective correction module is used to perform perspective correction on virtual objects displayed in the scene of the two-dimensional virtual scene. The perspective correction is used to indicate that when the virtual object is translated in the two-dimensional virtual scene, the size and perspective angle of the virtual object will not change. The perspective angle is used to indicate the angle at which the virtual object is photographed.

[0027] In some embodiments, the apparatus further includes:

[0028] The second playback module is used to play the 3D story animation in response to a trigger operation. The 3D story animation displays the virtual object and is generated based on the 3D virtual scene.

[0029] The second display module is used to display the virtual object in a second pose at a fourth position in the scene screen of the two-dimensional virtual scene in response to the completion of the three-dimensional story animation. The fourth position and the second pose are determined based on the target segment of the three-dimensional story animation.

[0030] On the other hand, a terminal is provided, the terminal including a processor and a memory, the memory being used to store at least one computer program, the at least one computer program being loaded and executed by the processor to implement the scene display method in the embodiments of this application.

[0031] On the other hand, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by a processor to implement the display method of scene screen as described in the embodiments of this application.

[0032] On the other hand, a computer program product is provided, comprising computer program code stored in a computer-readable storage medium. A terminal's processor reads the computer program code from the computer-readable storage medium and executes the computer program code, causing the terminal to perform the scene display methods provided in various optional implementations of the above aspects.

[0033] This application provides a scene display scheme. After the 3D skill animation finishes playing, the target position and target posture of the virtual object in the 2D virtual scene are determined based on the target segment of the 3D skill animation. This ensures that the position and posture of the virtual object are consistent with those in the target segment, resulting in a smooth transition when switching from the 3D skill animation to the 2D virtual scene, thus improving the smoothness of the scene transition and the display effect. Attached Figure Description

[0034] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0035] Figure 1 This is a schematic diagram illustrating the implementation environment of a scene display method provided in an embodiment of this application;

[0036] Figure 2 This is a flowchart of a method for displaying a scene screen according to an embodiment of this application;

[0037] Figure 3 This is a flowchart of another method for displaying a scene screen according to an embodiment of this application;

[0038] Figure 4 This is a schematic diagram of a scene provided according to an embodiment of this application;

[0039] Figure 5 This is a schematic diagram illustrating the effect of a virtual object before and after translation using perspective, according to an embodiment of this application.

[0040] Figure 6This is a schematic diagram illustrating the effect of a virtual object before and after translation when using perspective correction, according to an embodiment of this application.

[0041] Figure 7 This is a schematic diagram of a target segment of a three-dimensional skill animation provided according to an embodiment of this application;

[0042] Figure 8 This is a schematic diagram of an adjustable object model provided according to an embodiment of this application;

[0043] Figure 9 This is a schematic diagram of an object model of a virtual object provided according to an embodiment of this application;

[0044] Figure 10 This is a schematic diagram illustrating the adjustment of a virtual background according to an embodiment of this application;

[0045] Figure 11 This is a schematic diagram of another scene provided according to an embodiment of this application;

[0046] Figure 12 This is a schematic diagram of a trend connection provided according to an embodiment of this application;

[0047] Figure 13 This is a schematic diagram illustrating another trend connection provided according to an embodiment of this application;

[0048] Figure 14 This is a flowchart illustrating the display of a virtual scene according to an embodiment of this application;

[0049] Figure 15 This is a schematic diagram of the structure of a scene display device according to an embodiment of this application;

[0050] Figure 16 This is a schematic diagram of the structure of a display device for another scene image provided according to an embodiment of this application;

[0051] Figure 17 This is a structural block diagram of a terminal provided according to an embodiment of this application. Detailed Implementation

[0052] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0053] In this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function. It should be understood that there is no logical or temporal dependency between "first," "second," and "nth," nor are there any restrictions on quantity or execution order.

[0054] In this application, the term "at least one" means one or more, and "multiple" means two or more.

[0055] In the specific implementation of this application, data related to scene images and so on are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0056] For ease of understanding, the terms used in this application are explained below.

[0057] Virtual scene: This refers to a virtual scene displayed (or provided) by an application when it runs on a terminal. This virtual scene can be a simulation of the real world, a semi-simulated / semi-fictional virtual scene, or a purely fictional virtual scene. Virtual scenes can be two-dimensional, 2.5-dimensional, or three-dimensional. For example, a virtual scene may include the sky, land, and ocean; the land may include environmental elements such as deserts and cities. Users can control virtual objects to move within this virtual scene.

[0058] Virtual objects refer to movable objects in a virtual world. These movable objects can be at least one of virtual characters, virtual animals, or anime characters. In some embodiments, when the virtual world is a three-dimensional virtual world, the virtual object is a three-dimensional model, with each virtual object having its own shape and volume, occupying a portion of the space in the three-dimensional virtual world. In some embodiments, the virtual object is a three-dimensional character constructed based on three-dimensional human skeleton technology, and the virtual object achieves different external appearances by wearing different skins. In some embodiments, virtual objects can be implemented using 2.5D or 2D models; this application does not limit this.

[0059] Side-scrolling: This refers to a game type where the movement of the character is controlled horizontally on the screen. The character's movement within the virtual environment is limited to either left-to-right or right-to-left. In side-scrolling games, the character's movement is entirely horizontal throughout the virtual environment. Based on content, side-scrolling games can be categorized into side-scrolling platformers, side-scrolling adventurers, side-scrolling action games, and side-scrolling strategy games. Based on technology, side-scrolling games can be divided into 2D side-scrolling games and 3D side-scrolling games.

[0060] Action games are a type of game that emphasizes the user's reaction speed and hand-eye coordination.

[0061] Mobile games: These are games that run on mobile devices (tablets, mobile phones, etc.), and mostly refer to mobile games.

[0062] Ultimate Skills: These refer to the skills of virtual objects in the game. Each virtual object controlled by the user possesses a skill called an Ultimate Skill, which can be used by the user-controlled virtual object during combat when certain conditions are met. Compared to ordinary skills, Ultimate Skills feature more elaborate visual effects such as camera transitions and character close-ups.

[0063] Perspective: refers to the method of depicting the spatial relationships of objects on a plane. When a virtual object moves parallel from left to right, virtual objects located at different positions in the virtual scene will appear inconsistent due to perspective, and virtual objects at different positions will not overlap.

[0064] Perspective correction refers to methods that remove the perspective effect from virtual objects. In side-scrolling games, to allow players to better grasp the key information of virtual objects and achieve the best visual effect, special techniques are used to remove the perspective effect from virtual objects. After perspective correction, the size and angle of virtual objects appear the same regardless of their position in the virtual scene.

[0065] A horizontal camera lens refers to a camera lens that can move in a two-dimensional direction. When a user manipulates a virtual object, the virtual scene view has a fixed perspective due to the use of perspective correction technology. Therefore, the size of the virtual object displayed in the virtual scene does not change as the object moves within the scene. In this embodiment, the two-dimensional camera lens refers to a horizontal camera lens.

[0066] 3D (3-Dimensional) camera: refers to a camera capable of moving in three dimensions. Virtual scenes captured by a 3D camera differ from other perspectives seen in a horizontal camera, such as 3D skill animations and 3D story animations. Unlike horizontal cameras, 3D camera footage does not use perspective correction techniques. In this application's embodiments, "3D camera" refers to a 3D camera.

[0067] One-shot: refers to a common filming technique in movies, in which a scene or performance is filmed continuously, and the transition is achieved simply by changing the camera angle without editing.

[0068] 3D software refers to the software used to create 3D animations, which can output character movements and camera information to the engine. Examples include Maya (a 3D animation software used in professional film and television advertising, character animation, and film special effects), 3D Max (short for 3D Studio Max, a 3D animation rendering and production software), and Lightwave (a 3D animation production software).

[0069] Engine: refers to the game development software used when making a game, such as Unreal Engine 3, Unreal Engine 4, Unreal Engine 5, etc.

[0070] The scene display method provided in this application embodiment can be executed by a terminal. The implementation environment of the scene display method provided in this application embodiment is described below. Figure 1 This is a schematic diagram illustrating the implementation environment of a scene display method provided in an embodiment of this application. See also... Figure 1 The implementation environment includes terminal 101 and server 102. Terminal 101 and server 102 can be connected directly or indirectly via wired or wireless communication, which is not limited herein.

[0071] In some embodiments, terminal 101 is a smartphone, tablet, laptop, desktop computer, etc., but is not limited to these. Terminal 101 has an application that supports virtual scenes installed. This application can be any one of a side-scrolling action mobile game, a third-person shooter game, a virtual reality application, a 3D map application, or a multiplayer shooting survival game. Terminal 101 is a user-used terminal, logged into with a user account. The user uses terminal 101 to operate virtual objects located in the virtual scene to perform activities, including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, attacking, and releasing skills at least one of these. The virtual object is a virtual character, such as a realistic or anime character. It should be noted that the number of terminals can be more or less. For example, there may be one terminal, or dozens or hundreds of terminals, or even more. This application embodiment does not limit the number or type of terminals.

[0072] In some embodiments, server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Server 102 is used to provide backend services for applications supporting virtual scenarios. In some embodiments, server 102 undertakes the main computing work, and terminal 101 undertakes the secondary computing work; or, server 102 undertakes the secondary computing work, and terminal 101 undertakes the main computing work; or, server 102 and terminal 101 collaborate on computing using a distributed computing architecture.

[0073] Figure 2 This is a flowchart illustrating a method for displaying a scene image according to an embodiment of this application, such as... Figure 2 As shown, this embodiment of the application will be described using an example of execution by a terminal. The method for displaying this scene includes the following steps:

[0074] 201. The terminal displays a scene of a two-dimensional virtual scene, in which virtual objects are displayed.

[0075] In this embodiment of the application, the terminal is Figure 1 The terminal 101 shown has a game program installed, and the two-dimensional virtual scene is a virtual scene of the game program. The scene screen of the two-dimensional virtual scene displays virtual objects. These virtual objects may be controlled by the account currently logged into on the terminal, or they may be controlled by an account logged into on another terminal, or they may be NPCs (Non-Player-Controlled Characters) in the two-dimensional virtual scene. This embodiment of the application does not impose any limitations on this.

[0076] For example, the virtual object may be standing on the left side of the scene, or it may be drawing a sword in the middle of the scene, or it may be lying down on the right side of the scene; there are no restrictions on this.

[0077] It should be noted that, from a technical perspective, this two-dimensional virtual scene is a three-dimensional virtual space, and the interior of this virtual space is the movable area for virtual objects. Two-dimensional virtual scenes are typically presented using a two-dimensional camera, which is a lens capable of moving in a two-dimensional direction. This camera captures the two-dimensional virtual scene from a fixed perspective, resulting in a two-dimensional effect. In other words, the scene presented to the user is captured from a fixed perspective, making the virtual objects in the two-dimensional virtual scene appear to move in a two-dimensional direction, and the virtual background displays different content as the two-dimensional camera moves. In this embodiment, such a virtual scene presented through a two-dimensional camera is referred to as a two-dimensional virtual scene.

[0078] 202. In response to the operation of using the target skill of the virtual object, the terminal plays the three-dimensional skill animation corresponding to the target skill, which is generated based on the three-dimensional virtual scene corresponding to the two-dimensional virtual scene.

[0079] In this embodiment, the target skill is either the ultimate skill or a regular skill of a virtual object. Each target skill corresponds to a 3D skill animation, which depicts the virtual object performing the skill action. The user can trigger the virtual object to release the target skill by activating the target skill. The terminal then responds to this activation by generating a corresponding playback command, instructing the playback of the 3D skill animation corresponding to the target skill. The terminal then plays the 3D skill animation according to the playback command, presenting it to the user on the screen.

[0080] The three-dimensional virtual scene is a three-dimensional virtual space, referred to as the first virtual space for ease of description. The two-dimensional virtual scene is also a three-dimensional virtual space, referred to as the second virtual space for ease of description. The second virtual space is a portion of the first virtual space, and the content of other areas in the first virtual space is displayed in the second virtual space as static images, serving as the virtual background of the second virtual space. The three-dimensional skill animation is captured by a three-dimensional camera in the three-dimensional virtual scene, where the three-dimensional camera refers to a camera that can move in three dimensions. The scene images of the two-dimensional virtual scene are captured by a two-dimensional camera in the two-dimensional virtual scene, where the two-dimensional camera refers to a camera that can move in two dimensions. When the three-dimensional camera and the two-dimensional camera are in corresponding positions, the content presented by the animation frames captured by the three-dimensional camera and the scene images captured by the two-dimensional camera are basically the same.

[0081] 203. In response to the completion of the 3D skill animation, the terminal displays the virtual object at the target position and in the target posture in the scene screen of the 2D virtual scene. The target position and target posture are determined based on the target segment of the target skill animation.

[0082] In this embodiment, since the target segment is captured in a 3D virtual scene, the position and posture of the virtual object in the target segment are not entirely consistent with the position and posture of the virtual object in the 2D virtual scene. The target position and posture can be determined through the target segment, ensuring that the position and posture of the virtual object remain consistent with those in the target segment. Therefore, the transition from displaying 3D skill animation to displaying the scene on the terminal is seamless.

[0083] The solution proposed in this application determines the target position and target posture of the virtual object in the scene screen of the two-dimensional virtual scene based on the target segment of the three-dimensional skill animation after the three-dimensional skill animation is finished playing. This ensures that the position and posture of the virtual object are consistent with those in the target segment, thereby making the transition smooth when switching from the three-dimensional skill animation to the scene screen of the two-dimensional virtual scene, improving the smoothness of the screen transition and the display effect.

[0084] The above Figure 2 The main flow of the scene display method provided in the embodiments of this application is illustrated. The following is a detailed description of the scene display method based on an application scenario. Figure 3 This is a flowchart of another method for displaying a scene screen according to an embodiment of this application, such as... Figure 3 As shown, this embodiment of the application will be described using an example of execution by a terminal. The method for displaying this scene includes the following steps:

[0085] 301. The terminal displays a scene of a two-dimensional virtual scene, in which virtual objects are displayed.

[0086] In this embodiment of the application, the terminal is Figure 1 The terminal 101 shown has a game program installed. This game program is a side-scrolling action game. When the terminal is a mobile terminal such as a mobile phone or tablet, the game program is called a side-scrolling action mobile game. The two-dimensional virtual scene is the virtual scene of the game program. The two-dimensional virtual scene displays virtual objects. Taking the virtual object controlled by the account currently logged into the terminal as an example.

[0087] For example, Figure 4 This is a schematic diagram of a scene provided according to an embodiment of this application. See also: Figure 4 As shown, the scene screen displays virtual object 401, virtual object 402, and a virtual background of the scene screen. Virtual object 401 is a virtual object controlled by the account currently logged in on the terminal, and virtual object 402 is an NPC.

[0088] It's important to note that in 2D virtual scenes, perspective is typically used to represent the spatial relationships of virtual objects. This means that when a virtual object is in a different position, its size and perspective angle will differ due to perspective. The perspective angle indicates the angle from which the virtual object is being photographed. If a virtual object is translated within the 2D virtual scene, its size and perspective angle will change, causing the object to not overlap before and after the translation. This results in an inconsistent visual experience for the user and a poor display quality.

[0089] For example, Figure 5 This is a schematic diagram illustrating the effect of a virtual object before and after translation using perspective, according to an embodiment of this application. See also... Figure 5 As shown, when a virtual object translates from left to right in a two-dimensional virtual scene, it is... Figure 5 Move to the position shown in (a) Figure 5As shown in (b), because the position of the 2D camera remains unchanged, the size and perspective of the virtual object in the scene captured by the 2D camera will change: from a larger body appearing from the front of the virtual object, to a smaller body appearing from the side, and finally to a larger body appearing from behind. This results in inconsistent size and perspective of the virtual object as it is translated. See also Figure 5 As shown in (c) in the figure, Figure 5 (c) in the example illustrates a virtual object in Figure 5 The position of (a) in the middle and Figure 5 In the case of (b) where the positions are superimposed, it is clear that the size and perspective of the virtual object are inconsistent.

[0090] In some embodiments, to improve the display effect, perspective correction can be applied to virtual objects in a two-dimensional virtual scene to remove perspective-based effects on the virtual objects. Perspective correction ensures that the size and perspective angle of the virtual object do not change when it is translated within the two-dimensional virtual scene. By applying perspective correction to virtual objects in a two-dimensional virtual scene, ensuring that the size and perspective angle of the virtual object remain consistent before and after translation, the display effect of the virtual object can be improved.

[0091] For example, Figure 6 This is a schematic diagram illustrating the effect of a virtual object before and after translation when using perspective correction, according to an embodiment of this application. See also... Figure 6 As shown, when a virtual object translates from left to right in a two-dimensional virtual scene, it is... Figure 6 Move to the position shown in (a) Figure 6 As shown in (b), due to the use of perspective correction technology, the size and perspective angle of the virtual object remain unchanged in the scene captured by the 2D camera. See [reference needed]. Figure 6 As shown in (c) in the figure, Figure 6 (c) in the example illustrates a virtual object in Figure 6 The position of (a) in the middle and Figure 6 In the case of (b) being superimposed, it is clear that the size and perspective of the virtual object are consistent.

[0092] 302. In response to the operation of using the target skill of the virtual object, the terminal plays the three-dimensional skill animation corresponding to the target skill, which is generated based on the three-dimensional virtual scene corresponding to the two-dimensional virtual scene.

[0093] In this embodiment, the target skill is either an ultimate skill possessed by the virtual object or a regular skill possessed by the virtual object. Each target skill corresponds to a 3D skill animation, which is used to present the skill action of the virtual object performing the target skill. The correspondence between the 3D virtual scene and the 2D virtual scene is explained in step 202 above and will not be repeated here.

[0094] In some embodiments, the 3D skill animation is generated by the terminal based on a 3D virtual scene, or by the server based on an animation acquisition request uploaded by the terminal. The animation acquisition request includes the position of the virtual object within the scene frame of the 2D virtual scene, and the terminal can obtain the 3D skill animation from the server. This application embodiment uses the generation of the 3D skill animation by the terminal as an example. In response to an operation to use a target skill of a virtual object, the terminal captures the skill action of the virtual object performing the target skill in the 3D virtual scene, obtaining the 3D skill animation corresponding to the target skill. Then, the terminal plays the 3D skill animation. Different target skills correspond to different 3D skill animations. By capturing 3D skill animations in a 3D virtual scene, the 3D skill animation can display the skill action of the virtual object performing the target skill from multiple angles and in a three-dimensional manner, resulting in a good display effect. Furthermore, since the 3D virtual scene corresponds to the 2D virtual scene, the captured 3D skill animation is closely related to the 2D virtual scene, improving the user experience.

[0095] In some embodiments, the terminal can capture the 3D skill animation based on the correspondence between the 3D virtual scene and the 2D virtual scene. The step of the terminal capturing the skill action of the virtual object performing the target skill in the 3D virtual scene in response to the operation of using the target skill of the virtual object to obtain the 3D skill animation corresponding to the target skill is implemented based on the following steps (1)-(3).

[0096] (1) In response to the use of the target skill of the virtual object, the terminal determines the second position of the virtual object in the three-dimensional virtual scene based on the first position of the virtual object in the two-dimensional virtual scene.

[0097] Specifically, the terminal can obtain the first position of the virtual object in the two-dimensional virtual scene. Since there is a correspondence between the three-dimensional virtual scene and the two-dimensional virtual scene, the terminal can determine the second position of the virtual object in the three-dimensional virtual scene based on this correspondence and the first position. That is, the terminal can determine the second position of the virtual object in the three-dimensional virtual scene based on the first position of the virtual object in the two-dimensional virtual scene and the correspondence, where both the first and second positions are three-dimensional coordinates.

[0098] (2) The terminal determines the shooting parameter information based on the second position and the action trajectory of the skill action. The shooting parameter information includes the shooting start position, shooting end position and shooting trajectory in the three-dimensional virtual scene.

[0099] In this system, the target skill of the virtual object consists of preset actions. The terminal can obtain the action trajectory of this skill based on its skill identifier. The terminal can then determine shooting parameters such as the starting and ending shooting positions, and the shooting path itself, based on this trajectory. These shooting parameters may also include parameters like camera movement speed and lens focal length. The terminal can then capture the 3D skill animation in a 3D virtual scene using a 3D camera. The starting shooting position is where the 3D camera begins capturing the 3D skill animation in the 3D virtual scene, and the ending shooting position is where the 3D camera ends capturing the 3D skill animation in the 3D virtual scene. The 3D camera can move along the shooting trajectory from the starting shooting position to the ending shooting position.

[0100] (3) The terminal captures the skill actions of the virtual object performing the target skill in the three-dimensional virtual scene according to the shooting parameter information, and obtains a three-dimensional skill animation.

[0101] In this process, when the virtual object begins to perform the skill action of the target skill, the terminal controls the 3D camera to start filming from the initial shooting position. During the virtual object's skill action, the camera moves along the shooting trajectory to the ending shooting position. In other words, the terminal controls the 3D camera to continuously film the virtual object performing the target skill action, thus obtaining the corresponding 3D skill animation. The virtual object starts performing the action from a second position in the 3D virtual scene and finally reaches the action ending position. This ending position may be the same as or different from the second position; no limitation is imposed here.

[0102] For example, the starting position of the 3D camera is located directly in front of the virtual object. When the virtual object performs a skill action, it dashes forward from the second position for three seconds. At this time, the 3D camera shoots for three seconds at the starting position. Then the virtual object retreats to the second position. During the retreat of the virtual object, the 3D camera moves from the starting position along the shooting trajectory. When the virtual object returns to the second position, the 3D camera moves to the ending position, which is located directly to the left of the virtual object. The 3D camera continuously shoots the virtual object during the movement.

[0103] It should be noted that virtual objects in 3D skill animations are displayed using perspective. This means that virtual objects appear larger when closer to the 3D camera and smaller when farther away. When the 3D camera is directly in front of the virtual object, the perspective angle is directly forward, showing the front of the object while its sides and back are not visible. When the 3D camera is to the left of the virtual object, the perspective angle is to the left, showing the left side of the object while only partially showing its front and its right side and back are visible. Because perspective correction technology is used to process virtual objects in the scene, the size and perspective angle of virtual objects in the 2D virtual scene differ from those in the 3D skill animation. If the scene transitions directly from the 3D skill animation to the 2D virtual scene after the 3D animation finishes, this perspective change will cause abrupt transitions. Therefore, it is necessary to determine the target position and pose of the virtual object in the 2D virtual scene based on the target segment in the 3D skill animation, and then execute steps 303-305.

[0104] 303. In response to the completion of the 3D skill animation playback, the terminal determines the target position and target posture based on the target segment of the 3D skill animation.

[0105] In the embodiments of this application, the target segment can be the last frame of the 3D skill animation, the second to last frame of the 3D skill animation, or multiple image frames in the 3D skill animation. The embodiments of this application do not impose any restrictions on this.

[0106] In some embodiments, the target segment is the last frame of the 3D skill animation. The step of determining the target position and target posture based on the target segment of the 3D skill animation includes: the terminal determining the third position and first posture of the virtual object in the 3D virtual scene based on the target segment of the 3D skill animation. The terminal stores the position and posture of the virtual object in each frame of the 3D skill animation, and can directly obtain the third position and first posture of the virtual object in the 3D virtual scene when the last frame was captured. Alternatively, the terminal can perform image recognition on the last frame of the 3D skill animation to obtain the third position and first posture of the virtual object in the 3D virtual scene; this embodiment does not limit this approach. Then, based on the obtained third position and first posture, the terminal determines the target position and target posture of the virtual object in the 2D virtual scene. By determining the target position and target posture of the virtual object in the 2D virtual scene based on the third position and first posture of the virtual object in the last frame of the 3D skill animation, the target position and target posture can be consistent with the third position and first posture respectively, thereby improving the smoothness when switching from the 3D skill animation to the 2D virtual scene.

[0107] For example, Figure 7 This is a schematic diagram of a target segment of a three-dimensional skill animation according to an embodiment of this application. See also... Figure 7 As shown, the target segment is the last frame of the 3D skill animation. The last frame of the 3D skill animation displays virtual object 701, virtual object 702, and a virtual background. Virtual object 701 is a virtual object controlled by the terminal login account, and virtual object 702 is an NPC. Virtual object 701 is located in the third position, and its current posture is the first posture.

[0108] In some embodiments, when the target segment is the penultimate frame of a 3D skill animation, the steps for the terminal to determine the target position and target posture based on the target segment of the 3D skill animation are similar to those when the target segment is the last frame. The difference is that after determining the third position and first posture of the virtual object in the 3D virtual scene based on the target segment, the terminal predicts the position and posture of the virtual object in the 2D virtual scene based on the third position and first posture, thus obtaining the aforementioned target position and target posture. By predicting based on the penultimate frame of the 3D skill animation, the predicted target position and target posture conform to the movement trend of the virtual object, thereby improving the smoothness when switching from the 3D skill animation to the 2D virtual scene.

[0109] In some embodiments, when the target segment comprises multiple image frames in a 3D skill animation, the terminal can predict the target position and target posture of the virtual object in a 2D virtual scene based on the changing trends of the virtual object's position and posture in the multiple image frames. By predicting based on multiple image frames in the 3D skill animation, the predicted target position and target posture conform to the movement trend of the virtual object, thereby improving the smoothness when switching from the 3D skill animation to the 2D virtual scene.

[0110] 304. The terminal renders a scene of a two-dimensional virtual scene based on the target position and target posture. The target position in the scene is rendered with a virtual object in the target posture.

[0111] In this embodiment of the application, after the terminal obtains the target position and target pose of the virtual object in the two-dimensional virtual scene, it renders the object model of the virtual object and the virtual background of the two-dimensional virtual scene to obtain the scene picture of the two-dimensional virtual scene.

[0112] In some embodiments, the terminal can translate the object model to the target position in the two-dimensional virtual scene based on the target position, then rotate and scale the object model to present the target pose, then capture an image using a two-dimensional camera in the two-dimensional virtual scene to obtain the scene image to be rendered, and finally render the scene image. By performing translation, rotation, and scaling on the object model of the virtual object, the virtual object can be presented at the target position and in the target pose in the scene image, thus improving the rendering efficiency of the scene image.

[0113] It should be noted that since the translation, rotation, and scaling of the object model by the terminal are background processes, the above background processes are described in a visual way for ease of understanding. Figure 8 This is a schematic diagram of an adjustable object model provided according to an embodiment of this application. See also... Figure 8 As shown, the terminal translates the object model 801 of the virtual object, moving it to the target position in the two-dimensional virtual scene. The terminal adjusts... Figure 8 The position parameters in the object transformation interface, i.e., adjusting the coordinate values ​​of the object model in the X, Y, and Z directions, change the position of the object model in the 2D virtual scene. The X direction is horizontal to the right, the Y direction is horizontally pointing towards the 2D camera, and the Z direction is vertically upward; these are not specifically defined. The terminal rotates and scales the object model 801 of the virtual object to make it present the target pose. The terminal adjusts... Figure 8 The rotation and scaling parameters in the object transformation interface shown are used to adjust the rotation angle and scaling ratio of the object model in the X, Y, and Z directions to change the posture of the virtual object.

[0114] In some embodiments, the object model of a virtual object does not include virtual items owned by the virtual object, such as... Figure 8 The virtual sword shown can be translated, rotated, and scaled by the terminal based on its position and shape in the target segment of the 3D skill animation, ensuring that its position and shape in the 2D virtual scene are consistent with those in the target segment. The terminal adjusts the virtual item in a similar way to adjust the object model, and will not be elaborated further. By adjusting the position of the virtual item, the scene is made more consistent with the content displayed in the target segment of the 3D skill animation, resulting in a smooth transition and better display effect when switching from the 3D skill animation to the 2D virtual scene.

[0115] For example, see continue. Figure 8 The terminal can perform translation, rotation and scaling on the virtual prop 802. The processing method is the same as the terminal's processing method for the object model 801, and will not be repeated here.

[0116] In some embodiments, the terminal can also replace the aforementioned position and posture adjustment steps with model replacement. The terminal can obtain a first model of the virtual object in a 3D virtual scene, and generate a second model based on the posture corresponding to the first model in the target segment. The posture of the second model is the aforementioned target posture. The second model is obtained by adjusting the first model, that is, adjusting the 3D features in the first model to 2D features, such as changing the object model's foot from the forefoot to the entire foot, or changing the object model's fist from pointing to the upper right to pointing directly upwards. Then, during the rendering of the 2D virtual scene, the terminal directly replaces the original model with the second model, so that the second model appears in the target position in the scene with the target posture. By directly replacing the virtual object's model, scene rendering can be achieved efficiently.

[0117] It should be noted that because virtual objects undergo perspective correction in a 2D virtual scene, the object model of the virtual object is not completely consistent in a 3D virtual scene compared to a 2D virtual scene. In other words, the target position and target posture determined based on the target fragment in the 3D virtual scene may contain some errors.

[0118] For example, Figure 9 This is a schematic diagram of an object model for a virtual object provided according to an embodiment of this application. See also... Figure 9As shown, 901 is the object model in the 3D virtual scene, 902 is the object model in the 2D virtual scene, and 903 is a comparison diagram showing the superposition of 901 and 902. It can be seen from 903 that the object model of the virtual object in the 3D virtual scene is not completely consistent with the model of the virtual object in the 2D virtual scene.

[0119] Switching models directly within a static scene would cause very noticeable changes to the virtual objects, resulting in choppy transitions. Therefore, the terminal uses a combination of camera rotation to mask the model replacement. Specifically, while filming 3D skill animations, the 3D camera continuously rotates. When switching from the 3D skill animation to a scene view, the last frame of the 3D skill animation is replaced with the 2D virtual scene view, and the model is replaced during the transition. Because the camera is constantly moving, the model replacement doesn't produce abrupt changes, resulting in smooth transitions and minimal model switching.

[0120] For example, see continue. Figure 9 904 is the object model in one frame of the 3D skill animation. By rotating the camera during the filming of the 3D skill animation, the pose of the object model gradually changes from 904 to 901, that is, from the front of the virtual object to its side. At the end of this rotation, the model is replaced, that is, the object model shown in 902 replaces the model shown in 901. Since the two virtual objects are basically the same, the screen transition is smooth and the model replacement is not easily noticeable, resulting in a better display effect.

[0121] In some embodiments, the terminal can also adjust the virtual background of the scene frame in the two-dimensional virtual scene based on the virtual background in the target segment to make the virtual background consistent. The terminal can determine a first virtual background based on the target segment, which indicates the scene in the target segment excluding virtual objects; then, the terminal aligns a second virtual background in the scene frame of the two-dimensional virtual scene with the first virtual background, and displays the aligned second virtual background in the scene frame of the two-dimensional virtual scene, which indicates the scene in the scene frame excluding virtual objects. By adjusting the virtual background of the second scene frame, the scene frame is made more consistent with the target segment, so that the background does not appear abrupt when switching from 3D skill animation to the scene frame, the screen transition is smoother, and the display effect is better.

[0122] For example, Figure 10 This is a schematic diagram illustrating the adjustment of a virtual background according to an embodiment of this application. See also... Figure 10 As shown, Figure 10 In (a), 1001 represents the display area corresponding to the second virtual background of the scene. Figure 10In Figure (a), 1002 represents the display area corresponding to the second virtual background of the target segment. The shaded area indicates the additional display area of ​​the first virtual background compared to the second virtual background. By aligning the first and second virtual backgrounds and adjusting the content displayed in the second virtual background, the content displayed in the second virtual background becomes consistent with that of the first virtual background. As shown in Figure (b), based on the replaced object model and the aligned virtual background, a two-dimensional virtual scene can be rendered.

[0123] It should be noted that the terminal can implement this step based on 3D software already deployed in the game engine. This application does not limit the types of game engines and 3D software.

[0124] 305. Upon completion of the 3D skill animation playback, the terminal displays the virtual object in the target posture at the target location within the 2D virtual scene.

[0125] In this embodiment, in response to the completion of the 3D skill animation, the screen switches from the last frame of the 3D skill animation to the scene view of the 2D virtual scene. A virtual object is displayed at the target location in the scene view, in the target pose. Because the target pose of the virtual object in the 2D virtual scene is consistent with the pose of the virtual object when the 3D skill animation ended, and the position of the virtual object is consistent with its position when the 3D skill animation ended, the transition from the 3D skill animation to the 2D virtual scene is smooth, improving the smoothness of the screen transition and enhancing the display effect.

[0126] For example, Figure 11 This is a schematic diagram of another scene provided according to an embodiment of this application. See also Figure 11 As shown, the scene displays virtual object 1101, virtual object 1002, and a virtual background. The virtual background of this scene corresponds to the virtual background of the target segment. The location of virtual object 1101 is the target location, and the current posture of virtual object 1101 is the target posture. Among them, virtual object 1002 is an NPC.

[0127] In some embodiments, the terminal can employ a trend-bridging method to connect the scene frames of a 3D skill animation and a 2D virtual scene. In response to the completion of the penultimate frame of the 3D skill animation, the terminal displays a virtual object at the target location and in the target pose within the scene frame of the 2D virtual scene. Since the content of this scene frame is identical to the last frame of the 3D skill animation, the transition from the penultimate frame of the 3D skill animation to this scene frame will not appear abrupt.

[0128] For example, Figure 12This is a schematic diagram of a trend connection according to an embodiment of this application. See also... Figure 12 As shown, the terminal uses a 3D camera to capture the game character performing skill actions, resulting in a 3D skill animation. This 3D skill animation is then played. After the penultimate frame of the 3D skill animation finishes playing, the first frame of a horizontal camera, representing a 2D virtual scene, is displayed, and then the battle begins, transferring control of the game character to the player.

[0129] It should be noted that, in order to make the solutions provided in the embodiments of this application easier to understand, Figure 13 This is a schematic diagram illustrating another trend connection according to an embodiment of this application. See also Figure 13 As shown, Figure 13 In the example (a), the virtual object is shown in a frame in the middle of the 3D skill animation, with the 3D camera positioned directly in front of the virtual object. The terminal combines camera rotation and trend blending methods. Figure 13 The upper part of (b) shows the 3D camera rotating and moving away from the virtual object, starting from directly in front of it. This is achieved by using a one-shot transition to change the camera's angle and capture the virtual object. As time progresses, when the penultimate frame of the 3D skill animation is played, a transition is used to replace the last frame of the 3D skill animation with a scene from a 2D virtual environment. By combining camera rotation and transitions for scene switching, smooth transitions and a better display effect are achieved.

[0130] It should be noted that the side-scrolling action mobile game also includes 3D story animations, and the terminal can switch from 3D story animations to a 2D virtual scene. In response to a trigger operation on the 3D story animation, the terminal plays the 3D story animation, which displays virtual objects. This 3D story animation is generated based on the 3D virtual scene, and its generation method is similar to that of 3D skill animations, so it will not be described further. In response to the completion of the 3D story animation, the terminal displays the virtual object in a second pose at the fourth position in the 2D virtual scene. This fourth position and second pose are determined based on the target segment of the 3D story animation. The process of switching the terminal from the 3D story animation to the 2D virtual scene is the same as the process of switching the 3D skill animation to the 2D virtual scene, and will not be described further.

[0131] For example, Figure 14 This is a flowchart illustrating the display of a virtual scene according to an embodiment of this application. See also... Figure 14As shown, as time progresses, the terminal plays a 3D story animation. At the end of the penultimate frame of the 3D story animation, a transition method is used to replace the last frame of the 3D story animation with a 2D virtual scene. The user account manipulates virtual objects. In response to the release of an ultimate skill, the terminal uses a transition method to switch the 2D virtual scene to the corresponding 3D skill animation. At the end of the penultimate frame of the 3D skill animation, a transition method is used to replace the last frame of the 3D skill animation with a 2D virtual scene, and so on. The terminal uses this method to display the scene.

[0132] The solution proposed in this application determines the target position and target posture of the virtual object in the scene screen of the two-dimensional virtual scene based on the target segment of the three-dimensional skill animation after the three-dimensional skill animation is finished playing. This ensures that the position and posture of the virtual object are consistent with those in the target segment, thereby making the transition smooth when switching from the three-dimensional skill animation to the scene screen of the two-dimensional virtual scene, improving the smoothness of the screen transition and the display effect.

[0133] Figure 15 This is a schematic diagram of the structure of a scene display device according to an embodiment of this application. See also... Figure 15 The device includes a first display module 1501 and a first playback module 1502.

[0134] The first display module 1501 displays a scene of a two-dimensional virtual scene, in which virtual objects are displayed;

[0135] The first playback module 1502 is used to play a three-dimensional skill animation corresponding to the target skill in response to the operation of using the target skill of the virtual object. The three-dimensional skill animation is generated based on the three-dimensional virtual scene corresponding to the two-dimensional virtual scene.

[0136] The first display module 1501 is also used to display the virtual object in a target pose at the target position in the scene screen of the two-dimensional virtual scene in response to the completion of the playback of the three-dimensional skill animation. The target position and the target pose are determined based on the target segment of the three-dimensional skill animation.

[0137] In some embodiments, Figure 16 This is a schematic diagram of the structure of a display device for another scene image provided according to an embodiment of this application. See also... Figure 16 The first playback module 1502 includes:

[0138] The generation unit 1601 is used to, in response to the operation of using the target skill of the virtual object, capture the skill action of the virtual object performing the target skill in the three-dimensional virtual scene, and obtain the three-dimensional skill animation corresponding to the target skill;

[0139] Playback unit 1602 is used to play the 3D skill animation.

[0140] In some embodiments, the generation unit 1601 is configured to, in response to a target skill usage operation of the virtual object, determine a second position of the virtual object in a three-dimensional virtual scene based on a first position of the virtual object in the two-dimensional virtual scene; determine shooting parameter information based on the second position and the action trajectory of the skill action, the shooting parameter information including a shooting start position, a shooting end position, and a shooting trajectory in the three-dimensional virtual scene; and, based on the shooting parameter information, film the virtual object performing the skill action of the target skill in the three-dimensional virtual scene to obtain the three-dimensional skill animation.

[0141] In some embodiments, the first display module 1501 includes:

[0142] The determining unit 1603 is used to determine the target position and the target posture based on the target segment of the 3D skill animation in response to the completion of the 3D skill animation playback.

[0143] The rendering unit 1604 is used to render the scene of the two-dimensional virtual scene based on the target position and the target pose, wherein the virtual object in the target pose is rendered at the target position in the scene.

[0144] In some embodiments, the determining unit 1603 is configured to determine the third position and first posture of the virtual object in the three-dimensional virtual scene based on the target segment of the three-dimensional skill animation; and to determine the target position and target posture of the virtual object in the two-dimensional virtual scene based on the third position and the first posture.

[0145] In some embodiments, the device further includes:

[0146] The determining module 1503 determines a first virtual background based on the target segment, the first virtual background being used to indicate the scene in the target segment other than the virtual object;

[0147] Alignment module 1504 is used to align the second virtual background in the scene screen of the two-dimensional virtual scene with the first virtual background, and to display the aligned second virtual background in the scene screen of the two-dimensional virtual scene. The second virtual background is used to indicate the scene screen other than the virtual object.

[0148] In some embodiments, the first display module 1502 is configured to display the virtual object in a target pose at a target position in the scene frame of the two-dimensional virtual scene in response to the completion of the second-to-last frame of the three-dimensional skill animation; or, in response to the completion of the last frame of the three-dimensional skill animation, display the virtual object in a target pose at a target position in the scene frame of the two-dimensional virtual scene.

[0149] In some embodiments, the device further includes:

[0150] The perspective correction module 1505 is used to perform perspective correction on the virtual objects displayed in the scene of the two-dimensional virtual scene. The perspective correction is used to indicate that when the virtual object is translated in the two-dimensional virtual scene, the size and perspective angle of the virtual object will not change. The perspective angle is used to indicate the angle at which the virtual object is photographed.

[0151] In some embodiments, the device further includes:

[0152] The second playback module 1506 is used to play the three-dimensional story animation in response to a trigger operation on the three-dimensional story animation. The three-dimensional story animation displays the virtual object and is generated based on the three-dimensional virtual scene.

[0153] The second display module 1507 is used to display the virtual object in a second pose at a fourth position in the scene screen of the two-dimensional virtual scene in response to the completion of the three-dimensional story animation. The fourth position and the second pose are determined based on the target segment of the three-dimensional story animation.

[0154] This application provides a scene display device. After the 3D skill animation finishes playing, the target position and target posture of the virtual object in the 2D virtual scene are determined based on the target segment of the 3D skill animation. This ensures that the position and posture of the virtual object are consistent with those in the target segment, resulting in a smooth transition when switching from the 3D skill animation to the 2D virtual scene, thus improving the smoothness of the screen transition and the display effect.

[0155] It should be noted that the scene display device provided in the above embodiments is illustrated by the division of the above functional modules when displaying virtual scene images. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the scene display device and the scene display method embodiments provided in the above embodiments belong to the same concept, and the implementation process is detailed in the method embodiments, which will not be repeated here.

[0156] Figure 17This is a structural block diagram of a terminal 1700 provided according to an embodiment of this application. The terminal 1700 can be a portable mobile terminal, such as a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. The terminal 1700 may also be referred to as a user device, portable terminal, laptop terminal, desktop terminal, or other names.

[0157] Typically, terminal 1700 includes a processor 1701 and a memory 1702.

[0158] Processor 1701 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1701 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1701 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1701 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen. In some embodiments, processor 1701 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0159] The memory 1702 may include one or more computer-readable storage media, which may be non-transitory. The memory 1702 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1702 are used to store at least one computer program, which is executed by the processor 1701 to implement the scene display method provided in the method embodiments of this application.

[0160] In some embodiments, the terminal 1700 may also optionally include: a peripheral device interface 1703 and at least one peripheral device. The processor 1701, memory 1702, and peripheral device interface 1703 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1703 via a bus, signal line, or circuit board. The peripheral device includes at least one of: a radio frequency circuit 1704, a display screen 1705, a camera assembly 1706, an audio circuit 1707, and a power supply 1708.

[0161] Peripheral interface 1703 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1701 and memory 1702. In some embodiments, processor 1701, memory 1702 and peripheral interface 1703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1701, memory 1702 and peripheral interface 1703 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0162] The radio frequency (RF) circuit 1704 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1704 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1704 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. In some embodiments, the RF circuit 1704 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 RF circuit 1704 can communicate with other terminals via at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1704 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.

[0163] Display screen 1705 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 1705 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1701 for processing. In this case, display screen 1705 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 1705, disposed on the front panel of terminal 1700; in other embodiments, there may be at least two display screens, disposed on different surfaces of terminal 1700 or in a folded design; in still other embodiments, display screen 1705 may be a flexible display screen, disposed on a curved or folded surface of terminal 1700. Furthermore, display screen 1705 may also be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. The display screen 1705 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0164] The camera assembly 1706 is used to acquire images or videos. In some embodiments, the camera assembly 1706 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 1706 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.

[0165] The audio circuit 1707 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to the processor 1701 for processing, or input to the radio frequency circuit 1704 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each positioned at a different location on the terminal 1700. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 1701 or the radio frequency circuit 1704 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 1707 may also include a headphone jack.

[0166] Power supply 1708 is used to power the various components in terminal 1700. Power supply 1708 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When power supply 1708 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged via a wired line, and a wireless rechargeable battery is a battery that is charged via a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0167] In some embodiments, the terminal 1700 further includes one or more sensors 1709. The one or more sensors 1709 include, but are not limited to: an accelerometer 1710, a gyroscope 1711, a pressure sensor 1712, an optical sensor 1713, and a proximity sensor 1714.

[0168] Accelerometer 1710 can detect the magnitude of acceleration along the three axes of a coordinate system established by terminal 1700. For example, accelerometer 1710 can be used to detect the components of gravitational acceleration along the three axes. Processor 1701 can control display screen 1705 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 1710. Accelerometer 1710 can also be used for games or for acquiring user motion data.

[0169] The gyroscope sensor 1711 can detect the orientation and rotation angle of the terminal 1700. The gyroscope sensor 1711 can work in conjunction with the accelerometer sensor 1710 to acquire the user's 3D movements on the terminal 1700. Based on the data acquired by the gyroscope sensor 1711, the processor 1701 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.

[0170] The pressure sensor 1712 can be disposed on the side bezel of the terminal 1700 and / or on the lower layer of the display screen 1705. When the pressure sensor 1712 is disposed on the side bezel of the terminal 1700, it can detect the user's grip signal on the terminal 1700, and the processor 1701 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1712. When the pressure sensor 1712 is disposed on the lower layer of the display screen 1705, the processor 1701 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 1705. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.

[0171] Optical sensor 1713 is used to collect ambient light intensity. In one embodiment, processor 1701 can control the display brightness of display screen 1705 based on the ambient light intensity collected by optical sensor 1713. When the ambient light intensity is high, the display brightness of display screen 1705 is increased; when the ambient light intensity is low, the display brightness of display screen 1705 is decreased. In another embodiment, processor 1701 can also dynamically adjust the shooting parameters of camera assembly 1706 based on the ambient light intensity collected by optical sensor 1713.

[0172] The proximity sensor 1714, also known as a distance sensor, is typically located on the front panel of the terminal 1700. The proximity sensor 1714 is used to detect the distance between the user and the front of the terminal 1700. In one embodiment, when the proximity sensor 1714 detects that the distance between the user and the front of the terminal 1700 is gradually decreasing, the processor 1701 controls the display screen 1705 to switch from a screen-on state to a screen-off state; when the proximity sensor 1714 detects that the distance between the user and the front of the terminal 1700 is gradually increasing, the processor 1701 controls the display screen 1705 to switch from a screen-off state to a screen-on state.

[0173] Those skilled in the art will understand that Figure 17 The structure shown does not constitute a limitation on terminal 1700 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0174] This application also provides a computer-readable storage medium storing at least one computer program. This computer program is loaded and executed by a terminal's processor to implement the operations performed by the terminal in the scene display method of the above embodiments. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.

[0175] This application also provides a computer program product, which includes computer program code stored in a computer-readable storage medium. The terminal's processor reads the computer program code from the computer-readable storage medium and executes the computer program code, causing the terminal to perform the scene display methods provided in the various optional implementations described above.

[0176] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0177] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for displaying a scene, characterized in that, The method includes: The scene screen displays a two-dimensional virtual scene, in which virtual objects are displayed; In response to an operation that uses a target skill of the virtual object, a 3D skill animation corresponding to the target skill is played, the 3D skill animation being generated based on a 3D virtual scene corresponding to the 2D virtual scene; In response to the completion of the 3D skill animation playback, based on the target segment of the 3D skill animation, the third position and first posture of the virtual object in the 3D virtual scene are determined; based on the third position and the first posture, the target position and target posture of the virtual object in the 2D virtual scene are determined; based on the target position and the target posture, the scene screen of the 2D virtual scene is rendered, and the virtual object in the target posture is rendered at the target position in the scene screen; In this context, the virtual objects in the scene of the two-dimensional virtual scene undergo perspective correction. The perspective correction is used to indicate that when the virtual object is translated in the two-dimensional virtual scene, the size and perspective angle of the virtual object will not change. The perspective angle is used to indicate the angle at which the virtual object is photographed. The virtual objects in the three-dimensional skill animation are displayed using perspective.

2. The method according to claim 1, characterized in that, The step of playing a 3D skill animation corresponding to the target skill in response to an operation on the virtual object includes: In response to the operation of using the target skill of the virtual object, the virtual object performs the skill action of the target skill in the three-dimensional virtual scene to obtain the three-dimensional skill animation corresponding to the target skill; Play the aforementioned 3D skill animation.

3. The method according to claim 2, characterized in that, The step of responding to the operation of using the target skill of the virtual object, capturing the skill action of the virtual object performing the target skill in the three-dimensional virtual scene, and obtaining the three-dimensional skill animation corresponding to the target skill, includes: In response to an operation involving the use of a target skill of the virtual object, a second position of the virtual object in the three-dimensional virtual scene is determined based on a first position of the virtual object in the two-dimensional virtual scene. Based on the second position and the movement trajectory of the skill action, shooting parameter information is determined, including the shooting start position, shooting end position, and shooting trajectory in the three-dimensional virtual scene; Based on the shooting parameter information, the virtual object is filmed performing the skill action of the target skill in the three-dimensional virtual scene to obtain the three-dimensional skill animation.

4. The method according to claim 1, characterized in that, The method further includes: Based on the target segment, a first virtual background is determined, which is used to indicate the scene in the target segment other than the virtual object; Align the second virtual background in the scene of the two-dimensional virtual scene with the first virtual background, and display the aligned second virtual background in the scene of the two-dimensional virtual scene. The second virtual background is used to indicate the scene other than the virtual object in the scene.

5. The method according to claim 1, characterized in that, After the 3D skill animation finishes playing, it includes: The second-to-last frame of the 3D skill animation has finished playing; Alternatively, the last frame of the 3D skill animation has finished playing.

6. The method according to claim 1, characterized in that, The method further includes: In response to a trigger operation on a 3D story animation, the 3D story animation is played, the 3D story animation displays the virtual object, and the 3D story animation is generated based on the 3D virtual scene; In response to the completion of the 3D story animation, the virtual object is displayed in a second pose at a fourth position in the scene screen of the 2D virtual scene. The fourth position and the second pose are determined based on the target segment of the 3D story animation.

7. A display device for a scene image, characterized in that, The device includes: The first display module displays a scene of a two-dimensional virtual scene, in which virtual objects are displayed; The first playback module is used to play a three-dimensional skill animation corresponding to the target skill in response to the operation of using the target skill of the virtual object. The three-dimensional skill animation is generated based on the three-dimensional virtual scene corresponding to the two-dimensional virtual scene. The first display module is further configured to, in response to the completion of the 3D skill animation playback, determine the third position and first posture of the virtual object in the 3D virtual scene based on the target segment of the 3D skill animation; determine the target position and target posture of the virtual object in the 2D virtual scene based on the third position and the first posture; and render the scene screen of the 2D virtual scene based on the target position and the target posture, wherein the virtual object in the target posture is rendered at the target position in the scene screen. In this context, the virtual objects in the scene of the two-dimensional virtual scene undergo perspective correction. The perspective correction is used to indicate that when the virtual object is translated in the two-dimensional virtual scene, the size and perspective angle of the virtual object will not change. The perspective angle is used to indicate the angle at which the virtual object is photographed. The virtual objects in the three-dimensional skill animation are displayed using perspective.

8. A terminal, characterized in that, The terminal includes a processor and a memory, the memory being used to store at least one computer program, the at least one computer program being loaded by the processor and executed as the scene display method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store at least one computer program, the at least one computer program being used to execute the scene display method according to any one of claims 1 to 6.

10. A computer program product, characterized in that, The computer program product includes computer program code, which is stored in a computer-readable storage medium. The processor of the terminal reads the computer program code from the computer-readable storage medium and executes the computer program code, causing the terminal to perform the scene display method according to any one of claims 1 to 6.