Virtual character control method and apparatus, terminal, storage medium, and program product

By displaying the dynamic process of a virtual character gradually entering the screen when it intersects with the virtual screen, the problem of excessive loading time and screen stuttering when the virtual character moves around is solved, and smoother environment switching and continuous visual effects are achieved.

WO2026237618A1PCT designated stage Publication Date: 2026-11-19TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/090119
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-14
Filing Date
2026-04-13
Publication Date
2026-11-19

AI Technical Summary

Technical Problem

In existing technologies, virtual characters experience problems such as excessively long loading times, screen stuttering, inconsistent transitions, or abrupt scene changes when moving between 3D game scenes and other virtual scenes.

Method used

By displaying the dynamic process of a virtual character gradually entering the screen when the virtual character intersects with the virtual screen, a progressive visual transition effect is used to replace the traditional loading and waiting mechanism, thereby improving the smoothness of the virtual character's movement and the continuity of the screen.

Benefits of technology

This effectively avoids excessive loading time and resource loading issues when virtual characters switch between virtual environments, improving the smoothness of virtual characters moving between different environments and the continuity of visual performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2026090119_19112026_PF_FP_ABST
    Figure CN2026090119_19112026_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application relate to the field of human-computer interaction. Disclosed are a virtual character control method and apparatus, a terminal, a storage medium, and a program product. The method comprises: displaying a first virtual environment, the first virtual environment being provided with a first virtual screen, the first virtual screen being used for displaying a second virtual environment, and the first virtual environment being a three-dimensional virtual environment (101); in response to a first movement operation, controlling a virtual character in the first virtual environment to move towards the first virtual screen (102); when the virtual character intersects the first virtual screen, displaying a picture of the virtual character entering the first virtual screen (103); and displaying, in the first virtual screen, a picture of the virtual character moving in the second virtual environment (104). By using the virtual character control method provided in the present application, the smoothness of transition of the virtual character between the first virtual environment and the second virtual environment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Virtual character control methods, devices, terminals, storage media, and program products

[0001] This application claims priority to Chinese Patent Application No. 202510624892.0, filed on May 14, 2025, entitled “Virtual Character Control Method, Device, Terminal, Storage Medium and Program Product”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of human-computer interaction, and in particular to a virtual character control method, device, terminal, storage medium, and program product. Background Technology

[0003] With the development of game technology, in order to enrich the visual presentation and increase the fun of the game, in the third-person 3D game scene, the process of virtual characters moving back and forth between the 3D game scene and other virtual scenes can be designed.

[0004] In related technologies, to enable virtual characters to move between 3D game scenes and other virtual scenes, a certain loading time can be used to switch the displayed game screen from the 3D game scene to other virtual scenes, or the virtual character can be directly switched from a 3D image to another image in another virtual scene.

[0005] However, using a certain loading time to switch the displayed game screen from a 3D game scene to other virtual scenes may cause the virtual character to have too long a loading time or lag during the transition; while directly switching the virtual character from a 3D image to another image in another virtual scene may result in discontinuous or too abrupt visuals. Summary of the Invention

[0006] This application provides a virtual character control method, device, terminal, storage medium, and program product. The technical solution is as follows:

[0007] On one hand, embodiments of this application provide a virtual character control method, the method being executed by a terminal, the method comprising:

[0008] Display a first virtual environment, the first virtual environment is provided with a first virtual screen, the first virtual screen is used to display a second virtual environment, the first virtual environment is a three-dimensional virtual environment;

[0009] In response to a first movement operation, control the virtual character in the first virtual environment to move toward the first virtual screen;

[0010] When the virtual character intersects with the first virtual screen, a scene of the virtual character entering the first virtual screen is displayed;

[0011] The first virtual screen displays a scene of the virtual character moving in the second virtual environment.

[0012] On the other hand, embodiments of this application provide a virtual character control device, the device comprising:

[0013] A display module is used to display a first virtual environment, in which a first virtual screen is provided, and the first virtual screen is used to display a second virtual environment, wherein the first virtual environment is a three-dimensional virtual environment.

[0014] The control module is used to control the virtual character in the first virtual environment to move toward the first virtual screen in response to the first movement operation;

[0015] The display module is also used to display a scene of the virtual character entering the first virtual screen when the virtual character intersects with the first virtual screen;

[0016] The display module is also used to display the image of the virtual character moving in the second virtual environment on the first virtual screen.

[0017] On the other hand, embodiments of this application provide a terminal, the terminal including a processor and a memory, the memory storing at least one computer instruction, the at least one computer instruction being loaded and executed by the processor to implement the method as described above.

[0018] On the other hand, embodiments of this application provide a computer-readable storage medium storing at least one computer instruction, which is loaded and executed by a processor to implement the method described above.

[0019] On the other hand, embodiments of this application provide a computer program product including computer instructions stored in a computer-readable storage medium. A terminal's processor reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal to perform the methods provided in the various optional implementations of the above aspects.

[0020] In this embodiment, the first virtual environment displayed on the terminal includes a first virtual screen, which is used to display a second virtual environment. The user can control a virtual character to move towards the first virtual screen, thus controlling the virtual character to move from the first virtual environment to the second virtual environment. When the virtual character intersects with the first virtual screen, the terminal displays a screen showing the virtual character entering the first virtual screen, demonstrating the dynamic process of the virtual character gradually entering the second virtual environment within the first virtual screen from the first virtual environment (a 3D virtual environment). This uses a gradual visual transition effect to replace the traditional loading and waiting mechanism in related technologies, avoiding excessively long loading times and screen stuttering when the virtual character switches between virtual environments. Furthermore, it weakens the perception of resource loading when switching between virtual environments, avoiding disjointed transitions or abrupt scene changes, thus improving the smoothness of the virtual character's movement between the first and second virtual environments and the continuity of the visual presentation. Attached Figure Description

[0021] 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.

[0022] Figure 1 is a flowchart of a virtual character control method provided in an exemplary embodiment of this application;

[0023] Figure 2 is a schematic diagram of a first virtual environment displayed on a terminal according to an exemplary embodiment of this application;

[0024] Figure 3 is a schematic diagram of a virtual character entering a first virtual screen according to an exemplary embodiment of this application;

[0025] Figure 4 is a schematic diagram of a two-dimensional model of a virtual character moving in a second virtual environment, provided in an exemplary embodiment of this application;

[0026] Figure 5 is a schematic diagram of a terminal displaying a virtual character's non-screen portion and screen portion using different display effects, provided in an exemplary embodiment of this application.

[0027] Figure 6 is a schematic diagram of a character image captured by a character capture camera based on a character capture array according to an exemplary embodiment of this application;

[0028] Figure 7 is a schematic diagram of a second virtual environment provided in an exemplary embodiment of this application;

[0029] Figure 8 is a schematic diagram of the capsule body corresponding to the character model of the virtual character provided in an exemplary embodiment of this application;

[0030] Figure 9 is a schematic diagram of the terminal adjusting the camera position and shooting angle of the main view camera when the virtual character has completely entered the first virtual screen, according to an exemplary embodiment of this application.

[0031] Figure 10 is a schematic diagram of a terminal displaying a screen showing the virtual character entering a first virtual environment when the virtual character intersects with the transmission plane, according to an exemplary embodiment of this application.

[0032] Figure 11 is a schematic diagram of a terminal transmitting a virtual character to a third virtual environment when the virtual character intersects with the boundary plane, according to an exemplary embodiment of this application.

[0033] Figure 12 is a schematic diagram showing that, in an exemplary embodiment of this application, the first virtual screen has a curved screen shape, and the main view camera moves together with the virtual character in the second virtual environment.

[0034] Figure 13 is a flowchart of controlling a virtual character provided in an exemplary embodiment of this application;

[0035] Figure 14 is a structural block diagram of a virtual character control device provided in an exemplary embodiment of this application;

[0036] Figure 15 is a schematic diagram of the structure of a terminal provided in an exemplary embodiment of this application. Detailed Implementation

[0037] 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.

[0038] First, the terms used in the embodiments of this application will be introduced.

[0039] The first virtual environment: The virtual environment displayed (or provided) by the application when it runs on the terminal. For example, in a game scene, the first virtual environment is the three-dimensional virtual environment in which the virtual character resides. The first virtual environment can be a simulation of the real world, a semi-simulated / semi-fictional environment, or a purely fictional environment.

[0040] First Virtual Screen: A virtual screen within a first virtual environment that has both display and teleportation functions. The display function means that the first virtual screen can be used to display the second virtual environment; the teleportation function means that when a virtual character in the first virtual environment completely enters the first virtual screen, the first virtual screen can be used to teleport the virtual character to the second virtual environment, thus enabling the virtual character to move between the first and second virtual environments.

[0041] Virtual characters: Actionable objects in a virtual environment. For example, a virtual character is an actionable object controlled by a player, or an actionable object controlled by an application (called a non-player character (NPC)). Optionally, virtual characters can be virtual people, virtual animals, anime characters, virtual monsters, virtual robots, etc. In a three-dimensional virtual environment, virtual characters can be displayed using three-dimensional models.

[0042] Second virtual environment: A different virtual environment from the first virtual environment. Optionally, the second virtual environment can be the environment where a virtual level in the first virtual environment is located. The second virtual environment can be displayed through the first virtual screen.

[0043] In related technologies, to enable virtual characters to move between 3D game scenes and other virtual scenes (e.g., between 3D and 2D game scenes), a certain loading time is typically used to switch the displayed game screen from the 3D game scene to the 2D virtual scene. For example, the 3D model of the virtual character is first displayed in the 3D game scene. When the virtual character needs to move to the 2D virtual scene, the player first needs to control the virtual character to trigger a teleportation portal in the 3D game scene (e.g., control the virtual character to touch a teleportation pipe). The terminal then begins loading the 2D game scene. Once the 2D game scene is loaded, the terminal displays the 2D model of the virtual character in the 2D game scene.

[0044] However, the above method has drawbacks such as long loading time for virtual characters during the process of traveling, screen lag, inconsistent transitions, or abrupt scene changes.

[0045] Based on this, this application proposes a virtual character control method, which improves the smoothness of the virtual character moving between the first virtual environment and the second virtual environment by displaying the screen of the virtual character entering the first virtual screen.

[0046] Referring to Figure 1, Figure 1 is a flowchart of a virtual character control method provided in an exemplary embodiment of this application. In some embodiments, the method is executed by a terminal. The method includes the following steps.

[0047] Step 101: Display the first virtual environment. The first virtual environment is equipped with a first virtual screen, which is used to display the second virtual environment. The first virtual environment is a three-dimensional virtual environment.

[0048] The first virtual environment is the virtual environment displayed (or provided) when an application runs on a terminal. In some embodiments, the first virtual environment is a three-dimensional virtual environment. For example, in a game scene, the first virtual environment is a three-dimensional virtual environment in which a virtual character is placed to challenge virtual levels. The first virtual environment can be a simulation of the real world, a semi-simulated / semi-fictional environment, or a purely fictional environment.

[0049] Optionally, in the first virtual environment, the user can control the main viewpoint using input components of the terminal (such as a gamepad, motion sensor, or keyboard and mouse). For example, the main viewpoint can be moved, allowing the first virtual environment to freely translate, rotate, and scale in three-dimensional space.

[0050] Optionally, the first virtual environment may include virtual characters. A virtual character is an active object within the virtual environment. For example, a virtual character may be an active object controlled by a player or by an application. Optionally, virtual characters may be virtual human figures, virtual animals, anime characters, virtual monsters, virtual robots, etc. Optionally, in a three-dimensional virtual environment, virtual characters may be displayed using three-dimensional models.

[0051] Optionally, users can control the virtual character using input components on the terminal (such as a gamepad, motion sensor, or keyboard and mouse). For example, they can control the virtual character to perform movement operations such as walking, running, or jumping, as well as action operations such as attacking, defending, changing equipment, or any other possible type of character operation.

[0052] The first virtual screen is a virtual screen used to display the second virtual environment. Optionally, the first virtual screen can be displayed as a virtual electronic device screen (such as a virtual computer screen, virtual mobile phone screen, virtual projection screen, etc.) in the first virtual environment, or it can also be displayed as other virtual screens with display functions (such as virtual mirrors, virtual portals, etc.).

[0053] Regarding the setting of the first virtual screen in the first virtual environment, optionally, the first virtual screen can be set on the virtual ground in the first virtual environment. For example, the first virtual screen can be a virtual mirror placed on the virtual ground in the first virtual environment.

[0054] Regarding the setting of the first virtual screen in the first virtual environment, optionally, the first virtual screen can be floating in the three-dimensional space of the first virtual environment. For example, the first virtual screen can be a virtual portal floating in mid-air in the first virtual environment.

[0055] The second virtual environment is a different virtual environment from the first virtual environment. Optionally, the second virtual environment can be the environment where a virtual level in the first virtual environment is located. The second virtual environment can be displayed through the first virtual screen.

[0056] Optionally, the second virtual environment can be a two-dimensional virtual environment or a three-dimensional virtual environment.

[0057] For illustrative purposes only, the second virtual environment is a two-dimensional virtual environment (e.g., a fictional environment displayed as a two-dimensional image) in which the virtual level in the first virtual environment is located.

[0058] Referring to Figure 2, which is a schematic diagram of a first virtual environment displayed on a terminal according to an exemplary embodiment of this application.

[0059] As shown in Figure 2, in the first virtual environment 210 displayed on the terminal, there is a virtual level 211. For example, the virtual level 211 can be a level used for virtual character matches, battles, or other types of challenges.

[0060] In the first virtual environment 210, a first virtual screen 212 is provided, which is used to display the second virtual environment. For example, the second virtual environment can be the virtual environment corresponding to the virtual level 211, that is, the virtual environment in which the virtual character is located when challenging the virtual level 211.

[0061] In the first virtual environment 210, a virtual character 213 is displayed (shown as a virtual person).

[0062] Optionally, the first virtual environment can have one or more first virtual screens. For example, the first virtual environment can have three first virtual screens, which are used to display the second virtual environment in which the virtual character is located when challenging virtual level A, virtual level B, and virtual level C, respectively.

[0063] Step 102: In response to the first movement operation, control the virtual character in the first virtual environment to move toward the first virtual screen.

[0064] The first movement operation is used to control the virtual character to move towards the first virtual screen (such as running, walking, or jumping).

[0065] Optionally, the first movement operation can be performed by the user through the terminal's input components (such as a gamepad, motion sensor, or keyboard and mouse), or the first movement operation can also be performed through voice input, without limitation.

[0066] In some embodiments, in response to a first movement operation, the terminal displays a screen showing a virtual character moving toward a first virtual screen in a first virtual environment.

[0067] As shown in Figure 1, in response to the first movement operation, the terminal displays a screen in the first virtual environment 210 showing the virtual character 213 moving toward the first virtual screen 212.

[0068] Step 103: If the virtual character intersects with the first virtual screen, display a screen showing the virtual character entering the first virtual screen. Optionally, the terminal can determine whether the virtual character intersects with the first virtual screen based on the spatial relationship between the virtual character's 3D model and the first virtual screen in the 3D space of the first virtual environment. For example, if the virtual character's 3D model and the first virtual screen overlap in the 3D space of the first virtual environment, it is determined that the virtual character intersects with the first virtual screen.

[0069] It should be noted that the screen properties of the first virtual screen can be modified to support collision or support movement. Specifically, when a virtual character intersects with the first virtual screen, and the first virtual screen's screen properties support collision, the terminal only queries the overlap between the colliding object (i.e., the virtual character) and the first virtual screen, without responding to the collision. For example, if the 3D model of the virtual character collides with the first virtual screen, the first virtual screen supports not responding to the collision, but only querying the area information of the overlapping region. When a virtual character intersects with the first virtual screen, and the first virtual screen's screen properties support movement, the terminal, in addition to querying the overlap between the colliding object (i.e., the virtual character) and the first virtual screen, will also display the scene of the virtual character entering the first virtual screen.

[0070] Optionally, the scene of the virtual character entering the first virtual screen can be a scene where the virtual character gradually enters the first virtual screen from the outside. That is, the display of this scene can be a dynamic process. For example, the virtual character may first show part of its body entering the screen, and then gradually enter completely. At the same time, it can be accompanied by some animation effects, changes in lighting and shadows, or sound effects to enhance the user's immersion and experience.

[0071] Optionally, the screen showing the virtual character entering the first virtual screen can be used to create special scene transition effects. For example, in a game, when a virtual character enters a virtual portal (first virtual screen) and enters a new map (second virtual environment), this screen will be displayed, allowing users to intuitively feel the changes in the virtual character's state and the scene transition.

[0072] In some embodiments, the screen showing a virtual character entering a first virtual screen may include a portion of the screen where the virtual character has entered the screen and a portion where the virtual character has not entered the screen.

[0073] The portion that has entered the screen refers to the part of the virtual character that has passed through the first virtual screen, while the portion that has not entered the screen refers to the part of the virtual character that has not passed through the first virtual screen.

[0074] Optionally, the terminal may display the unentered screen portion of the virtual character in the first virtual environment, and the entered screen portion of the virtual character in the first virtual screen.

[0075] As an example only, when the second virtual environment is a two-dimensional environment, the terminal can display the portion of the virtual character that has not entered the screen in the first virtual environment as a three-dimensional model, and display the portion of the virtual character that has entered the screen in the first virtual screen as a two-dimensional model.

[0076] Referring to Figure 3, Figure 3 is a schematic diagram of a virtual character entering a first virtual screen according to an exemplary embodiment of this application.

[0077] As shown in Figure 3, in the first virtual environment 310, when the virtual character 313 intersects with the first virtual screen 312, the terminal displays a scene of the virtual character 313 entering the first virtual screen 312, so as to show the process of the virtual character's part of its body first entering the first virtual screen, and then the virtual character gradually and completely entering the first virtual screen.

[0078] Step 104: Display the scene of the virtual character moving in the second virtual environment on the first virtual screen.

[0079] In some embodiments, when the virtual character has fully entered the first virtual screen, the terminal displays the virtual character moving in the second virtual environment.

[0080] Optionally, the terminal can determine whether the virtual character has completely entered the first virtual screen based on the spatial relationship between the virtual character's 3D model and the first virtual screen in the first virtual environment. For example, if the virtual character's 3D model and the first virtual screen do not overlap in the space of the first virtual environment, and the virtual character's 3D model is behind the first virtual screen, the terminal determines that the virtual character has completely entered the first virtual screen. If the virtual character's 3D model and the first virtual screen overlap in the space of the first virtual environment, the terminal determines that the virtual character has not completely entered the first virtual screen. If the virtual character's 3D model and the first virtual screen do not overlap in the space of the first virtual environment, and the virtual character's 3D model is in front of the first virtual screen, the terminal determines that the virtual character has not entered the first virtual screen.

[0081] In some embodiments, when the second virtual environment is a two-dimensional virtual environment, the terminal displays a two-dimensional model of the virtual character moving within the second virtual environment on the first virtual screen. When the second virtual environment is a three-dimensional virtual environment, the terminal displays a three-dimensional model of the virtual character moving within the second virtual environment on the first virtual screen.

[0082] Referring to Figure 4, Figure 4 is a schematic diagram of a two-dimensional model of a virtual character moving in a second virtual environment according to an exemplary embodiment of this application.

[0083] As shown in Figure 4, after the virtual character fully enters the first virtual screen, the terminal displays the first virtual screen 412 in the first virtual environment 410. The first virtual screen 412 is used to display the second virtual environment, and the second virtual environment is a two-dimensional virtual environment.

[0084] Meanwhile, the terminal displays a two-dimensional model of the virtual character 413 moving in the second virtual environment on the first virtual screen 412.

[0085] In some embodiments, a user can control a virtual character to move in a second virtual environment using the same or similar control operations as outside the first virtual screen.

[0086] For example, users can control virtual characters to perform actions such as walking, running, or jumping in the second virtual environment, as well as actions such as attacking, defending, changing equipment, or any other possible type of action.

[0087] It should be noted that in some embodiments, the terminal may display the virtual character moving in the second virtual environment on the first virtual screen even when the virtual character has not fully entered the first virtual screen. That is, the terminal may display the virtual character moving in the second virtual environment on the first virtual screen even when only part of the virtual character's content has entered the first virtual screen.

[0088] As an example only, the terminal may display the first clone of the virtual character outside the first virtual screen (i.e., in the first virtual environment) and the second clone of the virtual character inside the first virtual screen (i.e., in the second virtual environment).

[0089] Optionally, if the terminal displays a second clone of the virtual character moving in the second virtual environment on the first virtual screen, the terminal displays the first clone of the virtual character in the first virtual environment, and the first clone remains stationary.

[0090] In summary, the first virtual environment displayed on the terminal includes a first virtual screen, which is used to display a second virtual environment. Users can control a virtual character to move towards the first virtual screen, thus controlling the virtual character to move between the first and second virtual environments. When the virtual character intersects with the first virtual screen, the terminal displays the image of the virtual character entering the first virtual screen, showcasing the dynamic process of the virtual character gradually entering the second virtual environment within the first virtual screen from the first virtual environment (a 3D virtual environment). On the one hand, by employing a gradual visual transition effect, it replaces the traditional loading and waiting mechanism in related technologies, avoiding the problems of excessively long loading times and screen stuttering when the virtual character switches between virtual environments. On the other hand, it also weakens the perception of resource loading when switching between virtual environments, avoiding problems of disjointed transitions or abrupt scene changes, and improving the smoothness of the virtual character's movement between the first and second virtual environments and the continuity of the visual presentation.

[0091] In some embodiments, when a virtual character intersects with a first virtual screen, the terminal displays the portion of the virtual character that has not entered the screen in the first virtual environment, and displays the portion of the virtual character that has entered the screen in the first virtual screen.

[0092] The portion that has entered the screen refers to the part of the virtual character that has passed through the first virtual screen, while the portion that has not entered the screen refers to the part of the virtual character that has not passed through the first virtual screen.

[0093] As an example only, in the case where the first virtual environment is a three-dimensional virtual environment and the second virtual environment is a two-dimensional virtual environment, the terminal can display the part of the virtual character that has not entered the screen in the first virtual environment in the form of a three-dimensional model, and display the part of the virtual character that has entered the screen in the first virtual screen in the form of a two-dimensional model.

[0094] To improve the contrast between the non-screen and screen-entry portions of a virtual character, in some embodiments, the terminal may employ different display effects to show the non-screen and screen-entry portions.

[0095] In one possible implementation, the terminal displays the portion of the virtual character that has not yet entered the screen in a first virtual environment using a first display effect; and displays the portion of the virtual character that has entered the screen in a second display effect in a first virtual screen.

[0096] The second display effect is different from the first display effect.

[0097] Optionally, the second display effect and the first display effect differ in at least one dimension of color, saturation, transparency, and display style.

[0098] For illustrative purposes only, the first display effect is a display effect with 0% transparency, and the second display effect is a display effect with 50% transparency.

[0099] Referring to Figure 5, Figure 5 is a schematic diagram of a terminal displaying the non-entering screen portion and the entering screen portion of a virtual character using different display effects according to an exemplary embodiment of this application.

[0100] As shown in Figure 5, when the virtual character in the first virtual environment 510 intersects with the first virtual screen 512, the terminal in the first virtual environment 510 uses a first display effect to display the portion of the virtual character that is not on the screen, 511-1, that is, the transparency of the portion of the virtual character that is not on the screen is 0%. Simultaneously, in the first virtual screen 512, the terminal uses a second display effect to display the portion of the virtual character that has entered the screen, 511-2, that is, the transparency of the portion of the virtual character that has entered the screen is 50%.

[0101] By displaying different effects to show the part of the virtual character that has not yet entered the screen and the part that has entered the screen, the contrast between the two parts can be improved, further enhancing the dynamic process of the virtual character gradually entering the first virtual screen.

[0102] Regarding the specific methods by which the terminal displays the portion of the virtual character that has not entered the screen in the first virtual environment, and the portion of the virtual character that has entered the screen in the first virtual screen, in some embodiments, the terminal displays the portion of the virtual character that has not entered the screen in the first virtual environment based on the scene captured by the main view camera.

[0103] As shown in Figure 5, the terminal displays the non-entering screen portion 511-1 of the virtual character in the first virtual environment 510 based on the scene captured by the main view camera 521.

[0104] Among them, the first-person view camera is the camera that moves with the virtual character in the first virtual environment.

[0105] In some embodiments, the main-view camera is used to capture scene images in a first virtual environment, including environmental images of the first virtual environment, character images of virtual characters in the first virtual environment, and object images of various virtual items in the first virtual environment.

[0106] Optionally, the main-view camera uses a real-time positioning algorithm to lock the position and posture of the virtual character in the first virtual environment. When the virtual character moves in three-dimensional space, the main-view camera always maintains a relatively fixed distance and angle from the virtual character. Taking an open-world game as an example, when the virtual character climbs hills or traverses jungles, the main-view camera automatically adjusts its height, tilt angle, and field of view to ensure that it always captures the virtual character and the surrounding environment from the best perspective.

[0107] Regarding the specific implementation of displaying the portion of a virtual character not on the screen in a first virtual environment based on scene images captured by the main-view camera, in some embodiments, the terminal uses spatial coordinate mapping technology to render the scene images captured by the main-view camera into the first virtual environment in real time. For example, the terminal pre-establishes a coordinate mapping relationship between the imaging plane of the main-view camera and the local coordinate system of the first virtual environment. According to this coordinate mapping relationship, the two-dimensional pixel coordinates of the portion of the virtual character not on the screen on the imaging plane are converted into corresponding three-dimensional spatial coordinates in the local coordinate system of the first virtual environment. Based on these three-dimensional spatial coordinates, the rendering information such as model vertices and textures of the portion of the virtual character not on the screen is rendered to the corresponding spatial position in the first virtual environment. Even when the virtual character intersects with the first virtual screen, the main-view camera continues to capture the character's image outside the first virtual screen, i.e., it acquires the portion of the virtual character not on the screen. The terminal then renders this portion of the virtual character to the corresponding position in the first virtual environment in real time.

[0108] However, when the virtual character intersects with the first virtual screen, the main view camera can only capture the portion of the virtual character that has not entered the screen, and cannot capture the portion that has entered the screen. Therefore, in order to display the portion of the virtual character that has entered the screen in the first virtual screen, this embodiment also provides a character capture camera, which is dedicated to capturing the character image of the virtual character, and not for capturing the environmental image of the first virtual environment, or the images of other characters or objects other than the virtual character.

[0109] As shown in Figure 5, the terminal displays the screen portion 511-2 of the virtual character that has entered the screen in the first virtual environment 510 based on the character image captured by the character capture camera 522.

[0110] In some embodiments, the terminal displays the portion of the screen in which the virtual character has entered the screen in a first virtual screen based on the character image of the virtual character captured by the character capture camera.

[0111] The character capture camera is used to capture the character's image but not the scene outside the character's image. The camera position and shooting angle of the character capture camera are the same as those of the main view camera.

[0112] Optionally, the character capture camera uses a real-time positioning algorithm to lock the position and posture of the virtual character, or the character capture camera acquires the camera position and shooting angle of the main view camera in real time, and keeps the camera position and shooting angle of the character capture camera consistent with those of the main view camera. When the virtual character moves in three-dimensional space, the character capture camera always maintains the same camera position and shooting angle as the main view camera.

[0113] Regarding the specific implementation of displaying the portion of a virtual character that has entered the screen on a first virtual screen based on the character image captured by the character capture camera, in some embodiments, when the virtual character intersects with the first virtual screen, the terminal uses a mapping technology between spatial coordinates and planar coordinates to project the character image captured by the character capture camera onto the first virtual screen in real time and render it, thereby realizing the real-time rendering of the portion that has entered the screen to the corresponding position on the first virtual screen. For example, the terminal pre-establishes a coordinate mapping relationship between the imaging plane of the character capture camera and the local coordinate system of the first virtual environment, and according to this coordinate mapping relationship, converts the two-dimensional pixel coordinates of the portion of the virtual character that has entered the screen on the imaging plane into the corresponding three-dimensional spatial coordinates in the local coordinate system of the first virtual environment, and renders the rendering information such as model vertices and textures of the portion of the virtual character that has entered the screen to the corresponding spatial position in the first virtual environment based on these three-dimensional spatial coordinates.

[0114] Regarding the specific implementation of the character capture camera, in one possible scenario, the terminal can set a character capture array for the character capture camera. The character capture array stores the character model of the virtual character. The character capture camera is used to render the character model of the virtual character onto a specified texture image based on the character capture array to obtain the character image.

[0115] Regarding the specific implementation of rendering the virtual character's model onto a specified texture image based on the character capture array to obtain the character image, in some embodiments, the terminal loads the corresponding character model data according to the virtual character identifier recorded in the character capture array; the character model is rendered through the character capture camera, the three-dimensional vertex coordinates of the character model are converted into two-dimensional pixel coordinates through projection transformation, and the rendering information such as texture, color, and lighting corresponding to the character model is drawn onto the texture image, and finally a character image containing only the virtual character and without scene background is formed on the texture image.

[0116] Optionally, the character capture camera can be obtained by setting the character capture array (ShowOnlyActors) of the 2D scene capture camera provided by Unreal Engine.

[0117] As an example only, the first virtual environment displays virtual characters, virtual trees, and virtual houses. When the terminal only stores the character model of the virtual character in the character capture array, the character capture camera is only used to render the character model of the virtual character onto the specified texture image to obtain the character image, without capturing the images corresponding to the virtual trees and virtual houses, thus realizing the separate capture of the character image of the virtual character.

[0118] Referring to Figure 6, Figure 6 is a schematic diagram of a character image captured by a character capture camera based on a character capture array, according to an exemplary embodiment of this application.

[0119] As shown in Figure 6, the character capture camera renders the virtual character's model onto the texture image 610 based on the character capture array to obtain the character image.

[0120] In some embodiments, the terminal can also set different transparency levels for the character pixels corresponding to the character model of the virtual character on the texture image, as well as for other pixels on the texture image besides the character pixels.

[0121] As an example only, the terminal sets the transparency of the character pixels corresponding to the character model on the texture image to 0, and sets the transparency of other pixels except the character pixels to 1, resulting in a character image 620 with the transparency set.

[0122] In some embodiments, the terminal can display the portion of the virtual character that has entered the screen in the first virtual screen based on the character image 620 with its transparency set. For example, the terminal can overlay the character image 620 onto the original material of the first virtual screen as a texture. Since the portion of the virtual character that has not entered the screen will obscure the projection of the portion that has not entered the screen on the first virtual screen in the first view captured by the main view camera, the effect of displaying the portion of the virtual character that has entered the screen in the first virtual screen can be achieved.

[0123] In this embodiment, when the virtual character intersects with the first virtual screen, the terminal can render the part of the virtual character that has not entered the screen in the first virtual environment based on the scene image captured by the main view camera. By setting a character capture camera and keeping the camera position and shooting angle of the character capture camera consistent with the main view camera, the terminal can project the character image of the virtual character captured by the character capture camera onto the first virtual screen in real time and render it, so as to display the part of the virtual character that has entered the screen on the first virtual screen.

[0124] In some embodiments, when the entry ratio of a virtual character into the first virtual screen reaches a certain threshold, the terminal displays a scene of the virtual character moving in the second virtual environment on the first virtual screen.

[0125] Optionally, when the virtual character enters the first virtual screen at a rate of 90% or 100%, the terminal transmits the virtual character to the second virtual environment and displays the virtual character moving in the second virtual environment on the first virtual screen.

[0126] Once the virtual character has fully entered the first virtual screen, the terminal will transfer the virtual character to the second virtual environment.

[0127] Regarding the specific method by which the terminal transmits the virtual character to the second virtual environment, in some embodiments, the terminal transmits the virtual character to the second virtual environment according to the first relative position of the virtual character relative to the first virtual screen.

[0128] The first relative position is the same as the second relative position. The second relative position is the relative position of the virtual character with respect to the teleportation plane in the second virtual environment. The teleportation plane is used to trigger the teleportation of the virtual character between the first virtual environment and the second virtual environment.

[0129] Optionally, the size of the transmission plane is the same as the size of the first virtual screen.

[0130] The following explanation uses the second virtual environment as an example of a three-dimensional virtual environment.

[0131] Referring to Figure 7, which is a schematic diagram of a second virtual environment provided in an exemplary embodiment of this application.

[0132] As shown in Figure 7, the second virtual environment 710 includes a transport plane 712.

[0133] In some embodiments, when a virtual character completely enters a first virtual screen from a first virtual environment, the terminal calculates the first relative position of the virtual character in the first virtual environment relative to the first virtual screen and transmits the virtual character to a second virtual environment, so that the second relative position of the virtual character in the second virtual environment relative to the transmission plane 712 is consistent with the first relative position. Thus, from a visual perspective, the projection of the virtual character seen by the user on the first virtual screen will be consistent with the position of the virtual character before entering the first virtual screen, further improving the continuity and smoothness of the virtual character moving from the first virtual environment to the second virtual environment and avoiding the occurrence of discontinuity.

[0134] In one possible scenario, the terminal can determine the capsule body corresponding to the character model of the virtual character, and determine the first relative position of the virtual character relative to the first virtual screen based on the capsule body.

[0135] The capsule is a spatial region containing the character model of the virtual character.

[0136] Optionally, the capsule body is the smallest spatial area containing a character model of a virtual character, which adopts a preset shape of the terminal.

[0137] Referring to Figure 8, Figure 8 is a schematic diagram of the capsule body corresponding to the character model of the virtual character provided in an exemplary embodiment of this application.

[0138] As shown in Figure 8, the first virtual environment 810 displays a first virtual screen 812 and a virtual character. The capsule corresponding to the virtual character's model is a capsule 811, which is the smallest spatial area containing the virtual character's model, using a preset shape on the terminal. That is, all coordinate points on the character model are located within the capsule.

[0139] Optionally, if the preset shape of the capsule is different from the shape of the character model, the volume of the capsule is slightly larger than the volume of the character model.

[0140] In some embodiments, when a virtual character intersects with a first virtual screen, the terminal calculates the intersection point between the capsule body corresponding to the virtual character's character model and the first virtual screen, and when the virtual character has completely entered the virtual screen, determines the relative position of the intersection point between the capsule body and the first virtual screen in the first virtual screen as the first relative position.

[0141] In some embodiments, the terminal is equipped with a first scene capture camera for capturing scene images in a second virtual environment.

[0142] As shown in Figure 7, the terminal is equipped with a first scene capture camera 711, which is used to capture scene images in the second virtual environment 710.

[0143] In some embodiments, the terminal displays the scene captured by the camera in the first scene capture camera on the first virtual screen, showing the virtual character moving in the second virtual environment.

[0144] The first scene capture camera is a camera that moves with the virtual character in the second virtual environment.

[0145] In some embodiments, the first scene capture camera is used to capture scene images in the second virtual environment, including environmental images of the second virtual environment, character images of virtual characters in the second virtual environment, and object images of various virtual items in the second virtual environment.

[0146] Optionally, the first scene capture camera uses a real-time positioning algorithm to lock the position and pose of the virtual character in the second virtual environment. When the virtual character moves in the three-dimensional second virtual environment, the first scene capture camera always maintains a relatively fixed distance and angle from the virtual character.

[0147] In some embodiments, the terminal uses a mapping technology between spatial coordinates and planar coordinates to render the scene captured by the first scene capture camera onto the first virtual screen in real time. When the virtual character is completely inside the first virtual screen, the main-view camera cannot capture the character's image within the first virtual screen. Therefore, the terminal can use the first scene capture camera to render the image of the virtual character moving in the second virtual environment onto the first virtual screen.

[0148] In this embodiment, when the virtual character completely enters the first virtual screen from the first virtual environment, the terminal calculates the first relative position of the virtual character in the first virtual environment relative to the first virtual screen and transmits the virtual character to the second virtual environment, so that the second relative position of the virtual character in the second virtual environment relative to the transmission plane is consistent with the first relative position. Thus, from a visual perspective, the projection of the virtual character seen by the user on the first virtual screen will be consistent with the position of the virtual character before entering the first virtual screen, further improving the continuity and smoothness of the virtual character's movement from the first virtual environment to the second virtual environment and avoiding discontinuity.

[0149] In one possible scenario, when a virtual character moves from a first virtual environment to a second virtual environment, the camera position and shooting angle of the main-view camera will be adjusted.

[0150] In some embodiments, when the virtual character fully enters the first virtual screen, the terminal adjusts the camera position and shooting angle of the main view camera, wherein, under the adjusted camera position and shooting angle, the first virtual screen is located in the center of the field of view of the main view camera, and the first virtual screen is in a frontal view.

[0151] Referring to Figure 9, which is a schematic diagram of a terminal adjusting the camera position and shooting angle of the main view camera when the virtual character has fully entered the first virtual screen, according to an exemplary embodiment of this application.

[0152] As shown in Figure 9, in the first virtual environment 910, when the virtual character intersects with the first virtual screen 911, the first virtual screen 911 is in a side view perspective under the current camera position and current shooting angle of the main view camera.

[0153] When the virtual character has fully entered the first virtual screen 911, the terminal displays the first virtual screen 911 in the first virtual environment 910, and displays the movement of the virtual character in the first virtual screen 911.

[0154] The terminal displays the first virtual screen 911 in the first virtual environment 910 by capturing the scene image through the adjusted main view camera, so that the first virtual screen 911 is located in the center of the field of view of the main view camera, and the first virtual screen 911 is in a frontal view.

[0155] Regarding the specific implementation of adjusting the camera position and shooting angle of the terminal's main-view camera so that, under the adjusted camera position and shooting angle, the first virtual screen is located in the center of the main-view camera's field of view, and the first virtual screen is in a frontal view, in one possible scenario, the terminal pre-stores frontal view information. This frontal view information includes the target camera position and target shooting angle of the main-view camera when each virtual screen in the first virtual environment is located in the center of the main-view camera's field of view and is in a frontal view. When the virtual character completely enters the first virtual screen, the terminal determines the first target camera position and first target shooting angle corresponding to the first virtual screen based on the frontal view information, and adjusts the main-view camera's camera position to the first target camera position and the main-view camera's shooting angle to the first target shooting angle, so that, under the adjusted camera position and shooting angle, the first virtual screen is located in the center of the main-view camera's field of view, and the first virtual screen is in a frontal view.

[0156] Optionally, in order to ensure that the image displayed on the terminal is smooth and natural enough when the main view camera adjusts its position and shooting angle, in some embodiments, the terminal gradually adjusts the position of the main view camera to the position of the first target camera and adjusts the shooting angle of the main view camera to the shooting angle of the first target camera within a preset time (e.g., 0.2s).

[0157] Optionally, the terminal uses linear interpolation to determine the i-th camera position and i-th shooting angle corresponding to the i-th frame within a preset time period, based on the initial camera position and initial shooting angle before the main view camera is adjusted, and the first target camera position and first target shooting angle after the adjustment. The terminal then displays the i-th frame during the time period corresponding to the i-th frame, where the i-th frame is the scene captured by the main view camera at the i-th camera position and i-th shooting angle.

[0158] In this embodiment, by using linear interpolation, the camera position of the main-view camera is gradually adjusted from the initial camera position to the first target camera position within a preset time period, and the shooting angle of the main-view camera is adjusted from the initial shooting angle to the first target shooting angle. This allows for a gradual switching of the main viewpoint within the preset time period, improving the smoothness and naturalness of the scene transitions. When the virtual character has fully entered the first virtual screen, adjusting the camera position and shooting angle of the main-view camera ensures that the first virtual screen is directly displayed in the center of the interface, avoiding the need for the user to manually adjust the angle and improving operational efficiency.

[0159] In some embodiments, when the virtual character is located in a second virtual environment, the terminal locks the camera position and shooting angle of the main view camera so that the first virtual screen is continuously displayed in the center of the interface, avoiding accidental touches by the user that could cause the viewpoint to shift.

[0160] In one possible scenario, a user can control a virtual character in a second virtual environment to travel back to the first virtual environment.

[0161] In some embodiments, in response to a second movement operation, the terminal controls a virtual character in a second virtual environment to move toward a transmission plane.

[0162] The transport plane is used to trigger the transfer of virtual characters between the first virtual environment and the second virtual environment.

[0163] The second movement operation is the operation of controlling the virtual character in the second virtual environment to move towards the teleportation plane.

[0164] Optionally, the second movement operation can be performed by the user through the terminal's input components (such as a gamepad, motion sensor, or keyboard and mouse), or it can also be performed through voice input, without limitation.

[0165] In some embodiments, when the virtual character intersects with the transmission plane, the terminal transmits the virtual character from the second virtual environment to the first virtual environment and displays a screen showing the virtual character entering the first virtual environment.

[0166] Optionally, when the virtual character intersects with the transmission plane, the terminal transmits the virtual character from the second virtual environment to the first virtual environment, displays the part of the virtual character that has entered the screen in the first virtual environment, and displays the part of the virtual character that has not entered the screen in the first virtual screen.

[0167] Optionally, in the first virtual environment, the terminal displays the portion of the virtual character that has entered the screen using a first display effect, and in the first virtual screen, it displays the portion of the virtual character that has not entered the screen using a second display effect.

[0168] The portion that has entered the screen refers to the part where the virtual character passes through the first virtual screen, while the portion that has not entered the screen refers to the part where the virtual character has not passed through the first virtual screen.

[0169] Referring to Figure 10, which is a schematic diagram of a terminal displaying a screen showing the virtual character entering a first virtual environment when the virtual character intersects with the transmission plane, according to an exemplary embodiment of this application.

[0170] As shown in Figure 10, when the virtual character intersects with the transmission plane, the terminal transmits the virtual character from the second virtual environment to the first virtual environment, and displays the screen portion 1012-2 of the virtual character that has entered the screen in the first virtual environment 1010, and displays the screen portion 1012-1 of the virtual character that has not entered the screen in the first virtual screen 1011.

[0171] Regarding the specific method by which the terminal displays that it has entered the screen portion 1012-2, in some embodiments, the terminal unlocks and adjusts the camera position and shooting angle of the main view camera.

[0172] Specifically, under the adjusted camera position and shooting angle, the field of view of the first virtual screen in the main view camera is the same as the field of view of the first virtual screen in the main view camera before the virtual character enters the first virtual screen.

[0173] As shown in Figure 10, with the adjusted camera position and shooting angle, the first virtual screen 1011 is no longer in the center of the field of view and the frontal view of the main view camera, but has been changed back to the side view, which is consistent with the view before the virtual character enters the first virtual screen 1011.

[0174] In some embodiments, the terminal displays the portion of the screen where the virtual character has entered the first virtual environment based on scene footage captured by the main-view camera.

[0175] As shown in Figure 10, the terminal displays the screen portion 1012-2 of the virtual character in the first virtual environment 1010 based on the scene captured by the main view camera 1021.

[0176] Regarding the specific method of the terminal displaying the portion of the screen that has not entered the screen 1012-1, in some embodiments, the terminal displays the portion of the virtual character that has not entered the screen in a first virtual screen based on the character image of the virtual character captured by the character capture camera.

[0177] For example, in Figure 10, when the virtual character intersects with the first virtual screen 1011, the terminal uses the mapping technology between spatial coordinates and planar coordinates to project the character image captured by the character capture camera 1022 onto the first virtual screen 1011 in real time and render it, thereby realizing the real-time rendering of the part 1012-1 that has not entered the screen to the corresponding position on the first virtual screen 1011.

[0178] The character capture camera is used to capture the character's image but not the scene outside the character's image. The camera position and shooting angle of the character capture camera are the same as those of the main view camera.

[0179] For more information on the first-person view camera and the character capture camera, please refer to the previous embodiments and their related descriptions, which will not be repeated here.

[0180] In some embodiments, when the virtual character completely passes through the first virtual screen, the terminal displays the movement of the virtual character in the first virtual environment based on the scene captured by the main view camera.

[0181] For example, in Figure 10, when the virtual character completely passes through the first virtual screen, the terminal displays the scene of the virtual character moving in the first virtual environment 1010 based on the scene captured by the main view camera 1021. At this time, the character capture camera 1022 can stop working.

[0182] Regarding the specific method by which the terminal transmits the virtual character from the second virtual environment to the first virtual environment, in some embodiments, when the virtual character intersects with the transmission plane, the terminal transmits the virtual character to the first virtual environment according to the second relative position of the virtual character with respect to the transmission plane.

[0183] The second relative position is the same as the first relative position, which is the relative position of the virtual character to the first virtual screen.

[0184] The terminal transmits the virtual character to the first virtual environment according to the second relative position of the virtual character relative to the transmission plane, so that the first relative position of the virtual character relative to the first virtual screen is consistent with the second relative position. From a visual perspective, the projection of the virtual character seen by the user on the first virtual screen will be consistent with the position of the virtual character before it intersects with the transmission plane, which further improves the continuity and smoothness of the virtual character shuttling back to the first virtual environment from the second virtual environment and avoids the occurrence of discontinuity.

[0185] In some embodiments, when a virtual character moves in a direction parallel to the transmission plane in a second virtual environment, the terminal controls the transmission plane to follow the movement of the virtual character.

[0186] The amount of movement of the teleportation plane in the parallel direction is consistent with the amount of movement of the virtual character in the parallel direction.

[0187] For example, in Figure 7, when the virtual character moves in the x-axis direction, the terminal controls the transmission plane 712 to move along with the virtual character in the x-axis direction, and the amount of movement of the transmission plane in the parallel direction (i.e., the x-axis direction) is consistent with the amount of movement of the virtual character in the parallel direction (i.e., the x-axis direction).

[0188] By controlling the teleportation plane to remain synchronized with the virtual character in the parallel direction, it can be ensured that the virtual character, at any position in the second virtual environment, can trigger the teleportation plane by moving in the negative y-axis direction, thus achieving the ability to shuttle from the second virtual environment to the first virtual environment.

[0189] In one possible scenario, the second virtual environment includes at least one of the following planes: a front boundary plane, a rear boundary plane, a left boundary plane, and a right boundary plane.

[0190] For example, in Figure 7, the second virtual environment 710 includes a front boundary plane 701, a left boundary plane 703, and a right boundary plane 702.

[0191] The front boundary plane 701 is used to block the virtual character from moving towards the space behind the front boundary plane 701, thus preventing the scene captured by the first scene capture camera from being exposed.

[0192] In some embodiments, in response to a third movement operation, the terminal controls a virtual character in a second virtual environment to move toward a boundary plane.

[0193] The boundary plane is used to characterize the environmental boundary of the second virtual environment.

[0194] Optionally, the boundary plane includes a left boundary plane 703 and a right boundary plane 702.

[0195] In some embodiments, the first virtual environment is further provided with a second virtual screen, which is used to display the third virtual environment.

[0196] In some embodiments, when the virtual character intersects with the boundary plane, the terminal transmits the virtual character to a third virtual environment and displays the virtual character moving in the third virtual environment on a second virtual screen.

[0197] The third virtual environment is a different virtual environment from the first and second virtual environments.

[0198] For illustrative purposes only, the second virtual environment is the virtual environment corresponding to virtual level A, and the third virtual environment is the virtual environment corresponding to virtual level B.

[0199] Optionally, the third virtual environment can be a two-dimensional virtual environment or a three-dimensional virtual environment.

[0200] In some embodiments, the terminal can pre-set a third virtual environment corresponding to the boundary plane. For example, in Figure 7, the left boundary plane 703 corresponds to the virtual environment corresponding to virtual level B, and the right boundary plane 702 corresponds to the virtual environment corresponding to virtual level C.

[0201] Referring to Figure 11, Figure 11 is a schematic diagram of a terminal transmitting a virtual character to a third virtual environment when the virtual character intersects with the boundary plane, provided by an exemplary embodiment of this application.

[0202] As shown in Figure 11, when the virtual character is in the second virtual environment, the terminal displays the first virtual environment 1110, and displays the virtual character moving in the second virtual environment on the first virtual screen 1111 in the first virtual environment 1110.

[0203] When a virtual character moves to the boundary plane of the second virtual environment (such as the right boundary plane) and intersects with the boundary plane, the terminal transmits the virtual character to the third virtual environment and displays the image of the virtual character moving in the third virtual environment on the second virtual screen 1112.

[0204] In one possible scenario, the terminal can adjust the camera position and shooting angle of the main-view camera.

[0205] With the adjusted camera position and shooting angle, the second virtual screen is located in the center of the main view camera's field of view, and the second virtual screen is in a frontal view.

[0206] For example, in Figure 11, after the terminal adjusts the camera position and shooting angle of the main view camera, the second virtual screen 1112 is located in the center of the main view camera's field of view, and the second virtual screen 1112 is in a frontal view. While enabling the virtual character to shuttle from the second virtual environment to the third virtual environment, it avoids the user manually adjusting the view and further improves the operating efficiency.

[0207] Regarding the specific implementation of adjusting the camera position and shooting angle of the main-view camera so that the second virtual screen is located in the center of the main-view camera's field of view and is in a frontal view under the adjusted camera position and shooting angle, in one possible scenario, the terminal pre-stores frontal view information, which includes the target camera position and target shooting angle of the main-view camera when each virtual screen in the first virtual environment is located in the center of the main-view camera's field of view and is in a frontal view. When the virtual character moves to the boundary plane of the second virtual environment and intersects with the boundary plane, the terminal determines the second target camera position and second target shooting angle corresponding to the second virtual screen based on the frontal view information, and adjusts the main-view camera position to the second target camera position and the main-view camera shooting angle to the second target shooting angle, so that the second virtual screen is located in the center of the main-view camera's field of view and is in a frontal view under the adjusted camera position and shooting angle.

[0208] Optionally, in order to ensure that the image displayed on the terminal is smooth and natural enough when the main view camera adjusts its position and shooting angle, in some embodiments, the terminal completes the adjustment of the main view camera's position to the second target camera position and the adjustment of the main view camera's shooting angle to the second target shooting angle within a preset time (e.g., 0.2s).

[0209] Optionally, the terminal uses linear interpolation to determine the i-th camera position and i-th shooting angle corresponding to the i-th frame within a preset time period, based on the first target camera position and first target shooting angle before the main view camera is adjusted, and the second target camera position and second target shooting angle after the adjustment. The terminal then displays the i-th frame during the time period corresponding to the i-th frame, where the i-th frame is the scene captured by the main view camera at the i-th camera position and i-th shooting angle.

[0210] In this embodiment, by using linear interpolation, the camera position of the main-view camera is gradually adjusted from the first target camera position to the second target camera position within a preset time period, and the shooting angle of the main-view camera is adjusted from the first target shooting angle to the second target shooting angle. This allows for a gradual switching of the main viewpoint within the preset time period, improving the smoothness and naturalness of the scene transition. In some embodiments, the terminal displays a second virtual screen in a first virtual environment based on the scene captured by the adjusted main-view camera.

[0211] In some embodiments, the terminal displays the scene captured by the second scene capture camera on a second virtual screen, showing the virtual character moving in a third virtual environment.

[0212] The second scene capture camera is a camera that moves with the virtual character in the third virtual environment.

[0213] In some embodiments, the second scene capture camera is used to capture scene images in a third virtual environment, including environmental images of the third virtual environment, character images of virtual characters in the third virtual environment, and object images of various virtual items in the third virtual environment.

[0214] Optionally, the second scene capture camera uses a real-time positioning algorithm to lock the position and pose of the virtual character in the third virtual environment. When the virtual character moves in the three-dimensional third virtual environment, the second scene capture camera always maintains a relatively fixed distance and angle from the virtual character.

[0215] In some embodiments, the terminal uses a mapping technology between spatial coordinates and planar coordinates to render the scene captured by the second scene capture camera onto the second virtual screen in real time. When the virtual character moves from the second virtual environment to the third virtual environment, neither the main-view camera nor the first scene capture camera can capture the character's image within the second virtual screen. Therefore, the terminal can use the second scene capture camera to render the image of the virtual character moving in the third virtual environment onto the second virtual screen.

[0216] Optionally, when the virtual character is located in a third virtual environment, the camera position and shooting angle of the main view camera can be locked to prevent accidental changes in the viewpoint caused by user touch.

[0217] Optionally, the shape of the first virtual screen can be a cuboid, cube, sphere, irregular curved surface, or any other possible shape, without limitation.

[0218] When the screen shape of the first virtual screen includes a curved surface (such as a sphere), it is often difficult for the terminal to preset a reasonable target camera position and target shooting angle for the main view camera so that the entire view of the first virtual screen is displayed in the scene captured by the main view camera. Therefore, in this case, the terminal can also adopt a strategy of having the main view camera move together with the virtual character in the second virtual environment, rather than fixing the first virtual screen statically in the center of the field of view.

[0219] Referring to Figure 12, which is a schematic diagram of a first virtual screen with a curved screen shape provided in an exemplary embodiment of this application, the main view camera moves together with a virtual character in a second virtual environment.

[0220] As shown in Figure 12, a first virtual screen 1212 is displayed in the first virtual environment 1210. The screen shape of the first virtual screen 1212 includes a curved surface. The main view camera 1201 cannot display the entire view of the first virtual screen 1212 in the scene captured by the main view camera 1201. Therefore, when the virtual character 1211 moves in the second virtual environment, the terminal controls the main view camera 1201 to move with the virtual character 1211, thereby changing the scene captured by the main view camera.

[0221] In some embodiments, the terminal determines the position of the third target camera and the shooting angle of the third target based on the real-time position of the virtual character in the second virtual environment, and displays the first virtual environment based on the scene captured by the main view camera at the position of the third target camera and the shooting angle of the third target.

[0222] Regarding the specific method by which the terminal determines the position of the third target camera and the shooting angle of the third target based on the real-time position of the virtual character in the second virtual environment, in some embodiments, the terminal first determines, based on the real-time position of the virtual character in the second virtual environment, the point on the transmission plane in the second virtual environment closest to the character model (or the capsule body corresponding to the character model), as a reference point. The texture coordinates of the reference point on the transmission plane are the texture coordinates of the virtual character displayed on the first virtual screen.

[0223] In some embodiments, the terminal determines the position of the third target camera and the shooting angle of the third target based on the texture coordinates of the virtual character displayed on the first virtual screen, as well as the world texture map and normal map of the first virtual screen.

[0224] The world texture map of the first virtual screen is used to store the 3D coordinate information of points on the first virtual screen in the world coordinate system. The normal map of the first virtual screen is used to store the normal vector information of points on the first virtual screen, wherein the normal vector is a vector perpendicular to the points on the first virtual screen.

[0225] Optionally, the terminal determines the target normal vector corresponding to the texture coordinates displayed on the first virtual screen and the normal map of the first virtual screen, and determines the third target shooting angle of the main view camera by the opposite direction of the target normal vector.

[0226] Optionally, the terminal determines the three-dimensional coordinate point corresponding to the texture coordinate in the world texture map based on the texture coordinate of the virtual character displayed on the first virtual screen and the world texture map of the first virtual screen. Starting from the three-dimensional coordinate point, the terminal determines the position of the third target camera outside the first virtual screen along the direction of the target normal vector.

[0227] For illustrative purposes only, the default length is 3m.

[0228] Optionally, after determining the position and shooting angle of the third target camera, the terminal adjusts the position of the main view camera to the position of the third target camera and the shooting angle of the main view camera to the shooting angle of the third target within one frame.

[0229] In this embodiment, the terminal determines the position of the third target camera and the shooting angle of the third target based on the real-time position of the virtual character in the second virtual environment. This enables the main-view camera to follow the real-time position of the virtual character in the second virtual environment. Users can switch the main view while controlling the virtual character to move in the second virtual environment to view different scene images, which has high viewing efficiency.

[0230] It should be noted that this embodiment takes the screen shape of the first virtual screen including a curved surface as an example to introduce how to determine the position of the third target camera and the shooting angle of the third target based on the real-time position of the virtual character in the second virtual environment. In fact, when the screen shape of the first virtual screen does not include a curved surface (for example, the first virtual screen is a cuboid), the same method as this embodiment can be used to achieve the effect of the main view camera following the movement of the virtual character in the second virtual environment. There are no restrictions on this.

[0231] Referring to Figure 13, which is a flowchart of controlling a virtual character according to an exemplary embodiment of this application, the process includes the following steps.

[0232] Step 1301: Display the first virtual screen.

[0233] In some embodiments, the terminal displays a first virtual screen in a first virtual environment based on scene images captured by the main view camera.

[0234] The first virtual screen is used to display the second virtual environment, which can be a two-dimensional or three-dimensional virtual environment.

[0235] Step 1302: Control the movement of the virtual character.

[0236] In some embodiments, the terminal controls the movement of the virtual character upon receiving a control operation from the user.

[0237] At this point, the virtual character may be located in the first virtual environment, or in the second virtual environment, or may intersect with the first virtual screen or boundary plane.

[0238] The terminal determines whether the virtual character intersects with the boundary plane.

[0239] If the virtual character intersects with the boundary plane, proceed to step 1303 to transfer the virtual character to the third virtual environment.

[0240] The third virtual environment is a different virtual environment from the first and second virtual environments.

[0241] In some embodiments, when the virtual character intersects with the boundary plane, the terminal transmits the virtual character to a third virtual environment and displays the virtual character moving in the third virtual environment on a second virtual screen.

[0242] The third virtual environment is a different virtual environment from the first and second virtual environments.

[0243] For illustrative purposes only, the second virtual environment is the virtual environment corresponding to virtual level A, and the third virtual environment is the virtual environment corresponding to virtual level B.

[0244] Optionally, the third virtual environment can be a two-dimensional virtual environment or a three-dimensional virtual environment.

[0245] In some embodiments, the terminal can pre-set a third virtual environment corresponding to the boundary plane. When a virtual character moves to the boundary plane of the second virtual environment (such as the right boundary plane) and intersects with the boundary plane, the terminal transmits the virtual character to the third virtual environment and displays the image of the virtual character moving in the third virtual environment on the second virtual screen.

[0246] In one possible scenario, the terminal can adjust the camera position and shooting angle of the main-view camera.

[0247] With the adjusted camera position and shooting angle, the second virtual screen is located in the center of the main view camera's field of view, and the second virtual screen is in a frontal view.

[0248] If the virtual character does not intersect with the boundary plane, the terminal determines whether the virtual character intersects with the transmission plane.

[0249] If the virtual character intersects with the teleportation plane, step 1304 is executed to teleport the virtual character to the first virtual environment.

[0250] In some embodiments, the terminal transmits the virtual character from the second virtual environment to the first virtual environment and displays the scene of the virtual character moving in the first virtual environment based on the scene captured by the main view camera. At this time, the character capture camera can stop working.

[0251] Among them, the first-person view camera is the camera that moves with the virtual character in the first virtual environment.

[0252] Regarding the specific method by which the terminal transmits the virtual character to the first virtual environment, in some embodiments, the terminal transmits the virtual character to the first virtual environment according to the second relative position of the virtual character with respect to the transmission plane.

[0253] The second relative position is the same as the first relative position, which is the relative position of the virtual character to the first virtual screen.

[0254] If the virtual character does not intersect with the transmission plane, the terminal determines whether the virtual character is in a second virtual environment.

[0255] With the virtual character in the second virtual environment, step 1305 is executed to adjust the camera position and shooting angle of the main-view camera so that the first virtual screen is centered in the field of view of the main-view camera. At the same time, the terminal displays the image of the virtual character moving in the second virtual environment on the first virtual screen.

[0256] Regarding the specific implementation of adjusting the camera position and shooting angle of the terminal's main-view camera so that, under the adjusted camera position and shooting angle, the first virtual screen is located in the center of the main-view camera's field of view, and the first virtual screen is in a frontal view, in one possible scenario, the terminal pre-stores frontal view information. This frontal view information includes the target camera position and target shooting angle of the main-view camera when each virtual screen in the first virtual environment is located in the center of the main-view camera's field of view and is in a frontal view. When the virtual character completely enters the first virtual screen, the terminal determines the first target camera position and first target shooting angle corresponding to the first virtual screen based on the frontal view information, and adjusts the main-view camera's camera position to the first target camera position and the main-view camera's shooting angle to the first target shooting angle, so that, under the adjusted camera position and shooting angle, the first virtual screen is located in the center of the main-view camera's field of view, and the first virtual screen is in a frontal view.

[0257] Optionally, in order to ensure that the image displayed on the terminal is smooth and natural enough when the main view camera adjusts its position and shooting angle, in some embodiments, the terminal completes the adjustment of the main view camera's position to the first target camera position and the adjustment of the main view camera's shooting angle to the first target shooting angle within a preset time (e.g., 0.2s).

[0258] Optionally, the terminal uses linear interpolation to determine the i-th camera position and i-th shooting angle corresponding to the i-th frame within a preset time period, based on the initial camera position and initial shooting angle before the main view camera is adjusted, and the first target camera position and first target shooting angle after the adjustment. The terminal then displays the i-th frame during the time period corresponding to the i-th frame, where the i-th frame is the scene captured by the main view camera at the i-th camera position and i-th shooting angle.

[0259] If the virtual character is not in the second virtual environment, the terminal determines whether the virtual character intersects with the first virtual screen.

[0260] If the virtual character does not intersect with the first virtual screen, the terminal determines whether the virtual character has completely entered the first virtual screen.

[0261] Once the virtual character has fully entered the first virtual screen, proceed to step 1306 to transfer the virtual character to the second virtual environment.

[0262] Before the virtual character has fully entered the first virtual screen, the terminal continues to execute step 1302 to control the movement of the virtual character.

[0263] When the virtual character intersects with the first virtual screen, step 1307 is executed to display the screen showing the virtual character entering the first virtual screen.

[0264] In some embodiments, when a virtual character intersects with a first virtual screen, the terminal displays the portion of the virtual character that has not entered the screen in the first virtual environment, and displays the portion of the virtual character that has entered the screen in the first virtual screen.

[0265] The portion that has entered the screen refers to the part of the virtual character that has passed through the first virtual screen, while the portion that has not entered the screen refers to the part of the virtual character that has not passed through the first virtual screen.

[0266] As an example only, in the case where the first virtual environment is a three-dimensional virtual environment and the second virtual environment is a two-dimensional virtual environment, the terminal can display the part of the virtual character that has not entered the screen in the first virtual environment in the form of a three-dimensional model, and display the part of the virtual character that has entered the screen in the first virtual screen in the form of a two-dimensional model.

[0267] To improve the contrast between the non-screen and screen-entry portions of a virtual character, in some embodiments, the terminal may employ different display effects to show the non-screen and screen-entry portions.

[0268] In one possible implementation, the terminal displays the portion of the virtual character that has not yet entered the screen in a first virtual environment using a first display effect; and displays the portion of the virtual character that has entered the screen in a second display effect in a first virtual screen.

[0269] The second display effect is different from the first display effect.

[0270] Optionally, the second display effect and the first display effect differ in at least one dimension of color, saturation, transparency, and display style.

[0271] For illustrative purposes only, the first display effect is a display effect with 0% transparency, and the second display effect is a display effect with 50% transparency.

[0272] Referring to Figure 14, which is a structural block diagram of a virtual character control device provided in an exemplary embodiment of this application, the device includes:

[0273] Display module 1401 is used to display a first virtual environment, the first virtual environment is provided with a first virtual screen, the first virtual screen is used to display a second virtual environment, and the first virtual environment is a three-dimensional virtual environment;

[0274] Control module 1402 is used to control a virtual character in the first virtual environment to move toward the first virtual screen in response to a first movement operation;

[0275] The display module 1401 is also used to display a scene of the virtual character entering the first virtual screen when the virtual character intersects with the first virtual screen;

[0276] The display module 1401 is also used to display the image of the virtual character moving in the second virtual environment on the first virtual screen.

[0277] Optionally, the display module 1401 is used for:

[0278] When the virtual character intersects with the first virtual screen, the portion of the virtual character that has not entered the screen is displayed in the first virtual environment, and the portion of the virtual character that has entered the screen is displayed in the first virtual screen.

[0279] Optionally, the display module 1401 is used for:

[0280] In the first virtual environment, the portion of the virtual character that is not displayed on the screen is displayed using the first display effect;

[0281] In the first virtual screen, a second display effect is used to display the portion of the virtual character that has entered the screen. The second display effect is different from the first display effect.

[0282] Optionally, the display module 1401 is used for:

[0283] Based on the scene captured by the main view camera, the portion of the virtual character that is not on the screen is displayed in the first virtual environment. The main view camera is a camera in the first virtual environment that moves with the virtual character.

[0284] Based on the character image of the virtual character captured by the character capture camera, the part of the virtual character that has entered the screen is displayed in the first virtual screen. The character capture camera is used to capture the character image of the virtual character, but does not capture the scene image other than the character image of the virtual character. The camera position and shooting angle of the character capture camera are consistent with the main view camera.

[0285] Optionally, the display module 1401 is used for:

[0286] The virtual character is transferred to the second virtual environment;

[0287] Based on the scene captured by the first scene capture camera, the image of the virtual character moving in the second virtual environment is displayed on the first virtual screen. The first scene capture camera is a camera in the second virtual environment that moves with the virtual character.

[0288] Optionally, the display module 1401 is used for:

[0289] According to the first relative position of the virtual character relative to the first virtual screen, the virtual character is transmitted to the second virtual environment, wherein the first relative position is the same as the second relative position, and the second relative position is the relative position of the virtual character relative to the transmission plane in the second virtual environment, and the transmission plane is used to trigger the transmission of the virtual character between the first virtual environment and the second virtual environment.

[0290] Optionally, the display module 1401 is used for:

[0291] When the virtual character has fully entered the first virtual screen, the camera position and shooting angle of the main view camera are adjusted. Under the adjusted camera position and shooting angle, the first virtual screen is located in the center of the field of view of the main view camera, and the first virtual screen is in a frontal view.

[0292] When the virtual character is located within the second virtual environment, the camera position and shooting angle of the main-view camera are locked.

[0293] Optionally, the control module 1402 is used for:

[0294] In response to a second movement operation, the virtual character in the second virtual environment is controlled to move toward a teleportation plane, the teleportation plane being used to trigger the teleportation of the virtual character between the first virtual environment and the second virtual environment;

[0295] Optionally, the display module 1401 is used for:

[0296] When the virtual character intersects with the teleportation plane, the virtual character is teleported from the second virtual environment to the first virtual environment, and a screen showing the virtual character entering the first virtual environment is displayed.

[0297] When the virtual character completely passes through the first virtual screen, a scene of the virtual character moving in the first virtual environment is displayed.

[0298] Optionally, the display module 1401 is used for:

[0299] When the virtual character intersects with the teleportation plane, the virtual character is teleported from the second virtual environment to the first virtual environment;

[0300] The virtual character is displayed in the first virtual environment as the part of the screen that has been entered, and in the first virtual screen as the part of the screen that has not been entered.

[0301] Optionally, the display module 1401 is used for:

[0302] Unlock and adjust the camera position and shooting angle of the main view camera, wherein, under the adjusted camera position and shooting angle, the field of view position of the first virtual screen in the main view camera is consistent with the field of view position of the first virtual screen in the main view camera before the virtual character enters the first virtual screen;

[0303] Based on the scene captured by the main-view camera, the portion of the virtual character that has entered the screen is displayed in the first virtual environment;

[0304] Based on the character image of the virtual character captured by the character capture camera, the portion of the virtual character that is not on the screen is displayed in the first virtual screen. The character capture camera is used to capture the character image of the virtual character, but does not capture the scene image outside the character image of the virtual character. The camera position and shooting angle of the character capture camera are consistent with those of the main view camera.

[0305] Optionally, the display module 1401 is used for:

[0306] When the virtual character completely passes through the first virtual screen, the movement of the virtual character is displayed in the first virtual environment based on the scene captured by the main-view camera, where the main-view camera is a camera in the first virtual environment that moves with the virtual character.

[0307] Optionally, the display module 1401 is used for:

[0308] When the virtual character intersects with the transmission plane, the virtual character is transmitted to the first virtual environment according to the second relative position of the virtual character relative to the transmission plane, wherein the second relative position is consistent with the first relative position, and the first relative position is the relative position of the virtual character relative to the first virtual screen.

[0309] Optionally, the control module 1402 is used for:

[0310] When the virtual character moves in the second virtual environment in a direction parallel to the teleportation plane, the teleportation plane is controlled to follow the movement of the virtual character, wherein the amount of movement of the teleportation plane in the parallel direction is consistent with the amount of movement of the virtual character in the parallel direction.

[0311] Optionally, the first virtual environment is further provided with a second virtual screen, which is used to display the third virtual environment; the control module 1402 is used to:

[0312] In response to a third movement operation, the virtual character in the second virtual environment is controlled to move toward a boundary plane, the boundary plane being used to characterize the environmental boundary of the second virtual environment;

[0313] Optionally, the display module 1401 is used for:

[0314] When the virtual character intersects with the boundary plane, the virtual character is transferred to the third virtual environment, and the image of the virtual character moving in the third virtual environment is displayed on the second virtual screen.

[0315] Optionally, the display module 1401 is used for:

[0316] Adjust the camera position and shooting angle of the main view camera, wherein, under the adjusted camera position and shooting angle, the second virtual screen is located in the center of the field of view of the main view camera, and the second virtual screen is in a frontal view.

[0317] Based on the adjusted scene captured by the main-view camera, the second virtual screen is displayed in the first virtual environment;

[0318] Based on the scene captured by the second scene capture camera, the virtual character moves in the third virtual environment and is displayed in the second virtual screen. The second scene capture camera is a camera in the third virtual environment that moves with the virtual character.

[0319] When the virtual character is located within the third virtual environment, the camera position and shooting angle of the main-view camera are locked.

[0320] Optionally, the display module 1401 is used for:

[0321] If the virtual character intersects with the first virtual screen, and the screen attribute of the first virtual screen is set to support collision, query the overlap between the virtual character and the first virtual screen.

[0322] When the virtual character intersects with the first virtual screen, and the screen attribute of the first virtual screen supports traversal, query the overlap between the virtual character and the first virtual screen, and display the scene of the virtual character entering the first virtual screen.

[0323] Optionally, the display module 1401 is used for:

[0324] When the proportion of the virtual character entering the first virtual screen reaches a certain threshold, the screen displays a scene of the virtual character moving in the second virtual environment.

[0325] Referring to Figure 15, which is a schematic diagram of the structure of a terminal provided in an exemplary embodiment of this application, the terminal 1500 includes a Central Processing Unit (CPU) 1501, a system memory 1504 including a random access memory 1502 and a read-only memory 1503, and a system bus 1505 connecting the system memory 1504 and the CPU 1501. The terminal 1500 also includes a basic input / output system (I / O system) 1506 that facilitates information transfer between various devices within the computer, and a mass storage device 1507 for storing the operating system 1513, application programs 1514, and other program modules 1515.

[0326] The basic input / output system 1506 includes a display 1508 for displaying information and an input device 1509 for user input, such as a mouse or keyboard. Both the display 1508 and the input device 1509 are connected to the central processing unit 1501 via an input / output controller 1510 connected to the system bus 1505. The basic input / output system 1506 may also include the input / output controller 1510 for receiving and processing input from multiple other devices such as a keyboard, mouse, or electronic stylus. Similarly, the input / output controller 1510 also provides output to a display screen, printer, or other types of output devices.

[0327] The mass storage device 1507 is connected to the central processing unit 1501 via a mass storage controller (not shown) connected to the system bus 1505. The mass storage device 1507 and its associated computer-readable media provide non-volatile storage for the terminal 1500. That is, the mass storage device 1507 may include computer-readable media (not shown) such as a hard disk or drive.

[0328] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented using any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media include random access memory (RAM), read-only memory (ROM), flash memory or other solid-state storage technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic tape cassettes, magnetic tape, disk storage, or other magnetic storage devices. Of course, those skilled in the art will recognize that the computer storage media are not limited to the above-mentioned types. The system memory 1504 and mass storage device 1507 described above can be collectively referred to as memory.

[0329] The memory stores one or more programs, which are configured to be executed by one or more central processing units 1501. The one or more programs contain computer instructions for implementing the methods described above, and the central processing unit 1501 executes the one or more programs to implement the methods provided in the various method embodiments described above.

[0330] According to various embodiments of this application, the terminal 1500 can also be connected to a remote computer on a network, such as the Internet. That is, the terminal 1500 can be connected to the network 1512 via the network interface unit 1511 connected to the system bus 1505, or the network interface unit 1511 can be used to connect to other types of networks or remote computer systems (not shown).

[0331] The memory further includes one or more programs stored in the memory, and the one or more programs include steps executed by the terminal in the method provided in the embodiments of this application.

[0332] This application also provides a computer-readable storage medium storing at least one computer instruction, which is loaded and executed by a processor to implement the method described in the above embodiments. Optionally, the computer-readable storage medium may include ROM, RAM, solid-state drives (SSDs), or optical discs, etc. The RAM may include resistive random access memory (ReRAM) and dynamic random access memory (DRAM).

[0333] This application also provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A terminal's processor reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal to perform the methods provided in the various optional implementations of the above aspects.

[0334] 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 virtual character control method, the method being performed by a terminal, the method comprising: displaying a first virtual environment, the first virtual environment being provided with a first virtual screen, the first virtual screen being used to display a second virtual environment, the first virtual environment being a three-dimensional virtual environment; in response to a first movement operation, controlling a virtual character in the first virtual environment to move towards the first virtual screen; in a case where the virtual character intersects with the first virtual screen, displaying a picture in which the virtual character enters the first virtual screen; displaying, in the first virtual screen, a picture in which the virtual character moves in the second virtual environment.

2. The method of claim 1, wherein, The displaying, in the case where the virtual character intersects with the first virtual screen, the picture in which the virtual character enters the first virtual screen, comprises: in the case where the virtual character intersects with the first virtual screen, displaying, in the first virtual environment, an un-entered-screen part of the virtual character, and displaying, in the first virtual screen, an entered-screen part of the virtual character.

3. The method of claim 2, wherein, The displaying, in the first virtual environment, the un-entered-screen part of the virtual character, and the displaying, in the first virtual screen, the entered-screen part of the virtual character, comprises: in the first virtual environment, displaying the un-entered-screen part of the virtual character with a first display effect; in the first virtual screen, displaying the entered-screen part of the virtual character with a second display effect, the second display effect being different from the first display effect.

4. The method of claim 2, wherein, The displaying, in the first virtual environment, the un-entered-screen part of the virtual character, comprises: based on a scene picture captured by a main-view camera, displaying the un-entered-screen part of the virtual character in the first virtual environment, the main-view camera being a camera that follows the virtual character in the first virtual environment; The displaying, in the first virtual screen, the entered-screen part of the virtual character, comprises: based on a character picture of the virtual character captured by a character capture camera, displaying the entered-screen part of the virtual character in the first virtual screen, the character capture camera being used to capture the character picture of the virtual character and not capture scene pictures other than the character picture of the virtual character, a camera position and a shooting angle of the character capture camera being consistent with the main-view camera.

5. The method according to any one of claims 1 to 4, wherein, The displaying, in the first virtual screen, the picture in which the virtual character moves in the second virtual environment, comprises: transporting the virtual character into the second virtual environment; based on a scene picture captured by a first scene capture camera, displaying, in the first virtual screen, the picture in which the virtual character moves in the second virtual environment, the first scene capture camera being a camera that follows the virtual character in the second virtual environment.

6. The method of claim 5, wherein, The transporting the virtual character into the second virtual environment, comprises: transmitting the virtual character into the second virtual environment according to a first relative position of the virtual character relative to the first virtual screen, wherein the first relative position is consistent with a second relative position of the virtual character relative to a transmission plane in the second virtual environment, and the transmission plane is used to trigger transmission of the virtual character between the first virtual environment and the second virtual environment.

7. The method according to any one of claims 1 to 6, wherein, The method further comprises: adjusting the camera position and the shooting angle of the main perspective camera when the virtual character completely enters the first virtual screen, wherein the first virtual screen is located in the center of the field of view of the main perspective camera and the first virtual screen is in a front perspective view under the adjusted camera position and shooting angle; locking the camera position and the shooting angle of the main perspective camera when the virtual character is located in the second virtual environment.

8. The method according to any one of claims 1 to 7, wherein, The method further comprises: controlling the virtual character in the second virtual environment to move towards a transmission plane in response to a second movement operation, wherein the transmission plane is used to trigger transmission of the virtual character between the first virtual environment and the second virtual environment; transmitting the virtual character from the second virtual environment to the first virtual environment when the virtual character intersects with the transmission plane, and displaying a picture of the virtual character entering the first virtual environment; displaying a picture of the virtual character moving in the first virtual environment when the virtual character completely passes through the first virtual screen.

9. The method of claim 8, wherein, The transmitting the virtual character from the second virtual environment to the first virtual environment when the virtual character intersects with the transmission plane, and displaying a picture of the virtual character entering the first virtual environment, comprises: transmitting the virtual character from the second virtual environment to the first virtual environment when the virtual character intersects with the transmission plane; displaying an entered screen part of the virtual character in the first virtual environment, and displaying an unentered screen part of the virtual character in the first virtual screen.

10. The method of claim 9, wherein, The displaying the entered screen part of the virtual character in the first virtual environment, comprises: unlocking and adjusting the camera position and the shooting angle of the main perspective camera, wherein the first virtual screen is located in the field of view of the main perspective camera under the adjusted camera position and shooting angle, and the location of the first virtual screen in the field of view of the main perspective camera is consistent with the location of the first virtual screen in the field of view of the main perspective camera before the virtual character enters the first virtual screen; displaying the entered screen part of the virtual character in the first virtual environment based on a scene picture captured by the main perspective camera; The displaying the unentered screen part of the virtual character in the first virtual screen, comprises: Based on the character image of the virtual character captured by the character capture camera, the portion of the virtual character that is not on the screen is displayed in the first virtual screen. The character capture camera is used to capture the character image of the virtual character, but does not capture the scene image outside the character image of the virtual character. The camera position and shooting angle of the character capture camera are consistent with those of the main view camera.

11. The method of claim 8, wherein, The step of displaying a scene of the virtual character moving in the first virtual environment when the virtual character has completely passed through the first virtual screen includes: When the virtual character completely passes through the first virtual screen, the movement of the virtual character is displayed in the first virtual environment based on the scene captured by the main-view camera, where the main-view camera is a camera in the first virtual environment that moves with the virtual character.

12. The method of claim 8, wherein, When the virtual character intersects with the transmission plane, transmitting the virtual character from the second virtual environment to the first virtual environment includes: When the virtual character intersects with the transmission plane, the virtual character is transmitted to the first virtual environment according to the second relative position of the virtual character relative to the transmission plane, wherein the second relative position is consistent with the first relative position, and the first relative position is the relative position of the virtual character relative to the first virtual screen.

13. The method of claim 8, wherein, The method further includes: When the virtual character moves in the second virtual environment in a direction parallel to the teleportation plane, the teleportation plane is controlled to follow the movement of the virtual character, wherein the amount of movement of the teleportation plane in the parallel direction is consistent with the amount of movement of the virtual character in the parallel direction.

14. The method of any one of claims 1 to 13, wherein, The first virtual environment is further provided with a second virtual screen, which is used to display the third virtual environment; The method further includes: In response to a third movement operation, the virtual character in the second virtual environment is controlled to move toward a boundary plane, the boundary plane being used to characterize the environmental boundary of the second virtual environment; When the virtual character intersects with the boundary plane, the virtual character is transferred to the third virtual environment, and the image of the virtual character moving in the third virtual environment is displayed on the second virtual screen.

15. The method of claim 14, wherein, The step of displaying the virtual character moving in the third virtual environment on the second virtual screen includes: Adjust the camera position and shooting angle of the main view camera, wherein, under the adjusted camera position and shooting angle, the second virtual screen is located in the center of the field of view of the main view camera, and the second virtual screen is in a frontal view. Based on the adjusted scene captured by the main-view camera, the second virtual screen is displayed in the first virtual environment; Based on the scene captured by the second scene capture camera, the virtual character moves in the third virtual environment and is displayed in the second virtual screen. The second scene capture camera is a camera in the third virtual environment that moves with the virtual character. When the virtual character is located within the third virtual environment, the camera position and shooting angle of the main-view camera are locked.

16. The method of any one of claims 1 to 15, wherein, The method further includes: If the virtual character intersects with the first virtual screen, and the screen attribute of the first virtual screen is set to support collision, query the overlap between the virtual character and the first virtual screen. When the virtual character intersects with the first virtual screen, displaying a scene of the virtual character entering the first virtual screen includes: When the virtual character intersects with the first virtual screen, and the screen attribute of the first virtual screen supports traversal, query the overlap between the virtual character and the first virtual screen, and display the scene of the virtual character entering the first virtual screen.

17. The method of any one of claims 1 to 16, wherein, The step of displaying the virtual character moving in the second virtual environment on the first virtual screen includes: When the proportion of the virtual character entering the first virtual screen reaches a certain threshold, the screen displays a scene of the virtual character moving in the second virtual environment.

18. A virtual character control apparatus, comprising: The device includes: A display module is used to display a first virtual environment, in which a first virtual screen is provided, and the first virtual screen is used to display a second virtual environment, wherein the first virtual environment is a three-dimensional virtual environment. The control module is used to control the virtual character in the first virtual environment to move toward the first virtual screen in response to the first movement operation; The display module is also used to display a scene of the virtual character entering the first virtual screen when the virtual character intersects with the first virtual screen; The display module is also used to display the image of the virtual character moving in the second virtual environment on the first virtual screen.

19. A terminal, wherein, The terminal includes a processor and a memory; the memory stores at least one computer instruction, which is executed by the processor to implement the virtual character control method as described in any one of claims 1 to 17.

20. A computer readable storage medium, wherein, The computer-readable storage medium stores at least one computer instruction, which is loaded and executed by a processor to implement the virtual character control method as described in any one of claims 1 to 17.

21. A computer program product, wherein, The computer program product includes computer instructions stored in a computer-readable storage medium; the processor of the terminal reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal to perform the virtual character control method as described in any one of claims 1 to 17.