Virtual character control method and device, terminal, storage medium and program product
By displaying the entry screen when the virtual character intersects with the first virtual screen, the problem of too long loading time and lag during the virtual character shuttle is solved, and the smoothness of the shuttle is improved.
Patent Information
- Application Number
- CN202510624892.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-14
- Publication Date
- 2025-06-27
AI Technical Summary
The prior art has problems such as too long loading time, lag, incoherent or too abrupt during virtual characters shuttle.
By displaying the screen of the virtual character entering the first virtual screen when the virtual character intersects with the first virtual screen, the dynamic process of the virtual character gradually entering the first virtual screen is displayed.
The smoothness of virtual characters' shuttle between the first virtual environment and the second virtual environment is improved, and the problem of too long loading time and lag is avoided.
Smart Images

Figure CN120204714A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of human-computer interaction, and particularly to a method, apparatus, terminal, storage medium, and program product for controlling a virtual character. Background Art
[0002] With the development of game technology, in order to enrich the visual performance and increase the interest of the game, in a third-person three-dimensional game scene, a process can be designed in which a virtual character shuttles back and forth between a three-dimensional game scene and other virtual scenes.
[0003] In the related art, to enable a virtual character to shuttle between a three-dimensional game scene and other virtual scenes, a certain loading time can be used to switch the displayed game screen from the three-dimensional game scene to other virtual scenes, or the virtual character can be directly switched from a three-dimensional image to another image in other virtual scenes.
[0004] However, using the above methods may cause problems such as too long loading time, lag, incoherence, or being too abrupt during the shuttle process of the virtual character. Summary of the Invention
[0005] Embodiments of the present application provide a method, apparatus, terminal, storage medium, and program product for controlling a virtual character. The technical solutions are as follows:
[0006] On the one hand, embodiments of the present application provide a method for controlling a virtual character, the method including:
[0007] Display a first virtual environment, in which a first virtual screen is set, and the first virtual screen is used to display a second virtual environment, and the first virtual environment is a three-dimensional virtual environment;
[0008] In response to a first movement operation, control the virtual character in the first virtual environment to move towards the first virtual screen;
[0009] When the virtual character intersects with the first virtual screen, display a picture of the virtual character entering the first virtual screen;
[0010] Display a picture of the virtual character moving in the second virtual environment in the first virtual screen.
[0011] On the other hand, embodiments of the present application provide a device for controlling a virtual character, the device including:
[0012] A display module, configured to display a first virtual environment, in which a first virtual screen is set, and the first virtual screen is used to display a second virtual environment, and the first virtual environment is a three-dimensional virtual environment;
[0013] A control module, configured to control a virtual character in the first virtual environment to move towards the first virtual screen in response to a first movement operation;
[0014] The display module is further configured to display a picture of the virtual character entering the first virtual screen when the virtual character intersects with the first virtual screen;
[0015] The display module is further configured to display a picture of the virtual character moving in the second virtual environment in the first virtual screen.
[0016] On the other hand, an embodiment of the present application provides a terminal, which includes a processor and a memory. At least one computer instruction is stored in the memory, and the at least one computer instruction is loaded and executed by the processor to implement the method described in the above aspect.
[0017] On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which at least one computer instruction is stored, and the computer instruction is loaded and executed by a processor to implement the method described in the above aspect.
[0018] On the other hand, an embodiment of the present application provides a computer program product, which includes computer instructions stored in a computer-readable storage medium. A processor of a terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal executes the method provided in various optional implementation manners of the above aspect.
[0019] In the embodiment of the present application, the first virtual environment displayed by the terminal includes a first virtual screen, where the first virtual screen is used to display a second virtual environment. The user can control the virtual character to move towards the first virtual screen to control the virtual character to shuttle from the first virtual environment to the second virtual environment. When the virtual character intersects with the first virtual screen, the terminal can display a picture of the virtual character entering the first virtual screen, which can show the dynamic process of the virtual character gradually entering the first virtual screen, avoiding problems such as too long loading time, stuttering, incoherence or abruptness during the shuttle process of the virtual character, and improving the fluency of the virtual character shuttling between the first virtual environment and the second virtual environment. Description of the Drawings
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0021] Figure 1 is a flowchart of a virtual character control method provided by an exemplary embodiment of the present application;
[0022] Figure 2 is a schematic diagram of a first virtual environment displayed on a terminal provided by an exemplary embodiment of the present application;
[0023] Figure 3 is a schematic diagram of a scene where a virtual character enters a first virtual screen provided by an exemplary embodiment of the present application;
[0024] Figure 4 is a schematic diagram of a two-dimensional model of a virtual character moving in a second virtual environment provided by an exemplary embodiment of the present application;
[0025] Figure 5 is a schematic diagram of a terminal displaying the un-entered screen part and the entered screen part of a virtual character with different display effects provided by an exemplary embodiment of the present application;
[0026] Figure 6 is a schematic diagram of a character image captured by a character capture camera based on a character capture array provided by an exemplary embodiment of the present application;
[0027] Figure 7 is a schematic diagram of a second virtual environment provided by an exemplary embodiment of the present application;
[0028] Figure 8 is a schematic diagram of a capsule corresponding to a character model of a virtual character provided by an exemplary embodiment of the present application;
[0029] Figure 9 is a schematic diagram of a terminal adjusting the camera position and shooting angle of a main perspective camera when a virtual character completely enters a first virtual screen provided by an exemplary embodiment of the present application;
[0030] Figure 10 is a schematic diagram of a terminal displaying a scene where a virtual character enters a first virtual environment when the virtual character intersects with a transfer plane provided by an exemplary embodiment of the present application;
[0031] Figure 11 is a schematic diagram of a terminal teleporting a virtual character to a third virtual environment when the virtual character intersects with a boundary plane provided by an exemplary embodiment of the present application;
[0032] Figure 12 is a schematic diagram of a main perspective camera moving together with a virtual character in a second virtual environment when the screen shape of a first virtual screen includes a curved surface provided by an exemplary embodiment of the present application;
[0033] Figure 13 It is a flowchart for controlling a virtual character provided by an exemplary embodiment of the present application;
[0034] Figure 14 It is a structural block diagram of a virtual character control device provided by an exemplary embodiment of the present application;
[0035] Figure 15 It is a schematic structural diagram of a terminal provided by an exemplary embodiment of the present application. Detailed implementation manners
[0036] To make the objectives, technical solutions and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.
[0037] First, introduce the nouns involved in the embodiments of the present application.
[0038] First virtual environment: The virtual environment displayed (or provided) when the application runs on the terminal. For example, in a game scenario, the first virtual environment is a three-dimensional virtual environment where the virtual character exists. The first virtual environment can be a simulation environment of the real world, a semi-simulation and semi-fictional environment, or a pure fictional environment.
[0039] First virtual screen: A virtual screen in the first virtual environment that has a display function and a teleportation function. The first virtual screen can be used to display the second virtual environment, and when the virtual character in the first virtual environment completely enters the first virtual screen, the first virtual screen teleports the virtual character into the second virtual environment, thereby realizing the shuttle of the virtual character between the first virtual environment and the second virtual environment.
[0040] Virtual character: An active object in the virtual environment. For example, the virtual character is an active object controlled by the player or an active object controlled by the application (referred to as a Non-Player Character (NPC)). Optionally, the virtual character can be a virtual person, a virtual animal, an anime character, a virtual monster, a virtual robot, etc. In a three-dimensional virtual environment, the virtual character can be displayed using a three-dimensional model.
[0041] Second virtual environment: Another virtual environment different from the first virtual environment. Optionally, the second virtual environment can be the environment where the virtual level in the first virtual environment is located. The second virtual environment can be displayed through the first virtual screen.
[0042] In the related art, to enable a virtual character to shuttle between a three-dimensional game scene and other virtual scenes (for example, the virtual character shuttles between a three-dimensional game scene and a two-dimensional game scene), it is usually possible to use a certain loading time to switch the displayed game screen from the three-dimensional game scene to the two-dimensional virtual scene. For example, first display the three-dimensional model of the virtual character in the three-dimensional game scene. When the virtual character needs to shuttle to the two-dimensional virtual scene, the player first needs to control the virtual character to trigger a teleportation entrance in the three-dimensional game scene (for example, control the virtual character to touch a teleportation pipe), and the terminal starts to load the two-dimensional game scene. When the two-dimensional game scene is loaded, the terminal displays the two-dimensional model of the virtual character in the two-dimensional game scene.
[0043] However, the above method has the disadvantages of too long loading time, stuttering, incoherence or being too abrupt during the shuttle of the virtual character. Based on this, the present application proposes a virtual character control method, which improves the smoothness of the shuttle of the virtual character between the first virtual environment and the second virtual environment by displaying the picture of the virtual character entering the first virtual screen.
[0044] See Figure 1 , Figure 1 is a flowchart of a virtual character control method provided by an exemplary embodiment of the present application. In some embodiments, this method is executed by a terminal. The method includes the following steps.
[0045] Step 101, display a first virtual environment, in which a first virtual screen is set, and the first virtual screen is used to display a second virtual environment. The first virtual environment is a three-dimensional virtual environment.
[0046] The first virtual environment is a virtual environment displayed (or provided) when an application runs on the 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 where the virtual character is located for challenging virtual levels. The first virtual environment can be a simulation environment of the real world, a semi-simulation and semi-fictional environment, or a pure fictional environment.
[0047] Optionally, in the first virtual environment, the user can use the input components of the terminal (such as a gamepad, a somatosensory device, or a keyboard and mouse) to control the main perspective. For example, the main perspective can be moved so that the first virtual environment can freely translate, rotate, and scale in three-dimensional space.
[0048] Optionally, the first virtual environment may include a virtual character. A virtual character is an active object in the virtual environment. For example, a virtual character is an active object controlled by a player or an active object controlled by an application. Optionally, the virtual character can be a virtual person, a virtual animal, an anime character, a virtual monster, a virtual robot, etc. In a three-dimensional virtual environment, the virtual character can be displayed using a three-dimensional model.
[0049] Optionally, the user can control the virtual character through the input component of the terminal (such as a handle, a somatosensory device, or a keyboard and mouse). For example, the user can control the virtual character to perform movement operations such as walking, running, or jumping, as well as action operations such as attacking, defending, or changing equipment, or any other possible type of character operation.
[0050] The first virtual screen is a virtual screen for displaying the second virtual environment. Optionally, the first virtual screen can be displayed as a virtual electronic device screen (such as a virtual computer screen, a virtual mobile phone screen, a virtual projection screen, etc.) in the first virtual environment, or the first virtual screen can also be displayed as other virtual screens with display functions (such as a virtual mirror, a virtual portal, etc.).
[0051] The second virtual environment is another virtual environment different from the first virtual environment. Optionally, the second virtual environment can be the environment where the virtual level in the first virtual environment is located. The second virtual environment can be displayed through the first virtual screen.
[0052] Optionally, the second virtual environment can be a two-dimensional virtual environment or a three-dimensional virtual environment.
[0053] For example only, the second virtual environment is a two-dimensional virtual environment (such as a fictional environment displayed as a two-dimensional image) where the virtual level in the first virtual environment is located.
[0054] See Figure 2 , Figure 2 is a schematic diagram of the first virtual environment displayed by the terminal provided in an exemplary embodiment of the present application.
[0055] As Figure 2 shown, in the first virtual environment 210 displayed by the terminal, there is a virtual level 211. For example, the virtual level 211 can be a level for the confrontation, combat, or other types of challenges of the virtual character.
[0056] In the first virtual environment 210, there is also a first virtual screen 212, and the first virtual screen 212 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 where the virtual character is located when challenging the virtual level 211.
[0057] In the first virtual environment 210, there is also a virtual character 213 (shown as a virtual person).
[0058] Step 102, in response to the first movement operation, control the virtual character in the first virtual environment to move towards the first virtual screen.
[0059] Among them, the first movement operation is used to control the virtual character to move towards the first virtual screen (such as running, walking or jumping).
[0060] Optionally, the first movement operation can be implemented by the user through the input component of the terminal (such as a gamepad, a somatosensory device or a keyboard and mouse), or the first movement operation can also be implemented through voice input, and there is no limitation on this.
[0061] In some embodiments, in response to the first movement operation, the terminal displays a picture of the virtual character moving towards the first virtual screen in the first virtual environment.
[0062] For example Figure 1 as shown in, in response to the first movement operation, the terminal displays a picture of the virtual character 213 moving towards the first virtual screen 212 in the first virtual environment 210.
[0063] Step 103, when the virtual character intersects with the first virtual screen, display a picture of the virtual character entering the first virtual screen.
[0064] Optionally, the terminal can determine whether the virtual character intersects with the first virtual screen according to the spatial position relationship between the three-dimensional model of the virtual character and the three-dimensional space where the first virtual screen is located in the first virtual environment. For example, when there is an overlap between the three-dimensional model of the virtual character and the three-dimensional space where the first virtual screen is located in the first virtual environment, it is determined that the virtual character intersects with the first virtual screen.
[0065] Optionally, the screen attribute of the first virtual screen supports querying the overlap situation between the colliding object and the first virtual screen in the case of a collision. For example, when the three-dimensional model of the virtual character collides with the first virtual screen, the first virtual screen supports not responding to the collision but only being used to query the regional information of the overlapping area.
[0066] Optionally, the picture of the virtual character entering the first virtual screen can be a picture of the virtual character gradually entering the first virtual screen from the outside. That is, the display of this picture 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, and at the same time, there may be some animation effects, light and shadow changes or sound effects, etc., to enhance the user's immersion and experience.
[0067] Optionally, the picture of the virtual character entering the first virtual screen is used to create a special scene transition effect. For example, in a game, when the virtual character enters a special portal (the first virtual screen) to enter a new map (the second virtual environment), this picture will be displayed, allowing the user to intuitively feel the state change and scene transition of the virtual character.
[0068] In some embodiments, the scene where the virtual character enters the first virtual screen may include the part of the virtual character that has entered the screen and the part that has not entered the screen.
[0069] Among them, the part that has entered the screen refers to the part where the virtual character has passed through the first virtual screen, and the part that has not entered the screen refers to the part where the virtual character has not passed through the first virtual screen.
[0070] Optionally, the terminal may display the part of the virtual character that has not entered the screen in the first virtual environment, and display the part of the virtual character that has entered the screen in the first virtual screen.
[0071] By way of example only, the terminal may 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.
[0072] See Figure 3 , Figure 3 which is a schematic diagram of the scene where the virtual character enters the first virtual screen provided by an exemplary embodiment of the present application.
[0073] As Figure 3 shown, in the first virtual environment 310, when the virtual character 313 intersects with the first virtual screen 312, the terminal displays the scene where the virtual character 313 enters the first virtual screen 312, so as to reflect the process that a part of the body of the virtual character first enters the screen, and then the virtual character gradually enters the first screen completely.
[0074] Step 104, display the scene where the virtual character moves in the second virtual environment in the first virtual screen.
[0075] In some embodiments, when the virtual character completely enters the first virtual screen, the terminal displays the scene where the virtual character moves in the second virtual environment.
[0076] Optionally, the terminal may determine whether the virtual character completely enters the first virtual screen based on the positional relationship between the three-dimensional model of the virtual character and the space where the first virtual screen is located in the first virtual environment. For example, when there is no overlap between the three-dimensional model of the virtual character and the space where the first virtual screen is located in the first virtual environment, and the three-dimensional model of the virtual character is located behind the first virtual screen, the terminal determines that the virtual character completely enters the first virtual screen.
[0077] In some embodiments, when the second virtual environment is a two-dimensional virtual environment, the terminal displays the scene where the two-dimensional model of the virtual character moves in the second virtual environment in the first virtual screen. When the second virtual environment is a three-dimensional virtual environment, the terminal displays the scene where the three-dimensional model of the virtual character moves in the second virtual environment in the first virtual screen.
[0078] See Figure 4 , Figure 4 which is a schematic diagram of the movement of the two-dimensional model of a virtual character provided by an exemplary embodiment of the present application in a second virtual environment.
[0079] As Figure 4 shown, after the virtual character completely 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.
[0080] Meanwhile, the terminal displays in the first virtual screen 412 the picture of the movement of the two-dimensional model of the virtual character 413 in the second virtual environment.
[0081] In some embodiments, the user can control the movement of the virtual character in the second virtual environment through the same or similar control operations outside the first virtual screen.
[0082] For example, the user can control the virtual character to perform movements such as walking, running, or jumping, as well as actions such as attacking, defending, and changing equipment, or any other possible types of actions in the second virtual environment through control operations.
[0083] It should be noted that in some embodiments, the terminal may not display the picture of the movement of the virtual character in the second virtual environment in the first virtual screen when the virtual character completely enters the first virtual screen. That is, the terminal can display the picture of the movement of the virtual character in the second virtual environment in the first virtual screen when a part of the character content of the virtual character has not completely entered the first virtual screen.
[0084] By way of example only, the terminal can display the first avatar of the virtual character outside the first virtual screen (i.e., in the first virtual environment) and display the second avatar of the virtual character inside the first virtual screen (i.e., in the second virtual environment).
[0085] Optionally, when the terminal displays in the first virtual screen the picture of the second avatar of the virtual character moving in the second virtual environment, the terminal displays the first avatar of the virtual character in the first virtual environment, and the first avatar remains stationary.
[0086] In summary, the first virtual environment displayed on the terminal includes a first virtual screen, where the first virtual screen is used to display the second virtual environment. The user can control the virtual character to move towards the first virtual screen to shuttle the virtual character from the first virtual environment to the second virtual environment. When the virtual character intersects with the first virtual screen, the terminal can display the picture of the virtual character entering the first virtual screen, showing the dynamic process of the virtual character gradually entering the first virtual screen, avoiding problems such as too long loading time, stuttering, incoherence, or being too abrupt during the shuttling process of the virtual character, and improving the fluency of the virtual character shuttling between the first virtual environment and the second virtual environment.
[0087] In some embodiments, when the virtual character intersects with the first virtual screen, the terminal displays the part of the virtual character that has not entered the screen in the first virtual environment and the part of the virtual character that has entered the screen in the first virtual screen.
[0088] Among them, the part that has entered the screen refers to the part where the virtual character has passed through the first virtual screen, and the part that has not entered the screen refers to the part where the virtual character has not passed through the first virtual screen.
[0089] For example, when 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 display mode 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 display mode of a two-dimensional model.
[0090] To improve the contrast between the part of the virtual character that has not entered the screen and the part that has entered the screen, in some embodiments, the terminal can use different display effects to display the part that has not entered the screen and the part that has entered the screen.
[0091] In a possible implementation, the terminal uses a first display effect to display the part of the virtual character that has not entered the screen in the first virtual environment, and uses a second display effect to display the part of the virtual character that has entered the screen in the first virtual screen.
[0092] Among them, the second display effect is different from the first display effect.
[0093] Optionally, the second display effect and the first display effect are different in at least one dimension among color, saturation, transparency, and display style.
[0094] For example, the first display effect is a display effect with a transparency of 0%, and the second display effect is a display effect with a transparency of 50%.
[0095] See Figure 5 , Figure 5It is a schematic diagram of a terminal provided by an exemplary embodiment of the present application for displaying the unentered screen part and the entered screen part of a virtual character with different display effects.
[0096] As Figure 5 shown, 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, adopts the first display effect to display the unentered screen part 511-1 of the virtual character, that is, the transparency of the unentered screen part 511-1 is 0%. At the same time, the terminal, in the first virtual screen 512, adopts the second display effect to display the entered screen part 511-2 of the virtual character, that is, the transparency of the entered screen part 511-2 is 50%.
[0097] By using different display effects to display the unentered screen part and the entered screen part of the virtual character, the contrast effect between the two parts can be enhanced, and the dynamic process of the virtual character gradually entering the first virtual screen can be further strengthened.
[0098] Regarding the specific manner in which the terminal realizes displaying the unentered screen part of the virtual character in the first virtual environment and the entered screen part of the virtual character in the first virtual screen, in some embodiments, the terminal, based on the scene picture captured by the main perspective camera, displays the unentered screen part of the virtual character in the first virtual environment.
[0099] As Figure 5 shown, the terminal, based on the scene picture captured by the main perspective camera 521, displays the unentered screen part 511-1 of the virtual character in the first virtual environment 510.
[0100] Among them, the main perspective camera is a camera that follows the virtual character in the first virtual environment.
[0101] In some embodiments, the main perspective camera is used to capture the scene picture in the first virtual environment, including the environmental picture of the first virtual environment, the character picture of the virtual character in the first virtual environment, and the item picture of various virtual items in the first virtual environment.
[0102] Optionally, the main perspective camera adopts a real-time positioning algorithm to lock the position and pose of the virtual character in the first virtual environment. When the virtual character moves in the three-dimensional space, the main perspective camera always maintains a relatively fixed distance and angle with the virtual character. Taking an open-world game as an example, when the virtual character climbs over a hill and passes through a jungle, the main perspective camera automatically adjusts the height, tilt angle, and field of view to ensure that the virtual character and the surrounding environment are always captured from the best perspective.
[0103] In some embodiments, the terminal uses spatial coordinate mapping technology to render the scene captured by the main perspective camera in real time into the first virtual environment. When the virtual character intersects with the first virtual screen, the main perspective camera still continuously captures the character image of the virtual character outside the first virtual screen, that is, the part of the virtual character that has not entered the screen is obtained. The terminal renders the part that has not entered the screen to the corresponding position in the first virtual environment in real time.
[0104] However, when the virtual character intersects with the first virtual screen, only the image of the part of the virtual character that has not entered the screen can be captured through the main perspective camera, and the image of the part that has entered the screen cannot be captured. Therefore, in order to display the part of the virtual character that has entered the screen in the first virtual screen, in this embodiment, a character capture camera is also provided, which is dedicated to capturing the character image of the virtual character and is not used to capture the environmental image of the first virtual environment, as well as the images of other characters or items other than the virtual character.
[0105] Such as Figure 5 In [the figure], the terminal displays the part 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.
[0106] In some embodiments, the terminal displays the part of the virtual character that has entered the screen in the first virtual screen based on the character image of the virtual character captured by the character capture camera.
[0107] Among them, the character capture camera is used to capture the character image of the virtual character and does not capture the scene image outside the virtual character. The camera position and shooting angle of the character capture camera are the same as those of the main perspective camera.
[0108] 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 obtains the camera position and shooting angle of the main perspective camera in real time and keeps the camera position and shooting angle of the character capture camera the same as those of the main perspective camera. When the virtual character moves in the three-dimensional space, the character capture camera always maintains the same camera position and shooting angle as the main perspective camera.
[0109] In some embodiments, when the virtual character intersects with the first virtual screen, the terminal uses the mapping technology between spatial coordinates and plane coordinates to project the character image captured by the character capture camera onto the first virtual screen in real time and perform rendering, so as to realize rendering the part that has entered the screen to the corresponding position on the first virtual screen in real time.
[0110] Regarding the specific implementation of the character capture camera, in a possible scenario, the terminal can set a character capture array for the character capture camera. The content stored in the character capture array is 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 a character image.
[0111] Optionally, the character capture camera can be obtained by setting a character capture array (ShowOnlyActors) for the two-dimensional scene capture camera (SceneCapture 2D) provided by the Unreal Engine.
[0112] For example only, in the first virtual environment, there are 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 a specified texture image to obtain a character image, and will not capture the images corresponding to the virtual trees and virtual houses, thus realizing the separate capture of the character image of the virtual character.
[0113] See Figure 6 , Figure 6 is a schematic diagram of the character image captured by the character capture camera based on the character capture array provided by an exemplary embodiment of the present application.
[0114] As Figure 6 shown, based on the character capture array, the character capture camera renders the character model of the virtual character onto the texture image 610 to obtain a character image.
[0115] In some embodiments, the terminal can also set different transparencies for the character pixel points corresponding to the character model of the virtual character on the texture image and other pixel points other than the character pixel points on the texture image.
[0116] For example only, the terminal sets the transparency of the character pixel points corresponding to the character model on the texture image to 0, and sets the transparency of other pixel points other than the character pixel points to 1 to obtain the character image 620 with the transparency set.
[0117] In some embodiments, the terminal can display the part of the virtual character that has entered the screen in the first virtual screen according to the character image 620 with the transparency set. For example, the terminal can superimpose the character image 620 in the form of a material onto the original material of the first virtual screen. Since in the main perspective image captured by the main perspective camera, the part of the virtual character that has not entered the screen will block the projection of the part of the first virtual screen that has not entered the screen, therefore, the effect of displaying the part of the virtual character that has entered the screen in the first virtual screen can be presented.
[0118] 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 in the first virtual environment captured by the main perspective camera; by setting up a character capture camera and keeping the camera position and shooting angle of the character capture camera consistent with those of the main perspective camera, the terminal projects the character image of the virtual character captured by the character capture camera onto the first virtual screen in real time and renders it, so as to display the part of the virtual character that has entered the screen on the first virtual screen.
[0119] In some embodiments, when the entry ratio of the virtual character into the first virtual screen reaches the ratio threshold, the terminal displays the image of the virtual character moving in the second virtual environment on the first virtual screen.
[0120] Optionally, when the entry ratio of the virtual character into the first virtual screen reaches 90% or 100%, the terminal teleports the virtual character into the second virtual environment and displays the image of the virtual character moving in the second virtual environment on the first virtual screen.
[0121] When the virtual character completely enters the first virtual screen, the terminal teleports the virtual character into the second virtual environment.
[0122] Regarding the specific manner in which the terminal teleports the virtual character into the second virtual environment, in some embodiments, the terminal teleports the virtual character into the second virtual environment according to the first relative position of the virtual character relative to the first virtual screen.
[0123] Wherein, the first relative position is consistent with the second relative position, and the second relative position is the relative position of the virtual character relative to the teleportation plane in the second virtual environment, and the teleportation plane is used to trigger the teleportation of the virtual character between the first virtual environment and the second virtual environment.
[0124] Optionally, the size of the teleportation plane is consistent with the size of the first virtual screen.
[0125] The following takes the second virtual environment as a three-dimensional virtual environment as an example for illustration.
[0126] See Figure 7 , Figure 7 which is a schematic diagram of the second virtual environment provided by an exemplary embodiment of the present application.
[0127] As Figure 7 shown, the second virtual environment 710 includes a teleportation plane 712.
[0128] In some embodiments, 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 transfers 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 transfer plane 712 is consistent with the first relative position. Thus, from a visual effect 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 enhancing the continuity and smoothness of the virtual character shuttling from the first virtual environment to the second virtual environment, and avoiding the occurrence of discontinuous phenomena.
[0129] In a possible scenario, the terminal can determine the capsule 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.
[0130] Wherein, the capsule is a spatial region containing the character model of the virtual character.
[0131] Optionally, the capsule is the smallest spatial region that adopts the preset shape of the terminal and contains the character model of the virtual character.
[0132] See Figure 8 , Figure 8 which is a schematic diagram of the capsule corresponding to the character model of the virtual character provided by an exemplary embodiment of the present application.
[0133] As Figure 8 shown, the first virtual screen 812 and the virtual character are displayed in the first virtual environment 810. Among them, the capsule corresponding to the character model of the virtual character is the capsule 811, and the capsule is the smallest spatial region that adopts the preset shape of the terminal and contains the character model of the virtual character. That is, all coordinate points on the character model are located within the capsule.
[0134] Optionally, when the preset shape of the capsule is different from the model shape of the character model, the volume of the capsule is slightly larger than the volume of the character model.
[0135] In some embodiments, when the virtual character intersects with the first virtual screen, the terminal calculates the intersection point of the capsule corresponding to the character model of the virtual character and the first virtual screen, and when the virtual character completely enters the virtual screen, determines the relative position of the intersection point of the capsule and the first virtual screen in the first virtual screen as the first relative position.
[0136] In some embodiments, the terminal is provided with a first scene capture camera for capturing the scene picture in the second virtual environment.
[0137] As Figure 7Among them, the terminal is provided with a first scene capture camera 711 for capturing the scene picture in the second virtual environment 710.
[0138] In some embodiments, the terminal displays the picture of the virtual character moving in the second virtual environment on the first virtual screen according to the scene picture captured by the first scene capture camera.
[0139] Among them, the first scene capture camera is a camera that follows the virtual character in the second virtual environment.
[0140] In some embodiments, the first scene capture camera is used to capture the scene picture in the second virtual environment, including the environmental picture of the second virtual environment, the character picture of the virtual character in the second virtual environment, and the item pictures of various virtual items in the second virtual environment.
[0141] Optionally, the first scene capture camera uses a real-time positioning algorithm to lock the position and posture 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 with the virtual character.
[0142] In some embodiments, the terminal uses the mapping technology between spatial coordinates and planar coordinates to render the scene picture captured by the first scene capture camera onto the first virtual screen in real time. When the virtual character completely enters the first virtual screen, the main perspective camera cannot collect the character picture of the virtual character within the first virtual screen. Therefore, through the first scene capture camera, the terminal can render the picture of the virtual character moving in the second virtual environment onto the first virtual screen.
[0143] In a possible scenario, when the virtual character shuttles from the first virtual environment to the second virtual environment, the camera position and shooting angle of the main perspective camera will be adjusted.
[0144] In some embodiments, when the virtual character completely enters the first virtual screen, the terminal adjusts the camera position and shooting angle of the main perspective camera. Among them, 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 perspective camera, and the first virtual screen is in the front view perspective.
[0145] See Figure 9 , Figure 9 It is a schematic diagram of the terminal adjusting the camera position and shooting angle of the main perspective camera when the virtual character completely enters the first virtual screen provided by an exemplary embodiment of the present application.
[0146] Such as Figure 9As shown, in the first virtual environment 910, when the virtual character intersects with the first virtual screen 911, at the current camera position and shooting angle of the main perspective camera, the first virtual screen 911 is in a side view perspective.
[0147] When the virtual character completely enters the first virtual screen 911, the terminal displays the first virtual screen 911 in the first virtual environment 910 and displays the moving picture of the virtual character in the first virtual screen 911.
[0148] Among them, the terminal displays the first virtual screen 911 in the first virtual environment 910 through the scene picture captured by the adjusted main perspective camera, so that the first virtual screen 911 is located in the center of the field of view of the main perspective camera, and the first virtual screen 911 is in a front view perspective.
[0149] Regarding the specific implementation method for the terminal to adjust the camera position and shooting angle of the main perspective camera so that, at the adjusted camera position and shooting angle, 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 view perspective. In a possible scenario, the terminal pre-stores the front view screen information. Among them, the front view screen information includes the target camera position and target shooting angle of the main perspective camera when each virtual screen in the first virtual environment is located in the center of the field of view of the main perspective camera and is in a front view perspective; when the virtual character completely enters the first virtual screen, the terminal determines the first target camera position and the first target shooting angle corresponding to the first virtual screen according to the front view screen information, and adjusts the camera position of the main perspective camera to the first target camera position and adjusts the shooting angle of the main perspective camera to the first target shooting angle, so as to achieve that, at the adjusted camera position and shooting angle, 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 view perspective.
[0150] Optionally, in order to ensure that when the main perspective camera adjusts the camera position and shooting angle, the picture displayed by the terminal is smooth and natural enough. In some embodiments, the terminal completes adjusting the camera position of the main perspective camera to the first target camera position and adjusting the shooting angle of the main perspective camera to the first target shooting angle within a preset duration (such as 0.2s).
[0151] Optionally, the terminal determines the i-th camera position and the i-th shooting angle corresponding to the i-th frame within the preset duration by using linear interpolation according to the initial camera position and initial shooting angle before the adjustment of the main perspective camera, and the first target camera position and the first target shooting angle after the adjustment, and displays the i-th frame picture at the duration corresponding to the i-th frame, where the i-th frame picture is the scene picture captured by the main perspective camera at the i-th camera position and the i-th shooting angle.
[0152] In this embodiment, by means of linear interpolation, the camera position of the main perspective camera is gradually adjusted from the initial camera position to the first target camera position within a preset duration, and the shooting angle of the main perspective camera is adjusted from the initial shooting angle to the first target shooting angle, so as to realize the gradual switching of the main perspective within the preset duration, and improve the smoothness and naturalness of the screen switching. When the virtual character completely enters the first virtual screen, by adjusting the camera position and shooting angle of the main perspective camera, the first virtual screen can be directly presented in the center of the interface, avoiding the need for the user to manually adjust the angle and improving the operation efficiency.
[0153] In some embodiments, when the virtual character is located within the second virtual environment, the terminal locks the camera position and shooting angle of the main perspective camera, so that the first virtual screen is continuously presented in the center of the interface, avoiding the perspective deviation caused by the user's accidental touch.
[0154] In a possible scenario, the user can control the virtual character in the second virtual environment to shuttle back to the first virtual environment.
[0155] In some embodiments, in response to the second movement operation, the terminal controls the virtual character in the second virtual environment to move towards the teleportation plane.
[0156] The teleportation plane is used to trigger the teleportation of the virtual character between the first virtual environment and the second virtual environment.
[0157] The second movement operation is an operation to control the virtual character in the second virtual environment to move towards the teleportation plane.
[0158] Optionally, the second movement operation can be implemented by the user through the input component of the terminal (such as a handle, a somatosensory device, or a keyboard and mouse), or the second movement operation can also be implemented through voice input, and there is no limitation on this.
[0159] In some embodiments, when the virtual character intersects with the teleportation plane, the terminal teleports the virtual character from the second virtual environment to the first virtual environment and displays the picture of the virtual character entering the first virtual environment.
[0160] Optionally, when the virtual character intersects with the teleportation plane, the terminal teleports the virtual character from the second virtual environment to the first virtual environment, and 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.
[0161] Optionally, the terminal uses a first display effect to display the part of the virtual character that has entered the screen in the first virtual environment, and uses a second display effect to display the part of the virtual character that has not entered the screen in the first virtual screen.
[0162] Among them, the part that has entered the screen is the part where the virtual character passes through the first virtual screen, and the part that has not entered the screen is the part where the virtual character has not passed through the first virtual screen.
[0163] See Figure 10 , Figure 10 which is a schematic diagram showing the terminal displaying the picture of the virtual character entering the first virtual environment when the virtual character intersects with the teleportation plane provided by an exemplary embodiment of the present application.
[0164] As Figure 10 shown, when the virtual character intersects with the teleportation plane, the terminal teleports the virtual character from the second virtual environment to the first virtual environment, and displays the part 1012-2 of the virtual character that has entered the screen in the first virtual environment 1010, and displays the part 1012-1 of the virtual character that has not entered the screen in the first virtual screen 1011.
[0165] Regarding the specific manner in which the terminal displays the part 1012-2 that has entered the screen, in some embodiments, the terminal unlocks and adjusts the camera position and shooting angle of the main perspective camera.
[0166] Among them, at the adjusted camera position and shooting angle, the viewing position of the first virtual screen in the main perspective camera is the same as the viewing position of the first virtual screen in the main perspective camera before the virtual character enters the first virtual screen.
[0167] As Figure 10 shown, at the adjusted camera position and shooting angle, the first virtual screen 1011 is no longer at the center of the field of view and the front view angle in the main perspective camera, but is instead changed to a side view angle again, which is the same as the view angle before the virtual character enters the first virtual screen 1011.
[0168] In some embodiments, the terminal displays the part of the virtual character that has entered the screen in the first virtual environment based on the scene picture captured by the main perspective camera.
[0169] As Figure 10 shown, the terminal displays the part 1012-2 of the virtual character that has entered the screen in the first virtual environment 1010 based on the scene picture captured by the main perspective camera 1021.
[0170] Regarding the specific manner in which the terminal displays the part 1012-1 that has not entered the screen, in some embodiments, the terminal displays the part of the virtual character that has not entered the screen in the first virtual screen according to the character picture of the virtual character captured by the character capture camera.
[0171] For example Figure 10In the case where the virtual character intersects with the first virtual screen 1011, the terminal projects the character screen captured by the character capture camera 1022 onto the first virtual screen 1011 in real time through the mapping technology between spatial coordinates and planar coordinates and performs rendering, so as to realize real-time rendering of the part 1012-1 that has not entered the screen onto the corresponding position on the first virtual screen 1011.
[0172] Among them, the character capture camera is used to capture the character screen of the virtual character and does not capture the scene screen outside the virtual character. The camera position and shooting angle of the character capture camera are the same as those of the main perspective camera.
[0173] For more content about the main perspective camera and the character capture camera, refer to the foregoing embodiments and their related descriptions, which will not be elaborated here.
[0174] In some embodiments, in the case where the virtual character completely passes through the first virtual screen, the terminal displays the moving picture of the virtual character in the first virtual environment according to the scene picture captured by the main perspective camera.
[0175] For example Figure 10 In the case where the virtual character completely passes through the first virtual screen, the terminal displays the moving picture of the virtual character moving in the first virtual environment 1010 based on the scene picture captured by the main perspective camera 1021. At this time, the character capture camera 1022 can stop working.
[0176] Regarding the specific manner in which the terminal transfers the virtual character from the second virtual environment to the first virtual environment, in some embodiments, in the case where the virtual character intersects with the transfer plane, the terminal transfers the virtual character to the first virtual environment according to the second relative position of the virtual character with respect to the transfer plane.
[0177] Among them, the second relative position is the same as the first relative position, and the first relative position is the relative position of the virtual character with respect to the first virtual screen.
[0178] The terminal transfers the virtual character to the first virtual environment according to the second relative position of the virtual character with respect to the transfer plane, so that the first relative position of the virtual character with respect to the first virtual screen is the same as the second relative position. From the visual effect, the projection of the virtual character seen by the user on the first virtual screen will be consistent with the position before the virtual character intersects with the transfer plane, further improving the continuity and smoothness of the virtual character shuttling back from the second virtual environment to the first virtual environment and avoiding the occurrence of discontinuous phenomena.
[0179] In some embodiments, in the case where the virtual character moves in the second virtual environment in a direction parallel to the transfer plane, the terminal controls the transfer plane to move following the virtual character.
[0180] Among them, the movement amount of the transmission plane in the parallel direction is consistent with the movement amount of the virtual character in the parallel direction.
[0181] For example Figure 7 In, when the virtual character moves in the x-axis direction, the terminal controls the transmission plane 712 to move in the x-axis direction along with the virtual character, and the movement amount of the transmission plane in the parallel direction (i.e., the x-axis direction) is consistent with the movement amount of the virtual character in the parallel direction (i.e., the x-axis direction).
[0182] By controlling the transmission plane to be synchronized with the virtual character in the parallel direction, it can be ensured that when the virtual character is at any position in the second virtual environment, the transmission plane can be triggered by moving in the negative y-axis direction, realizing the shuttle from the second virtual environment to the first virtual environment.
[0183] In a possible scenario, the second virtual environment includes at least one of a front boundary plane, a rear boundary plane, a left boundary plane, and a right boundary plane.
[0184] For example Figure 7 In, the second virtual environment 710 includes a front boundary plane 701, a left boundary plane 703, and a right boundary plane 702.
[0185] Among them, the front boundary plane 701 is used to block the virtual character from moving into the space behind the front boundary plane 701, avoiding the exposure of the scene picture captured by the first-scene capture camera.
[0186] In some embodiments, in response to a third movement operation, the terminal controls the virtual character in the second virtual environment to move towards the boundary plane.
[0187] Among them, the boundary plane is used to represent the environmental boundary of the second virtual environment.
[0188] Optionally, the boundary plane includes a left boundary plane 703 and a right boundary plane 702.
[0189] In some embodiments, the first virtual environment is further provided with a second virtual screen, and the second virtual screen is used to display a third virtual environment.
[0190] In some embodiments, when the virtual character intersects with the boundary plane, the terminal teleports the virtual character to the third virtual environment and displays the picture of the virtual character moving in the third virtual environment on the second virtual screen.
[0191] Among them, the third virtual environment is another virtual environment different from the first virtual environment and the second virtual environment.
[0192] For example 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.
[0193] Optionally, the third virtual environment may be a two-dimensional virtual environment or a three-dimensional virtual environment.
[0194] In some embodiments, the terminal may pre-set the third virtual environment corresponding to the boundary plane. For example, Figure 7 the left boundary plane 703 in [reference] corresponds to the virtual environment of virtual level B, and the right boundary plane 702 corresponds to the virtual environment of virtual level C.
[0195] See Figure 11 , Figure 11 which is a schematic diagram of the terminal transmitting the virtual character to the third virtual environment when the virtual character intersects with the boundary plane provided by an exemplary embodiment of the present application.
[0196] As Figure 11 shown, when the virtual character is in the second virtual environment, the terminal displays the first virtual environment 1110, and displays the moving picture of the virtual character in the second virtual environment on the first virtual screen 1111 in the first virtual environment 1110.
[0197] When the virtual character moves to the boundary plane (such as the right boundary plane) of the second virtual environment and intersects with the boundary plane, the terminal transmits the virtual character to the third virtual environment, and displays the moving picture of the virtual character in the third virtual environment on the second virtual screen 1112.
[0198] In a possible scenario, the terminal may adjust the camera position and shooting angle of the main perspective camera.
[0199] Wherein, at the adjusted camera position and shooting angle, the second virtual screen is located at the center of the field of view of the main perspective camera, and the second virtual screen is in the front view perspective.
[0200] For example Figure 11 in [reference], after the terminal adjusts the camera position and shooting angle of the main perspective camera, the second virtual screen 1112 is located at the center of the field of view of the main perspective camera, and the second virtual screen 1112 is in the front view perspective. While realizing the shuttle of the virtual character from the second virtual environment to the third virtual environment, it avoids the user from manually adjusting the perspective, and further improves the operation efficiency.
[0201] Regarding the specific implementation method of the terminal adjusting the camera position and shooting angle of the main-view camera so that 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 at a front view angle, in a possible scenario, the terminal pre-stores front view screen information, wherein the front view screen 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 field of view of the main-view camera and is at a front view angle; 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 the second target shooting angle corresponding to the second virtual screen according to the front view screen information, and adjusts the camera position of the main-view camera to the second target camera position, and adjusts the shooting angle of the main-view camera to the second target shooting angle, so that 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 at a front view angle.
[0202] Optionally, in order to ensure that the image displayed by the terminal is sufficiently smooth and natural when the main-view camera adjusts the camera position and shooting angle, in some embodiments, the terminal completes adjusting the camera position of the main-view camera to the second target camera position and adjusting the shooting angle of the main-view camera to the second target shooting angle within a preset time (such as 0.2s).
[0203] Optionally, the terminal uses linear interpolation to determine the i-th camera position and the i-th shooting angle corresponding to the i-th frame within a preset time length based on the first target camera position and the first target shooting angle before adjustment of the main-view camera, and the second target camera position and the second target shooting angle after adjustment, and displays the i-th frame of the picture in the time length corresponding to the i-frame, wherein the i-th frame of the picture is the scene captured by the main-view camera at the i-th camera position and the i-th shooting angle.
[0204] In this embodiment, by means of linear interpolation, the camera position of the main perspective camera is gradually adjusted from the first target camera position to the second target camera position within a preset time, and the shooting angle of the main perspective camera is adjusted from the first target shooting angle to the second target shooting angle, so that the main perspective can be gradually switched within the preset time, thereby improving the smoothness and naturalness of the screen switching. In some embodiments, the terminal displays the second virtual screen in the first virtual environment based on the scene screen captured by the adjusted main perspective camera.
[0205] In some embodiments, the terminal displays a picture of the virtual character moving in the third virtual environment on the second virtual screen based on the scene picture captured by the second scene capture camera.
[0206] The second scene capturing camera is a camera that follows the virtual character in the third virtual environment.
[0207] In some embodiments, the second scene capture camera is used to capture scene images in the third virtual environment, including the environmental images of the third virtual environment, the character images of virtual characters in the third virtual environment, and the item images of various virtual items in the third virtual environment.
[0208] Optionally, the second scene capture camera uses a real-time positioning algorithm to lock the position and posture 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 with the virtual character.
[0209] In some embodiments, the terminal uses the mapping technology between spatial coordinates and planar coordinates to render the scene images captured by the second scene capture camera onto the second virtual screen in real time. In the case where the virtual character shuttles from the second virtual environment to the third virtual environment, neither the main perspective camera nor the first scene capture camera can capture the character images of the virtual character within the second virtual screen. Therefore, through the second scene capture camera, the terminal can render the images of the virtual character moving in the third virtual environment onto the second virtual screen.
[0210] Optionally, when the virtual character is located in the third virtual environment, lock the camera position and shooting angle of the main perspective camera to prevent the user from accidentally touching and changing the perspective.
[0211] Optionally, the screen shape of the first virtual screen can be a cuboid, a cube, a sphere, an irregular curved surface, or any other possible shape, and there is no limitation on this.
[0212] 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 camera position and shooting angle for the main perspective camera so that the entire view of the first virtual screen is presented in the scene images captured by the main perspective camera. Therefore, in this case, the terminal can also adopt the strategy of moving the main perspective camera together with the virtual character in the second virtual environment, rather than fixedly and statically displaying the first virtual screen in the center of the field of view.
[0213] See Figure 12 , Figure 12 is a schematic diagram of the main perspective camera moving together with the virtual character in the second virtual environment when the screen shape of the first virtual screen in an exemplary embodiment of the present application includes a curved surface.
[0214] Such as Figure 12As shown, 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 perspective camera 1201 cannot show the entire view of the first virtual screen 1212 in the scene image captured by the main perspective camera 1201. Therefore, when the virtual character 1211 in the second virtual environment moves, the terminal controls the main perspective camera 1201 to move with the virtual character 1211, thereby changing the scene image captured by the main perspective camera.
[0215] In some embodiments, the terminal determines a third target camera position and a third target shooting angle of the main perspective camera based on the real-time character position of the virtual character in the second virtual environment, and displays the first virtual environment based on the scene image captured by the main perspective camera at the third target camera position and the third target shooting angle.
[0216] Regarding the specific manner in which the terminal determines the third target camera position and the third target shooting angle of the main perspective camera based on the real-time character position of the virtual character in the second virtual environment, in some embodiments, the terminal first determines, based on the real-time character position of the virtual character in the second virtual environment, the point on the transfer plane in the second virtual environment that is closest to the character model (or the capsule corresponding to the character model) of the virtual character as the reference point. The texture coordinates of the reference point on the transfer plane are the texture coordinates at which the virtual character is displayed on the first virtual screen.
[0217] In some embodiments, the terminal determines the third target camera position and the third target shooting angle of the main perspective camera based on the texture coordinates at which the virtual character is displayed on the first virtual screen, and the world texture map and the normal map of the first virtual screen.
[0218] Among them, the world texture map of the first virtual screen is used to store the three-dimensional coordinate information of the 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 the points on the first virtual screen. The normal vector is a vector perpendicular to the points on the first virtual screen.
[0219] Optionally, the terminal determines the target normal vector corresponding to the texture coordinates in the normal map based on the texture coordinates at which the virtual character is displayed on the first virtual screen and the normal map of the first virtual screen, and determines the opposite direction of the target normal vector as the third target shooting angle of the main perspective camera.
[0220] Optionally, the terminal determines a three-dimensional coordinate point corresponding to the texture coordinate at the position of the virtual character displayed on the first virtual screen and the world texture map of the first virtual screen, and starting from the three-dimensional coordinate point, determines a position at a preset length outside the first virtual screen along the direction of the target normal vector as the third target camera position of the main perspective camera.
[0221] By way of example only, the preset length is 3m.
[0222] Optionally, after determining the third target camera position and the third target shooting angle, the terminal adjusts the camera position of the main perspective camera to the third target camera position and adjusts the shooting angle of the main perspective camera to the third target shooting angle within the duration of 1 frame.
[0223] In this embodiment, the terminal determines the third target camera position and the third target shooting angle of the main perspective camera based on the real-time character position of the virtual character in the second virtual environment, which can achieve the effect that the main perspective camera follows the real-time character position of the virtual character in the second virtual environment. The user can switch the main perspective while controlling the virtual character to move in the second virtual environment to view different scene pictures, with high viewing efficiency. It should be noted that in this embodiment, the screen shape of the first virtual screen includes a curved surface as an example to introduce the determination of the third target camera position and the third target shooting angle of the main perspective camera based on the real-time character position of the virtual character in the second virtual environment. In fact, in the case where 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 in this embodiment can be used to achieve the effect that the main perspective camera follows the virtual character in the second virtual environment, and this is not limited.
[0224] See Figure 13 , Figure 13 is a flowchart for controlling a virtual character provided by an exemplary embodiment of the present application. The process includes the following steps.
[0225] Step 1301, display the first virtual screen.
[0226] In some embodiments, the terminal displays the first virtual screen in the first virtual environment according to the scene picture captured by the main perspective camera.
[0227] The first virtual screen is used to display the second virtual environment, and the second virtual environment is a two-dimensional virtual environment or a three-dimensional virtual environment.
[0228] Step 1302, control the virtual character to move.
[0229] In some embodiments, the terminal controls the virtual character to move when receiving a control operation from the user.
[0230] At this time, the virtual character may be located in the first virtual environment, may be located in the second virtual environment, or may intersect with the first virtual screen or the boundary plane.
[0231] The terminal determines whether the virtual character intersects with the boundary plane.
[0232] In the case where the virtual character intersects with the boundary plane, step 1303 is executed to teleport the virtual character to the third virtual environment.
[0233] Among them, the third virtual environment is another virtual environment different from the first virtual environment and the second virtual environment.
[0234] In some embodiments, in the case where the virtual character intersects with the boundary plane, the terminal teleports the virtual character to the third virtual environment and displays the picture of the virtual character moving in the third virtual environment on the second virtual screen.
[0235] Among them, the third virtual environment is another virtual environment different from the first virtual environment and the second virtual environment.
[0236] By way of example 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.
[0237] Optionally, the third virtual environment may be a two-dimensional virtual environment or a three-dimensional virtual environment.
[0238] In some embodiments, the terminal may pre-set the third virtual environment corresponding to the boundary plane. In the case where the virtual character moves to the boundary plane (such as the right boundary plane) of the second virtual environment and intersects with the boundary plane, the terminal teleports the virtual character to the third virtual environment and displays the picture of the virtual character moving in the third virtual environment on the second virtual screen.
[0239] In a possible scenario, the terminal can adjust the camera position and shooting angle of the main perspective camera.
[0240] Among them, 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 perspective camera, and the second virtual screen is in the front view perspective.
[0241] In the case where the virtual character does not intersect with the boundary plane, the terminal determines whether the virtual character intersects with the teleportation plane.
[0242] In the case where the virtual character intersects with the teleportation plane, step 1304 is executed to teleport the virtual character to the first virtual environment.
[0243] In some embodiments, the terminal transfers the virtual character from the second virtual environment to the first virtual environment, and based on the scene picture captured by the main perspective camera, displays the picture of the virtual character moving in the first virtual environment. At this time, the character capture camera can stop working.
[0244] Among them, the main perspective camera is the camera that follows the virtual character in the first virtual environment.
[0245] Regarding the specific manner in which the terminal transfers the virtual character to the first virtual environment, in some embodiments, the terminal transfers the virtual character to the first virtual environment according to the second relative position of the virtual character relative to the transfer plane.
[0246] Among them, the second relative position is the same as the first relative position, and the first relative position is the relative position of the virtual character relative to the first virtual screen.
[0247] In the case where the virtual character does not intersect the transfer plane, the terminal determines whether the virtual character is in the second virtual environment.
[0248] In the case where the virtual character is in the second virtual environment, step 1305 is executed to adjust the camera position and shooting angle of the main perspective camera so that the first virtual screen is in the center of the field of view of the main perspective camera. At the same time, the terminal displays the picture of the virtual character moving in the second virtual environment on the first virtual screen.
[0249] Regarding the specific implementation manner in which the terminal adjusts the camera position and shooting angle of the main perspective camera so that, 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 perspective camera and the first virtual screen is in the front view perspective, in a possible scenario, the terminal pre-stores the front view screen information. Among them, the front view screen information includes the target camera position and target shooting angle of the main perspective camera when each virtual screen in the first virtual environment is located in the center of the field of view of the main perspective camera and is in the front view perspective; in the case where the virtual character completely enters the first virtual screen, the terminal determines the first target camera position and the first target shooting angle corresponding to the first virtual screen according to the front view screen information, and adjusts the camera position of the main perspective camera to the first target camera position and adjusts the shooting angle of the main perspective camera to the first target shooting angle, so as to achieve that, 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 perspective camera and the first virtual screen is in the front view perspective.
[0250] Optionally, in order to ensure that the picture displayed by the terminal is smooth and natural enough when the main perspective camera adjusts the camera position and shooting angle, in some embodiments, the terminal completes adjusting the camera position of the main perspective camera to the first target camera position and adjusting the shooting angle of the main perspective camera to the first target shooting angle within a preset time period (such as 0.2s).
[0251] Optionally, the terminal determines the i-th camera position and the i-th shooting angle corresponding to the i-th frame within a preset duration by means of linear interpolation based on the initial camera position and the initial shooting angle before the main perspective camera is adjusted, and the first target camera position and the first target shooting angle after the adjustment, and displays the i-th frame image at the duration corresponding to the i-th frame, where the i-th frame image is the scene image captured by the main perspective camera at the i-th camera position and the i-th shooting angle.
[0252] When the virtual character is not in the second virtual environment, the terminal determines whether the virtual character intersects with the first virtual screen.
[0253] When the virtual character does not intersect with the first virtual screen, the terminal determines whether the virtual character completely enters the first virtual screen.
[0254] When the virtual character completely enters the first virtual screen, step 1306 is executed to teleport the virtual character to the second virtual environment.
[0255] When the virtual character does not completely enter the first virtual screen, the terminal continues to execute step 1302 to control the movement of the virtual character.
[0256] When the virtual character intersects with the first virtual screen, step 1307 is executed to display the image of the virtual character entering the first virtual screen.
[0257] In some embodiments, when the virtual character intersects with the first virtual screen, the terminal displays the part of the virtual character that has not entered the screen in the first virtual environment, and displays the part of the virtual character that has entered the screen in the first virtual screen.
[0258] Wherein, the part that has entered the screen refers to the part of the virtual character that has passed through the first virtual screen, and the part that has not entered the screen refers to the part of the virtual character that has not passed through the first virtual screen.
[0259] By way of example only, when 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 display mode 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 display mode of a two-dimensional model.
[0260] To enhance the contrast between the part of the virtual character that has not entered the screen and the part that has entered the screen, in some embodiments, the terminal can use different display effects to display the part that has not entered the screen and the part that has entered the screen.
[0261] In a possible implementation, the terminal displays the part of the virtual character that has not entered the screen in the first virtual environment with a first display effect; and displays the part of the virtual character that has entered the screen in the first virtual screen with a second display effect.
[0262] Among them, the second display effect is different from the first display effect.
[0263] Optionally, the second display effect and the first display effect are different in at least one dimension among color, saturation, transparency, and display style.
[0264] Only by way of example, the first display effect is a display effect with a transparency of 0%, and the second display effect is a display effect with a transparency of 50%.
[0265] See Figure 14 , Figure 14 is a structural block diagram of a virtual character control device provided by an exemplary embodiment of the present application. The device includes:
[0266] A display module 1401, configured to display a first virtual environment, where a first virtual screen is set in the first virtual environment, and the first virtual screen is used to display a second virtual environment, and the first virtual environment is a three-dimensional virtual environment;
[0267] A control module 1402, configured to control the virtual character in the first virtual environment to move towards the first virtual screen in response to a first movement operation;
[0268] The display module 1401 is further configured to display a picture of the virtual character entering the first virtual screen when the virtual character intersects with the first virtual screen;
[0269] The display module 1401 is further configured to display a picture of the virtual character moving in the second virtual environment in the first virtual screen.
[0270] Optionally, the display module 1401 is configured to:
[0271] When the virtual character intersects with the first virtual screen, display the part of the virtual character that has not entered the screen in the first virtual environment and display the part of the virtual character that has entered the screen in the first virtual screen.
[0272] Optionally, the display module 1401 is configured to:
[0273] In the first virtual environment, display the part of the virtual character that has not entered the screen with a first display effect;
[0274] In the first virtual screen, the entered screen portion of the virtual character is displayed using a second display effect, and the second display effect is different from the first display effect.
[0275] Optionally, the display module 1401 is configured to:
[0276] Based on the scene image captured by the main perspective camera, the unentered screen portion of the virtual character is displayed in the first virtual environment, and the main perspective camera is the camera that follows the virtual character in the first virtual environment;
[0277] Based on the character image of the virtual character captured by the character capture camera, the entered screen portion of the virtual character is displayed in the first virtual screen. The character capture camera is used to capture the character image of the virtual character and does not capture the scene image outside the virtual character. The camera position and shooting angle of the character capture camera are the same as those of the main perspective camera.
[0278] Optionally, the display module 1401 is configured to:
[0279] Teleport the virtual character into the second virtual environment;
[0280] According to the scene image captured by the first scene capture camera, the moving image of the virtual character in the second virtual environment is displayed in the first virtual screen, and the first scene capture camera is the camera that follows the virtual character in the second virtual environment.
[0281] Optionally, the display module 1401 is configured to:
[0282] Teleport the virtual character into the second virtual environment according to the first relative position of the virtual character relative to the first virtual screen, where 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 teleportation plane in the second virtual environment, and the teleportation plane is used to trigger the teleportation of the virtual character between the first virtual environment and the second virtual environment.
[0283] Optionally, the display module 1401 is configured to:
[0284] When the virtual character completely enters the first virtual screen, adjust the camera position and shooting angle of the main perspective camera. In the adjusted camera position and shooting angle, the first virtual screen is located at the center of the field of view of the main perspective camera, and the first virtual screen is in the front view perspective;
[0285] When the virtual character is located within the second virtual environment, lock the camera position and shooting angle of the main perspective camera.
[0286] Optionally, the control module 1402 is configured to:
[0287] In response to a second movement operation, control the virtual character in the second virtual environment to move towards a teleportation plane, where the teleportation plane is used to trigger the teleportation of the virtual character between the first virtual environment and the second virtual environment;
[0288] Optionally, the display module 1401 is configured to:
[0289] When the virtual character intersects with the teleportation plane, teleport the virtual character from the second virtual environment to the first virtual environment, and display the scene of the virtual character entering the first virtual environment;
[0290] When the virtual character completely passes through the first virtual screen, display the scene of the virtual character moving in the first virtual environment.
[0291] Optionally, the display module 1401 is configured to:
[0292] When the virtual character intersects with the teleportation plane, teleport the virtual character from the second virtual environment to the first virtual environment;
[0293] Display the part of the virtual character that has entered the screen in the first virtual environment, and display the part of the virtual character that has not entered the screen in the first virtual screen.
[0294] Optionally, the display module 1401 is configured to:
[0295] Unlock and adjust the camera position and shooting angle of the main perspective camera, where, under the adjusted camera position and shooting angle, the viewing position of the first virtual screen in the main perspective camera is the same as the viewing position of the first virtual screen in the main perspective camera before the virtual character enters the first virtual screen;
[0296] Based on the scene image captured by the main perspective camera, display the part of the virtual character that has entered the screen in the first virtual environment;
[0297] According to the character screen of the virtual character captured by the character capture camera, display the part of the virtual character that has not entered the screen in the first virtual screen. The character capture camera is used to capture the character screen of the virtual character and does not capture the scene screen outside the virtual character. The camera position and shooting angle of the character capture camera are the same as those of the main perspective camera.
[0298] Optionally, the display module 1401 is configured to:
[0299] When the virtual character completely passes through the first virtual screen, display the moving picture of the virtual character in the first virtual environment according to the scene picture captured by the main perspective camera. The main perspective camera is the camera that follows the virtual character in the first virtual environment.
[0300] Optionally, the display module 1401 is configured to:
[0301] When the virtual character intersects with the transfer plane, teleport the virtual character into the first virtual environment according to the second relative position of the virtual character relative to the transfer plane, where the second relative position is the same as the first relative position, and the first relative position is the relative position of the virtual character relative to the first virtual screen.
[0302] Optionally, the control module 1402 is configured to:
[0303] When the virtual character moves in the second virtual environment in a direction parallel to the transfer plane, control the transfer plane to move following the virtual character, where the moving amount of the transfer plane in the parallel direction is the same as the moving amount of the virtual character in the parallel direction.
[0304] Optionally, the first virtual environment is further provided with a second virtual screen, and the second virtual screen is used to display a third virtual environment; the control module 1402 is configured to:
[0305] In response to a third movement operation, control the virtual character in the second virtual environment to move towards the boundary plane, where the boundary plane is used to represent the environmental boundary of the second virtual environment;
[0306] Optionally, the display module 1401 is configured to:
[0307] When the virtual character intersects with the boundary plane, teleport the virtual character into the third virtual environment and display the moving picture of the virtual character in the third virtual environment in the second virtual screen.
[0308] Optionally, the display module 1401 is configured to:
[0309] Adjust the camera position and shooting angle of the main perspective camera. Among them, under the adjusted camera position and shooting angle, the second virtual screen is located at the center of the field of view of the main perspective camera, and the second virtual screen is in the front view perspective;
[0310] Based on the scene picture captured by the adjusted main perspective camera, display the second virtual screen in the first virtual environment;
[0311] Based on the scene picture captured by the second scene capture camera, display the picture of the virtual character moving in the third virtual environment in the second virtual screen, and the second scene capture camera is the camera that follows the virtual character in the third virtual environment;
[0312] When the virtual character is located in the third virtual environment, lock the camera position and shooting angle of the main perspective camera.
[0313] Optionally, the screen attribute of the first virtual screen supports querying the overlapping situation between the collision object and the first virtual screen in the case of collision.
[0314] Optionally, the display module 1401 is used for:
[0315] When the entry ratio of the virtual character into the first virtual screen reaches the ratio threshold, display the picture of the virtual character moving in the second virtual environment in the first virtual screen.
[0316] See Figure 15 , Figure 15 is a schematic structural diagram of a terminal provided by an exemplary embodiment of the present application. Specifically: 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 central processing unit 1501. The terminal 1500 also includes a basic input / output system (Input / Output, I / O system) 1506 for transmitting information between various devices in the computer, and a large-capacity storage device 1507 for storing an operating system 1513, application programs 1514, and other program modules 1515.
[0317] The basic input / output system 1506 includes a display 1508 for displaying information and input devices 1509 such as a mouse, keyboard, etc. for user input of information. Both the display 1508 and the input devices 1509 are connected to the central processing unit 1501 through an input / output controller 1510 connected to the system bus 1505. The basic input / output system 1506 may also include an input / output controller 1510 for receiving and processing inputs from multiple other devices such as a keyboard, mouse, or electronic stylus. Similarly, the input / output controller 1510 also provides outputs to a display screen, printer, or other types of output devices.
[0318] The mass storage device 1507 is connected to the central processing unit 1501 through a mass storage controller (not shown) connected to the system bus 1505. The mass storage device 1507 and its associated computer-readable medium provide non-volatile storage for the terminal 1500. That is, the mass storage device 1507 may include a computer-readable medium such as a hard disk or a drive (not shown).
[0319] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media includes volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes 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 cartridges, tapes, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will know that the computer storage media is not limited to the above several. The above system memory 1504 and mass storage device 1507 may be collectively referred to as memory.
[0320] The memory stores one or more programs, the one or more programs are configured to be executed by one or more central processing units 1501, the one or more programs contain computer instructions for implementing the above method, and the central processing unit 1501 executes the one or more programs to implement the methods provided by the above various method embodiments.
[0321] According to various embodiments of the present application, the terminal 1500 may also run on a remote computer on the network through a network such as the Internet. That is, the terminal 1500 may be connected to the network 1512 through the network interface unit 1511 connected to the system bus 1505. Or rather, the network interface unit 1511 may also be used to connect to other types of networks or remote computer systems (not shown).
[0322] The memory further includes one or more programs, and the one or more programs are stored in the memory. The one or more programs include steps for performing the method provided in the embodiments of the present application and executed by the terminal.
[0323] Embodiments of the present application further provide a computer-readable storage medium, in which at least one computer instruction is stored. The at least one computer instruction 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 (SSD), optical discs, etc. Among them, RAM may include resistive random access memory (ReRAM) and dynamic random access memory (DRAM).
[0324] Embodiments of the present application further provide a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal executes the method provided in various optional implementation manners of the above aspects.
[0325] The above are only optional embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A virtual character control method, characterized in that: The method comprises: Displaying a first virtual environment, wherein a first virtual screen is provided in the first virtual environment, the first virtual screen is used to display a second virtual environment, and the first virtual environment is a three-dimensional virtual environment; In response to a first movement operation, controlling the virtual character in the first virtual environment to move toward the first virtual screen; When the virtual character intersects with the first virtual screen, displaying a picture of the virtual character entering the first virtual screen; A picture of the virtual character moving in the second virtual environment is displayed on the first virtual screen.
2. The method according to claim 1, characterized in that When the virtual character intersects with the first virtual screen, displaying a picture of the virtual character entering the first virtual screen includes: In a case where the virtual character intersects with the first virtual screen, a portion of the virtual character that has not entered the screen is displayed in the first virtual environment, and a portion of the virtual character that has entered the screen is displayed in the first virtual screen.
3. The method according to claim 2, characterized in that The step of displaying the non-screen portion of the virtual character in the first virtual environment, and displaying the screen portion of the virtual character in the first virtual screen, comprises: In the first virtual environment, using a first display effect to display the portion of the virtual character that has not entered the screen; In the first virtual screen, the portion of the virtual character that has entered the screen is displayed using a second display effect, where the second display effect is different from the first display effect.
4. The method according to claim 2, characterized in that: The step of displaying the non-screen portion of the virtual character in the first virtual environment comprises: Based on a scene picture captured by a main viewing angle camera, displaying the non-screen portion of the virtual character in the first virtual environment, wherein the main viewing angle camera is a camera that follows the virtual character in the first virtual environment; The step of displaying the entered screen portion of the virtual character on the first virtual screen comprises: Based on the character picture 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 picture of the virtual character and does not capture the scene picture other than the virtual character. The camera position and shooting angle of the character capture camera are consistent with those of the main perspective camera.
5. The method according to any one of claims 1 to 4, characterized in that: The step of displaying, on the first virtual screen, a picture of the virtual character moving in the second virtual environment comprises: transmitting the virtual character to the second virtual environment; The picture of the virtual character moving in the second virtual environment is displayed on the first virtual screen according to the scene picture captured by the first scene capture camera, and the first scene capture camera is a camera following the virtual character in the second virtual environment.
6. The method according to claim 5, characterized in that The step of transmitting the virtual character to the second virtual environment comprises: The virtual character is teleported to 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 the second relative position, the second relative position is the relative position of the virtual character relative to a teleportation plane in the second virtual environment, and the teleportation plane is used to trigger the teleportation 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, characterized in that: The method further comprises: When the virtual character completely enters the first virtual screen, adjusting the camera position and shooting angle of the main viewing angle camera, wherein, under the adjusted camera position and shooting angle, the first virtual screen is located at the center of the field of view of the main viewing angle camera, and the first virtual screen is a front viewing angle; When the virtual character is in the second virtual environment, the camera position and shooting angle of the primary perspective camera are locked.
8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: In response to a second movement operation, controlling the virtual character in the second virtual environment to move toward a transmission plane, the transmission plane being used to trigger transmission of the virtual character between the first virtual environment and the second virtual environment; When the virtual character intersects the transmission plane, the virtual character is transmitted from the second virtual environment to the first virtual environment, and a picture of the virtual character entering the first virtual environment is displayed; When the virtual character completely passes through the first virtual screen, a picture of the virtual character moving in the first virtual environment is displayed.
9. The method according to claim 8, characterized in that When the virtual character intersects the transmission plane, transmitting the virtual character from the second virtual environment to the first virtual environment and displaying a picture of the virtual character entering the first virtual environment includes: When the virtual character intersects the transmission plane, transmitting the virtual character from the second virtual environment to the first virtual environment; The screen portion of the virtual character that has entered is displayed in the first virtual environment, and the screen portion of the virtual character that has not entered is displayed in the first virtual screen.
10. The method according to claim 9, characterized in that The step of displaying the entered screen portion of the virtual character in the first virtual environment comprises: 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; Based on the scene picture captured by the primary viewing angle camera, displaying the entered screen portion of the virtual character in the first virtual environment; The step of displaying the non-screen portion of the virtual character on the first virtual screen comprises: According to the character picture of the virtual character captured by the character capture camera, the part of the virtual character that has not entered the screen is displayed in the first virtual screen. The character capture camera is used to capture the character picture of the virtual character and does not capture the scene picture other than the virtual character. The camera position and shooting angle of the character capture camera are consistent with those of the main perspective camera.
11. The method according to claim 8, characterized in that When the virtual character completely passes through the first virtual screen, displaying a picture of the virtual character moving in the first virtual environment includes: When the virtual character completely passes through the first virtual screen, the moving picture of the virtual character is displayed in the first virtual environment according to the scene picture captured by the main perspective camera, and the main perspective camera is a camera that follows the virtual character in the first virtual environment.
12. The method according to claim 8, characterized in that When the virtual character intersects the transmission plane, transmitting the virtual character from the second virtual environment to the first virtual environment includes: When the virtual character intersects the transmission plane, the virtual character is transmitted to the first virtual environment according to a 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 according to claim 8, characterized in that The method further comprises: When the virtual character moves in the second virtual environment in a direction parallel to the transmission plane, the transmission plane is controlled to follow the movement of the virtual character, wherein the movement amount of the transmission plane in the parallel direction is consistent with the movement amount of the virtual character in the parallel direction.
14. The method according to any one of claims 1 to 13, characterized in that: The first virtual environment is further provided with a second virtual screen, and the second virtual screen is used to display the third virtual environment; The method further comprises: In response to a third movement operation, controlling the virtual character in the second virtual environment to move toward a boundary plane, where the boundary plane is used to represent an environment boundary of the second virtual environment; When the virtual character intersects the boundary plane, the virtual character is transferred to the third virtual environment, and a picture of the virtual character moving in the third virtual environment is displayed on the second virtual screen.
15. The method according to claim 14, characterized in that The step of displaying, on the second virtual screen, a picture of the virtual character moving in the third virtual environment comprises: Adjusting the camera position and shooting angle of the main viewing angle camera, wherein, under the adjusted camera position and shooting angle, the second virtual screen is located at the center of the field of view of the main viewing angle camera, and the second virtual screen is a front viewing angle; Based on the adjusted scene picture captured by the primary viewing angle camera, displaying the second virtual screen in the first virtual environment; Based on a scene picture captured by a second scene capture camera, displaying a picture of the virtual character moving in the third virtual environment on the second virtual screen, wherein the second scene capture camera is a camera that follows the virtual character in the third virtual environment; When the virtual character is in the third virtual environment, the camera position and shooting angle of the primary perspective camera are locked.
16. The method according to any one of claims 1 to 15, characterized in that: The screen attributes of the first virtual screen support querying the overlap between the collision object and the first virtual screen in case of a collision.
17. The method according to any one of claims 1 to 16, characterized in that: The step of displaying, on the first virtual screen, a picture of the virtual character moving in the second virtual environment comprises: When the entry ratio of the virtual character into the first virtual screen reaches a ratio threshold, a picture of the virtual character moving in the second virtual environment is displayed on the first virtual screen.
18. A virtual character control device, characterized in that: The device comprises: A display module, used for displaying a first virtual environment, wherein a first virtual screen is provided in the first virtual environment, and the first virtual screen is used for displaying a second virtual environment, and the first virtual environment is a three-dimensional virtual environment; A control module, configured to control the virtual character in the first virtual environment to move toward the first virtual screen in response to a first movement operation; The display module is further configured to display a picture of the virtual character entering the first virtual screen when the virtual character intersects with the first virtual screen; The display module is further used to display, on the first virtual screen, a picture of the virtual character moving in the second virtual environment.
19. A terminal, characterized in that: The terminal includes a processor and a memory; the memory stores at least one computer instruction, and the at least one computer instruction is used to be 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, characterized in that: The computer-readable storage medium stores at least one computer instruction, and the computer instruction is loaded and executed by a processor to implement the virtual character control method according to any one of claims 1 to 17.
21. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; the processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal executes the virtual character control method as described in any one of claims 1 to 17.