Game virtual scene changing method, electronic terminal and readable storage medium

By determining the movement information of the virtual object in the starting transformation area in the game and mirroring it, the teleportation problem when the virtual object passes through the scene transformation area is solved, and the authenticity of the virtual scene transformation and the game experience are improved.

CN118925223AActive Publication Date: 2024-11-12NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410979453.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2020-09-03
Publication Date
2024-11-12
Estimated Expiration
2040-09-03

AI Technical Summary

Technical Problem

When virtual objects in existing games are transformed through virtual scenes, they are displayed as teleportation, resulting in a low player experience.

Method used

By determining the movement information of the virtual object in the initial transformation area and mirroring it with this information as a reference, it is converted into the movement information of the target transformation area, ensuring that the virtual object remains in the original movement state when passing through the scene transformation area, realizing Pass through the effect.

Benefits of technology

It enhances the authenticity and gaming experience of virtual scene transformation, avoids teleportation of virtual objects, and allows players to feel the real effect of passing through the scene transformation area.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118925223A_ABST
    Figure CN118925223A_ABST
Patent Text Reader

Abstract

The invention provides a game virtual scene change method, an electronic terminal and a readable storage medium, relates to the technical field of games, and solves the technical problem that the real experience degree of virtual scene change in a game is relatively low. The method comprises the steps that in response to a transformation operation triggered by a control virtual object in an initial transformation area, first moving information of the virtual object in a current game scene is determined, and the current game scene is a game scene corresponding to the initial transformation area; determining an initial transmission state of the first movement information relative to the initial transformation area by taking the initial transformation area as a reference; replacing the reference of the initial outgoing state with the target transformation area to obtain a target outgoing state, and converting the target outgoing state into second moving information in a target game scene corresponding to the target transformation area; and controlling the virtual object to be displayed in a target game scene corresponding to the target transformation area based on the second movement information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of game technology, and in particular to a game virtual scene transformation method, an electronic terminal and a readable storage medium. Background Art

[0002] In many game scenes, virtual scenes often change, and different game scenes can be connected through the change of virtual scenes. For example, when a virtual object enters a shuttle gate from the current game scene, the virtual object can quickly reach another target game scene that is not connected to the current game scene or even farther away through the shuttle gate, thereby achieving the effect of space travel.

[0003] Currently, when a virtual object passes through a transformation area of ​​a virtual scene, an effect is displayed in which the virtual object is directly moved from the current game scene to the target game scene instantly, resulting in a low degree of real experience for players in experiencing virtual scene transformations in the game. Summary of the invention

[0004] The purpose of the present invention is to provide a method, device and electronic terminal for changing a game virtual scene, so as to alleviate the technical problem of low real experience of changing virtual scenes in games.

[0005] In a first aspect, an embodiment of the present application provides a method for changing a virtual scene of a game, wherein a three-dimensional game scene of the game includes a scene change area and a virtual object, and the scene change area includes a starting change area and a target change area; the method includes:

[0006] In response to controlling the transformation operation of the virtual object to be triggered in the starting transformation area, determining first movement information of the virtual object in the current game scene, wherein the current game scene is the game scene corresponding to the starting transformation area, and the movement information includes at least one of the following information: movement direction, movement speed, and current orientation;

[0007] Taking the starting transformation area as a reference, determining a starting outgoing state of the first movement information relative to the starting transformation area;

[0008] Replacing the reference of the initial outgoing state with the target transformation area to obtain a target outgoing state, and converting the target outgoing state into second movement information in a target game scene corresponding to the target transformation area;

[0009] Based on the second movement information, the virtual object is controlled to be displayed in the target game scene corresponding to the target transformation area.

[0010] In a possible implementation, the movement information includes a movement direction;

[0011] The first moving direction in the first moving information relative to the incident direction of the starting transformation area and the second moving direction in the second moving information relative to the exit direction of the target transformation area are on a ray.

[0012] In a possible implementation, the movement information further includes a movement speed;

[0013] The second moving speed in the second moving information is a result of multiplying the first moving speed in the first moving information by the second moving direction.

[0014] In a possible implementation, the movement information includes a current direction;

[0015] The first current orientation in the first movement information is on a ray with respect to the incident direction of the starting transformation area and the second current orientation in the second movement information is on a ray with respect to the exit direction of the target transformation area.

[0016] In a possible implementation, the movement information further includes a relative position;

[0017] A first relative position of the virtual object relative to the starting transformation area in the first movement information is the same as a second relative position of the virtual object relative to the target transformation area in the second movement information.

[0018] In a possible implementation, the step of determining the initial outgoing state of the first movement information relative to the initial change area based on the initial change area includes:

[0019] Mirroring the first moving direction relative to a first longitudinal plane to obtain a first sub-movement direction relative to the starting transformation area, the first longitudinal plane being perpendicular to the plane of the starting transformation area; mirroring the first sub-movement direction relative to a second longitudinal plane to obtain a second sub-movement direction relative to the starting transformation area, the second longitudinal plane being parallel to the plane of the starting transformation area; determining the second sub-movement direction as the starting outgoing moving direction of the first movement information relative to the starting transformation area; or,

[0020] Mirror the first moving direction relative to the second longitudinal plane to obtain a third sub-moving direction relative to the starting transformation area; mirror the third sub-moving direction relative to the first longitudinal plane to obtain a fourth sub-moving direction relative to the starting transformation area; determine the fourth sub-moving direction as the starting outgoing moving direction of the first movement information relative to the starting transformation area.

[0021] In a possible implementation, the step of determining the initial outgoing state of the first movement information relative to the initial change area based on the initial change area includes:

[0022] Mirror the first current orientation relative to a first longitudinal plane to obtain a first sub-current orientation relative to the starting transformation area, the first longitudinal plane being perpendicular to the plane of the starting transformation area; mirror the first sub-current orientation relative to a second longitudinal plane to obtain a second sub-current orientation relative to the starting transformation area, the second longitudinal plane being parallel to the plane of the starting transformation area; determine the second sub-current orientation as the starting outgoing orientation of the first movement information relative to the starting transformation area; or,

[0023] Mirror the first current direction relative to the second longitudinal plane to obtain a third sub-current direction relative to the starting transformation area; mirror the third sub-current direction relative to the first longitudinal plane to obtain a fourth sub-current direction relative to the starting transformation area; determine the fourth sub-current direction as the starting outgoing direction of the first movement information relative to the starting transformation area.

[0024] In a possible implementation, the step of determining the initial outgoing state of the first movement information relative to the initial change area based on the initial change area includes:

[0025] Based on the first relative position, mirror processing is performed relative to the plane of the starting transformation area to obtain a third relative position relative to the starting transformation area;

[0026] The third relative position is determined as a starting outgoing relative position of the first movement information relative to the starting transformation area.

[0027] In a possible implementation, before the step of determining the initial outgoing state of the first movement information relative to the initial change area based on the initial change area, the method further includes:

[0028] The first movement information is converted into a starting incoming state of the virtual object in the current game scene relative to the starting transformation area.

[0029] In a possible implementation, the step of converting the target outgoing state into second movement information in the target game scene corresponding to the target transformation area includes:

[0030] The target outgoing state relative to the target transformation area is converted into second movement information of the virtual object relative to the target game scene when the virtual object is in the target transformation area.

[0031] In a possible implementation, the three-dimensional game scene further includes a transformation area virtual camera, the transformation area virtual camera is bound to the target transformation area, and the transformation area virtual camera faces the direction of the target game scene; the method further includes:

[0032] When the virtual object is in the current game scene, a target image corresponding to the three-dimensional game scene in the target game scene is captured by the transformation area virtual camera;

[0033] Rendering the target image to obtain a target texture;

[0034] The target texture is pasted into the range formed by the border of the starting transformation area, and the starting transformation area after the texture is pasted is displayed in a graphical user interface.

[0035] In a possible implementation, the step of acquiring a target image corresponding to the three-dimensional game scene in the target game scene by using the transformation area virtual camera includes:

[0036] Obtaining a current starting position of the virtual object in the current game scene, and determining a current target position in the target game scene relative to the target transformation area based on the current starting position; determining the current target position as the current position of the transformation area virtual camera;

[0037] Obtaining a first sight line direction of the current virtual object facing the starting transformation area in the current game scene, and determining a second sight line direction of the virtual object facing the target transformation area based on the first sight line direction, wherein the incident direction of the first sight line direction relative to the starting transformation area and the incident direction of the second sight line direction relative to the target transformation area are on a ray; determining the outgoing direction of the second sight line direction as the current orientation direction of the virtual camera of the transformation area;

[0038] The target image corresponding to the three-dimensional game scene in the current target game scene is collected through the transformation area virtual camera which is in the current orientation direction and located at the current position.

[0039] In a possible implementation, the step of rendering the target image to obtain a target texture includes:

[0040] When the line of sight of the virtual object moves, the target image is rendered to obtain a target texture;

[0041] The target image is rendered using a camera perspective rendering frame rate of a virtual camera in the transformation area to obtain a target texture, wherein the camera perspective rendering frame rate is determined according to a distance between the virtual object and the starting transformation area, and the camera perspective rendering frame rate is less than or equal to a rendering frame rate of other areas in the graphical user interface except the target texture;

[0042] Performing an intersection test between the geometric model of the shape of the starting transformation area and the camera frustum of the perspective of the virtual object to obtain a test result, and if the test result is that the geometric model is not within the camera frustum, canceling the rendering process of the target image;

[0043] The target image is rendered based on the camera resolution of the virtual camera in the transformation area to obtain a target texture, wherein the camera resolution is determined according to the distance between the virtual object and the starting transformation area, and the camera resolution is less than or equal to the resolution of other areas in the graphical user interface except the target texture.

[0044] In a possible implementation, the step of rendering the target image to obtain a target texture includes:

[0045] The following steps are performed in a recursive function loop based on the preset maximum number of recursions until it is determined that there are no other starting transformation areas except the current starting transformation area in the virtual camera perspective of the current transformation area bound to the current target transformation area, and based on the determined several starting transformation areas, the target image is rendered to obtain the target texture:

[0046] Performing an intersection test between the geometric model of the shape of the starting transformation area and the camera frustum of the virtual camera perspective of the current transformation area to obtain a test result;

[0047] Determine, according to the test result, whether there is another starting transformation area other than the current starting transformation area in the virtual camera perspective of the current transformation area;

[0048] If yes, the other starting transformation region is used as the current starting transformation region in the next recursive judgment process.

[0049] In a possible implementation, the step of controlling the display of the virtual object in the target game scene corresponding to the target transformation area based on the second movement information includes:

[0050] Copying the object model of the virtual object transformed by the scene change area, so that the appearance and action of the two copied object models are consistent;

[0051] Determine a first portion of the object model located at one side of the starting transformation region in one of the two object models, and determine a second portion of the object model located at one side of the target transformation region in the other object model;

[0052] In the graphical user interface, the first portion of the object model is displayed in the starting transformation area based on the first movement information, and the second portion of the object model is displayed in the target transformation area based on the second movement information.

[0053] In a second aspect, a device for changing a virtual game scene is provided, wherein a three-dimensional game scene of the game includes a scene change area and a virtual object, and the scene change area includes a starting change area and a target change area; the device includes:

[0054] A first determination module, configured to determine first movement information of the virtual object in a current game scene in response to a transformation operation triggered by controlling the virtual object in a starting transformation area, wherein the current game scene is a game scene corresponding to the starting transformation area, and the movement information includes at least one of the following information: a movement direction, a movement speed, and a current orientation;

[0055] A second determining module, used to determine a starting outgoing state of the first movement information relative to the starting change area based on the starting change area;

[0056] A conversion module, used for replacing the reference of the initial outgoing state with the target transformation area to obtain a target outgoing state, and converting the target outgoing state into second movement information in a target game scene corresponding to the target transformation area;

[0057] A control module is used to control the display of the target game scene corresponding to the target transformation area of ​​the virtual object based on the second movement information.

[0058] In a third aspect, an embodiment of the present application provides an electronic terminal, including a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the processor executes the computer program, the method described in the first aspect is implemented.

[0059] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores machine-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the method described in the first aspect above.

[0060] The embodiments of the present application bring the following beneficial effects:

[0061] The embodiment of the present application provides a method, device and electronic terminal for changing a game virtual scene, which can determine the first movement information of a virtual object in the current game scene when a change operation is triggered in a starting change area, and then determine the starting outgoing state of the first movement information relative to the starting change area based on the starting change area, and then replace the reference of the starting outgoing state with the target change area to obtain the target outgoing state, and convert the target outgoing state into the second movement information in the target game scene corresponding to the target change area, and finally control the virtual object to be displayed in the target game scene based on the second movement information. In this solution, by determining the outgoing state of the first movement information of the virtual object when it is input relative to the starting change area, the virtual object can be kept in the game scene. When the virtual object triggers a transformation operation in the starting transformation area, the original movement state relative to the starting transformation area remains unchanged, so that the determined virtual object can maintain the original movement state relative to the starting transformation area after passing through the starting transformation area, and then the benchmark of the outgoing state is replaced with the target transformation area, so as to obtain the outgoing state relative to the target transformation area, and the second movement information converted therefrom can still maintain the original movement state unchanged, so that the displayed virtual object can achieve the effect of truly passing through the scene change area, rather than directly teleporting the virtual object, thereby enhancing the realism and game experience of passing through the scene change area, and alleviating the technical problem of low real experience of players experiencing virtual scene changes in the game.

[0062] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0064] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0065] Figure 2 A schematic diagram of the structure of an electronic terminal in an application scenario provided in an embodiment of the present application;

[0066] Figure 3 A flowchart of a method for changing a game virtual scene provided in an embodiment of the present application;

[0067] Figure 4An example of the corresponding incoming and outgoing states of a virtual object when it passes through a scene change area in the game virtual scene change method provided in an embodiment of the present application;

[0068] Figure 5 A schematic diagram of a graphical user interface showing a scene change area display effect provided in an embodiment of the present application;

[0069] Figure 6 A schematic diagram of the sight direction of a virtual camera for a virtual object and a transformation area provided in an embodiment of the present application;

[0070] Figure 7 A schematic diagram of the structure of a game virtual scene transformation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0071] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0072] The terms "including" and "having" and any variations thereof mentioned in the embodiments of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0073] Currently, virtual scene change is a mechanism in games, such as a shuttle gate. When a virtual object passes through the shuttle gate, it can immediately reach the target area. Some games use the shuttle gate mechanism as the core gameplay, and players need to use the shuttle gate to solve various space puzzles.

[0074] In existing games, when a virtual object passes through a teleportation gate, the effect displayed is that the virtual object is instantly moved from the current game scene to the target game scene, which makes the player's real experience of using the teleportation gate in the game low.

[0075] Based on this, the embodiments of the present application provide a method, device and electronic terminal for changing a game virtual scene, by which the technical problem of low real experience of players in changing virtual scenes in the game can be alleviated.

[0076] The game virtual scene transformation method in the embodiment of the present application can be applied to an electronic terminal. The electronic terminal includes a display, an input device and a processor, and the display is used to present a graphical user interface. The input device can be a keyboard, a mouse, a touch screen, etc., for receiving operations on the graphical user interface.

[0077] In practical applications, the electronic terminal may be a computer device, or a touch terminal such as a touch-screen mobile phone or a tablet computer. As an example, the electronic terminal is a touch terminal, and its display and input device may be integrated into a touch screen, which is used to present a graphical user interface and receive operations on the graphical user interface.

[0078] In some embodiments, when a graphical user interface is operated through an electronic terminal, the graphical user interface can be used to operate local content of the electronic terminal, and can also be used to operate content on a peer server.

[0079] For example, Figure 1 As shown, Figure 1 Schematic diagram of an application scenario provided in an embodiment of the present application. The application scenario may include an electronic terminal (e.g., a mobile phone 102) and a server 101, and the electronic terminal may communicate with the server 101 via a wired network or a wireless network. The electronic terminal is used to run a virtual desktop, through which the virtual desktop may interact with the server 101 to operate the content in the server 101.

[0080] The electronic terminal of this embodiment is described by taking a mobile phone 102 as an example. The mobile phone 102 includes components such as a radio frequency (RF) circuit 110, a memory 120, a touch screen 130, and a processor 140. Those skilled in the art can understand that Figure 2 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. Those skilled in the art will understand that the touch screen 130 belongs to the user interface (UI), and the mobile phone 102 may include more or fewer user interfaces than shown in the figure.

[0081] The RF circuit 110 can also communicate with the network and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobilecommunication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.

[0082] The memory 120 can be used to store software programs and modules. The processor 140 executes various functional applications and data processing of the mobile phone 102 by running the software programs and modules stored in the memory 120. The memory 120 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone 102, etc. In addition, the memory 120 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0083] The touch screen 130 can be used to display a graphical user interface and receive user operations on the graphical user interface. The specific touch screen 130 may include a display panel and a touch panel. The display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. The touch panel may collect user contact or non-contact operations on or near it (for example, the user uses any suitable object or accessory such as a finger, a stylus, etc. on the touch panel or near the touch panel) and generate pre-set operation instructions. In addition, the touch panel may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position and posture, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into information that the processor can process, and then sends it to the processor 140, and can receive and execute commands sent by the processor 140. In addition, the touch panel can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves, and any technology developed in the future can also be used to implement the touch panel. Furthermore, the touch panel may cover the display panel, and the user may operate on or near the touch panel covered on the display panel according to the graphical user interface displayed on the display panel. After the touch panel detects the operation on or near it, it transmits it to the processor 140 to determine the user input, and then the processor 140 provides corresponding visual output on the display panel in response to the user input. In addition, the touch panel and the display panel can be implemented as two independent components or integrated.

[0084] Processor 140 is the control center of mobile phone 102. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes various functions of mobile phone 102 and processes data by running or executing software programs and / or modules stored in memory 120 and calling data stored in memory 120, thereby monitoring the mobile phone as a whole.

[0085] The embodiments of the present invention are further described below in conjunction with the accompanying drawings.

[0086] Figure 3 A flowchart of a method for changing a game virtual scene provided in an embodiment of the present application.

[0087] The three-dimensional game scene of the game includes a scene change area and a virtual object, and the scene change area includes a starting change area and a target change area. Figure 1 As shown, the method includes:

[0088] Step S310, in response to controlling the transformation operation of the virtual object to be triggered in the starting transformation area, determining first movement information of the virtual object in the current game scene.

[0089] Among them, the current game scene is the game scene corresponding to the starting transformation area. Furthermore, the movement information may include at least one of the following information: movement direction, movement speed and current orientation. The first movement information in this step refers to the movement state relative to the current game scene corresponding to the starting transformation area, for example, the movement direction, movement speed, current orientation, etc. of the virtual object in the current game scene. Of course, the movement information in the embodiment of the present application may also include movement states of other attributes such as relative position.

[0090] In the embodiment of the present application, the virtual object can be any object in the game, such as a virtual character, a virtual animal, a virtual weapon, a virtual tool, a virtual building, etc.

[0091] In actual applications, scene transformation areas are paired, that is, one transformation area corresponds to another transformation area, and the two transformation areas can transform scenes with each other. For example, two transformation areas are placed in the game scene, and the directions of the two transformation areas differ by 180 degrees. When a virtual object passes through a transformation area, the transformation area passed through is the starting transformation area, and the transformation area to which it is transformed is the target transformation area. Among them, the starting transformation area and the target transformation area can be placed anywhere in the game scene, and when the virtual object is located in the starting transformation area, the transformation operation can be triggered.

[0092] Step S320: Taking the starting transformation area as a reference, determining the starting outgoing state of the first movement information relative to the starting transformation area.

[0093] The reference can be understood as a fixed coordinate system based on the starting transformation area. For example, the starting transformation area is a three-dimensional area composed of regular quadrilaterals, similar to a door frame, with a quadrilateral vertex in the starting transformation area as the origin of the coordinate system, and the length, width and height of the area boundary extending from the origin are the x-axis, y-axis and z-axis of the coordinate system respectively.

[0094] In this step, the movement state of the first movement information relative to the starting transformation area remains unchanged, while the starting outgoing state relative to the starting transformation area refers to the state relative to the starting transformation area when the virtual object has passed through the starting transformation area.

[0095] Exemplarily, in the process of a virtual object passing through a starting transformation area, the states of the virtual object such as the moving direction, moving speed and current orientation relative to the starting transformation area are kept unchanged, so that the moving direction, moving speed and current orientation of the virtual object relative to the starting transformation area before passing through the starting transformation area are unchanged from the moving direction, moving speed and current orientation relative to the starting transformation area after passing through the starting transformation area, which is similar to the effect of passing through a door frame, and the moving state before and after passing through the door frame is unchanged.

[0096] For example, Figure 4 As shown, the virtual object enters the starting transformation area A with a moving direction of a vector v1 relative to the starting transformation area A, and when passing through the starting transformation area A, the moving vector v2 relative to the starting transformation area A still maintains the direction of the vector v1 relative to the starting transformation area A.

[0097] Step S330, replacing the reference of the initial outgoing state with the target transformation area to obtain the target outgoing state, and converting the target outgoing state into second movement information in the target game scene corresponding to the target transformation area.

[0098] It should be noted that the second world state refers to the movement state of the target game scene corresponding to the target transformation area, for example, the movement direction, movement speed, current orientation, etc. of the virtual object in the target game scene.

[0099] In this step, the relative state between the initial outgoing state relative to the initial transformation region and the target outgoing state relative to the target transformation region is the same, but the relative references of the two are different. In step S320, the reference of the initial outgoing state relative to the initial transformation region is the initial transformation region, and in this step, the reference is replaced by the target transformation region to obtain the target outgoing state relative to the target transformation region with the target transformation region as the reference.

[0100] For example, Figure 4 As shown, the virtual object passes through the starting transformation area A in the moving direction of the vector v2 relative to the starting transformation area A, and the moving vector v2' of the virtual object relative to the target transformation area B when passing through the target transformation area B is the same as the relative direction of the vector v2 relative to the starting transformation area. It can also be understood that when a vector passes through the starting transformation area and comes out of the target transformation area, the direction of the vector relative to the target transformation area is also maintained.

[0101] Step S340: Control the virtual object to display the target game scene corresponding to the target transformation area based on the second movement information.

[0102] The virtual object may appear in the target game scene corresponding to the target transformation area in the state of the second movement information, so as to achieve the effect that the virtual object enters the through-scene transformation area from the starting transformation area and passes through the target transformation area.

[0103] By determining the outgoing state of the first movement information of the virtual object when it is transmitted relative to the starting transformation area, the original movement state of the virtual object relative to the starting transformation area can be kept unchanged when the transformation operation is triggered in the starting transformation area, so that the outgoing state of the determined virtual object relative to the starting transformation area after passing through the starting transformation area can keep the original movement state unchanged, and then the benchmark of the outgoing state is replaced with the target transformation area, thereby obtaining the outgoing state relative to the target transformation area, and the second movement information converted therefrom can still keep the original movement state unchanged, so that the displayed virtual object can achieve the effect of truly passing through the scene transformation area, rather than directly teleporting the virtual object, thereby enhancing the realism and gaming experience of passing through the scene transformation area.

[0104] The above steps are described in detail below.

[0105] In some embodiments, the moving direction of the virtual object when passing through the scene change area can be kept unchanged, so that the player can more realistically feel that they have passed through a scene change area that is connected to each other. As an example, the movement information includes the moving direction; the first moving direction in the first movement information relative to the incident direction of the starting change area and the second moving direction in the second movement information relative to the exit direction of the target change area are on a ray.

[0106] For example, Figure 4 As shown, the virtual object enters the starting transformation area A with the incident direction of the motion vector v1 relative to the starting transformation area A. The incident direction of the motion vector v1 relative to the starting transformation area A is the same as the incident direction of the motion vector v1' relative to the target transformation area B. The motion vector v2' of the virtual object relative to the target transformation area B when it passes out of the target transformation area B is on the same ray as the motion vector v1' of the virtual object relative to the target transformation area B when it enters the target transformation area B.

[0107] By making the incident movement direction of the virtual object relative to the starting transformation area and the outgoing movement direction relative to the target transformation area on a ray when the virtual object passes through the scene transformation area, the movement direction of the virtual object can be kept unchanged when passing through the scene transformation area, allowing the player to feel that they have truly passed through a series of transformation areas connected to each other.

[0108] Based on this, the moving direction of the virtual object after the scene change can be calculated by mirroring, so that the moving direction of the virtual object remains unchanged when passing through the scene change area pair. As an example, the above step S320 may include any one of the following steps:

[0109] Step a), mirroring the first moving direction relative to the first longitudinal plane to obtain a first sub-movement direction relative to the starting transformation area, the first longitudinal plane is perpendicular to the plane of the starting transformation area; mirroring the first sub-movement direction relative to the second longitudinal plane to obtain a second sub-movement direction relative to the starting transformation area, the second longitudinal plane is parallel to the plane of the starting transformation area; determining the second sub-movement direction as the starting outgoing moving direction of the first movement information relative to the starting transformation area;

[0110] Step b), mirroring the first moving direction relative to the second longitudinal plane to obtain a third sub-moving direction relative to the starting transformation area; mirroring the third sub-moving direction relative to the first longitudinal plane to obtain a fourth sub-moving direction relative to the starting transformation area; determining the fourth sub-moving direction as the starting outgoing moving direction of the first movement information relative to the starting transformation area.

[0111] For the above step a), exemplarily, assuming that the movement vector of the virtual object relative to the starting transformation area A when entering the starting transformation area A is v1, the vector v1 is mirrored toward the longitudinal plane perpendicular to the starting transformation area A, and then mirrored toward the plane of the transformation area A to obtain the movement vector v2.

[0112] For the above step b), exemplarily, assuming that the movement vector of the virtual object relative to the starting transformation area A when entering the starting transformation area A is v1, the vector v1 is mirrored toward the plane of the transformation area A, and then mirrored toward the longitudinal plane perpendicular to the starting transformation area A to obtain the movement vector v2.

[0113] By performing two mirroring processes on the movement vector when entering the starting transformation area to calculate the movement direction of the virtual object after the scene transformation, not only the movement direction of the virtual object remains unchanged when passing through the scene transformation area, but also the calculation efficiency of the movement direction of the virtual object after the scene transformation is improved.

[0114] In some embodiments, the movement speed of the virtual object when passing through the scene change area can also be kept unchanged, so that the player can more realistically feel that they have passed through a continuous change area. As an example, the movement information also includes the movement speed; the second movement speed in the second movement information is the result of multiplying the magnitude of the first movement speed in the first movement information by the second movement direction.

[0115] The virtual object has a moving speed when passing through the starting transformation area. When the virtual object comes out of the target transformation area, the speed of the virtual object remains unchanged, and the calculation method of the speed direction unit vector is the same as the calculation method of the moving direction unit vector.

[0116] By processing the magnitude of the speed and the direction of the speed separately, and then multiplying the original magnitude of the speed with the calculated unit vector of the moving direction after the scene change to obtain the overall moving speed after the scene change, the relative speed of the speed after the scene change to the target transformation area and the relative speed of the speed before the scene change to the starting transformation area remain unchanged, thereby improving the realism of the player's feeling of passing through the transformation area.

[0117] In some embodiments, the current orientation of the virtual object when passing through the scene change area pair can be kept unchanged, so that the player can more realistically feel that it has passed through a scene change area that is connected to each other. As an example, the movement information includes the current orientation; the first current orientation in the first movement information relative to the incident direction of the starting change area and the second current orientation in the second movement information relative to the exit direction of the target change area are on a ray.

[0118] The current orientation refers to the orientation of the model body of the virtual object, that is, the rotation angle of the model of the virtual object in the game scene. Figure 4 As shown, when the virtual object enters the starting transformation area A, the incident vector relative to the current orientation of the starting transformation area A is vector v1. The incident direction of the orientation vector v1 relative to the starting transformation area A is the same as the incident direction of the orientation vector v1' relative to the target transformation area B. The orientation vector v2' of the virtual object relative to the target transformation area B when it passes through the target transformation area B is on the same ray as the orientation vector v1' of the virtual object relative to the target transformation area B when it enters the target transformation area B.

[0119] By making the incident direction of the virtual object relative to the starting transformation area and the outgoing direction relative to the target transformation area on a ray when the virtual object passes through the scene transformation area pair, the orientation of the model of the virtual object itself can be kept unchanged when passing through the scene transformation area pair, so that the player feels that he has truly passed through a pair of scene transformation areas connected front and back.

[0120] Based on this, the orientation of the virtual object after the scene change can be calculated by mirroring, so that the orientation of the virtual object remains unchanged when passing through the scene change area. As an example, the above step S320 may include any one of the following steps:

[0121] Step c), mirroring the first current orientation relative to the first longitudinal plane to obtain a first sub-current orientation relative to the starting transformation area, the first longitudinal plane being perpendicular to the plane of the starting transformation area; mirroring the first sub-current orientation relative to the second longitudinal plane to obtain a second sub-current orientation relative to the starting transformation area, the second longitudinal plane being parallel to the plane of the starting transformation area; determining the second sub-current orientation as the starting outgoing orientation of the first movement information relative to the starting transformation area;

[0122] Step d), mirroring the first current orientation relative to the second longitudinal plane to obtain a third sub-current orientation relative to the starting transformation area; mirroring the third sub-current orientation relative to the first longitudinal plane to obtain a fourth sub-current orientation relative to the starting transformation area; determining the fourth sub-current orientation as the starting outgoing orientation of the first movement information relative to the starting transformation area.

[0123] For the above step a), illustratively, assuming that the orientation vector of the virtual object relative to the starting transformation area A when entering the starting transformation area A is v1, the vector v1 is mirrored toward the longitudinal plane perpendicular to the starting transformation area A, and then mirrored toward the plane of the starting transformation area A to obtain the orientation vector v2.

[0124] For the above step b), exemplarily, assuming that the orientation vector of the virtual object relative to the starting transformation area A when entering the starting transformation area A is v1, the vector v1 is mirrored toward the plane of the starting transformation area A, and then mirrored toward the longitudinal plane perpendicular to the starting transformation area A to obtain the orientation vector v2.

[0125] The current orientation of the virtual object after the scene change is calculated by mirroring the vector of the current orientation when entering the starting transformation area twice. This not only keeps the orientation of the virtual object unchanged when passing through the scene change area, but also improves the efficiency of calculating the orientation after the scene change.

[0126] In some embodiments, in some embodiments, the relative position of the virtual object before and after passing through the scene change area can be kept unchanged, so that the player can more realistically feel that they have passed through a scene change area that is connected to each other. As an example, the movement information also includes a relative position; the first relative position of the virtual object relative to the starting change area in the first movement information is the same as the second relative position of the virtual object relative to the target change area in the second movement information.

[0127] In the embodiment of the present application, the relative position of the virtual object relative to the starting transformation area when entering the starting transformation area is the same as the relative position of the virtual object relative to the target transformation area when exiting the target transformation area. For example, if the virtual object enters the starting transformation area from the upper left position of the starting transformation area, when the virtual object exits the target transformation area, it also exits the target transformation area from the upper left position of the target transformation area.

[0128] By making the entry position of the virtual object relative to the starting transformation area and the exit position relative to the target transformation area the same when the virtual object passes through the scene transformation area, the relative position of the virtual object relative to the scene transformation area can be kept unchanged when passing through the scene transformation area, so that the player feels that he has actually passed through a series of scene transformation areas connected to each other.

[0129] Based on this, the position of the virtual object relative to the target transformation area after the scene transformation can be calculated through mirroring processing, so that the relative position of the virtual object remains unchanged when passing through the scene transformation area.

[0130] As an example, the above step S320 may include the following steps:

[0131] Step e), based on the first relative position, mirror processing is performed relative to the plane of the starting transformation area to obtain a third relative position relative to the starting transformation area;

[0132] Step f), determining the third relative position as the starting outgoing relative position of the first movement information relative to the starting transformation area.

[0133] Regarding the calculation process of the position of the virtual object after the scene changes, it is assumed that the position of the player relative to the starting transformation area when entering the starting transformation area is p1, and p1 is mirrored relative to the plane of the starting transformation area to obtain p2. Finally, the position of the virtual object relative to the target transformation area when passing through the target transformation area is the same as the relative position of p2 relative to the starting transformation area.

[0134] The relative position of the virtual object after the scene change is calculated by mirroring the relative position when entering the starting change area, which not only keeps the relative position of the virtual object unchanged before and after passing through the scene change area, but also improves the calculation efficiency of the position after the scene change.

[0135] In some embodiments, the first movement information relative to the current game scene may be first converted into a starting incoming state relative to the starting transformation area, and then the starting outgoing state relative to the starting transformation area is determined. As an example, before step S320, the method may further include the following steps:

[0136] Step g), converting the first movement information into a starting incoming state of the virtual object relative to the starting transformation area in the current game scene.

[0137] It should be noted that the first movement information is based on the current game scene corresponding to the starting transformation area, and is movement information relative to the current game scene. In the embodiment of the present application, the first movement information relative to the current game scene is first converted into a starting incoming state relative to the starting transformation area, so that the starting outgoing state relative to the starting transformation area can be determined by keeping the starting incoming state unchanged.

[0138] Based on the above step g), the target outgoing state relative to the target transformation area can be first converted into the second movement information relative to the target game scene, so as to display the virtual object in the target game scene based on the second movement information. As an example, the process of converting the target outgoing state into the second movement information in the target game scene corresponding to the target transformation area in the above step S330 may include the following steps:

[0139] Step h), converting the target outgoing state relative to the target transformation area into second movement information of the virtual object relative to the target game scene when the virtual object is in the target transformation area.

[0140] It should be noted that the second movement information is based on the target game scene facing the target transformation area, and is movement information relative to the target game scene. In the embodiment of the present application, the target outgoing state relative to the target transformation area can be first converted into the second movement information relative to the target game scene using the world transformation matrix of the target transformation area, so as to subsequently display the virtual object based on the second movement information.

[0141] In some embodiments, the player can observe the scene image of the target game scene corresponding to the target transformation area through the starting transformation area. As an example, the three-dimensional game scene also includes a transformation area virtual camera, the transformation area virtual camera is bound to the target transformation area, and the transformation area virtual camera faces the direction of the target game scene; the method may also include the following steps:

[0142] Step i), when the virtual object is in the current game scene, a target image corresponding to the three-dimensional game scene in the target game scene is captured by a transformation area virtual camera;

[0143] Step j), rendering the target image to obtain a target texture;

[0144] Step k), pasting the target texture to the range formed by the border of the starting transformation area, and displaying the starting transformation area after pasting the texture in a graphical user interface.

[0145] In the embodiment of the present application, a transformation area virtual camera can be bound to the target transformation area, and then the scene of the target game scene captured by the transformation area virtual camera is rendered onto a texture through the perspective of the transformation area virtual camera, and then the texture is pasted onto the starting transformation area in front of the virtual object, such as Figure 5 As shown, the player can see the target game scene C corresponding to the target transformation area through the starting transformation area A, so that the player can see the corresponding scene opposite the scene transformation area.

[0146] By using an additional transformation area virtual camera and rendering texture, the rendering process of the target game scene opposite the scene transformation area is realized. Even if the target game scene is not spatially connected to the current game scene, the player can see the target game scene through the starting transformation area, thereby improving the realism of the scene transformation area and the gaming experience.

[0147] Based on the above steps i), j) and k), the target game scene displayed in the starting transformation area can change as the position of the virtual object in the current game scene moves and the line of sight moves, so that the display effect is more dynamic and realistic. As an example, the above step i) may include the following steps:

[0148] Step 1), obtaining the current starting position of the current virtual object in the current game scene, determining the current target position relative to the target transformation area in the target game scene based on the current starting position; determining the current target position as the current position of the virtual camera in the transformation area;

[0149] Step m), obtaining a first sight line direction of the current virtual object facing the starting transformation area in the current game scene, determining a second sight line direction of the virtual object facing the target transformation area based on the first sight line direction, wherein the incident direction of the first sight line direction relative to the starting transformation area and the incident direction of the second sight line direction relative to the target transformation area are on a ray; determining the outgoing direction of the second sight line direction as the current orientation direction of the virtual camera of the transformation area;

[0150] Step n), using the virtual camera of the transformation area which is currently facing in the direction and located at the current position, to collect the target image corresponding to the three-dimensional game scene in the current target game scene.

[0151] For example, Figure 6 As shown, the direction of sight of the virtual object through the starting transformation area is arrow Va, and the image acquisition direction of the transformation area virtual camera toward the target game scene on the target transformation area is arrow Vb. The direction of Va relative to the starting transformation area is the same as the direction of Vb relative to the target transformation area, so that the transformation area virtual camera shoots the target game scene in the same direction of sight as the virtual object.

[0152] For the specific algorithm of the orientation of the virtual camera in the transformation area, the specific acquisition orientation of the virtual camera in the transformation area can be determined based on the line of sight of the virtual object using the mirror processing method of the current orientation in the above steps c) and d). For the specific algorithm of the position of the virtual camera in the transformation area, the specific acquisition position of the virtual camera in the transformation area can be determined based on the relative position of the virtual object relative to the starting transformation area using the mirror processing method of the current orientation in the above steps e) and f).

[0153] By determining the shooting direction of the virtual camera in the transformation area and its position relative to the target transformation area according to the line of sight of the virtual object in the current game scene and its position relative to the starting transformation area, the perspective of the virtual object is simulated, so that the target game scene displayed in the starting transformation area changes as the position and line of sight of the virtual object in the current game scene moves, making the dynamic display effect more realistic.

[0154] Based on the above steps i), j) and k), for the target game scene image displayed in the starting transformation area frame, its rendering frame rate, rendering resolution and whether it is displayed or not can be optimized based on the different specific conditions of the virtual object in the current game scene. As an example, the above step j) may include the following steps:

[0155] Step o), when the line of sight of the virtual object moves, the target image is rendered to obtain a target texture;

[0156] Step p), rendering the target image using the camera perspective rendering frame rate of the virtual camera in the transformation area to obtain the target texture, the camera perspective rendering frame rate is determined according to the distance between the virtual object and the starting transformation area, and the camera perspective rendering frame rate is less than or equal to the rendering frame rate of other areas in the graphical user interface except the target texture;

[0157] Step q), performing an intersection test between the geometric model of the shape of the starting transformation area and the camera frustum of the virtual object perspective to obtain a test result. If the test result shows that the geometric model is not within the camera frustum, the rendering process of the target image is canceled;

[0158] Step r), rendering the target image based on the camera resolution of the virtual camera in the transformation area to obtain the target texture, the camera resolution is determined according to the distance between the virtual object and the starting transformation area, and the camera resolution is less than or equal to the resolution of other areas in the graphical user interface except the target texture.

[0159] For the above step p), exemplarily, the rendering frame rate (refresh rate) of the virtual camera in the transformation area can be adjusted according to the distance of the virtual object from the starting transformation area, and a frame rate lower than the main perspective of the virtual object can be used. For example, the main perspective needs to render 60 frames per second. If the virtual object is close to the starting transformation area, the rendering frame rate of the virtual camera in the transformation area can be 50 frames per second; if the virtual object is far from the starting transformation area, the virtual camera in the transformation area can use a lower rendering frame rate, such as 10 frames per second; when the virtual object is close to the starting transformation area, the rendering frame rate of the virtual camera in the transformation area is increased; it is also possible that the rendering of the virtual camera in the transformation area will be updated only when the perspective of the virtual object moves, otherwise the previous rendering result will be used. In this way, it is not easy for players to notice and the performance overhead of data processing can be saved.

[0160] For the above step q), illustratively, if the virtual object cannot see the starting transformation area, the image captured by the virtual camera of the transformation area can be directly not rendered. For example, a rectangle can be used to represent the starting transformation area, and an intersection test can be performed between the rectangle and the camera cone of the virtual object. If it is found that the rectangle is not within the cone, the camera rendering of the virtual camera of the transformation area can be skipped. In this way, if there are many invisible starting transformation areas in the scene, a lot of CPU and GPU processing time can be saved.

[0161] For the above step r), for example, the resolution of the rendering texture can be appropriately reduced to optimize the rendering efficiency, because the starting transformation area does not completely occupy the entire screen, and a size lower than the screen resolution can be used to render the image in the area frame of the actual starting transformation area, that is, the image captured by the virtual camera of the transformation area. For example, rendering textures of different sizes are pre-allocated, and when the virtual object gradually approaches the starting transformation area, the texture is switched to a larger resolution, and when the virtual object is far away from the starting transformation area, the texture is switched to a smaller size.

[0162] By optimizing the rendering frame rate, rendering resolution, culling, and other aspects of the transformation area virtual camera, the performance overhead of image processing can be reduced, especially when there are a large number of starting transformation areas in a 3D scene. In addition, it can also avoid the situation where the scene in the area frame of the starting transformation area is rendered twice (one time is the normal perspective, and the other time is the perspective of the transformation area virtual camera) when the virtual object looks at the starting transformation area, so as to alleviate the greater pressure on performance.

[0163] Based on the above steps i), j) and k), the rendering of the starting transformation area can be achieved by recursive rendering. As an example, the above step j) may include the following steps:

[0164] Step s), based on a preset maximum number of recursions, the following steps are looped using a recursive function until it is determined that there are no other starting transformation areas except the current starting transformation area in the virtual camera perspective of the current transformation area bound to the current target transformation area, and based on the determined several starting transformation areas, the target image is rendered to obtain the target texture:

[0165] Step t), performing an intersection test between the geometric model of the shape of the initial transformation area and the camera cone of the virtual camera perspective of the current transformation area to obtain a test result;

[0166] Step u), judging whether there are other starting transformation areas except the current starting transformation area in the virtual camera viewing angle of the current transformation area according to the test result;

[0167] Step v), if yes, use the other starting transformation area as the current starting transformation area in the next recursive judgment process.

[0168] In actual applications, when a virtual object sees another starting transformation area through a starting transformation area, the starting transformation area inside the starting transformation area needs to be recursively rendered. This situation is similar to using a mirror facing another mirror and seeing an infinite recursive extension in the mirror.

[0169] In the embodiment of the present application, when the virtual camera of the transformation area is rendered, it is determined whether there are other starting transformation areas within its perspective. The determination method can use the view cone combined with the rectangular intersection test. If other starting transformation areas are found within the view cone, other starting transformation areas in this starting transformation area are rendered. The entire determination process should be recursive, that is, the starting transformation areas in the starting transformation area should also continue to make corresponding determinations, so as to achieve a more effective recursive rendering effect for the situation where other starting transformation areas are nested in the starting transformation area.

[0170] In order to prevent infinite recursion (such as when two starting transformation areas face each other), the maximum number of recursive processing can be controlled by presetting the maximum number of recursions. When the preset maximum number of recursions is reached, the operation is stopped to determine whether there are other starting transformation areas in the starting transformation area.

[0171] It should be noted that the calculation method using the recursive function is the same each time, but the position of each calculation process is different, from one starting transformation area to another starting transformation area inside, and the position angle of the starting transformation area is changing each time. It should be noted that when rendering the starting transformation area in the starting transformation area, the perspective position of the virtual object is not used, but the perspective position of the starting transformation area or the perspective position of the virtual camera in the transformation area is used, because the perspective from the starting transformation area is different from the perspective of the virtual object.

[0172] By rendering a recursive effect through recursive processing, it is possible to more efficiently, accurately and effectively determine whether the virtual object can see other starting transformation areas from the area frame of the starting transformation area.

[0173] In some embodiments, seamless transformation can also be achieved when the virtual object passes through the scene transformation area. As an example, the above step S340 may include the following steps:

[0174] Step w), duplicating the object model of the virtual object transformed in the scene transformation area, wherein the appearance and action of the two duplicated object models are consistent;

[0175] Step x), determining a first portion of the object model located at one side of the starting transformation region in one of the two object models, and determining a second portion of the object model located at one side of the target transformation region in the other object model;

[0176] Step y): In the graphical user interface, a first portion of the object model is displayed in the starting transformation area based on the first movement information, and a second portion of the object model is displayed in the target transformation area based on the second movement information.

[0177] For the above step w), the same action instruction can be used to control two identical object models at the same time, that is, the appearance and action of the two object models are consistent.

[0178] For the above steps x) and y), one of the two object models only displays a partial object model (such as a part of the body) on one side of the starting transformation area at one end of the starting transformation area (such as the incoming position), and a partial object model (such as another part of the body) on the other side of the starting transformation area is not displayed; the other of the two object models only displays a partial object model (such as a part of the body) on one side of the target transformation area at one end of the target transformation area (such as the outgoing position), and a partial object model (such as another part of the body) on the other side of the target transformation area is not displayed.

[0179] By displaying part of the virtual object's body only on one side of the starting transformation area and the other part only on the side of the target transformation area, the appearance and movement of the models corresponding to the two parts are guaranteed to be consistent, thereby achieving a seamless display effect, avoiding the instantaneous transformation effect with low realism, and making the penetration effect of the virtual object passing through the scene transformation area more realistic.

[0180] Figure 7 A schematic diagram of the structure of a game virtual scene transformation device is provided. The three-dimensional game scene of the game includes a scene transformation area and a virtual object, and the scene transformation area includes a starting transformation area and a target transformation area. Figure 7As shown, the game virtual scene transformation device 700 includes:

[0181] A first determination module 701 is used to determine first movement information of the virtual object in the current game scene in response to a transformation operation triggered by controlling the virtual object in the starting transformation area, wherein the current game scene is the game scene corresponding to the starting transformation area, and the movement information includes at least one of the following information: movement direction, movement speed, and current orientation;

[0182] A second determining module 702 is used to determine the initial outgoing state of the first movement information relative to the initial change area based on the initial change area;

[0183] A first conversion module 703, used to replace the reference of the initial outgoing state with the target transformation area to obtain the target outgoing state, and convert the target outgoing state into second movement information in the target game scene corresponding to the target transformation area;

[0184] The control module 704 is used to control the display of the target game scene corresponding to the target transformation area of ​​the virtual object based on the second movement information.

[0185] In some embodiments, the movement information includes a direction of movement;

[0186] The first moving direction in the first moving information relative to the incident direction of the starting transformation area is on a ray with the second moving direction in the second moving information relative to the exit direction of the target transformation area.

[0187] In some embodiments, the movement information also includes movement speed;

[0188] The second moving speed in the second moving information is a result of multiplying the first moving speed in the first moving information by the second moving direction.

[0189] In some embodiments, the movement information includes a current heading;

[0190] The first current orientation in the first movement information is on a ray with respect to the incident direction of the starting transformation area and the second current orientation in the second movement information is on a ray with respect to the exit direction of the target transformation area.

[0191] In some embodiments, the movement information also includes relative position;

[0192] The first relative position of the virtual object relative to the starting transformation area in the first movement information is the same as the second relative position of the virtual object relative to the target transformation area in the second movement information.

[0193] In some embodiments, the second determining module 702 is specifically configured to:

[0194] Mirroring the first moving direction relative to the first longitudinal plane to obtain a first sub-movement direction relative to the starting transformation area, the first longitudinal plane is perpendicular to the plane of the starting transformation area; mirroring the first sub-movement direction relative to the second longitudinal plane to obtain a second sub-movement direction relative to the starting transformation area, the second longitudinal plane is parallel to the plane of the starting transformation area; determining the second sub-movement direction as the starting outgoing moving direction of the first movement information relative to the starting transformation area; or,

[0195] The first moving direction is mirrored relative to the second longitudinal plane to obtain a third sub-moving direction relative to the starting transformation area; the third sub-moving direction is mirrored relative to the first longitudinal plane to obtain a fourth sub-moving direction relative to the starting transformation area; the fourth sub-moving direction is determined as the starting outgoing moving direction of the first movement information relative to the starting transformation area.

[0196] In some embodiments, the second determining module 702 is specifically configured to:

[0197] Mirroring the first current orientation relative to the first longitudinal plane to obtain a first sub-current orientation relative to the starting transformation area, the first longitudinal plane is perpendicular to the plane of the starting transformation area; mirroring the first sub-current orientation relative to the second longitudinal plane to obtain a second sub-current orientation relative to the starting transformation area, the second longitudinal plane is parallel to the plane of the starting transformation area; determining the second sub-current orientation as the starting outgoing orientation of the first movement information relative to the starting transformation area; or,

[0198] The first current direction is mirrored relative to the second longitudinal plane to obtain a third sub-current direction relative to the starting transformation area; the third sub-current direction is mirrored relative to the first longitudinal plane to obtain a fourth sub-current direction relative to the starting transformation area; the fourth sub-current direction is determined as the starting outgoing direction of the first movement information relative to the starting transformation area.

[0199] In some embodiments, the second determining module 702 is specifically configured to:

[0200] Based on the first relative position, a mirror image is performed relative to the plane of the starting transformation area to obtain a third relative position relative to the starting transformation area;

[0201] The third relative position is determined as a starting outgoing relative position of the first movement information relative to the starting transformation area.

[0202] In some embodiments, the starting transformation area is located in the current game scene of the game; the device further includes:

[0203] The second conversion module is used to convert the first movement information into the starting incoming state of the virtual object relative to the starting transformation area in the current game scene before determining the starting outgoing state of the first movement information relative to the starting transformation area based on the starting transformation area.

[0204] In some embodiments, the first conversion module 703 is specifically used to:

[0205] The target outgoing state relative to the target transformation area is converted into second movement information of the virtual object relative to the target game scene when the virtual object is in the target transformation area.

[0206] In some embodiments, the three-dimensional game scene further includes a transformation area virtual camera, the transformation area virtual camera is bound to the target transformation area, and the transformation area virtual camera faces the direction of the target game scene; the device also includes:

[0207] A collection module, used for collecting a target image corresponding to a three-dimensional game scene in a target game scene by transforming a regional virtual camera when a virtual object is in a current game scene;

[0208] A rendering module, used for rendering a target image to obtain a target texture;

[0209] The texture module is used to paste the target texture into the range formed by the border of the starting transformation area, and display the starting transformation area after the texture is pasted in the graphical user interface.

[0210] In some embodiments, the acquisition module is specifically used to:

[0211] Obtain the current starting position of the current virtual object in the current game scene, determine the current target position relative to the target transformation area in the target game scene based on the current starting position; determine the current target position as the current position of the virtual camera in the transformation area;

[0212] Obtain a first sight line direction of the current virtual object facing the starting transformation area in the current game scene, determine a second sight line direction of the virtual object facing the target transformation area based on the first sight line direction, the incident direction of the first sight line direction relative to the starting transformation area and the incident direction of the second sight line direction relative to the target transformation area are on a ray; determine the outgoing direction of the second sight line direction as the current orientation direction of the virtual camera of the transformation area;

[0213] The target image corresponding to the three-dimensional game scene in the current target game scene is collected through the virtual camera of the transformation area which is currently facing in the direction and located at the current position.

[0214] In some embodiments, the rendering module is specifically used to:

[0215] When the line of sight of the virtual object moves, the target image is rendered to obtain the target texture;

[0216] The target image is rendered using the camera perspective rendering frame rate of the virtual camera in the transformation area to obtain the target texture, the camera perspective rendering frame rate is determined according to the distance between the virtual object and the starting transformation area, and the camera perspective rendering frame rate is less than or equal to the rendering frame rate of other areas in the graphical user interface except the target texture;

[0217] An intersection test is performed between the geometric model of the shape of the starting transformation area and the camera frustum of the virtual object's perspective to obtain a test result. If the test result shows that the geometric model is not within the camera frustum, the rendering process of the target image is canceled.

[0218] The target image is rendered based on the camera resolution of the virtual camera in the transformation area to obtain the target texture. The camera resolution is determined according to the distance between the virtual object and the starting transformation area. The camera resolution is less than or equal to the resolution of other areas in the graphical user interface except the target texture.

[0219] In some embodiments, the rendering module is specifically used to:

[0220] The following steps are performed in a recursive function loop based on the preset maximum number of recursions until it is determined that there are no other starting transformation areas except the current starting transformation area in the virtual camera perspective of the current transformation area bound to the current target transformation area, and the target image is rendered based on the determined several starting transformation areas to obtain the target texture:

[0221] Perform an intersection test between the geometric model of the shape of the starting transformation area and the camera cone of the virtual camera perspective of the current transformation area to obtain a test result;

[0222] According to the test result, it is determined whether there are other starting transformation areas except the current starting transformation area in the virtual camera perspective of the current transformation area;

[0223] If yes, the other starting transformation area is used as the current starting transformation area in the next recursive judgment process.

[0224] In some embodiments, the control module 704 is specifically configured to:

[0225] The object model of the virtual object transformed in the scene transformation area is copied, and the appearance and action of the two copied object models are consistent;

[0226] Determine a first portion of the object model located at one side of the starting transformation region in one of the two object models, and determine a second portion of the object model located at one side of the target transformation region in the other object model;

[0227] In the graphical user interface, a first portion of the object model is displayed in the starting transformation area based on the first movement information, and a second portion of the object model is displayed in the target transformation area based on the second movement information.

[0228] The game virtual scene transformation device provided in the embodiment of the present application has the same technical features as the game virtual scene transformation method provided in the above-mentioned embodiment, so it can also solve the same technical problems and achieve the same technical effects.

[0229] Corresponding to the above-mentioned game virtual scene transformation method, an embodiment of the present application also provides a computer-readable storage medium, which stores machine-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the steps of the above-mentioned game virtual scene transformation method.

[0230] The game virtual scene transformation device provided in the embodiment of the present application can be specific hardware on the device or software or firmware installed on the device. The device provided in the embodiment of the present application, its implementation principle and the technical effect produced are the same as those in the aforementioned method embodiment. For the sake of brief description, the parts not mentioned in the device embodiment can refer to the corresponding contents in the aforementioned method embodiment. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can all refer to the corresponding processes in the aforementioned method embodiment, and will not be repeated here.

[0231] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0232] For another example, the flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0233] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0234] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0235] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the game virtual scene transformation method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.

[0236] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0237] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solution of the present application, rather than to limit it. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the aforementioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solution recorded in the aforementioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiment of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for changing a game virtual scene, It is characterized in that The method comprises: Controlling placement of a transformation area in the game scene, wherein the transformation area includes a starting transformation area and a target transformation area; In response to a movement control instruction, controlling the virtual object to move in the game scene; When the virtual object moves to the starting transformation area, first movement information of the virtual object in the current game scene is determined, and a starting outgoing state relative to the starting transformation area is determined according to the first movement information, wherein the current game scene is a game scene corresponding to the starting transformation area, and the movement information includes at least one of the following information: movement direction, movement speed, virtual character orientation and relative position; Transforming the initial outgoing state according to the target transformation area to obtain a target outgoing state, and converting the target outgoing state into second movement information in a target game scene corresponding to the target transformation area, wherein a relative state of the first movement information relative to the initial transformation area is the same as a relative state of the second movement information relative to the target transformation area; Based on the second movement information, the virtual object is controlled to be displayed in the target game scene corresponding to the target transformation area.

2. The method according to claim 1, It is characterized in that In the process that the virtual object passes through the starting transformation area, the first movement information of the virtual object relative to the starting transformation area is the same as the fifth movement information of the virtual object relative to the starting transformation area after the virtual object passes through the starting transformation area.

3. The method according to claim 1, It is characterized in that The movement information includes a movement direction; the relative state of the first movement information relative to the starting transformation area is the same as the relative state of the second movement information relative to the target transformation area, including: the incident direction of the first movement direction in the first movement information relative to the starting transformation area is the same as the exit direction of the second movement direction in the second movement information relative to the target transformation area.

4. The method according to claim 3, It is characterized in that The movement information also includes movement speed; The second moving speed in the second moving information is a result of multiplying the first moving speed in the first moving information by the second moving direction.

5. The method according to claim 1, It is characterized in that The movement information includes a virtual character orientation, wherein the virtual character orientation is an orientation of a model body of the virtual object; The relative state of the first movement information relative to the starting transformation area is the same as the relative state of the second movement information relative to the target transformation area, including: the first virtual character in the first movement information is facing an incident direction relative to the starting transformation area, which is the same as the exit direction of the second virtual character in the second movement information relative to the target transformation area.

6. The method according to claim 1, It is characterized in that The movement information includes relative position; The relative state of the first movement information relative to the starting transformation area is the same as the relative state of the second movement information relative to the target transformation area, including: the first relative position of the virtual object in the first movement information relative to the starting transformation area is the same as the second relative position of the virtual object in the second movement information relative to the target transformation area.

7. The method according to claim 1, It is characterized in that The step of determining the starting outgoing state relative to the starting transformation area according to the first movement information comprises: Mirroring the first moving direction relative to a first longitudinal plane to obtain a first sub-movement direction relative to the starting transformation area, the first longitudinal plane being perpendicular to the plane of the starting transformation area; mirroring the first sub-movement direction relative to a second longitudinal plane to obtain a second sub-movement direction relative to the starting transformation area, the second longitudinal plane being parallel to the plane of the starting transformation area; determining the second sub-movement direction as the starting outgoing moving direction of the first movement information relative to the starting transformation area; or, Mirror the first moving direction relative to the second longitudinal plane to obtain a third sub-moving direction relative to the starting transformation area; mirror the third sub-moving direction relative to the first longitudinal plane to obtain a fourth sub-moving direction relative to the starting transformation area; determine the fourth sub-moving direction as the starting outgoing moving direction of the first movement information relative to the starting transformation area.

8. The method according to claim 5, It is characterized in that The step of determining the starting outgoing state relative to the starting transformation area according to the first movement information comprises: Mirroring the first virtual character's orientation relative to a first longitudinal plane to obtain a first sub-virtual character's orientation relative to the starting transformation area, the first longitudinal plane being perpendicular to the plane of the starting transformation area; mirroring the first sub-virtual character's orientation relative to a second longitudinal plane to obtain a second sub-virtual character's orientation relative to the starting transformation area, the second longitudinal plane being parallel to the plane of the starting transformation area; determining the second sub-virtual character's orientation as the starting outgoing orientation of the first movement information relative to the starting transformation area; or, Mirror the orientation of the first virtual character relative to the second longitudinal plane to obtain the orientation of the third sub-virtual character relative to the starting transformation area; mirror the orientation of the third sub-virtual character relative to the first longitudinal plane to obtain the orientation of the fourth sub-virtual character relative to the starting transformation area; determine the orientation of the fourth sub-virtual character as the starting outgoing orientation of the first movement information relative to the starting transformation area.

9. The method according to claim 6, It is characterized in that The step of determining the starting outgoing state relative to the starting transformation area according to the first movement information comprises: Based on the first relative position, mirror processing is performed relative to the plane of the starting transformation area to obtain a third relative position relative to the starting transformation area; The third relative position is determined as a starting outgoing relative position of the first movement information relative to the starting transformation area.

10. The method according to any one of claims 1 to 9, It is characterized in that Before the step of determining the starting outgoing state relative to the starting transformation area according to the first movement information, the method further includes: The first movement information is converted into a starting incoming state of the virtual object in the current game scene relative to the starting transformation area.

11. The method according to claim 10, It is characterized in that The step of converting the target outgoing state into second movement information in the target game scene corresponding to the target transformation area comprises: The target outgoing state relative to the target transformation area is converted into second movement information of the virtual object relative to the target game scene when the virtual object is in the target transformation area.

12. The method according to claim 1, It is characterized in that The game scene also includes a transformation area virtual camera, the transformation area virtual camera is bound to the target transformation area, and the transformation area virtual camera faces the direction of the target game scene; the method also includes: Determine the orientation of the virtual camera of the transformation area and its position relative to the target transformation area according to the sight line direction of the virtual object in the current game scene and its position relative to the starting transformation area; Capturing a target image corresponding to the three-dimensional game scene in the current target game scene by the orientation of the virtual camera in the transformation area and the position relative to the target transformation area; Rendering the target image to obtain a target texture; The target texture is pasted into the range formed by the border of the starting transformation area, and the starting transformation area after the texture is pasted is displayed in a graphical user interface.

13. The method according to claim 12, It is characterized in that The step of determining the orientation of the virtual camera of the transformation area and the position relative to the target transformation area according to the sight line direction of the virtual object in the current game scene and the position relative to the starting transformation area comprises: Obtaining a current starting position of the virtual object in the current game scene, determining a current target position relative to the target transformation area in the target game scene based on the current starting position, and determining a position of the transformation area virtual camera relative to the target transformation area according to the current target position; Obtain a first sight direction of the current virtual object facing the starting transformation area in the current game scene, and determine a second sight direction of the virtual object facing the target transformation area based on the first sight direction, wherein the incident direction of the first sight direction relative to the starting transformation area is the same as the incident direction of the second sight direction relative to the target transformation area; determine the outgoing direction of the second sight direction as the orientation of the virtual camera of the transformation area.

14. The method according to claim 12, It is characterized in that The step of rendering the target image to obtain a target texture comprises: When the line of sight of the virtual object moves, the target image is rendered to obtain a target texture; The target image is rendered using a camera perspective rendering frame rate of a virtual camera in the transformation area to obtain a target texture, wherein the camera perspective rendering frame rate is determined according to a distance between the virtual object and the starting transformation area, and the camera perspective rendering frame rate is less than or equal to a rendering frame rate of other areas in the graphical user interface except the target texture; Performing an intersection test between the geometric model of the shape of the starting transformation area and the camera frustum of the perspective of the virtual object to obtain a test result, and if the test result is that the geometric model is not within the camera frustum, canceling the rendering process of the target image; The target image is rendered based on the camera resolution of the virtual camera in the transformation area to obtain a target texture, wherein the camera resolution is determined according to the distance between the virtual object and the starting transformation area, and the camera resolution is less than or equal to the resolution of other areas in the graphical user interface except the target texture.

15. The method according to claim 12, It is characterized in that The step of rendering the target image to obtain a target texture comprises: The following steps are performed in a recursive function loop based on the preset maximum number of recursions until it is determined that there are no other starting transformation areas except the current starting transformation area in the virtual camera perspective of the current transformation area bound to the current target transformation area, and based on the determined several starting transformation areas, the target image is rendered to obtain the target texture: Performing an intersection test between the geometric model of the shape of the starting transformation area and the camera frustum of the virtual camera perspective of the current transformation area to obtain a test result; Determine, according to the test result, whether there is another starting transformation area other than the current starting transformation area in the virtual camera perspective of the current transformation area; If yes, the other starting transformation region is used as the current starting transformation region in the next recursive judgment process.

16. The method according to claim 1, It is characterized in that The step of controlling the display of the virtual object in the target game scene corresponding to the target transformation area based on the second movement information includes: Copying the object model of the virtual object transformed by the scene change area, so that the appearance and action of the two copied object models are consistent; Determine a first portion of the object model located at one side of the starting transformation region in one of the two object models, and determine a second portion of the object model located at one side of the target transformation region in the other object model; In the graphical user interface, the first portion of the object model is displayed in the starting transformation area based on the first movement information, and the second portion of the object model is displayed in the target transformation area based on the second movement information.

17. An electronic terminal comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 16 are implemented.

18. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores machine-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to execute the method according to any one of claims 1 to 16.

Citation Information

Patent Citations

  • Mobile terminal-based data processing method and mobile terminal

    CN106730819A

  • Data generation device and application execution device

    CN110612519A

  • Display control method and device for game hall and electronic equipment

    CN111494949A

  • Program, information processing device, and information processing method

    JP2019145161A