Virtual scene switching method and device, electronic equipment, medium and product

Realizing scene switching by replacing scene elements in the virtual scene solves the problems of low resource utilization and interaction efficiency caused by the singleness of scene switching in the existing technology, and improves the diversity of virtual scenes and user experience.

CN118698121APending Publication Date: 2024-09-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410868365.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The scene switching method in existing open world games is single, resulting in low resource utilization and low human-computer interaction efficiency.

Method used

By displaying the virtual object in the first sub-scene of the virtual scene and responding to the scene switching condition, multiple scene elements are replaced with second scene elements to implement scene switching, thereby continuing to display the virtual object in the second sub-scene.

Benefits of technology

It enriches the diversity of scene switching, improves resource utilization and interaction efficiency, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118698121A
    Figure CN118698121A
Patent Text Reader

Abstract

The invention provides a virtual scene switching method and device, electronic equipment, a computer readable storage medium and a computer program product, the method is executed by the electronic equipment, and the method comprises the following steps: displaying a virtual object in a first sub-scene of a virtual scene, the first sub-scene comprises a plurality of first scene elements except the virtual object; in response to the situation that a scene switching condition for the first sub-scene is met, replacing the plurality of first scene elements with second scene elements, and controlling the first sub-scene to be switched into a second sub-scene of the virtual scene; and displaying the virtual object in the second sub-scene. Therefore, the resource utilization rate and the man-machine interaction efficiency in the virtual scene can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a method, device, electronic device, computer-readable storage medium, and computer program product for switching virtual scenes. Background Art

[0002] In open world games, players can switch the game scene between day and night, and then continue playing the game after the switch; however, this scene switching method is not only too simple, but the game scene is composed of many scene elements. Switching only weather elements such as day and night will lead to low resource utilization and human-computer interaction efficiency of the game scene. Summary of the invention

[0003] The embodiments of the present application provide a virtual scene switching method, device, electronic device, computer-readable storage medium and computer program product, which can improve resource utilization and human-computer interaction efficiency in virtual scenes.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The embodiment of the present application provides a method for switching a virtual scene, the method being executed by an electronic device, comprising:

[0006] In a first sub-scene of a virtual scene, a virtual object is displayed, wherein the first sub-scene includes a plurality of first scene elements except the virtual object;

[0007] In response to a scene switching condition for the first sub-scene being met, replacing a plurality of the first scene elements with second scene elements, and controlling the first sub-scene to switch to a second sub-scene of the virtual scene;

[0008] In the second sub-scene, the virtual object is displayed.

[0009] The embodiment of the present application provides a virtual scene switching device, which is applied to an electronic device and includes:

[0010] A first display module, configured to display a virtual object in a first sub-scene of a virtual scene, wherein the first sub-scene includes a plurality of first scene elements except the virtual object;

[0011] a replacement module, configured to replace a plurality of the first scene elements with second scene elements in response to a scene switching condition for the first sub-scene being satisfied, and control the first sub-scene to switch to the second sub-scene of the virtual scene;

[0012] The second display module is used to display the virtual object in the second sub-scene.

[0013] In the above scheme, the virtual scene is displayed based on the first display area and the second display area of ​​the electronic device; the device also includes a first determination module, which is used to determine whether the scene switching condition for the first sub-scene is satisfied in response to the trigger operation performed on the first display area and the second display area together.

[0014] In the above scheme, the device also includes a second display module, which is used to display drive controls in the first display area and display interactive controls in the second display area; wherein the drive controls are used to control the movement of the virtual object, and the interactive controls include one of direction controls and skill controls; the direction controls are used to control the viewing direction of the virtual object, and the skill controls are used to control the virtual object to interact with other virtual objects, and the other virtual objects are virtual objects other than the virtual object in the virtual scene; the first determination module is also used to determine that the scene switching condition for the first sub-scene is met in response to a trigger operation performed together on the drive controls in the first display area and the interactive controls in the second display area.

[0015] In the above scheme, the device also includes a second determination module, which is used to display drive controls and interactive controls; wherein the drive controls are used to control the movement of the virtual object, and the interactive controls include one of direction controls and skill controls; the direction controls are used to control the viewing direction of the virtual object, and the skill controls are used to control the virtual object to interact with other virtual objects, and the other virtual objects are virtual objects other than the virtual object in the virtual scene; in response to a trigger operation performed on the drive controls and the interactive controls together, it is determined that the scene switching condition for the first sub-scene is met.

[0016] In the above scheme, the interactive control is the skill control, the drive control is in a draggable state, and the skill control is in a non-draggable state; the second determination module is also used to control the skill control from being in the non-draggable state to being in a draggable state in response to a trigger operation performed on the drive control and the skill control together; when the drive control and the skill control are both in the draggable state, the first draggable area of ​​the drive control and the second draggable area of ​​the skill control are displayed respectively; in response to the dragging operation performed on the drive control in the first draggable area and the skill control in the second draggable area together, it is determined that the scene switching condition for the first sub-scene is met.

[0017] In the above scheme, the interactive control is the direction control, the drive control and the direction control are both in a draggable state, and the trigger operation performed together is a drag operation; the second determination module is also used to respond to the drag operation performed on the drive control and the direction control together, and display the process of dragging the drive control and the process of dragging the direction control respectively; during the process of dragging the drive control and the direction control, when the value of the first drag parameter of the drive control reaches a first target value, and the value of the second drag parameter of the direction control reaches a second target value, it is determined that the scene switching condition for the first sub-scene is met.

[0018] In the above scheme, the device also includes a third determination module, which is used to receive a flip operation or a shaking operation performed on the electronic device; in response to the flip angle of the flip operation reaching the target flip angle, or the shaking amplitude of the shaking operation reaching the target shaking amplitude, determine that the scene switching condition for the first sub-scene is met.

[0019] In the above scheme, the device also includes a fourth determination module, which is used to receive a flip operation and a flip-back operation performed sequentially on the electronic device; in response to the flip angle of the flip operation reaching a target flip angle, and the flip-back angle reaching a target flip-back angle, determine that the scene switching condition for the first sub-scene is met.

[0020] In the above scheme, the device also includes a fifth determination module, which is used to receive a flip operation and a flip-back operation sequentially performed on the electronic device; if the flip duration corresponding to the flip operation and the flip-back operation is not greater than the target flip duration, it is determined that the scene switching condition for the first sub-scene is met; wherein the flip duration is the duration between executing the flip operation and executing the flip-back operation.

[0021] In the above scheme, the device also includes a sixth determination module, which is used to determine that the scene switching condition for the first sub-scene is met in response to the display time of the virtual object reaching the target display time; wherein the display time is the time when the virtual object is located in the first sub-scene.

[0022] In the above scheme, the device also includes a seventh determination module, which is used to display a first interactive object in the first sub-scene; in response to an interaction instruction for the virtual object, control the virtual object to interact with the first interactive object; when the virtual object completes the interaction with the first interactive object, determine that the scene switching condition for the first sub-scene is met.

[0023] In the above scheme, the device also includes an eighth determination module, which is used to control the virtual object to move in the first sub-scene of the virtual scene in response to a movement instruction for the virtual object; when the virtual object moves to a specific area in the first sub-scene, it is determined that the scene switching condition for the first sub-scene is met; wherein the specific area includes a specific element, and the specific element is used to identify the position of the specific area in the first sub-scene.

[0024] In the above scheme, the replacement module is also used to respond to the scene switching condition for the first sub-scene being met, adopt a first target special effect, and gradually replace multiple first scene elements with second scene elements according to a first target rule.

[0025] In the above scheme, the replacement module is also used to display an aperture with the target position in the virtual scene as the center and the first target length as the radius in response to the scene switching condition for the first sub-scene being met, and display the process of the radius of the aperture gradually shrinking until the aperture becomes a light spot located at the target position, and then cancel the display of the light spot; use the last aperture before the aperture becomes the light spot as the target aperture, and the outside of the target aperture includes multiple first scene elements; during the shrinking process of the target aperture, replace the multiple first scene elements included outside the target aperture with the second scene elements.

[0026] In the above scheme, the replacement module is also used to display a process in which multiple special effect elements appear from the first end of the virtual scene, move to the second end of the virtual scene, and disappear from the second end in response to the scene switching condition for the first sub-scene being met; wherein, among the multiple special effect elements, at least two special effect elements have different appearance times or different movement speeds; the special effect element closest to the first end is taken as the target special effect element; during the movement of the target special effect element, the first scene element between the target special effect element and the first end is replaced by the second scene element.

[0027] In the above scheme, the replacement module is also used to replace multiple first scene elements with second scene elements at a first rate in response to the scene switching condition for the first sub-scene being met; in the process of replacing the first scene elements with the second scene elements, in response to the control instruction for the virtual object, control the virtual object to perform a first interaction task; if the virtual object completes the first interaction task, replace multiple first scene elements with second scene elements at a second rate; wherein the second rate is greater than the first rate.

[0028] In the above scheme, the device also includes a first restoration module, which is used to restore the replaced second scene elements to the corresponding first scene elements if the process of switching the first sub-scene to the second sub-scene is interrupted; when the first scene element is restored, the first sub-scene of the virtual scene and the cooling countdown are displayed; wherein the cooling countdown is used to indicate the remaining time for switching the first sub-scene again.

[0029] In the above scheme, the device also includes a second restoration module, and the second restoration module is used to use a second target special effect to gradually restore the second scene elements to the corresponding first scene elements according to the second target rule if the process of switching from the first subscene to the second subscene is interrupted.

[0030] In the above scheme, the device also includes a second restoration module, and the second restoration module is also used to display an aperture with the target position in the virtual scene as the center and the second target length as the radius if the process of switching from the first subscene to the second subscene is interrupted, and display the process of the radius of the aperture gradually increasing until the aperture disappears; take the last aperture before the aperture disappears as the target aperture, and the second scene element exists inside the target aperture; during the increase of the target aperture, restore the second scene element inside the target aperture to the first scene element.

[0031] In the above scheme, the device also includes a third restoration module, and the third restoration module is used to restore the replaced second scene element to the corresponding first scene element if the process of switching from the first sub-scene to the second sub-scene is interrupted; in the process of restoring the second scene element to the corresponding first scene element, a target output method is used to output a prompt information for prompting that the first scene element is being restored; wherein the target output method includes at least one of the following: audio output method, vibration output method.

[0032] In the above scheme, the device also includes a third display module, which is used to display first scene prompt information, and the first scene prompt information is used to indicate that the virtual object is currently in a first sub-scene, and different scene prompt information corresponds to different sub-scenes; the device also includes an information switching module, and the information switching module is used to switch the first scene prompt information to second scene prompt information, and the second scene prompt information is used to indicate that the virtual object is currently in a second sub-scene.

[0033] In the above scheme, the device also includes a control module, which is used to control the virtual object to perform a second interactive task in the virtual scene in response to a control instruction for the virtual object during the process of replacing the first scene element with the second scene element.

[0034] In the above scheme, the device also includes a fourth display module, and the fourth display module is used to display a second interactive object in the first sub-scene; display the second interactive object in the second sub-scene; and control the virtual object to interact with the second interactive object in response to an interaction instruction for the virtual object; wherein the target attribute value of the virtual object in the second sub-scene is greater than the target attribute value of the virtual object in the first sub-scene, and the target attribute value of the second interactive object in the second sub-scene is the same as the target attribute value of the second interactive object in the first sub-scene.

[0035] In the above scheme, the first scene element at least includes a first virtual natural element belonging to a virtual natural phenomenon, and the second scene element at least includes a second virtual natural element belonging to a virtual natural phenomenon; the device also includes a fifth display module, and the fifth display module is used to display the first virtual natural element in the first sub-scene, and the first virtual natural element is used to have a negative impact on the environment where the first virtual natural element is located; when the virtual object is in the negative impact area of ​​the first virtual natural element, the negative impact value caused by the first virtual natural element on the attribute value of the virtual object is displayed; the replacement module is also used to replace the first virtual natural element with the second virtual natural element in response to the scene switching condition for the first sub-scene being met; wherein the second virtual natural element is used to have a positive impact on the environment where the second virtual natural element is located; the fourth display module is also used to display the positive impact value caused by the second virtual natural element on the attribute value of the virtual object when the virtual object is in the positive impact area of ​​the second virtual natural element.

[0036] An embodiment of the present application provides an electronic device, including:

[0037] A memory for storing executable instructions;

[0038] The processor is used to implement the virtual scene switching method provided in the embodiment of the present application when executing the executable instructions stored in the memory.

[0039] An embodiment of the present application provides a computer-readable storage medium storing executable instructions for causing a processor to execute instructions to implement a virtual scene switching method provided in an embodiment of the present application.

[0040] The embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of an electronic device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the electronic device executes the virtual scene switching method provided in the embodiment of the present application.

[0041] The embodiments of the present application have the following beneficial effects:

[0042] In the first sub-scene of the virtual scene, after the virtual object is displayed, when the scene switching condition for the first sub-scene is met, the multiple first scene elements included in the first sub-scene except the virtual object are replaced with the second scene elements, and the first sub-scene is controlled to switch to the second sub-scene of the virtual scene, so that the virtual object is displayed in the second sub-scene. In this way, compared with the solution of only switching the day and night of the game scene in the related art, the present application replaces the multiple first scene elements included in the first sub-scene except the virtual object with the second scene elements, thereby switching the first sub-scene to the second sub-scene, which not only enriches the scene elements switched in the virtual scene, improves the diversity of the switching process of the virtual scene, but also improves the resource utilization rate in the virtual scene, the human-computer interaction efficiency and the hardware resource utilization rate of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 1 is a schematic diagram of the architecture of a virtual scene switching system 100 provided in an embodiment of the present application;

[0044] Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0045] Figure 3 It is a flowchart of a method for switching virtual scenes provided in an embodiment of the present application;

[0046] Figure 4 is a schematic diagram of a first display area and a second display area provided in an embodiment of the present application;

[0047] Figure 5 is a schematic diagram of a drive control and a skill control provided in an embodiment of the present application;

[0048] Figure 6 is a schematic diagram of a drive control and a direction control provided in an embodiment of the present application;

[0049] Figure 7 is a schematic diagram of a drive control and an interactive control provided in an embodiment of the present application in a target style;

[0050] Figure 8 is a schematic diagram of a flipping operation provided in an embodiment of the present application;

[0051] Fig. 9 is a schematic diagram of a flip-back operation provided in an embodiment of the present application;

[0052] Fig.10 is a schematic diagram of a process of replacing a first scene element with a second scene element provided in an embodiment of the present application;

[0053] Fig.11 is a schematic diagram of scene prompt information provided by an embodiment of the present application;

[0054] Fig.12 is a schematic diagram of a cooling countdown provided in an embodiment of the present application;

[0055] Fig.13 is a schematic diagram of a process of restoring a second scene element to a first scene element provided by an embodiment of the present application;

[0056] Fig.14 It is a flowchart of a method for switching virtual scenes provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0058] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0059] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0060] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0061] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0062] 1) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.

[0063] 2) Virtual scene is a virtual scene displayed (or provided) when the application is running on the terminal. The virtual scene can be a simulation of the real world, a semi-simulation and semi-fictional virtual environment, or a purely fictional virtual environment. The virtual scene can be any of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene.

[0064] For example, the virtual scene may include the sky, land, ocean, etc., and the land may include environmental elements such as deserts and cities. The user may control the virtual object to perform activities in the virtual scene, including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, and throwing. The virtual scene may be displayed from a first-person perspective (for example, the user plays the role of a virtual object in the game from his own perspective); it may also be displayed from a third-person perspective (for example, the user chases the virtual object in the game to play the game); it may also be displayed from a bird's-eye view perspective, and the above perspectives may be switched arbitrarily.

[0065] 3) Virtual objects, images of various people and objects that can interact in a virtual scene, or movable objects in a virtual scene. The movable objects can be virtual characters, virtual animals, cartoon characters, etc., such as people, animals, plants, oil drums, walls, stones, etc. displayed in a virtual scene. The virtual object can be a virtual image in the virtual scene that represents the user. A virtual scene can include multiple virtual objects, each of which has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene.

[0066] For example, the virtual object may be a user character controlled by an operation on the client, an artificial intelligence (AI) set in a virtual scene through training, or a non-player character (NPC) set in a virtual scene interaction. The number of virtual objects participating in the interaction in the virtual scene may be preset or dynamically determined according to the number of clients joining the interaction.

[0067] 4) Interactive objects: objects in a virtual scene that are used for virtual objects to interact with, such as attacking, and may be animals, plants, humanoid objects, monsters, etc.

[0068] 5) Third-person perspective: the in-game camera is positioned a certain distance behind the player character, and the character and all combat elements in the surrounding environment can be seen in the screen.

[0069] 6) Client, also known as the user end, refers to the program corresponding to the server that provides local services to users. Except for some applications that can only run locally, it is generally installed on an ordinary client and needs to cooperate with the server to run. That is, there must be corresponding servers and service programs in the network to provide corresponding services. In this way, specific communication connections need to be established between the client and server to ensure the normal operation of the application, such as the game client.

[0070] 7) Plane, generally refers to the game scene, situation and state of the player in the open world. When the plane is switched, one or more elements of the game scene, situation and state will also change. Among them, plane is a common concept in science fiction or fantasy works. Its basic meaning refers to parallel worlds or realities that exist in different spaces, times, or dimensions. There may be intersections or links between different planes, allowing creatures or objects to transfer from one plane to another. This transfer is called plane switching.

[0071] See also Figure 1 , Figure 1It is a schematic diagram of the architecture of the virtual scene switching system 100 provided in an embodiment of the present application, wherein a virtual scene switching client 401 (i.e., a game APP, a browser APP, etc.) is provided on a terminal (the terminal 400 is shown as an example), and the terminal 400 is connected to the server 200 via a network 300, wherein the network 300 may be a wide area network or a local area network, or a combination of the two, and data transmission is realized using wireless or wired links.

[0072] The server 200 is used to send scene data of a virtual scene including a first sub-scene to the terminal 400;

[0073] Terminal 400 is also used to receive scene data of a virtual scene including a first sub-scene, and present the first sub-scene of the virtual scene based on the scene data; display a virtual object in the first sub-scene of the virtual scene, wherein the first sub-scene includes a plurality of first scene elements other than the virtual object; in response to a scene switching condition for the first sub-scene being met, replace the plurality of first scene elements with second scene elements, and control the first sub-scene to switch to the second sub-scene of the virtual scene; and display the virtual object in the second sub-scene.

[0074] In some embodiments, the server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDN, Content Deliver Network), and big data and artificial intelligence platforms. The terminal 400 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a set-top box, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, an aircraft, a portable music player, a personal digital assistant, a dedicated messaging device, a portable gaming device, an intelligent speaker, and a smart watch, but is not limited thereto. The terminal and the server may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.

[0075] Next, an electronic device that implements the virtual scene switching method provided in the embodiment of the present application is described. Figure 2 , Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may be a server or a terminal. Figure 1 Take the terminal shown in as an example, Figure 2The electronic device shown includes: at least one processor 410, a memory 450, at least one network interface 420 and a user interface 430. The various components in the terminal 400 are coupled together via a bus system 440. It is understood that the bus system 440 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 440 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 440 is not shown in FIG. Figure 2 Various buses are labeled as bus system 440 .

[0076] Processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0077] The user interface 430 includes one or more output devices 431 that enable display of media content, including one or more speakers and / or one or more visual display screens. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0078] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices that are physically remote from the processor 410.

[0079] The memory 450 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.

[0080] In some embodiments, memory 450 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0081] Operating system 451, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0082] A network communication module 452, used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 include: Bluetooth, wireless compatibility certification (WiFi), and Universal Serial Bus (USB), etc.;

[0083] a presentation module 453 for enabling display of information via one or more output devices 431 (e.g., display screen, speaker, etc.) associated with the user interface 430 (e.g., a user interface for operating peripherals and displaying content and information);

[0084] The input processing module 454 is used to detect one or more user inputs or interactions from one of the one or more input devices 432 and translate the detected inputs or interactions.

[0085] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2 The switching device 455 of the virtual scene stored in the memory 450 is shown, which can be software in the form of a program and a plug-in, etc., including the following software modules: a first display module 4551, a replacement module 4552 and a second display module 4553. These modules are logical, so they can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be explained below.

[0086] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the virtual scene switching device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the virtual scene switching method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.

[0087] In some embodiments, the terminal or server can implement the switching method of the virtual scene provided in the embodiment of the present application by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a native application (APP, Application), that is, a program that needs to be installed in the operating system to run, such as an instant messaging APP, a web browser APP; it can also be a small program, that is, a program that can be run only by downloading it to a browser environment; it can also be a small program that can be embedded in any APP. In short, the above-mentioned computer program can be an application, module or plug-in in any form.

[0088] Based on the above description of the virtual scene switching system and electronic device provided in the embodiment of the present application, the virtual scene switching method provided in the embodiment of the present application is described below. In actual implementation, the virtual scene switching method provided in the embodiment of the present application is executed by an electronic device, and the electronic device can be a terminal or a server, that is, the virtual scene switching method provided in the embodiment of the present application is implemented by the terminal or the server alone, or the electronic device can include a terminal and a server, that is, the virtual scene switching method provided in the embodiment of the present application is implemented by the terminal and the server in collaboration, and the electronic device is a terminal, that is, by Figure 1 The terminal 400 in the embodiment of the present invention alone performs the virtual scene switching method provided by the embodiment of the present invention as an example for explanation. Figure 3 , Figure 3 is a flow chart of a method for switching virtual scenes provided in an embodiment of the present application, which will be combined with Figure 3 The steps shown are explained.

[0089] Step 101: The terminal displays a virtual object in a first sub-scene of a virtual scene, where the first sub-scene includes a plurality of first scene elements except the virtual object.

[0090] In actual implementation, an application supporting virtual scenes is installed on the terminal. The application can be any one of a multiplayer online role-playing game, a first-person shooter game, a third-person shooter game, a multiplayer online tactical competitive game, a virtual reality application, a three-dimensional map program, or a multiplayer gunfight survival game. The user can use the terminal to operate virtual objects in the virtual scene to carry out activities.

[0091] When the user opens an application on the terminal and the terminal runs the application, the terminal presents a picture of a virtual scene. Here, the picture of the virtual scene is obtained by observing the virtual scene from a first-person object perspective, or by observing the virtual scene from a third-person perspective. The picture of the virtual scene includes a first virtual object, wherein the virtual object can be a player character controlled by the current player, or a player character controlled by other players (teammates) belonging to the same group as the current player.

[0092] In actual implementation, scene elements are used to construct virtual scenes, for example, they can refer to the environment and weather in the virtual scene, including but not limited to rain, fog, clouds, snow, thunderstorms, etc.; they can also refer to day and night, light intensity, angle, color, etc. in the game scene; they can also refer to surface objects in the game scene such as large landmarks, enterable buildings, puzzle devices, vegetation that blocks the field of vision, etc., landforms such as mountains, rivers, lakes, decorative buildings, etc., and the traffic line design of the scene content used to standardize the traffic line, such as roads, bridges, cliffs, stones, etc.; or they can also refer to non-player controlled characters such as plot NPCs, combat NPCs and functional NPCs, other player-controlled characters, and the status of player-controlled characters such as character dress, accompanying status, character status (such as temperature, humidity, gain, loss), linkage status with other objects (such as watching, alertness), etc.

[0093] It should be noted that the first sub-scene refers to a virtual space in the virtual scene, that is, a plane in the virtual scene, where a plane usually refers to a series of independent parallel spaces with different rules, and each plane has its own unique characteristics, creatures and environment.

[0094] Step 102: In response to a scene switching condition for the first sub-scene being met, a plurality of first scene elements are replaced with second scene elements, and the first sub-scene is controlled to switch to the second sub-scene of the virtual scene.

[0095] Among them, the second scene elements obtained by replacing different first scene elements are different, and the difference between the first scene element and the second scene element means that the contents of the first scene element and the second scene element are different, for example, the first scene element is a rose, and the second scene element is a rhododendron, or the first scene element is a river, and the second scene element is a house, etc.; and multiple first scene elements can be replaced by one second scene element, or can be replaced by multiple second scene elements, which is not limited to this embodiment of the present application.

[0096] At the same time, the first subscene and the second subscene both refer to a virtual space in the virtual scene, that is, a plane in the virtual scene, where a plane usually refers to a series of independent parallel spaces with different rules, and each plane has its own unique characteristics, creatures and environment; the first subscene and the second subscene are independent of each other, that is, the first subscene and the second subscene are different.

[0097] It should be noted that, in response to the scene switching condition for the first sub-scene being met, before replacing multiple first scene elements with second scene elements, it is necessary to determine whether the scene switching condition for the first sub-scene is met; wherein, the determination process of whether the scene switching condition for the first sub-scene is met can be determined by the user's touch operation on the screen of the electronic device, or by the control, or by the duration of the virtual object in the first sub-scene, or by the interaction process of the virtual object in the first sub-scene, or by the user's manipulation behavior of the electronic device corresponding to the virtual scene, etc., and this is not limited in the embodiments of the present application. Next, based on different scene switching conditions, the process of determining whether the scene switching condition for the first sub-scene is met is described.

[0098] In some embodiments, the process of determining whether the scene switching condition for the first sub-scene is met based on the control can be determined by the user's touch operation on the screen of the electronic device. Specifically, the virtual scene is displayed based on the first display area and the second display area of ​​the electronic device, so that in response to the scene switching condition for the first sub-scene being met, before replacing multiple first scene elements with second scene elements, it can also be determined that the scene switching condition for the first sub-scene is met in response to the trigger operation performed on the first display area and the second display area together.

[0099] It should be noted that the content displayed in the first display area and the content displayed in the second display area constitute a virtual scene. For example, the first display area may be the left area of ​​the electronic device, and the second display area may be the right area of ​​the electronic device, etc. This is not limited in the embodiments of the present application; for example, see Figure 4 , Figure 4 is a schematic diagram of a first display area and a second display area provided in an embodiment of the present application, based on Figure 4 , the dotted line frame 401 indicates the first display area, and the dotted line frame 402 indicates the second display area.

[0100] It should be noted that, the trigger operation performed on the first display area and the second display area together, such as a pressing operation or a sliding operation, refers to a trigger time difference between the trigger operation on the first display area and the trigger operation on the second display area that is less than or equal to a preset duration threshold, such as 1 second. Specifically, when a trigger operation such as a pressing operation or a sliding operation in the first display area and a trigger operation such as a pressing operation or a sliding operation in the second display area are respectively received, a first moment of performing the trigger operation in the first display area and a second moment of performing the trigger operation in the second display area are obtained; when the time difference between the first moment and the second moment is less than or equal to the preset duration threshold, it is determined that the trigger operation performed on the first display area and the second display area together is received;

[0101] Among them, when the trigger operation is a pressing operation, if the pressing duration of each pressing operation reaches the target pressing duration, or when the pressing pressure of each pressing operation reaches the target pressure, it is determined that the pressing operation for the first display area and the second display area is received; when the trigger operation is a sliding operation, if the sliding distance of each sliding operation reaches the target distance, or the sliding trajectory of each sliding operation matches the target sliding trajectory, it is determined that the sliding operation for the first display area and the second display area is received.

[0102] In actual implementation, the first display area includes a driving control, and the second display area includes an interactive control, so that the trigger operation performed on the first display area and the second display area together may be a trigger operation performed on the driving control in the first display area and the interactive control in the second display area together; specifically, the driving control is displayed in the first display area, and the interactive control is displayed in the second display area; wherein the driving control is used to control the movement of the virtual object, and the interactive control includes one of a direction control and a skill control; the direction control is used to control the viewing direction of the virtual object, and the skill control is used to control the virtual object to interact with other virtual objects, and the other virtual objects are virtual objects other than virtual objects in the virtual scene; thus, in response to the trigger operation performed on the first display area and the second display area together, the process of determining that the scene switching condition for the first sub-scene is satisfied may be, in response to the trigger operation performed on the driving control in the first display area and the interactive control in the second display area together, determining that the scene switching condition for the first sub-scene is satisfied.

[0103] It should be noted that the driving control is used to control the movement of the virtual object in various directions in the virtual scene, and the direction control is used to control the viewing direction of the virtual object. For example, when the virtual object moves forward in the virtual scene, the direction control can be used to change the field of view of the virtual object, such as looking backward; and the skill control is used to control the virtual object to interact with other virtual objects, such as releasing skills, attacking, or shooting.

[0104] Among them, other virtual objects are virtual objects other than virtual objects in the virtual scene, for example, they can be NPCs or interactive objects such as monsters in the virtual scene, or they can be player characters controlled by other players (teammates) who belong to the same group or different groups as the current player. This embodiment of the application does not limit this.

[0105] It should be noted that the process of determining that the scene switching condition for the first sub-scene is satisfied in response to a trigger operation performed together with the drive control in the first display area and the interactive control in the second display area is similar to the process of determining that the scene switching condition for the first sub-scene is satisfied in response to a trigger operation performed together with the drive control and the interactive control to be described below. Therefore, the process of determining that the scene switching condition for the first sub-scene is satisfied in response to a trigger operation performed together with the drive control in the first display area and the interactive control in the second display area will be described in detail below and will not be repeated here.

[0106] In some embodiments, the process of determining whether the scene switching condition for the first sub-scene is met based on the control can be determined by the control. Specifically, in response to the scene switching condition for the first sub-scene being met, before replacing multiple first scene elements with second scene elements, a driving control and an interactive control can be displayed; wherein the driving control is used to control the movement of the virtual object, and the interactive control includes one of a direction control and a skill control; the direction control is used to control the viewing direction of the virtual object, and the skill control is used to control the virtual object to interact with other virtual objects, and the other virtual objects are virtual objects other than the virtual objects in the virtual scene; in response to the trigger operation performed on the driving control and the interactive control together, it is determined that the scene switching condition for the first sub-scene is met.

[0107] It should be noted that the driving control is used to control the movement of the virtual object in various directions in the virtual scene, and the direction control is used to control the viewing direction of the virtual object. For example, when the virtual object moves forward in the virtual scene, the direction control can be used to change the field of view of the virtual object, such as looking backward; and the skill control is used to control the virtual object to interact with other virtual objects, such as releasing skills, attacking, or shooting.

[0108] Among them, other virtual objects are virtual objects other than virtual objects in the virtual scene, for example, they can be NPCs or interactive objects such as monsters in the virtual scene, or they can be player characters controlled by other players (teammates) who belong to the same group or different groups as the current player. This embodiment of the application does not limit this.

[0109] At the same time, as mentioned above, the driving controls in the first display area and the interactive controls in the second display area are located in two different areas, and the positions of the displayed driving controls and interactive controls are not limited in the embodiment of the present application, that is, the driving controls and interactive controls displayed in the embodiment of the present application can be located in different display areas or in the same display area, which is not limited here.

[0110] It should be noted that the trigger operation performed on the drive control and the interactive control together means that the trigger time difference between the trigger operation for the drive control and the trigger operation for the interactive control is less than or equal to a preset duration threshold, such as 1 second. Specifically, when the trigger operation for the drive control and the trigger operation for the interactive control are respectively received, the trigger moment of the drive control and the trigger moment of the interactive control are obtained; when the time difference between the trigger moment of the drive control and the trigger moment of the interactive control is less than or equal to the preset duration threshold, it is determined that the trigger operation performed on the drive control and the interactive control together is received.

[0111] In actual implementation, the interactive control includes one of a direction control and a skill control. For different interactive controls, there are differences in the process of determining that the scene switching condition for the first sub-scene is satisfied in response to a trigger operation performed on the drive control and the interactive control together. Next, based on different interactive controls, the process of determining that the scene switching condition for the first sub-scene is satisfied in response to a trigger operation performed on the drive control and the interactive control together is explained.

[0112] When the interactive control is a skill control, the drive control is in a draggable state, and the skill control is in a non-draggable state. Thus, in response to a trigger operation performed on the drive control and the interactive control together, the process of determining whether the scene switching condition for the first sub-scene is satisfied may be, in response to a trigger operation performed on the drive control and the skill control together, controlling the skill control to switch from a non-draggable state to a draggable state; when both the drive control and the skill control are in a draggable state, displaying a first draggable area of ​​the drive control and a second draggable area of ​​the skill control respectively; and in response to a drag operation performed on the drive control in the first draggable area and the skill control in the second draggable area together, determining whether the scene switching condition for the first sub-scene is satisfied. For example, see Figure 5 , Figure 5is a schematic diagram of a drive control and a skill control provided in an embodiment of the present application, based on Figure 5 , 501 indicates a driving control, and 502 indicates a skill control.

[0113] It should be noted that the trigger operation performed on the drive control and the skill control together can be a pressing operation or a clicking operation such as a single-click operation or a double-click operation. When the trigger operation performed on the drive control and the skill control together is received, the skill control is controlled to switch from a non-draggable state to a draggable state, so that when both the drive control and the skill control are in the draggable state, in response to the dragging operation performed on the drive control in the first draggable area and the skill control in the second draggable area, it is determined that the scene switching condition for the first sub-scene is met, that is, when the drive control and the skill control are in the draggable state, the first draggable area of ​​the drive control and the second draggable area of ​​the skill control are displayed respectively; in response to the dragging operation of the drive control in the first draggable area and the dragging operation of the skill control in the second draggable area, it is determined that the scene switching condition for the first sub-scene is met.

[0114] Among them, the process of determining that a drag operation is received that is performed on the drive control in the first draggable area and the skill control in the second draggable area is similar to the process of determining that a trigger operation is received that is performed on the drive control and the interactive control as described above, that is, the drag operation performed on the drive control in the first draggable area and the skill control in the second draggable area means that the trigger time difference between the trigger operation on the drive control in the first draggable area and the trigger operation on the skill control in the second draggable area is less than or equal to a preset duration threshold, such as 1 second. Specifically, when a drag operation on the drive control in the first draggable area and a drag operation on the skill control in the second draggable area are received respectively, the dragged moment of the drive control and the dragged moment of the skill control are obtained; when the time difference between the dragged moment of the drive control and the dragged moment of the skill control is less than or equal to the preset duration threshold, it is determined that the drag operation on the drive control in the first draggable area and the skill control in the second draggable area is received;

[0115] The first draggable area can be a circular area or a sector-shaped area with the driving control as the center, or a rectangular area with the driving control as the center, etc. Similarly, the second draggable area can be a circular area or a sector-shaped area with the skill control as the center, or a rectangular area with the skill control as the center, etc. The embodiments of the present application do not limit this.

[0116] It should be noted that, in response to the dragging operation performed on the drive control in the first draggable area and the skill control in the second draggable area, the process of determining that the scene switching condition for the first sub-scene is satisfied, when the value of the first drag parameter of the drive control reaches a preset first target value, and the value of the third drag parameter of the skill control reaches a preset third target value, it is determined that the scene switching condition for the first sub-scene is satisfied.

[0117] Among them, the first drag parameter can be a drag distance, etc. When a drag operation for a driving control is received, the drag distance of the drag operation is obtained, and then the drag distance is compared with a pre-set first target value to determine whether the drag distance reaches the first target value; accordingly, the third drag parameter can also be a drag distance. When a drag operation for a skill control is received, the drag distance of the drag operation is obtained, and then the drag distance is compared with a pre-set third target value to determine whether the drag distance reaches the third target value; here, the first target value and the third target value can be the same or different, and this is not limited to the embodiments of the present application.

[0118] When the interactive control is a directional control, both the driving control and the directional control are in a draggable state, and the trigger operation performed together is a drag operation; thus, in response to the trigger operation performed together on the driving control and the interactive control, the process of determining that the scene switching condition for the first sub-scene is satisfied may be, in response to the drag operation performed together on the driving control and the directional control, respectively displaying the process of dragging the driving control and the process of dragging the directional control; in the process of the driving control and the directional control being dragged, when the value of the first drag parameter of the driving control reaches the first target value, and the value of the second drag parameter of the directional control reaches the second target value, it is determined that the scene switching condition for the first sub-scene is satisfied.

[0119] It should be noted that, in response to the dragging operation performed on the driving control and the direction control together, the process of dragging the driving control and the process of dragging the direction control are displayed respectively, that is, in response to the dragging operation performed on the driving control and the direction control together, the process of dragging the driving control is displayed in the first draggable area of ​​the driving control, and the process of dragging the direction control is displayed in the third draggable area of ​​the direction control;

[0120] Among them, the first draggable area can be a circular area or a sector-shaped area with the driving control as the center, or a rectangular area with the driving control as the center, etc. Similarly, the third draggable area can be a circular area or a sector-shaped area with the direction control as the center, or a rectangular area with the direction control as the center, etc., and the embodiments of the present application do not limit this; the dragging operation of the driving control and the dragging operation of the direction control can be executed successively or together, and the embodiments of the present application do not limit this; when they are executed successively, the operation time difference between the dragging operation of the driving control and the dragging operation of the direction control also needs to be less than or equal to a preset time difference threshold, for example, 3 seconds, and when they are executed together, the process of determining whether the dragging operation of the driving control and the dragging operation of the direction control are executed together is similar to the process of determining the trigger operation executed together for the driving control and the interactive control as described above, and the embodiments of the present application do not elaborate on this.

[0121] For example, see Figure 6 , Figure 6 is a schematic diagram of a drive control and a direction control provided in an embodiment of the present application, based on Figure 6 , the driving control indicated by 601 is being dragged, the direction control indicated by 602 is being dragged, the dotted area indicated by 603 is the first draggable area, and the dotted area indicated by 604 is the third draggable area.

[0122] It should be noted that, as mentioned above, the first drag parameter may be a drag distance, etc. When a drag operation for a driving control is received, the drag distance of the drag operation is obtained, and then the drag distance is compared with a pre-set first target value to determine whether the drag distance reaches the first target value; accordingly, the second drag parameter may also be a drag distance. When a drag operation for a direction control is received, the drag distance of the drag operation is obtained, and then the drag distance is compared with a pre-set second target value to determine whether the drag distance reaches the second target value; here, the first target value and the second target value may be the same or different, and this is not limited to the embodiments of the present application.

[0123] In actual implementation, in response to a trigger operation performed on both the driving control and the interactive control, the display style of the driving control and the interactive control can also be switched from a default style to a target style; wherein the target style is used to indicate that the first sub-scene is in a state of being switched.

[0124] It should be noted that the target style can be pre-set, for example, it can be a luminous style. At the same time, when the driving controls and the interactive controls are in the target style, it means that the first sub-scene is in a state of being switched, that is, it is switching from the current sub-scene to another sub-scene, such as switching from the first sub-scene to the second sub-scene.

[0125] For example, see Figure 7 , Figure 7 is a schematic diagram of the drive control and the interactive control provided in the embodiment of the present application in the target style, based on Figure 7 , when the interactive control is a direction control, Figure 7 In a, 701 indicates a default style driving control, and 702 indicates a default style direction control. When a trigger operation is received for both the driving control and the interactive control, the display styles of the driving control and the interactive control are switched from the default style to the target style. Figure 7 As shown in b, Figure 7 In b, 703 indicates a driving control of the target style, and 704 indicates a direction control of the target style.

[0126] In some embodiments, the process of determining whether the scene switching condition for the first sub-scene is met can be determined by the user's manipulation behavior of the electronic device corresponding to the virtual scene. Specifically, in response to the scene switching condition for the first sub-scene being met, before replacing multiple first scene elements with second scene elements, a flip operation or a shaking operation performed on the electronic device can be received; in response to the flip angle of the flip operation reaching the target flip angle, or the shaking amplitude of the shaking operation reaching the target shaking amplitude, it is determined that the scene switching condition for the first sub-scene is met.

[0127] It should be noted that the electronic device corresponding to the virtual scene refers to the electronic device on which the application program supporting the virtual scene runs, that is, the electronic device used to control the virtual object in the virtual scene.

[0128] When a flipping operation performed on the electronic device is received, a flipping angle of the flipping operation may also be displayed; when the flipping angle reaches a target flipping angle, it is determined that a scene switching condition for the first sub-scene is satisfied.

[0129] It should be noted that the flipping operation here may refer to flipping the electronic device corresponding to the virtual scene from left to right, or from right to left, or from top to bottom, or from bottom to top, and the embodiments of the present application do not limit this; when a flipping operation performed on the electronic device corresponding to the virtual scene is received, the flip angle of the flipping operation and the pre-set target flip angle are obtained, so that when the flip angle reaches the target flip angle, it is determined that the scene switching condition for the first sub-scene is met; wherein, the target flip angle is pre-set, for example, it may be 90 degrees, etc., and the embodiments of the present application do not limit this.

[0130] For example, see Figure 8 , Figure 8 is a schematic diagram of the flip operation provided in the embodiment of the present application, based on Figure 8 , 801 indicates the terminal corresponding to the virtual scene, and the terminal is flipped x degrees according to the direction indicated by 802.

[0131] When a shaking operation is received for the electronic device, the shaking amplitude of the shaking operation may be displayed; when the shaking amplitude reaches the target shaking amplitude, it is determined that the scene switching condition for the first sub-scene is satisfied.

[0132] It should be noted that the shaking operation here may refer to shaking the electronic device corresponding to the virtual scene left and right, up and down, or back and forth, and the embodiments of the present application do not limit this; when a shaking operation performed on the electronic device corresponding to the virtual scene is received, the shaking amplitude of the shaking operation and the pre-set target shaking amplitude are obtained, so that when the shaking amplitude reaches the target shaking amplitude, it is determined that the scene switching condition for the first sub-scene is met; wherein, the target shaking amplitude is pre-set, and the embodiments of the present application do not limit this.

[0133] When a user shakes the electronic device, the gravity sensor is used to calculate the tilt angle of the electronic device relative to the horizontal plane to determine the movement mode of the electronic device. Then, based on the movement mode of the electronic device and the change in the tilt angle relative to the horizontal plane, the shaking amplitude of the electronic device is determined.

[0134] In actual implementation, it is also possible to determine whether the scene switching condition for the first sub-scene is met based on the flip operation and the flip-back operation. Specifically, in response to the scene switching condition for the first sub-scene being met, before replacing multiple first scene elements with second scene elements, it is also possible to receive a flip operation and a flip-back operation performed sequentially on the electronic device; in response to the flip angle of the flip operation reaching the target flip angle, and the flip-back angle reaching the target flip-back angle, it is determined that the scene switching condition for the first sub-scene is met.

[0135] It should be noted that the flip-back operation is used to switch the electronic device corresponding to the virtual scene from the state where the flip operation is performed back to the state where the flip operation is not performed; for example, when the flip operation refers to flipping the electronic device corresponding to the virtual scene from left to right, the flip-back operation may refer to flipping the electronic device corresponding to the virtual scene from right to left again, and when the flip operation refers to flipping the electronic device corresponding to the virtual scene from top to bottom, the flip-back operation may refer to flipping the electronic device corresponding to the virtual scene from bottom to top again;

[0136] When a flip operation is received by an electronic device corresponding to the virtual scene, the flip angle of the flip operation is obtained, and then when a flip resetting operation is received by the electronic device corresponding to the virtual scene, the flip resetting angle of the flip resetting operation is obtained, and then a pre-set target flip angle and a pre-set target flip resetting angle are obtained, so that when the flip angle reaches the target flip angle and the flip resetting angle reaches the target flip resetting angle, it is determined that the scene switching condition for the first sub-scene is met; wherein, the target flip angle and the target flip resetting angle are both pre-set, for example, can be 90 degrees, etc., and this is not limited in the embodiments of the present application.

[0137] Among them, the target flip angle and the target flip reset angle can be the same or different. When the target flip angle and the target flip reset angle are different, the angle difference between the target flip angle and the target flip reset angle needs to be less than the angle difference threshold, such as 5 degrees.

[0138] For example, see Fig. 9 , Fig. 9 is a schematic diagram of the flip back operation provided in the embodiment of the present application, based on Fig. 9 , 901 indicates the terminal corresponding to the virtual scene. For the terminal after the flip operation is performed, the terminal flips y degrees according to the direction indicated by 902, that is, the terminal switches from the state where the flip operation is performed to the state where the flip operation is not performed.

[0139] It should be noted that the flip operation and flip-back operation sequentially performed on the electronic device corresponding to the virtual scene means that the flip operation is performed first and then the flip-back operation is performed; and when the flip operation and flip-back operation sequentially performed on the electronic device are received, it is also possible to display the flip angle of the flip operation in response to the flip operation performed on the electronic device corresponding to the virtual scene; and display the flip-back angle of the flip-back operation in response to the flip-back operation on the electronic device; thus, when the flip angle reaches the target flip angle and the flip-back angle reaches the target flip-back angle, it is determined that the scene switching condition for the first sub-scene is met. Whether to display the flip angle of the flip operation or whether to display the flip-back angle of the flip-back operation is not limited in the embodiments of the present application.

[0140] In actual implementation, after executing the flip operation and the flip-back operation, in addition to determining whether the scene switching condition for the first sub-scene is met based on the target flip angle and the target flip-back angle, it is also possible to determine whether the scene switching condition for the first sub-scene is met based on the time difference between executing the flip operation and executing the flip-back operation. Specifically, in response to the scene switching condition for the first sub-scene being met, before replacing multiple first scene elements with second scene elements, it is also possible to receive a flip operation and a flip-back operation sequentially performed on the electronic device; if the flip duration corresponding to the flip operation and the flip-back operation is not greater than the target flip duration, it is determined that the scene switching condition for the first sub-scene is met; wherein the flip duration is the duration between executing the flip operation and executing the flip-back operation.

[0141] It should be noted that the flip operation and flip-back operation sequentially performed by the electronic device corresponding to the virtual scene means that the flip operation is performed first and then the flip-back operation is performed. When the flip operation and flip-back operation sequentially performed by the electronic device corresponding to the virtual scene are received, the execution time of the flip operation and the execution time of the flip-back operation are obtained, and the execution time of the flip operation and the execution time of the flip-back operation are subtracted to obtain the flip duration. If the flip duration is not greater than the target flip duration, it is determined that the scene switching condition for the first sub-scene is met.

[0142] Among them, when the flip operation and the flip resetting operation are sequentially performed by the electronic device corresponding to the virtual scene, the flip duration can also be displayed. Specifically, the flip duration is displayed in response to the flip operation and the flip resetting operation are sequentially performed by the electronic device corresponding to the virtual scene; wherein, the flip duration can be displayed at any position of the virtual scene, and this embodiment of the present application is not limited to this.

[0143] In actual implementation, the flip angle, flip-back angle and flip duration can also be combined to determine whether the scene switching condition for the first sub-scene is met. Specifically, in response to the scene switching condition for the first sub-scene being met, before replacing multiple first scene elements with second scene elements, it can also be determined that the scene switching condition for the first sub-scene is met in response to the flip angle of the flip operation performed on the electronic device corresponding to the virtual scene reaching the target flip angle, the flip-back angle of the flip-back operation performed on the electronic device reaching the target flip-back angle, the flip operations sequentially performed on the electronic device and the flip duration corresponding to the flip-back operation are not greater than the target flip duration.

[0144] Among them, the flip angle of the flip operation, the flip and reset angle of the flip and reset operation and the corresponding flip duration can also be displayed. Specifically, in response to the scene switching condition for the first sub-scene being met, before replacing multiple first scene elements with the second scene elements, it is also possible to, in response to the flip operation performed on the electronic device corresponding to the virtual scene, display the flip angle of the flip operation; in response to the flip and reset operation on the electronic device, display the flip and reset angle of the flip and reset operation; in response to the flip operation and the flip and reset operation sequentially performed by the electronic device corresponding to the virtual scene, display the flip duration; when the flip angle reaches the target flip angle, and the flip and reset angle reaches the target flip and reset angle, if the flip duration is not greater than the target flip duration, it is determined that the scene switching condition for the first sub-scene is met.

[0145] In some embodiments, the process of determining whether the scene switching condition for the first subscene is met can be determined by the duration of the virtual object in the first subscene. Specifically, in response to the scene switching condition for the first subscene being met, before replacing multiple first scene elements with second scene elements, it can also be determined that the scene switching condition for the first subscene is met in response to the display duration of the virtual object reaching the target display duration; wherein the display duration is the duration that the virtual object is in the first subscene.

[0146] It should be noted that, in response to the scene switching condition for the first sub-scene being met, before replacing the plurality of first scene elements with the second scene elements, the duration for which the virtual object is located in the first sub-scene is obtained in real time, and when the duration for which the virtual object is located in the first sub-scene, that is, the display duration of the virtual object reaches the target display duration, it is determined that the scene switching condition for the first sub-scene is met;

[0147] Among them, the display duration can also be displayed. Specifically, in response to the scene switching condition for the first sub-scene being met, before replacing multiple first scene elements with second scene elements, the display duration of the virtual object can also be displayed, and the display duration is the length of time the virtual object is in the first sub-scene; when the display duration reaches the target display duration, it is determined that the scene switching condition for the first sub-scene is met.

[0148] It should be noted that the display duration can be displayed at any position in the virtual scene, and the embodiments of the present application do not limit this. At the same time, the target display duration can also be pre-set, and the embodiments of the present application do not limit this.

[0149] In some embodiments, the process of determining whether the scene switching condition for the first sub-scene is met can be determined by the interaction process of the virtual object in the first sub-scene. Specifically, in response to the scene switching condition for the first sub-scene being met, before replacing multiple first scene elements with second scene elements, it is also possible to display the first interactable object in the first sub-scene; in response to the interaction instruction for the virtual object, control the virtual object to interact with the first interactable object; when the virtual object completes the interaction with the first interactable object, it is determined that the scene switching condition for the first sub-scene is met.

[0150] It should be noted that the first interactive object may be a prop in the virtual scene, or a monster in the virtual scene for the virtual object to interact with, or other virtual objects in the virtual scene other than the virtual object, such as an NPC in the virtual scene, other virtual objects in the same camp as the virtual object, or other virtual objects in an opposing camp to the virtual object, etc.;

[0151] As for the process of controlling the virtual object to interact with the first interactive object, when the first interactive object is a prop, controlling the virtual object to interact with the first interactive object may refer to controlling the virtual object to pick up the prop, or to open the prop, etc. When the first interactive object is a monster in the virtual scene for the virtual object to interact with, controlling the virtual object to interact with the first interactive object may refer to controlling the virtual object to attack the monster, and when the first interactive object is a virtual object other than the virtual object in the virtual scene, such as an NPC in the virtual scene, controlling the virtual object to interact with the first interactive object may refer to controlling the virtual object to communicate or talk with other virtual objects to promote the interaction process in the virtual scene, etc.;

[0152] Based on this, based on the difference in the first interactive object, the process of determining whether the virtual object has completed the interaction with the first interactive object is also different. For example, when the first interactive object is a prop, if the virtual object is controlled to pick up and equip the prop, it is determined that the virtual object has completed the interaction with the first interactive object, or the prop is turned on so that the corresponding prop is in an on state, then it is determined that the virtual object has completed the interaction with the first interactive object; when the first interactive object is a monster in the virtual scene for the virtual object to interact with, if the virtual object defeats the monster, such as making the monster's health value less than the target health value, then it is determined that the virtual object has completed the interaction with the first interactive object; when the first interactive object is other virtual objects in the virtual scene except the virtual object, such as an NPC in the virtual scene, if the virtual object communicates with other virtual objects so that the interaction process in the virtual scene enters the next process, it is determined that the virtual object has completed the interaction with the first interactive object. This embodiment of the application is not limited to this.

[0153] In some embodiments, the process of determining whether the scene switching condition for the first subscene is met can be determined by the position of the virtual object. Specifically, in response to the scene switching condition for the first subscene being met, before replacing multiple first scene elements with second scene elements, it is also possible to control the virtual object to move in the first subscene of the virtual scene in response to a movement instruction for the virtual object; when the virtual object moves to a specific area in the first subscene, it is determined that the scene switching condition for the first subscene is met; wherein the specific area includes specific elements, and the specific elements are used to identify the position of the specific area in the first subscene.

[0154] It should be noted that the specific element may be a virtual natural element belonging to a natural phenomenon, such as a tornado, hail, etc., or a special effect element, such as a luminous element, etc. When the specific element is displayed in the first sub-scene, the specific element is used to guide the virtual object to move to a specific area; wherein the area size of the specific area is pre-set and may be related to the specific element. For example, when the specific element is a virtual natural element belonging to a natural phenomenon, the specific area may be the range affected by the specific element, such as the area where hail falls. When the specific element is a special effect element, such as a luminous element, the specific area may be a circular area with the specific element as the center and the target distance as the radius. The embodiments of the present application are not limited to this.

[0155] Based on this, when it is determined through the above process that the scene switching condition for the first sub-scene is met, in response to the scene switching condition for the first sub-scene being met, multiple first scene elements are replaced with second scene elements; wherein, in response to the scene switching condition for the first sub-scene being met, the process of replacing multiple first scene elements with second scene elements may be replacing multiple first scene elements with second scene elements, or may be replacing multiple first scene elements with second scene elements together, and the embodiments of the present application are not limited to this.

[0156] In actual implementation, there are multiple processes for replacing multiple first scene elements with second scene elements in response to the scene switching conditions for the first sub-scene being met. Next, different processes for replacing multiple first scene elements with second scene elements in response to the scene switching conditions for the first sub-scene being met are described respectively.

[0157] In some embodiments, in response to the scene switching condition for the first sub-scene being met, the process of replacing multiple first scene elements with second scene elements may be, in response to the scene switching condition for the first sub-scene being met, using the first target special effect to gradually replace the multiple first scene elements with the second scene elements according to the first target rule.

[0158] Among them, the first target special effect can be pre-set, for example, it can be an aperture, a light spot, etc., and the first target rule can also be pre-set, for example, it can be from inside to outside, or from left to right, etc., and this embodiment of the application does not limit this.

[0159] In actual implementation, in response to the scene switching condition for the first sub-scene being met, the first target special effect is used to gradually replace the multiple first scene elements with the second scene elements according to the first target rule. The process may be that in response to the scene switching condition for the first sub-scene being met, an aperture is displayed with the target position in the virtual scene as the center and the first target length as the radius, and the radius of the displayed aperture is gradually reduced until the aperture becomes a light spot located at the target position, and the display of the light spot is cancelled; the last aperture before the aperture becomes the light spot is used as the target aperture, and the outside of the target aperture includes the multiple first scene elements; in the process of reducing the target aperture, the multiple first scene elements included outside the target aperture are replaced with the second scene elements;

[0160] It should be noted that the first target length may be preset, and when the aperture becomes a light spot located at the target position, that is, the radius of the aperture is reduced to 0; and the target aperture includes multiple first scene elements outside, which means that when the target aperture is initially displayed, that is, before the radius of the target aperture is gradually reduced, the target aperture does not include the second scene element outside, but only includes the first scene element, and then, in the process of the radius of the target aperture being gradually reduced, the multiple first scene elements included outside the target aperture are replaced by the second scene elements;

[0161] The process of replacing the plurality of first scene elements included outside the target aperture with the second scene elements may be to replace the plurality of first scene elements included outside with the second scene elements from far to near with the target aperture as the center, or may be to replace the plurality of first scene elements included outside with the second scene elements from near to far, which is not limited in this embodiment of the present application;

[0162] Alternatively, it is not limited to that the target aperture includes multiple first scene elements outside, and that during the reduction process of the target aperture, the multiple first scene elements included outside the target aperture are replaced with second scene elements, but that the target aperture includes multiple first scene elements inside and outside, so that during the reduction process of the target aperture, the multiple first scene elements are replaced with second scene elements; or, instead of taking the last aperture before the aperture becomes a light spot as the target aperture, the first aperture is taken as the target aperture, which is not limited in this embodiment of the present application;

[0163] In actual implementation, when the target aperture becomes the target light spot located at the target position and the target light spot is no longer displayed, it is determined that the first scene element is completely replaced, that is, the first sub-scene is controlled to switch to the second sub-scene of the virtual scene.

[0164] For example, see Fig.10 , Fig.10 is a schematic diagram of a process of replacing a first scene element with a second scene element provided by an embodiment of the present application, based on Fig.10 , Fig.10 The solid circles in the figure represent multiple apertures, and the radii of the multiple apertures gradually decrease in the direction indicated by 1001.

[0165] In addition, the aperture may be displayed with the target position in the virtual scene as the center and the second target length as the radius, and the process of the radius of the aperture gradually increasing is displayed until the aperture disappears; the last aperture before the aperture disappears is used as the target aperture, and the first scene element exists inside the target aperture; in the process of increasing the target aperture, the first scene element inside the target aperture is replaced by the second scene element;

[0166] It should be noted that the target aperture includes a plurality of first scene elements, which means that when the target aperture is initially displayed, that is, before the radius of the target aperture gradually increases, the target aperture does not include the second scene elements but only includes the first scene elements, and then, in the process of gradually increasing the radius of the target aperture, the plurality of first scene elements included in the target aperture are replaced by the second scene elements;

[0167] The process of replacing the multiple first scene elements included in the target aperture with the second scene elements may be to replace the multiple first scene elements included in the target aperture with the second scene elements from far to near, or from near to far, which is not limited in the embodiment of the present application.

[0168] Alternatively, it is not limited to that the target aperture includes multiple first scene elements inside, and that during the increase of the target aperture, the multiple first scene elements included inside the target aperture are replaced with the second scene elements, but that the target aperture includes multiple first scene elements inside and outside, so that during the increase of the target aperture, the multiple first scene elements are replaced with the second scene elements; or, instead of taking the last aperture before the aperture disappears as the target aperture, the first aperture is taken as the target aperture, which is not limited in this embodiment of the present application;

[0169] In actual implementation, in response to the scene switching condition for the first sub-scene being met, the first target special effect is used to gradually replace multiple first scene elements with second scene elements according to the first target rule. The process can be a process in which, in response to the scene switching condition for the first sub-scene being met, multiple special effect elements are displayed to appear from the first end of the virtual scene, move to the second end of the virtual scene, and disappear from the second end; wherein, among the multiple special effect elements, at least two special effect elements have different appearance times or different movement speeds; the special effect element closest to the first end is taken as the target special effect element; during the movement of the target special effect element, the first scene element between the target special effect element and the first end is replaced by the second scene element.

[0170] It should be noted that the special effect elements may be luminous dots or luminous patterns such as butterflies, stars, etc. The special effect element closest to the first end may not be fixed, because there are at least two special effect elements with different appearance times or different movement speeds. Therefore, the special effect element closest to the first end at different times may also be different; and the first end and the second segment of the virtual scene may be any position that is centrally symmetrical relative to the center position of the virtual scene. For example, when the first end of the virtual scene is the left side of the virtual scene, the second end of the virtual scene is the right side of the virtual scene; when the first end of the virtual scene is the top of the virtual scene, the second end of the virtual scene is the bottom of the virtual scene, etc., and the embodiments of the present application do not limit this.

[0171] In actual implementation, when the target special effect element moves to the second end and disappears from the second end, it is determined that the first scene element is completely replaced, that is, the first sub-scene is controlled to switch to the second sub-scene.

[0172] In some embodiments, the speed of replacing multiple first scene elements with second scene elements in different scenes may be different. Specifically, in response to the scene switching condition for the first sub-scene being met, the process of replacing multiple first scene elements with second scene elements may be, in response to the scene switching condition for the first sub-scene being met, replacing multiple first scene elements with second scene elements at a first rate; in the process of replacing the first scene elements with the second scene elements, in response to the control instruction for the virtual object, controlling the virtual object to perform a first interaction task; if the virtual object completes the first interaction task, replacing multiple first scene elements with second scene elements at a second rate; wherein the second rate is greater than the first rate.

[0173] It should be noted that the process of controlling the virtual object to perform the first interactive task may be similar to the process of controlling the virtual object to interact with the first interactive object as described above, that is, the interactive task may instruct the virtual object to interact with a prop, or with a monster, or with other virtual objects, which is not described in detail in the embodiments of the present application; thereby determining whether the virtual object has completed the first interactive task is the process of determining whether the virtual object has completed the interaction with the first interactive object as described above, which is not described in detail in the embodiments of the present application;

[0174] Among them, since the second rate is greater than the first rate, when the virtual object completes the first interaction task, the process of replacing multiple first scene elements with second scene elements is accelerated, which not only improves the diversity of the interaction process in the virtual scene, but also improves the efficiency of human-computer interaction.

[0175] In some embodiments, during the process of replacing multiple first scene elements with second scene elements, the virtual object can also interact in the virtual scene. Specifically, before controlling the first sub-scene to switch to the second sub-scene of the virtual scene, it is also possible to, during the process of replacing the first scene elements with the second scene elements, respond to the control instructions for the virtual object and control the virtual object to perform a second interactive task in the virtual scene.

[0176] It should be noted that the process of controlling the virtual object to perform the second interactive task in the virtual scene is similar to the process of controlling the virtual object to perform the first interactive task as described above, that is, similar to the process of controlling the virtual object to interact with the first interactive object as described above, that is, the interactive task can instruct the virtual object to interact with props, or with monsters, or with other virtual objects, which is not elaborated in the embodiments of the present application; thereby determining whether the virtual object has completed the second interactive task, that is, the process of determining whether the virtual object has completed the interaction with the first interactive object as described above, which is not elaborated in the embodiments of the present application.

[0177] In this way, in the process of replacing the first scene element with the second scene element, the virtual object can still interact in the virtual scene, which improves the interaction efficiency of the virtual object and the user's gaming experience, while also improving the human-computer interaction efficiency and the utilization of hardware resources.

[0178] Step 103: Display a virtual object in the second sub-scene.

[0179] In actual implementation, when all first scene elements are replaced by second scene elements, it is determined that the first scene elements are completely replaced, that is, the first sub-scene is switched to the second sub-scene of the virtual scene, so that the virtual object is displayed in the second sub-scene.

[0180] In some embodiments, the current sub-scene can also be indicated by identification information. Specifically, before controlling the first sub-scene to switch to the second sub-scene of the virtual scene, the first scene prompt information can also be displayed. The first scene prompt information is used to indicate that the virtual object is currently in the first sub-scene, and different scene prompt information corresponds to different sub-scenes; thus, after controlling the first sub-scene to switch to the second sub-scene of the virtual scene, the first scene prompt information can also be switched to the second scene prompt information. The second scene prompt information is used to indicate that the virtual object is currently in the second sub-scene.

[0181] It should be noted that the scene prompt information here is also the identification information mentioned above. When the sub-scenes in which the virtual object is located are different, the scene prompt information is also different. The difference in scene prompt information can be reflected by style, for example, a light spot or a light bar is displayed to represent the scene prompt information, and light spots and light bars of different colors or styles are used to indicate different scene prompt information. Alternatively, the difference in scene prompt information can be reflected by the text content of the scene prompt information, for example, A indicates one sub-scene, B indicates another sub-scene, etc. Therefore, the scene prompt information can be in various forms, which is not limited in this embodiment of the present application; for example, see Fig.11 , Fig.11 is a schematic diagram of scene prompt information provided by an embodiment of the present application, based on Fig.11 The dotted line 1101 indicates the scene prompt information, and based on the scene prompt information, the sub-scene where the virtual object is located is determined.

[0182] In some embodiments, the attribute values ​​of virtual objects in different sub-scenes are different. Specifically, before controlling the first sub-scene to switch to the second sub-scene of the virtual scene, the second interactive object can also be displayed in the first sub-scene; thus, after displaying the virtual object in the second sub-scene, the second interactive object can also be displayed in the second sub-scene; in response to the interaction instruction for the virtual object, the virtual object is controlled to interact with the second interactive object; wherein the target attribute value of the virtual object in the second sub-scene is greater than the target attribute value of the virtual object in the first sub-scene, and the target attribute value of the second interactive object in the second sub-scene is the same as the target attribute value of the second interactive object in the first sub-scene.

[0183] It should be noted that the second interactive object is similar to the first interactive object described above, and controlling the virtual object to interact with the second interactive object in response to an interaction instruction for the virtual object is also similar to the process of controlling the virtual object to interact with the first interactive object in response to an interaction instruction for the virtual object as described above, and this embodiment of the present application will not go into details; wherein, the target attribute value may be the health value, speed, attack value, i.e., the damage caused by the attack operation, and defense value of the virtual object, and this embodiment of the present application does not limit this.

[0184] In this way, the attribute values ​​in different sub-scenes are different. In this way, the user can influence the interaction process of the virtual object by controlling the sub-scene in which the virtual object is located, which not only improves the diversity of the virtual object interaction process, but also improves the efficiency of human-computer interaction.

[0185] In actual implementation, after the virtual object is displayed in the second sub-scene, there may be no second interactive object in the second sub-scene, and after the virtual object increases the target attribute value in the second sub-scene, it can also switch back to the first sub-scene, so as to interact with the second interactive object in the first sub-scene by using the increased target attribute value. Specifically, after the virtual object is displayed in the second sub-scene, the process of increasing the target attribute value of the virtual object is displayed; when the target attribute value of the virtual object is increased, in response to the scene switching condition for the first sub-scene being met, the second scene element is restored to the first scene element, and the second sub-scene is controlled to switch to the first sub-scene of the virtual scene, and in the first sub-scene, the target virtual object and the second interactive object are displayed, and the target virtual object is the virtual object after the target attribute value is increased; and then in response to the interaction instruction for the target virtual object, the target virtual object is controlled to interact with the second interactive object. In this way, the possibility of the degree of interaction of the target virtual object is improved.

[0186] In some embodiments, the first scene elements at least include a first virtual natural element belonging to a virtual natural phenomenon, and the second scene elements at least include a second virtual natural element belonging to a virtual natural phenomenon; the virtual natural elements in different sub-scenes have different effects on the virtual object. Specifically, before controlling the first sub-scene to switch to the second sub-scene of the virtual scene, it is also possible to display the first virtual natural element in the first sub-scene, the first virtual natural element being used to cause a negative impact on the environment in which the first virtual natural element is located; when the virtual object is in the negative impact area of ​​the first virtual natural element, the negative impact value caused by the first virtual natural element on the attribute value of the virtual object is displayed; and in response to the scene switching condition for the first sub-scene being met, the process of replacing multiple first scene elements with second scene elements can be, in response to the scene switching condition for the first sub-scene being met, replacing the first virtual natural element with the second virtual natural element; wherein the second virtual natural element is used to cause a positive impact on the environment in which the second virtual natural element is located; thereby, in the second sub-scene, after displaying the virtual object, it is also possible to display the positive impact value caused by the second virtual natural element on the attribute value of the virtual object when the virtual object is in the positive impact area of ​​the second virtual natural element.

[0187] It should be noted that the virtual natural phenomenon to which the first virtual natural element belongs may be a natural phenomenon such as a tornado, a volcano, etc. that has a negative impact on the environment. As an example, when the virtual natural phenomenon is a virtual tornado, the first virtual natural element belonging to the virtual tornado is displayed in the virtual scene; or, when the virtual natural phenomenon is a virtual volcano, the first virtual natural element belonging to the virtual volcano is displayed in the virtual scene;

[0188] Wherein, when the virtual object is in the negative impact area of ​​the first virtual natural element, the negative impact value of the first virtual natural element on the attribute value of the virtual object is displayed. It can be specified that the attribute value of the virtual object when it is in the negative impact area of ​​the first virtual natural element is less than the attribute value of the virtual object when it is outside the negative impact area of ​​the first virtual natural element, that is, displaying the negative impact value of the attribute value of the virtual object caused by the first virtual natural element refers to displaying the attribute value reduced by the first virtual natural element on the virtual object. Here, the attribute value can be the life value, speed, attack value, that is, the damage caused by the attack operation, and defense value of the virtual object; and the negative impact area of ​​the first virtual natural element can be pre-set, such as a circular area with the first virtual natural element as the center and the target distance as the radius;

[0189] Then, in response to the scene switching condition for the first sub-scene being met, the first virtual natural element is replaced with the second virtual natural element, where the virtual natural phenomenon to which the second virtual natural element belongs may also be a tornado, a volcano, etc., but the second virtual natural element has a positive impact on the environment in which it is located; when the virtual object is in the positive impact area of ​​the second virtual natural element, the positive impact value of the second virtual natural element on the attribute value of the virtual object is displayed, and it can be specified that the attribute value of the virtual object when it is in the positive impact area of ​​the second virtual natural element is greater than the attribute value of the virtual object when it is outside the positive impact area of ​​the second virtual natural element, that is, the positive impact value of the second virtual natural element on the attribute value of the virtual object is displayed, which means displaying the attribute value added by the second virtual natural element to the virtual object, where the attribute value may be the life value, speed, attack value, i.e., damage caused by the attack operation, and defense value of the virtual object; and the negative impact area of ​​the second virtual natural element may be pre-set, such as a circular area with the second virtual natural element as the center and the target distance as the radius;

[0190] It should be noted that the first virtual natural element and the second virtual natural element may indicate the same natural phenomenon or different natural phenomena; thus, when a virtual object is in a sub-scene including the first virtual natural element, in order to increase the attribute value of the virtual object, the virtual object may be switched to a sub-scene including the second virtual natural element. In this way, the user may influence the interaction process of the virtual object by controlling the sub-scene in which the virtual object is located, which not only improves the diversity of the interaction process of the virtual object, but also improves the efficiency of human-computer interaction.

[0191] In actual implementation, when the first scene element is replaced, the first sub-scene is controlled to switch to the second sub-scene of the virtual scene, so that the virtual object is displayed in the second sub-scene. As for the case where the first scene element is not replaced, that is, the process of switching from the first sub-scene to the second sub-scene is interrupted, it will be explained below.

[0192] In some embodiments, before controlling the first sub-scene to switch to the second sub-scene of the virtual scene, if the process of switching from the first sub-scene to the second sub-scene is interrupted, the replaced second scene elements are restored to the corresponding first scene elements; when the first scene elements are restored, the first sub-scene of the virtual scene and the cooling countdown are displayed; wherein the cooling countdown is used to indicate the remaining time for switching the first sub-scene again.

[0193] It should be noted that the cooling countdown can be pre-set, for example, it can be 5 minutes, etc. Before the cooling countdown is reset, the first sub-scene cannot be switched again, that is, the process of determining whether the scene switching condition for the first sub-scene is met cannot be performed. For example, when a flip operation of the terminal corresponding to the virtual scene is received, even if the flip operation reaches the target flip angle, multiple first scene elements cannot be replaced by second scene elements.

[0194] For example, see Fig.12 , Fig.12 is a schematic diagram of the cooling countdown provided in the embodiment of the present application, based on Fig.12 The cooling countdown is preset to 5 minutes, and the first sub-scene cannot be switched again within 5 minutes.

[0195] In actual implementation, the first scene element has not been completely replaced means that before the first scene element is completely replaced with the second scene element, the scene element replacement process is interrupted, including interrupting the scene element replacement process just when the first scene element is replaced with the second scene element, and may be interrupting the scene element replacement process during the process of replacing the first scene element with the second scene element; and the process of switching from the first sub-scene to the second sub-scene is interrupted means that before the first sub-scene is switched to the second sub-scene, the sub-scene switching process is stopped, including interrupting the sub-scene switching process just when the first sub-scene is switched to the second sub-scene, and may be interrupting the sub-scene switching process during the process of switching from the first sub-scene to the second sub-scene.

[0196] The process of determining that the process of switching from the first sub-scene to the second sub-scene is interrupted is similar to the process of determining whether the scene switching condition for the first sub-scene is satisfied as described above, that is, if the switching interruption condition is satisfied, then the process of determining that the process of switching from the first sub-scene to the second sub-scene is interrupted; and the switching interruption condition is similar to the scene switching condition described above;

[0197] Exemplarily, in the process of replacing multiple first scene elements with second scene elements, that is, in the process of switching the first sub-scene to the second sub-scene, if a trigger operation is received for the drive control and the interactive control together, or a trigger operation is received for the first display area and the second display area together, then the process of replacing the multiple first scene elements with the second scene elements is suspended, that is, it is determined that the switching interruption condition is satisfied, which is equivalent to determining that the process of switching the first sub-scene to the second sub-scene is interrupted; here, how to determine that the switching interruption condition is satisfied based on the received trigger operation for the drive control and the interactive control together, or how to determine that the switching interruption condition is satisfied based on the received trigger operation for the first display area and the second display area together, is similar to the process of determining that the scene switching condition is satisfied based on the received trigger operation for the drive control and the interactive control together, or based on the received trigger operation for the first display area and the second display area, as described above, and this is not repeated in the embodiments of the present application;

[0198] Alternatively, in the process of replacing multiple first scene elements with second scene elements, that is, in the process of switching the first sub-scene to the second sub-scene, if a flip operation is received for the electronic device corresponding to the virtual scene, or a flip operation is received for the electronic device corresponding to the virtual scene, and a flip back operation is performed on the electronic device corresponding to the virtual scene, then the process of replacing multiple first scene elements with second scene elements is suspended, that is, determining that the switching interruption condition is satisfied, which is equivalent to determining that the process of switching the first sub-scene to the second sub-scene is interrupted; here, how to determine that the switching interruption condition is satisfied based on the received flip operation performed on the electronic device corresponding to the virtual scene, or the received flip operation performed on the electronic device corresponding to the virtual scene, and the flip back operation performed on the electronic device corresponding to the virtual scene, is similar to the process of determining that the scene switching condition is satisfied based on the received flip operation performed on the electronic device corresponding to the virtual scene, or the received flip operation performed on the electronic device corresponding to the virtual scene, and the flip back operation performed on the electronic device corresponding to the virtual scene, as described above, and this is not repeated in the embodiments of the present application;

[0199] Alternatively, in the process of replacing multiple first scene elements with second scene elements, if an interaction instruction for a virtual object is received, the virtual object is controlled to interact with a third interactive object; when the virtual object interacts with the third interactive object, it is determined that the switching interruption condition is satisfied; wherein the third interactive object may be the same as or different from the first interactive object described above, and when the scene switching condition is determined when the first interactive object is defeated, the third interactive object is different from the first interactive object, and in other cases the third interactive object may be the same as the first interactive object, for example, when the first interactive object is a prop, and the scene switching condition is determined when the prop is turned on, the third interactive object may also be a prop, but the switching interruption condition is determined when the prop is turned off;

[0200] Alternatively, in the process of replacing the plurality of first scene elements with the second scene elements, if in response to a movement instruction for the virtual object, the virtual object is controlled to move in the first sub-scene of the virtual scene; when the virtual object moves to another specific area in the first sub-scene, it is determined that the switching interruption condition is satisfied;

[0201] Among them, the other specific area is different from the specific area described above in position, and the other specific area also includes specific elements. The specific elements can also be virtual natural elements belonging to natural phenomena, such as tornadoes, hail, etc., or special effect elements, such as luminous elements, etc. After the specific elements are displayed in the first sub-scene, the specific elements are used to guide the virtual object to move to another specific area; wherein, the area size of the other specific area is pre-set and can be related to the corresponding specific element. For example, when the corresponding specific element is a virtual natural element belonging to a natural phenomenon, the corresponding specific area can be the range affected by the specific element, such as the area where hail falls. When the corresponding specific element is a special effect element, such as a luminous element, the specific area can be a circular area with the specific element as the center and the target distance as the radius. This is not limited in this embodiment of the present application.

[0202] In some embodiments, before controlling the first sub-scene to switch to the second sub-scene of the virtual scene, if the process of switching from the first sub-scene to the second sub-scene is interrupted, the second target special effect is used to gradually restore the second scene elements to the corresponding first scene elements according to the second target rule.

[0203] Among them, as shown in the first target special effect and the first target law in the previous text, the second target special effect can also be pre-set, for example, it can be an aperture, a light spot, etc., and the second target law can also be pre-set, for example, it can be from inside to outside, or from left to right, etc., and the embodiments of the present application do not limit this; among them, the first target special effect and the second target special effect can be the same or different, and the first target law and the second target law can also be the same or different, and the embodiments of the present application do not limit this.

[0204] In actual implementation, if the process of switching from the first subscene to the second subscene is interrupted, the second target special effect is used to gradually restore the second scene elements to the corresponding first scene elements according to the second target rule. The process can be that if the first scene elements have not been replaced, an aperture is displayed with the target position in the virtual scene as the center and the second target length as the radius, and the radius of the aperture is gradually increased until the aperture disappears; the last aperture before the aperture disappears is used as the target aperture, and the second scene element exists inside the target aperture; in the process of increasing the target aperture, the second scene element inside the target aperture is restored to the first scene element.

[0205] It should be noted that the second target length may be preset, and the target aperture includes a plurality of second scene elements, which means that when the target aperture is initially displayed, that is, before the radius of the target aperture gradually increases, the target aperture does not include the first scene element but only includes the second scene element, and then, in the process of gradually increasing the radius of the target aperture, the plurality of second scene elements included in the target aperture are restored to the first scene element;

[0206] The process of restoring the multiple second scene elements included in the target aperture to the first scene elements may be to restore the multiple second scene elements included in the target aperture from far to near to the first scene elements, or to restore the multiple second scene elements included in the target aperture from near to far to the first scene elements, which is not limited in the embodiment of the present application;

[0207] Alternatively, it is not limited to that the target aperture includes multiple second scene elements, and in the process of increasing the target aperture, the multiple second scene elements included in the target aperture are restored to the first scene elements, but the target aperture includes multiple second scene elements both inside and outside, so that in the process of increasing the target aperture, the multiple second scene elements are restored to the first scene elements; or, instead of taking the last aperture before the aperture disappears as the target aperture, the first aperture is taken as the target aperture, which is not limited in this embodiment of the present application;

[0208] In actual implementation, when the target aperture disappears, it is determined that the second scene element has been completely restored, so that the virtual object continues to be displayed in the first sub-scene of the virtual scene.

[0209] For example, see Fig.13 , Fig.13 is a schematic diagram of a process of restoring a second scene element to a first scene element provided by an embodiment of the present application, based on Fig.13 , Fig.13 The solid circles in the figure represent multiple apertures, and the radii of the multiple apertures gradually increase in the direction indicated by 1301.

[0210] In addition, the aperture may be displayed with the target position in the virtual scene as the center and the second target length as the radius, and the process of gradually reducing the radius of the aperture is displayed until the aperture becomes a light spot located at the target position, and the light spot is cancelled; the last aperture before the aperture becomes the light spot is used as the target aperture, and the outside of the target aperture includes multiple second scene elements; in the process of reducing the target aperture, the multiple second scene elements included outside the target aperture are restored to the first scene elements;

[0211] The process of restoring the plurality of second scene elements included outside the target aperture to the first scene element may be to restore the plurality of second scene elements included outside to the first scene element from far to near with the target aperture as the center, or to restore the plurality of second scene elements included outside to the first scene element from near to far, which is not limited in the embodiment of the present application;

[0212] Alternatively, it is not limited to that the target aperture includes multiple second scene elements outside, and that during the process of shrinking the target aperture, the multiple second scene elements included outside the target aperture are restored to the first scene elements, but the target aperture includes multiple second scene elements both inside and outside, so that during the process of shrinking the target aperture, the multiple second scene elements are restored to the first scene elements; or, instead of taking the last aperture before the aperture becomes a light spot as the target aperture, the first aperture is taken as the target aperture, and this is not limited in this embodiment of the present application.

[0213] In actual implementation, when the restoration of the first scene element is completed, the virtual object continues to be displayed in the first sub-scene of the virtual scene.

[0214] In actual implementation, the process of restoring the second scene element to the corresponding first scene element may be to replace the second scene element with the corresponding first scene element, or to restore the second scene element together to the corresponding first scene element, which is not limited in this embodiment of the present application.

[0215] In some embodiments, before controlling the first sub-scene to switch to the second sub-scene of the virtual scene, if the process of switching from the first sub-scene to the second sub-scene is interrupted, the replaced second scene element is restored to the corresponding first scene element; in the process of restoring the second scene element to the corresponding first scene element, a target output method is adopted to output a prompt message for prompting that the first scene element is being restored; wherein the target output method includes at least one of the following: an audio output method and a vibration output method. wherein the audio output method refers to the use of a voice broadcast method to play a prompt message to prompt that the second scene element is being restored to the corresponding first scene element.

[0216] In some embodiments, the first scene element is a first prop in a closed state, and the second scene element is a second prop in a closed state. In the first sub-scene of the virtual scene, after the virtual object is displayed, in response to a control instruction for the virtual object, the virtual object is controlled to turn on the first prop, that is, the virtual object is controlled to interact with the first prop, so that the first prop is switched from a closed state to an open state; thereby replacing the first prop with the second prop, and then after the virtual object is displayed in the second sub-scene, in response to a control instruction for the virtual object, the virtual object is controlled to turn on the second prop, that is, the virtual object is controlled to interact with the second prop, so that the second prop is switched from a closed state to an open state, so that when both the first prop and the second prop are in an open state, the target prop is displayed, and the target prop can increase the attribute value of the virtual object.

[0217] In some embodiments, the first scene element is an obstacle used to hinder the movement of the virtual object. Thus, in the first sub-scene of the virtual scene, after the virtual object is displayed, the virtual object is controlled to move in response to a movement instruction for the virtual object. When the virtual object moves to the sensing range of the first scene element, the first scene element is replaced by the second scene element, and the second scene element does not hinder the movement of the virtual object. Then, after the virtual object is displayed in the second sub-scene, the process of displaying the movement of the virtual object continues.

[0218] It should be noted that the first scene element and the second scene element are different states of the same object, and the relative position of the first scene element in the first sub-scene is the same as the relative position of the second scene element in the second sub-scene. For example, the first scene element is a terrain obstacle (such as the ruins of a building), and the second scene element is a building that does not affect passage (such as a non-collapsed building). Therefore, the player can pass through if and only if he enters the second sub-scene.

[0219] By applying the above-mentioned embodiment of the present application, after displaying the virtual object in the first sub-scene of the virtual scene, when the scene switching condition for the first sub-scene is met, the multiple first scene elements excluding the virtual object included in the first sub-scene are replaced with the second scene elements, and the first sub-scene is controlled to switch to the second sub-scene of the virtual scene, so that the virtual object is displayed in the second sub-scene. In this way, compared with the solution of only switching the day and night of the game scene in the related art, the present application replaces the multiple first scene elements excluding the virtual object included in the first sub-scene with the second scene elements, thereby switching the first sub-scene to the second sub-scene, which not only enriches the scene elements switched in the virtual scene, improves the diversity of the switching process of the virtual scene, but also improves the resource utilization rate in the virtual scene, the human-computer interaction efficiency and the hardware resource utilization rate of the electronic device.

[0220] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.

[0221] In open world games, players can switch the game scene between day and night, and then continue playing the game after the day and night switch; however, this scene switching method is too simple, resulting in low human-computer interaction efficiency.

[0222] Based on this, an embodiment of the present application provides a method for switching virtual scenes, which switches character planes through an interactive means that is suitable for mobile terminal control, is not mutually exclusive with normal game control, and can stably achieve the purpose of interaction (i.e., plane switching), thereby improving the simplicity of the character plane switching process.

[0223] Next, the technical solution provided by this application is described from the product side. Fig.14 , Fig.14 is a flow chart of a method for switching virtual scenes provided in an embodiment of the present application, based on Fig.14 The virtual scene switching method provided in the embodiment of the present application is implemented through steps 1401 to 1410.

[0224] In actual implementation, based on Fig.14 , in normal play state, first, if Fig.11 As shown, for the screen display state in the normal game state, Fig.11The dotted box 1101 indicates the plane indicator (scene prompt information). The plane indicator uses color to identify the plane. When the color changes, it means that the plane has changed. Then, for the control range in the normal play state, the player in the game scene can be controlled in response to the point operation (such as character movement / camera perspective change), click operation (such as using ability / interacting with scene objects) or long press operation (such as aiming state / charge state) on the player (virtual object). Here, these operations can also be performed simultaneously. Among them, the player in the game scene can also be controlled through a joystick device or control, such as by pushing the joystick or short pressing the button or long pressing the button to control the player in the game scene. This is not limited in the embodiments of the present application. Finally, for entering the state of switching interaction, it can be determined that the state of switching interaction has been entered only when the plane indicator is normally displayed on the screen and the plane indicator is in a normal state;

[0225] It should be noted that, generally in an open world scene and not in a specific interactive state (such as during a plot performance), Fig.11 The plane indicator indicated by 1101 is displayed normally, and the conditions for displaying the plane indicator normally on the screen are met at this time. During the game, there may be events that cause the plane indicator to enter an abnormal state. When the plane indicator is in an abnormal state, changes will appear to indicate that it is in an abnormal state. Possible abnormal state prompts include but are not limited to: the plane indicator is in a cooling state (for example, a countdown mark appears when the plane switch fails), the plane indicator transparency changes (such as semi-transparent or disappearing), the plane indicator displays abnormal special effects (such as continuous flashing), or the plane indicator shape changes (such as bending), etc.

[0226] In actual implementation, based on Fig.14 ,For the process of triggering the plane switching, when the plane indicator is visible and in a normal state, the plane switching is allowed to be triggered; ,wherein, there are two ways of triggering the plane switching and the process of ,actively triggering the plane switching and passively switching the plane switching are respectively described.

[0227] In some embodiments, the process of actively triggering the plane switching is described by taking two methods as examples. The first method is a re-touch method, such as Figure 7 As shown, the prerequisite for supporting the heavy touch mode is that the device supports the functions of pressing and force sensing. The trigger mode is to determine that any position of the left and right half screens is in the "heavy touch state" at the same time, that is, trigger the plane switching.

[0228] Among them, re-touch means that under the condition that the device supports it, after the operator enters the re-touch pressure threshold determined by the device, it is determined to be a re-touch state (there is no strict requirement for the specific required pressure value). Simultaneous means at the same time as the re-touch state, not at the same time as the re-touch control. For example, if the left half of the screen enters and continues to be in the re-touch state in advance, if the right half of the screen is re-touched again within the target time period, it is determined to be simultaneous when the right half of the screen enters the re-touch control. Here, the target time period is pre-set. For the same half of the screen, if there are two or more touch points in the control state at the same time, it is determined to be valid if only one of the touch points is in the re-touch state. In addition, the triggering of the plane switching is an instantaneous judgment, and the plane switching process does not need to be in the re-touch state continuously.

[0229] The second method is the gyroscope method. The prerequisite for supporting the gyroscope solution is that the device has a built-in gyroscope module such as an angular motion detection device. The trigger method is that within the specified natural time range, the device completes the horizontal flip and pullback of the specified angle in sequence, which triggers the plane switching. Figure 8 shown.

[0230] The specified natural time range may be, for example, 1 second, and then the flip (flip operation) and pull-back (flip withdrawal operation) must be completed in sequence within the time range to be considered valid. Figure 8 The x indicated in , the flip operation is valid only when the flip angle (set as z1) reaches or exceeds the specified angle x, that is, z1>=x. Here, the angle x can be preset. Pulling back to the original grip angle refers to Fig. 9 The y indicated in , that is, when the difference between the pull-back angle (set as z2) and the actual flip angle is within y, that is, z2>=z1-y, the pull-back operation is determined to be valid. Here, the angle y can also be preset.

[0231] In other embodiments, for the process of passively triggering plane switching, when pre-set conditions are met, the plane switching state is allowed to be entered without active interaction. The pre-set conditions include, but are not limited to: when the plot progresses to a certain extent, the player controls the character to enter a specific open world scene, the player controls the character to trigger a special mechanism, or the game is affected by a certain mechanism during the game (such as a collision with a certain monster, an attack with a certain skill, irradiation with a certain ray, etc.).

[0232] In actual implementation, based on Fig.14 ,For the switching state, the duration of the plane switching process can be pre-set; Fig.10As shown, during the plane switching process, the aperture, which is visually presented as one or more layers, continues to shrink inward until it becomes a light spot and disappears; when the last layer of aperture shrinks inward, the part outside the aperture will be dynamically replaced with the game content of the new plane. At the same time, during the plane switching process, the device continues to vibrate until the plane switching ends (successful switching / failed switching). Among them, the game behavior can be carried out normally during the plane switching process, that is, the player character can be controlled to interact.

[0233] In actual implementation, based on Fig.14 Regarding the process of interrupting the plane switching, the plane switching process can be interrupted actively or passively during the plane switching process. Regarding the process of actively interrupting the plane switching process, specifically, under the re-touch scheme, after the plane switching is initiated, one or both sides of the screen have been released from the re-touch state, and if it is determined that any position of the left and right half screens is in the re-touch state at the same time during the plane switching process, the plane switching process will be interrupted; and under the gyroscope scheme, within the specified natural time range, the held device will complete the horizontal flip and pull back of the specified angle in sequence again, which will interrupt the plane switching process.

[0234] It should be noted that the method of triggering plane switching and interrupting plane switching does not need to be the same. For example, if a player uses a heavy touch solution to trigger a plane switch, a gyroscope solution can also be used to interrupt the plane switch process. This embodiment of the application does not limit this.

[0235] As for the process of passively interrupting the plane switching, specifically, during the plane switching process, when the pre-set conditions are met, it is allowed to trigger the interruption without active interaction. The pre-set conditions include but are not limited to: entering the plot interpretation state, the player controlling the character to enter a specific open world scene, the player controlling the character to trigger a special mechanism, being affected by a certain mechanism during the game (such as a certain monster collision, a certain skill attack, a certain ray irradiation, etc.) or the character is killed for some reason, etc., and this embodiment of the application does not limit this.

[0236] In actual implementation, based on Fig.14 For the rolling back state, after the plane switching process is interrupted, the rolling back state is entered. The duration of the rolling back state is preset and fixed, and has nothing to do with the time when the interruption is triggered. Fig.13 As shown, visually, one or more layers of apertures continue to expand outward (the opposite of the switching state); when the last layer of apertures expands and disappears, the part inside the aperture will be dynamically replaced by the game content of the previous plane. At the same time, the device continues to vibrate during the rollback process until the plane switch ends (the switch fails). Among them, the game behavior can still be carried out normally during the plane rollback process, that is, the player character can be controlled to interact.

[0237] In actual implementation, based on Fig.14 , if the plane switch fails, after the plane switch fails, the player returns to the previous plane and then plays normally; at the same time, after the plane switch is passively interrupted, Fig.12 As shown, the plane switching enters the cooling time, and the plane indicator shows the cooling countdown. Among them, when the plane indicator is in the cooling state, the plane switching cannot be actively triggered by heavy touch or gyroscope method, and the plane switching can only be entered passively. Actively interrupting the plane switching will not cause the plane indicator to enter the cooling state.

[0238] In actual implementation, based on Fig.14 If the plane switch is successful, the player enters the new plane and is in a normal play state. At the same time, after the plane switch is successful, the plane indicator color changes. Among them, if there are more than 3 planes, each plane is marked by the plane indicator color. When the color changes, it means that the plane has changed. In addition, no matter what method (active or passive) is used to successfully switch the plane, the plane indicator will not enter the cooling state.

[0239] It should be noted that the settings and rules for plane switching include the following elements (scene elements) in a plane:

[0240] a) Environmental elements: Dynamic changes in the environment and weather in the game scene, including but not limited to rain, fog, clouds, snow, thunderstorms, etc., usually referring to environmental settings that will affect the game atmosphere or gameplay but cannot be changed at the will of the user;

[0241] b) Day and night cycle: The natural time factor in the game scene determines the light intensity, angle, color, etc., and also affects the gameplay (such as affecting the refresh / status of key interactive objects, the status of the protagonist and his skills, etc.);

[0242] c) Surface objects: static interactive objects on the ground in the game scene, such as large landmarks, accessible buildings, puzzle devices, vegetation that blocks the view, etc., which are closely related to the gameplay;

[0243] d) Topography: the design elements that constitute the basic visual features of the game scene, such as mountains, rivers, lakes, decorative buildings, etc.

[0244] e) Traffic flow design: scene content used to standardize traffic flow in game scenes, such as roads, bridges, cliffs, stones, etc.;

[0245] f) Key interactive objects: dynamic interactive objects on the ground that constitute the main goal of the player's play in the game scene, which are strongly related to the gameplay;

[0246] g) Non-player controlled characters: including but not limited to plot NPCs, combat NPCs, and functional NPCs;

[0247] h) Characters controlled by other players: other game users (if the mutual visibility conditions are met);

[0248] i) Player-controlled character: the game status of the protagonist, including but not limited to character costume, accompanying status, character status (such as temperature, humidity, gain, loss), linkage status with interactive objects (such as watching, alert), etc.;

[0249] j) Player control behavior: the protagonist's ongoing game behavior, such as normal game status - supported control methods.

[0250] It should be noted that the above elements can be divided into three dimensions, namely, the environmental dimension includes environmental elements and day and night cycles, the scene dimension includes surface objects, topography, traffic flow design and key interactions, and the character dimension includes non-player-controlled characters, other player-controlled characters, player-controlled characters and player-controlled behaviors;

[0251] Among them, the switching methods and switching results of different elements are different. For environmental elements, the switching method is to change with the plane, and the switching result is random according to the operating rules of the target plane; for the day and night cycle, the switching method can be no change or to change with the plane, and the switching result is no change or to refresh according to the operating rules of the target plane; for surface objects, the switching method is to change with the plane, and the switching result is to replace the same position with other pre-specified surface objects, or different states of the same surface object (such as the open or closed state of the puzzle mechanism); for terrain, the switching method can be no change or to change with the plane, and the switching result is no change or to be random according to the operating rules of the target plane; for traffic line design, the switching method is to change with the plane , the switching result is to replace the same position with other pre-specified traffic flow designs, or different states of the same traffic flow design, where different states may have different impacts on passability; for key interactive objects, the switching method is to change with the plane, and the switching result is to refresh according to the operating rules of the target plane; for non-player controlled characters, the switching method is to change with the plane, and the switching result is to replace with a pre-specified NPC at the same position; for other player-controlled characters, the switching method is to change with the plane, and the switching result is to decide whether to hide according to the operating rules of the target plane; for player-operated characters, the switching method is to change with the plane, and the switching result is to display the pre-specified appearance; for player-controlled behavior, the switching method can be no change, and the switching result is also no change accordingly.

[0252] In this way, by using an interactive method that does not affect normal gameplay, plane switching is changed from a heavy behavior to a light behavior, which not only simplifies the complexity of player operations, but also improves the richness of a single system, thus providing players with the possibility of exploring the gameplay space to achieve emergent gameplay. At the same time, through the design of plane switching rules, sufficient extension space is reserved for packaging and gameplay.

[0253] It should be noted that there are many types of plane elements, and the gameplay effects of their permutations and combinations are impossible to list in detail, including but not limited to the following examples:

[0254] As an example, the plane switching design is used to solve puzzles. Specifically, a switch (a surface object) is placed on each plane A and B. When and only when the two switches are in the on state at the same time, specific key interactive objects will be refreshed.

[0255] As an example, the plane switching design is used to affect passability. Specifically, a terrain obstacle is placed on plane A (such as the ruins of a building, which belongs to the traffic line design). The corresponding object on plane B does not affect passability (such as an uncollapsed building). The player can pass through it if and only if he enters plane B.

[0256] As an example, cross-plane manipulation is used to affect the player interaction process. Specifically, there are a large number of aggressive monsters (non-player-controlled characters) somewhere in plane B, making it impossible for players to complete charged attacks. Therefore, players need to switch to plane B while entering the charged state in plane A and immediately complete the charged attack.

[0257] In addition, the above mechanisms can also be used in combination. Specifically, after the player turns on the switch in plane A, he approaches the terrain obstacles and accumulates power. After completing the accumulation of power, the plane switches to plane B, quickly passes through the building and attacks the switch in plane B, so that both switches on the two planes are in the turned-on state, and returns to plane A to see the key interactive objects refreshed.

[0258] By applying the above-mentioned embodiment of the present application, after displaying the virtual object in the first sub-scene of the virtual scene, when the scene switching condition for the first sub-scene is met, the multiple first scene elements excluding the virtual object included in the first sub-scene are replaced with the second scene elements, and the first sub-scene is controlled to switch to the second sub-scene of the virtual scene, so that the virtual object is displayed in the second sub-scene. In this way, compared with the solution of only switching the day and night of the game scene in the related art, the present application replaces the multiple first scene elements excluding the virtual object included in the first sub-scene with the second scene elements, thereby switching the first sub-scene to the second sub-scene, which not only enriches the scene elements switched in the virtual scene, improves the diversity of the switching process of the virtual scene, but also improves the resource utilization rate in the virtual scene, the human-computer interaction efficiency and the hardware resource utilization rate of the electronic device.

[0259] The following continues to describe the exemplary structure of the virtual scene switching device 455 provided in the embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the virtual scene switching device 455 of the memory 450 may include:

[0260] A first display module 4551, configured to display a virtual object in a first sub-scene of a virtual scene, wherein the first sub-scene includes a plurality of first scene elements except the virtual object;

[0261] a replacement module 4552, configured to replace a plurality of the first scene elements with second scene elements in response to a scene switching condition for the first sub-scene being satisfied, and control the first sub-scene to switch to the second sub-scene of the virtual scene;

[0262] The second display module 4553 is used to display the virtual object in the second sub-scene.

[0263] In some embodiments, the virtual scene is displayed based on the first display area and the second display area of ​​the electronic device; the device also includes a first determination module, the first determination module is used to determine that the scene switching condition for the first sub-scene is satisfied in response to the trigger operation performed on the first display area and the second display area together.

[0264] In some embodiments, the device also includes a second display module, which is used to display drive controls in the first display area and display interactive controls in the second display area; wherein the drive controls are used to control the movement of the virtual object, and the interactive controls include one of direction controls and skill controls; the direction controls are used to control the viewing direction of the virtual object, and the skill controls are used to control the virtual object to interact with other virtual objects, and the other virtual objects are virtual objects other than the virtual object in the virtual scene; the first determination module is also used to determine that the scene switching condition for the first sub-scene is met in response to a trigger operation performed together on the drive controls in the first display area and the interactive controls in the second display area.

[0265] In some embodiments, the device also includes a second determination module, which is used to display drive controls and interactive controls; wherein the drive controls are used to control the movement of the virtual object, and the interactive controls include one of direction controls and skill controls; the direction controls are used to control the viewing direction of the virtual object, and the skill controls are used to control the virtual object to interact with other virtual objects, and the other virtual objects are virtual objects other than the virtual object in the virtual scene; in response to a trigger operation performed on the drive controls and the interactive controls together, it is determined that the scene switching condition for the first sub-scene is met.

[0266] In some embodiments, the interactive control is the skill control, the drive control is in a draggable state, and the skill control is in a non-draggable state; the second determination module is also used to control the skill control from being in the non-draggable state to being in a draggable state in response to a trigger operation performed on the drive control and the skill control together; when the drive control and the skill control are both in the draggable state, the first draggable area of ​​the drive control and the second draggable area of ​​the skill control are displayed respectively; in response to the dragging operation performed on the drive control in the first draggable area and the skill control in the second draggable area together, it is determined that the scene switching condition for the first sub-scene is met.

[0267] In some embodiments, the interactive control is the direction control, the drive control and the direction control are both in a draggable state, and the trigger operation performed together is a drag operation; the second determination module is also used to display the process of dragging the drive control and the process of dragging the direction control, respectively, in response to the drag operation performed on the drive control and the direction control together; during the process of dragging the drive control and the direction control, when the value of the first drag parameter of the drive control reaches a first target value, and the value of the second drag parameter of the direction control reaches a second target value, it is determined that the scene switching condition for the first sub-scene is met.

[0268] In some embodiments, the device also includes a third determination module, which is used to receive a flip operation or a shaking operation performed on the electronic device; in response to the flip angle of the flip operation reaching a target flip angle, or the shaking amplitude of the shaking operation reaching a target shaking amplitude, determine that the scene switching condition for the first sub-scene is met.

[0269] In some embodiments, the device also includes a fourth determination module, which is used to receive a flip operation and a flip-back operation performed sequentially on the electronic device; in response to the flip angle of the flip operation reaching a target flip angle, and the flip-back angle reaching a target flip-back angle, determine that the scene switching condition for the first sub-scene is met.

[0270] In some embodiments, the device also includes a fifth determination module, which is used to receive a flip operation and a flip resetting operation sequentially performed on the electronic device; if the flip duration corresponding to the flip operation and the flip resetting operation is not greater than the target flip duration, it is determined that the scene switching condition for the first sub-scene is met; wherein the flip duration is the duration between executing the flip operation and executing the flip resetting operation.

[0271] In some embodiments, the device also includes a sixth determination module, which is used to determine that the scene switching condition for the first sub-scene is met in response to the display time of the virtual object reaching the target display time; wherein the display time is the time when the virtual object is located in the first sub-scene.

[0272] In some embodiments, the device also includes a seventh determination module, which is used to display a first interactive object in the first sub-scene; control the virtual object to interact with the first interactive object in response to an interaction instruction for the virtual object; and determine that a scene switching condition for the first sub-scene is met when the virtual object completes the interaction with the first interactive object.

[0273] In some embodiments, the device also includes an eighth determination module, which is used to control the virtual object to move in the first sub-scene of the virtual scene in response to a movement instruction for the virtual object; when the virtual object moves to a specific area in the first sub-scene, it is determined that the scene switching condition for the first sub-scene is met; wherein the specific area includes a specific element, and the specific element is used to identify the position of the specific area in the first sub-scene.

[0274] In some embodiments, the replacement module 4552 is further used to, in response to the scene switching condition for the first sub-scene being met, use the first target special effect to gradually replace multiple first scene elements with second scene elements according to the first target rule.

[0275] In some embodiments, the replacement module 4552 is also used to display an aperture with the target position in the virtual scene as the center and the first target length as the radius in response to the scene switching condition for the first sub-scene being met, and display the process of the radius of the aperture gradually shrinking until the aperture becomes a light spot located at the target position, and then cancel the display of the light spot; use the last aperture before the aperture becomes the light spot as the target aperture, and the outside of the target aperture includes multiple first scene elements; during the process of shrinking the target aperture, the multiple first scene elements included outside the target aperture are replaced by the second scene elements.

[0276] In some embodiments, the replacement module 4552 is also used to display a process in which multiple special effects elements appear from the first end of the virtual scene, move to the second end of the virtual scene, and disappear from the second end in response to the scene switching condition for the first sub-scene being met; wherein, among the multiple special effects elements, at least two special effects elements have different appearance times or different movement speeds; the special effects element closest to the first end is taken as the target special effects element; during the movement of the target special effects element, the first scene element between the target special effects element and the first end is replaced by the second scene element.

[0277] In some embodiments, the replacement module 4552 is also used to replace multiple first scene elements with second scene elements at a first rate in response to the scene switching condition for the first sub-scene being met; in the process of replacing the first scene elements with the second scene elements, in response to the control instruction for the virtual object, control the virtual object to perform a first interaction task; if the virtual object completes the first interaction task, replace multiple first scene elements with second scene elements at a second rate; wherein the second rate is greater than the first rate.

[0278] In some embodiments, the device also includes a first restoration module, which is used to restore the replaced second scene elements to the corresponding first scene elements if the process of switching from the first sub-scene to the second sub-scene is interrupted; when the first scene element is restored, the first sub-scene of the virtual scene and a cooling countdown are displayed; wherein the cooling countdown is used to indicate the remaining time for switching the first sub-scene again.

[0279] In some embodiments, the device also includes a second restoration module, which is used to use a second target special effect to gradually restore the second scene elements to corresponding first scene elements according to a second target rule if the process of switching from the first subscene to the second subscene is interrupted.

[0280] In some embodiments, the device also includes a second restoration module, and the second restoration module is further used to display an aperture with the target position in the virtual scene as the center and the second target length as the radius if the process of switching from the first subscene to the second subscene is interrupted, and display the process of the radius of the aperture gradually increasing until the aperture disappears; take the last aperture before the aperture disappears as the target aperture, and the second scene element exists inside the target aperture; during the increase of the target aperture, restore the second scene element inside the target aperture to the first scene element.

[0281] In some embodiments, the device also includes a third restoration module, and the third restoration module is used to restore the replaced second scene element to the corresponding first scene element if the process of switching from the first sub-scene to the second sub-scene is interrupted; in the process of restoring the second scene element to the corresponding first scene element, a target output method is used to output a prompt information for prompting that the first scene element is being restored; wherein the target output method includes at least one of the following: audio output method, vibration output method.

[0282] In some embodiments, the device also includes a third display module, which is used to display first scene prompt information, wherein the first scene prompt information is used to indicate that the virtual object is currently in a first sub-scene, and different scene prompt information corresponds to different sub-scenes; the device also includes an information switching module, which is used to switch the first scene prompt information to second scene prompt information, and the second scene prompt information is used to indicate that the virtual object is currently in a second sub-scene.

[0283] In some embodiments, the device further includes a control module, which is used to control the virtual object to perform a second interactive task in the virtual scene in response to a control instruction for the virtual object during the process of replacing the first scene element with the second scene element.

[0284] In some embodiments, the device also includes a fourth display module, and the fourth display module is used to display a second interactive object in the first sub-scene; display the second interactive object in the second sub-scene; and control the virtual object to interact with the second interactive object in response to an interaction instruction for the virtual object; wherein the target attribute value of the virtual object in the second sub-scene is greater than the target attribute value of the virtual object in the first sub-scene, and the target attribute value of the second interactive object in the second sub-scene is the same as the target attribute value of the second interactive object in the first sub-scene.

[0285] In some embodiments, the first scene element includes at least a first virtual natural element belonging to a virtual natural phenomenon, and the second scene element includes at least a second virtual natural element belonging to a virtual natural phenomenon; the device also includes a fifth display module, the fifth display module is used to display the first virtual natural element in the first sub-scene, the first virtual natural element is used to have a negative impact on the environment where the first virtual natural element is located; when the virtual object is in the negative impact area of ​​the first virtual natural element, the negative impact value caused by the first virtual natural element on the attribute value of the virtual object is displayed; the replacement module 4552 is also used to replace the first virtual natural element with the second virtual natural element in response to the scene switching condition for the first sub-scene being met; wherein the second virtual natural element is used to have a positive impact on the environment where the second virtual natural element is located; the fourth display module is also used to display the positive impact value caused by the second virtual natural element on the attribute value of the virtual object when the virtual object is in the positive impact area of ​​the second virtual natural element.

[0286] The embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of an electronic device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the electronic device executes the virtual scene switching method described in the embodiment of the present application.

[0287] The embodiment of the present application provides a computer-readable storage medium storing executable instructions, wherein the executable instructions are stored. When the executable instructions are executed by a processor, the processor will execute the virtual scene switching method provided by the embodiment of the present application, for example, Figure 3 A method for switching virtual scenes is shown.

[0288] In some embodiments, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disk, or a CD-ROM; or it may be various devices including one or any combination of the above memories.

[0289] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0290] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0291] As an example, the executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.

[0292] In summary, the embodiments of the present application have the following beneficial effects:

[0293] (1) Compared with the solution in the related art that only switches the day and night of the game scene, the present application achieves switching from the first sub-scene to the second sub-scene by replacing multiple first scene elements except virtual objects included in the first sub-scene with second scene elements. This not only enriches the scene elements switched in the virtual scene and improves the diversity of the switching process of the virtual scene, but also improves the resource utilization rate, human-computer interaction efficiency and hardware resource utilization rate of the electronic device in the virtual scene.

[0294] (2) When the virtual object completes the first interactive task, the process of replacing multiple first scene elements with second scene elements is accelerated, which not only improves the diversity of the interactive process in the virtual scene, but also improves the efficiency of human-computer interaction.

[0295] (3) In the process of replacing the first scene element with the second scene element, the virtual object can still interact in the virtual scene, thereby improving the interaction efficiency of the virtual object and the user's gaming experience, while also improving the human-computer interaction efficiency and the utilization of hardware resources.

[0296] (4) The attribute values ​​in different sub-scenes are different. In this way, users can influence the interaction process of virtual objects by controlling the sub-scenes in which the virtual objects are located. This not only improves the diversity of the virtual object interaction process, but also improves the efficiency of human-computer interaction.

[0297] It is understandable that in the embodiments of the present application, it involves obtaining data related to user operations. When the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0298] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A method for switching a virtual scene, characterized in that: The method is performed by an electronic device, and includes: In a first sub-scene of a virtual scene, a virtual object is displayed, wherein the first sub-scene includes a plurality of first scene elements except the virtual object; In response to a scene switching condition for the first sub-scene being met, replacing a plurality of the first scene elements with second scene elements, and controlling the first sub-scene to switch to a second sub-scene of the virtual scene; In the second sub-scene, the virtual object is displayed.

2. The method according to claim 1, characterized in that The virtual scene is displayed based on the first display area and the second display area of ​​the electronic device; In response to a scene switching condition for the first sub-scene being satisfied, before replacing the plurality of first scene elements with second scene elements, the method further includes: In response to a trigger operation performed on both the first display area and the second display area, it is determined that a scene switching condition for the first sub-scene is satisfied.

3. The method according to claim 2, characterized in that The method further comprises: Displaying a driving control in the first display area, and displaying an interactive control in the second display area; The driving control is used to control the movement of the virtual object, and the interactive control includes one of a direction control and a skill control; the direction control is used to control the viewing direction of the virtual object, and the skill control is used to control the virtual object to interact with other virtual objects, and the other virtual objects are virtual objects other than the virtual object in the virtual scene; The determining, in response to the triggering operation performed on the first display area and the second display area together, that a scene switching condition for the first sub-scene is satisfied includes: In response to a trigger operation performed on the driving control in the first display area and the interactive control in the second display area together, it is determined that a scene switching condition for the first sub-scene is satisfied.

4. The method according to claim 1, characterized in that In response to a scene switching condition for the first sub-scene being satisfied, before replacing the plurality of first scene elements with second scene elements, the method further includes: Displaying a driving control and an interactive control; wherein the driving control is used to control the movement of the virtual object, and the interactive control includes one of a direction control and a skill control; The direction control is used to control the viewing direction of the virtual object, and the skill control is used to control the virtual object to interact with other virtual objects, where the other virtual objects are virtual objects other than the virtual object in the virtual scene; In response to a trigger operation performed on the drive control and the interactive control together, it is determined that a scene switching condition for the first sub-scene is satisfied.

5. The method according to claim 4, characterized in that The interactive control is the skill control, the drive control is in a draggable state, and the skill control is in a non-draggable state; The step of determining, in response to a trigger operation performed on both the driving control and the interactive control, whether a scene switching condition for the first sub-scene is satisfied comprises: In response to a trigger operation performed on the drive control and the skill control together, controlling the skill control to switch from the non-draggable state to a draggable state; When the drive control and the skill control are both in a draggable state, displaying a first draggable area of ​​the drive control and a second draggable area of ​​the skill control respectively; In response to a drag operation performed on the drive control in the first draggable area and the skill control in the second draggable area together, it is determined that a scene switching condition for the first sub-scene is satisfied.

6. The method according to claim 4, characterized in that The interactive control is the direction control, the driving control and the direction control are both in a draggable state, and the triggering operation performed together is a dragging operation; The step of determining, in response to a trigger operation performed on both the driving control and the interactive control, whether a scene switching condition for the first sub-scene is satisfied comprises: In response to a drag operation performed on the drive control and the direction control together, displaying a process of dragging the drive control and a process of dragging the direction control respectively; During the process of dragging the driving control and the direction control, when the value of the first drag parameter of the driving control reaches a first target value and the value of the second drag parameter of the direction control reaches a second target value, it is determined that the scene switching condition for the first sub-scene is met.

7. The method according to claim 1, characterized in that In response to a scene switching condition for the first sub-scene being satisfied, before replacing the plurality of first scene elements with second scene elements, the method further includes: receiving a flipping operation or a shaking operation performed on the electronic device; In response to a flip angle of the flip operation reaching a target flip angle, or a shake amplitude of the shake operation reaching a target shake amplitude, it is determined that a scene switching condition for the first sub-scene is satisfied.

8. The method according to claim 1, characterized in that In response to a scene switching condition for the first sub-scene being satisfied, before replacing the plurality of first scene elements with second scene elements, the method further includes: receiving a flip operation and a flip-back operation sequentially performed on the electronic device; In response to the flip angle of the flip operation reaching a target flip angle and the flip-reset angle reaching a target flip-reset angle, it is determined that a scene switching condition for the first sub-scene is satisfied.

9. The method according to claim 1, characterized in that In response to a scene switching condition for the first sub-scene being satisfied, before replacing the plurality of first scene elements with second scene elements, the method further includes: Receiving a flip operation and a flip-back operation sequentially performed on the electronic device; If the flipping durations corresponding to the flipping operation and the flipping back operation are not greater than the target flipping duration, it is determined that the scene switching condition for the first sub-scene is satisfied; The flipping duration is the duration between executing the flipping operation and executing the flipping back operation.

10. The method according to claim 1, characterized in that In response to a scene switching condition for the first sub-scene being satisfied, before replacing the plurality of first scene elements with second scene elements, the method further includes: In response to the display duration of the virtual object reaching a target display duration, determining that a scene switching condition for the first sub-scene is satisfied; The display duration is the duration during which the virtual object is located in the first sub-scene.

11. The method according to claim 1, characterized in that In response to a scene switching condition for the first sub-scene being satisfied, before replacing the plurality of first scene elements with second scene elements, the method further includes: In the first sub-scene, displaying a first interactive object; In response to an interaction instruction for the virtual object, controlling the virtual object to interact with the first interactive object; When the virtual object completes the interaction with the first interactive object, it is determined that the scene switching condition for the first sub-scene is satisfied.

12. The method according to claim 1, characterized in that In response to a scene switching condition for the first sub-scene being satisfied, before replacing the plurality of first scene elements with second scene elements, the method further includes: In response to a movement instruction for the virtual object, controlling the virtual object to move in the first sub-scene of the virtual scene; When the virtual object moves to a specific area in the first sub-scene, determining that a scene switching condition for the first sub-scene is satisfied; The specific area includes a specific element, and the specific element is used to identify the position of the specific area in the first sub-scene.

13. The method according to claim 1, characterized in that In response to a scene switching condition for the first sub-scene being satisfied, replacing a plurality of the first scene elements with second scene elements comprises: In response to a scene switching condition for the first sub-scene being met, a first target special effect is used to gradually replace a plurality of the first scene elements with second scene elements according to a first target rule.

14. The method according to claim 13, characterized in that In response to the scene switching condition for the first sub-scene being met, using a first target special effect to gradually replace a plurality of the first scene elements with second scene elements according to a first target rule, includes: In response to a scene switching condition for the first sub-scene being met, an aperture is displayed with a target position in the virtual scene as the center and a first target length as the radius, and a process in which the radius of the aperture gradually decreases is displayed until the aperture becomes a light spot located at the target position, and the display of the light spot is canceled; The last aperture before the aperture becomes the light spot is used as a target aperture, wherein the target aperture includes a plurality of the first scene elements outside; During the reduction of the target aperture, a plurality of the first scene elements included outside the target aperture are replaced by the second scene elements.

15. The method according to claim 13, characterized in that In response to a scene switching condition for the first sub-scene being met, using a first target special effect to gradually replace a plurality of the first scene elements with second scene elements according to a first target rule, including: In response to a scene switching condition for the first sub-scene being satisfied, displaying a process in which a plurality of special effect elements appear from a first end of the virtual scene, move to a second end of the virtual scene, and disappear from the second end; Among the multiple special effect elements, at least two special effect elements have different appearance times or different moving speeds; Taking the special effect element closest to the first end as the target special effect element; During the movement of the target special effect element, the first scene element between the target special effect element and the first end is replaced by the second scene element.

16. The method according to claim 1, wherein: In response to a scene switching condition for the first sub-scene being satisfied, replacing a plurality of the first scene elements with second scene elements comprises: In response to a scene switching condition for the first sub-scene being satisfied, replacing a plurality of the first scene elements with second scene elements at a first rate; In the process of replacing the first scene element with the second scene element, in response to a control instruction for the virtual object, controlling the virtual object to perform a first interactive task; If the virtual object completes the first interactive task, a plurality of the first scene elements are replaced with second scene elements at a second rate; wherein the second rate is greater than the first rate.

17. The method according to claim 1, wherein: Before controlling the first sub-scene to switch to the second sub-scene of the virtual scene, the method further includes: If the process of switching from the first sub-scene to the second sub-scene is interrupted, restoring the replaced second scene elements to the corresponding first scene elements; When the first scene element is completely restored, displaying the first sub-scene of the virtual scene and a cooling countdown; The cooling countdown is used to indicate the remaining time for performing scene switching on the first sub-scene again.

18. The method according to claim 1, characterized in that Before controlling the first sub-scene to switch to the second sub-scene of the virtual scene, the method further includes: If the process of switching from the first sub-scene to the second sub-scene is interrupted, a second target special effect is used to gradually restore the second scene elements to the corresponding first scene elements according to a second target rule.

19. The method according to claim 18, characterized in that If the process of switching from the first sub-scene to the second sub-scene is interrupted, using a second target special effect to gradually restore the second scene elements to corresponding first scene elements according to a second target rule, includes: If the process of switching from the first subscene to the second subscene is interrupted, an aperture is displayed with the target position in the virtual scene as the center and the second target length as the radius, and a process in which the radius of the aperture gradually increases is displayed until the aperture disappears; The last aperture before the aperture disappears is used as a target aperture, and the second scene element exists inside the target aperture; During the process of increasing the target aperture, the second scene element inside the target aperture is restored to the first scene element.

20. The method of claim 1, wherein: Before controlling the first sub-scene to switch to the second sub-scene of the virtual scene, the method further includes: If the process of switching from the first sub-scene to the second sub-scene is interrupted, restoring the replaced second scene elements to the corresponding first scene elements; In the process of restoring the second scene element to the corresponding first scene element, outputting prompt information for prompting that the first scene element is being restored in a target output manner; The target output mode includes at least one of the following: an audio output mode and a vibration output mode.

21. The method of claim 1, wherein: Before controlling the first sub-scene to switch to the second sub-scene of the virtual scene, the method further includes: Displaying first scene prompt information, where the first scene prompt information is used to indicate that the virtual object is currently in a first sub-scene, and different scene prompt information corresponds to different sub-scenes; After controlling the first sub-scene to switch to the second sub-scene of the virtual scene, the method further includes: The first scene prompt information is switched to second scene prompt information, where the second scene prompt information is used to indicate that the virtual object is currently in a second sub-scene.

22. The method of claim 1, wherein: Before controlling the first sub-scene to switch to the second sub-scene of the virtual scene, the method further includes: In the process of replacing the first scene element with the second scene element, in response to a control instruction for the virtual object, the virtual object is controlled to perform a second interactive task in the virtual scene.

23. The method of claim 1, wherein: Before controlling the first sub-scene to switch to the second sub-scene of the virtual scene, the method further includes: In the first sub-scene, displaying a second interactable object; After displaying the virtual object in the second sub-scene, the method further includes: In the second sub-scene, displaying the second interactable object; In response to an interaction instruction for the virtual object, controlling the virtual object to interact with the second interactive object; Among them, the target attribute value of the virtual object in the second sub-scene is greater than the target attribute value of the virtual object in the first sub-scene, and the target attribute value of the second interactive object in the second sub-scene is the same as the target attribute value of the second interactive object in the first sub-scene.

24. The method of claim 1, wherein: The first scene element at least includes a first virtual natural element belonging to a virtual natural phenomenon, and the second scene element at least includes a second virtual natural element belonging to a virtual natural phenomenon; Before controlling the first sub-scene to switch to the second sub-scene of the virtual scene, the method further includes: In the first sub-scene, a first virtual natural element is displayed, where the first virtual natural element is used to cause a negative impact on an environment where the first virtual natural element is located; When the virtual object is in a negative impact area of ​​the first virtual natural element, displaying a negative impact value of the first virtual natural element on the attribute value of the virtual object; In response to a scene switching condition for the first sub-scene being satisfied, replacing a plurality of the first scene elements with second scene elements comprises: In response to a scene switching condition for the first sub-scene being satisfied, replacing the first virtual natural element with the second virtual natural element; Wherein, the second virtual natural element is used to positively affect the environment in which the second virtual natural element is located; After displaying the virtual object in the second sub-scene, the method further includes: When the virtual object is within the positive influence area of ​​the second virtual natural element, the positive influence value of the second virtual natural element on the attribute value of the virtual object is displayed.

25. A virtual scene switching device, characterized in that: The device is run on an electronic device, and the device includes: A first display module, configured to display a virtual object in a first sub-scene of a virtual scene, wherein the first sub-scene includes a plurality of first scene elements except the virtual object; a replacement module, configured to replace a plurality of the first scene elements with second scene elements in response to a scene switching condition for the first sub-scene being satisfied, and control the first sub-scene to switch to the second sub-scene of the virtual scene; The second display module is used to display the virtual object in the second sub-scene.

26. An electronic device, characterized in that: include: A memory for storing executable instructions; The processor is used to implement the virtual scene switching method described in any one of claims 1 to 24 when executing the executable instructions stored in the memory.

27. A computer-readable storage medium, characterized in that: Executable instructions are stored, which are used to cause the processor to execute and implement the virtual scene switching method described in any one of claims 1 to 24.

28. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the virtual scene switching method described in any one of claims 1 to 24 is implemented.