Shooting method and device in virtual scene, equipment, storage medium and program product
By switching different game modes and shooting modes in virtual scenes, providing multiple viewing angle types and shooting parameters, solving the problem of single shooting mode caused by a fixed viewing angle of a single camera, achieving higher shooting diversity and flexibility.
Patent Information
- Application Number
- CN202510380180.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2045-03-27
AI Technical Summary
During the shooting of virtual scenes, a single camera fixed viewing angle leads to a relatively single shooting mode, lacking diversity and flexibility.
It provides a shooting method in a virtual scene. By switching different game modes and shooting modes in a virtual scene, users can choose different viewing angle types and shooting parameters to achieve a diverse shooting experience.
It improves the diversity and flexibility of the shooting process in virtual scenes, and enhances the user's operating experience and shooting freedom.
Smart Images

Figure CN119951130A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a shooting method, device, electronic device, computer-readable storage medium and computer program product in a virtual scene. Background Art
[0002] During the shooting process of relevant games, since only one camera is used in the entire game, the game perspective is the photo perspective. In this way, users can only shoot from the game perspective, that is, there is only one shooting mode with one perspective. Based on this, the shooting mode is relatively single, and the diversity and flexibility of the shooting process are poor. Summary of the invention
[0003] The embodiments of the present application provide a shooting method, device, electronic device, computer-readable storage medium and computer program product in a virtual scene, which can improve the diversity and flexibility of the shooting process in the virtual scene.
[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 shooting in a virtual scene, comprising:
[0006] Displaying a virtual scene in a first game mode, wherein the first game mode is used to control virtual objects in the virtual scene to move in the virtual scene;
[0007] In response to a trigger instruction for the first shooting mode, controlling the virtual scene to switch from the first game mode to the first shooting mode;
[0008] When the virtual scene is in the first shooting mode, displaying a shooting control and a first mode switching control;
[0009] In response to a trigger operation on the first mode switching control, controlling the shooting mode of the virtual scene to switch from the first shooting mode to a second shooting mode;
[0010] The angle of view used for shooting in the first shooting mode and shooting in the second shooting mode is different;
[0011] In response to a trigger operation on the shooting control, a picture of the virtual scene is shot based on the viewing angle type of the second shooting mode.
[0012] The embodiment of the present application provides a shooting device in a virtual scene, including:
[0013] A first display module, used to display a virtual scene in a first game mode, wherein the first game mode is used to control the activities of virtual objects in the virtual scene in the virtual scene;
[0014] A first switching module, configured to control the virtual scene to switch from the first game mode to the first shooting mode in response to a trigger instruction for the first shooting mode;
[0015] A second display module, used for displaying a shooting control and a first mode switching control when the virtual scene is in the first shooting mode;
[0016] A second switching module, configured to control the shooting mode of the virtual scene to switch from the first shooting mode to a second shooting mode in response to a triggering operation on the first mode switching control; wherein the perspective types adopted for shooting in the first shooting mode and shooting in the second shooting mode are different;
[0017] A shooting module is used to shoot a picture of the virtual scene based on the viewing angle type of the second shooting mode in response to a trigger operation on the shooting control.
[0018] In the above scheme, the device also includes a third display module, which is used to display a shooting entrance in the virtual scene in the first game mode; in response to a trigger operation on the shooting entrance, display at least two candidate shooting modes including the first shooting mode, and different candidate shooting modes correspond to different perspective types; in response to a selection operation on the first shooting mode, a trigger instruction for the first shooting mode is received.
[0019] In the above scheme, the device also includes a fourth display module, which is used to display the image of the virtual scene based on default shooting parameters when the virtual scene is in the first shooting mode; wherein the shooting parameters include at least one of the field of view direction and the field of view angle corresponding to the first shooting mode; in response to a parameter adjustment instruction for the shooting parameter, the default shooting parameter is adjusted, and the image of the virtual scene is displayed using the adjusted shooting parameters.
[0020] In the above scheme, the fourth display module is also used to display a second mode switching control when the virtual scene is in the first shooting mode; wherein the second mode switching control is used to switch from the first shooting mode to the second game mode, and the second game mode is used to control the activities of virtual objects in the virtual scene in the virtual scene without exiting the first shooting mode; in response to a trigger operation on the second mode switching control, switching from the first shooting mode to the second game mode; based on the second game mode, when the virtual scene is switched to the first shooting mode again, the adjusted shooting parameters are used to display the picture of the virtual scene in the first shooting mode.
[0021] In the above scheme, the fourth display module is also used to display a reset control when the virtual scene is in the first shooting mode, and the reset control is used to reset the shooting parameters of the shooting mode; in response to the trigger operation of the reset control, the shooting parameters of the first shooting mode are reset from the adjusted shooting parameters to the default shooting parameters, and the default shooting parameters are used to display the picture of the virtual scene.
[0022] In the above scheme, the virtual scene includes a first virtual object and a second virtual object, and the perspective type corresponding to the first shooting mode is a first-person perspective; the device also includes a fifth display module, and the fifth display module is used to display the virtual scene using the first-person perspective when the virtual scene is in the first shooting mode; wherein the first-person perspective is the perspective of the first virtual object; in response to an object perspective switching instruction, the display perspective of the virtual scene is switched from the perspective of the first virtual object to the perspective of the second virtual object; in response to a trigger operation on the shooting control, the picture of the virtual scene is shot based on the perspective of the second virtual object in the first shooting mode.
[0023] In the above scheme, the perspective type corresponding to the first shooting mode is the first-person perspective, the virtual scene includes a first virtual object, and the first-person perspective is the perspective of the first virtual object; the device also includes a first control module, and the first control module is used to control the first virtual object to move in the virtual scene in response to a movement operation on the first virtual object; during the movement of the first virtual object, the shooting field of view under the first-person perspective is controlled to change synchronously.
[0024] In the above scheme, the perspective type corresponding to the first shooting mode is the first-person perspective, the virtual scene includes a first virtual object and a virtual pet, and the first-person perspective is the perspective of the first virtual object; the device also includes a second control module, and the second control module is used to control the first virtual object to move in the virtual scene in response to a movement operation on the first virtual object; during the movement of the first virtual object, the process of the virtual pet following the first virtual object and moving synchronously is displayed.
[0025] In the above scheme, the second control module is also used to control the first virtual object to adjust the behavior of the virtual pet in response to the control operation on the first virtual object during the movement of the virtual pet; wherein the behavior of the virtual pet includes at least one of the orientation, posture, position, and expression of the virtual pet; when the adjustment of the first virtual object is completed, in response to the trigger operation on the shooting control, the picture of the virtual scene is shot based on the perspective type of the first shooting mode; wherein the picture of the virtual scene includes at least the virtual pet with adjusted behavior and the first virtual object.
[0026] In the above scheme, the perspective type corresponding to the second shooting mode is a third-person perspective, and the device also includes a sixth display module, which is used to display a first virtual camera in the virtual scene when the virtual scene is in the second shooting mode, and the perspective of the first virtual camera is the third-person perspective; the virtual scene is displayed using the perspective of the first virtual camera; the shooting module is also used to shoot the image of the virtual scene based on the perspective of the first virtual camera in response to a trigger operation on the shooting control.
[0027] In the above scheme, the device also includes a parameter setting module, which is used to display a parameter setting interface in the second shooting mode when the virtual scene is in the second shooting mode, and the parameter setting interface is used to set the shooting parameters; based on the parameter setting interface, in response to the setting operations of the countdown parameters and the continuous shooting parameters, the shooting countdown and the number of continuous shootings when shooting the pictures in the virtual scene are set respectively; the shooting module is also used to respond to the trigger operation of the shooting control, based on the set shooting countdown and the number of continuous shootings, to continuously shoot the pictures in the virtual scene from the perspective of the first virtual camera.
[0028] In the above scheme, the shooting countdown is set as the target duration, and the number of continuous shots is set as the target number; the shooting module is also used to display the countdown of the target duration in response to a trigger operation on the shooting control; when the countdown of the target duration is reset, the picture in the virtual scene from the perspective of the first virtual camera is continuously shot the target number of times.
[0029] In the above scheme, the sixth display module is also used to divide the display interface of the virtual scene into a first area and a second area when the virtual scene is in the second shooting mode; in the second area, the virtual scene is displayed using the perspective of the first virtual camera; in the first area, the screen of the virtual scene in the first game mode is displayed, and the first game mode is used to control the activities of virtual objects in the virtual scene in the virtual scene.
[0030] In the above scheme, the virtual scene includes a first virtual object, and the sixth display module is also used to display a third mode switching control, wherein the third mode switching control is used to switch the second shooting mode to a second game mode, and the second game mode is used to control the virtual object in the virtual scene to move in the virtual scene without exiting the first shooting mode; in response to a trigger operation on the third mode switching control, the virtual scene is switched from the second shooting mode to the second game mode; in response to a position adjustment operation on the first virtual object, the relative position relationship between the first virtual object and the first virtual camera is adjusted in the virtual scene in the second game mode; when the relative position relationship adjustment is completed, in response to a trigger instruction for the second shooting mode, the virtual scene is controlled to switch from the second game mode to the second shooting mode; the shooting module is also used to shoot a picture of the virtual scene including the first virtual object based on the perspective of the first virtual camera in response to a trigger operation on the shooting control.
[0031] In the above solution, the sixth display module is further used to adjust the height of the first virtual camera in the virtual scene in response to a height adjustment operation on the first virtual camera, so as to adjust the height of the viewing angle of the first virtual camera.
[0032] In the above scheme, the device also includes a third control module, which is used to control the movement of the first virtual object in the virtual scene in response to the movement operation of the first virtual object; during the movement of the first virtual object, keep the field of view of the first virtual camera unchanged.
[0033] In the above scheme, the third control module is also used to display prompt information when the first virtual object moves out of the field of view, and the prompt information is used to guide the adjustment of the shooting parameters of the first virtual camera; in response to the parameter adjustment operation of the shooting parameters of the first virtual camera triggered by the prompt information, the shooting parameters of the first virtual camera are adjusted; in response to the completion of the adjustment of the shooting parameters of the first virtual camera, the first virtual object is displayed in the field of view of the first virtual camera.
[0034] In the above scheme, the virtual scene includes a first game mode and a shooting mode, the first game mode is used to control the activities of virtual objects in the virtual scene in the virtual scene, and the shooting mode includes the first shooting mode and the second shooting mode; the device also includes a seventh display module, and the seventh display module is used to display an exit control when the virtual scene is in the shooting mode; in response to a trigger operation on the exit control, the virtual scene is controlled to exit the shooting mode, and the virtual scene is controlled to enter the first game mode.
[0035] In the above scheme, the device also includes a fourth control module, which is used to display a first virtual object and a virtual pet in the virtual scene; in response to a control operation on the first virtual object, control the first virtual object to guide the virtual pet to move from a current position to a target position; when the virtual pet moves to the target position, in response to a trigger operation on the shooting control, shoot the picture of the virtual scene based on the perspective type of the first shooting mode; wherein the picture of the virtual scene includes the virtual pet at the target position.
[0036] In the above scheme, the device also includes an eighth display module, which is used to display the focus area when the virtual scene is in the second shooting mode; in response to the appearance of a third virtual object in the focus area, display object information obtained by identifying the third virtual object.
[0037] In the above scheme, the device also includes a ninth display module, and the ninth display module is used to display a virtual photo album in the picture of the virtual scene, and to display at least one virtual image obtained by photographing the picture in the virtual scene in the virtual photo album.
[0038] In the above scheme, the ninth display module is also used to display the cover of the virtual album in the virtual scene, and the cover is the most recently captured virtual image of the at least one virtual image; in response to a trigger operation on the cover, the virtual album is displayed.
[0039] In the above scheme, the device also includes a tenth display module, which is used to display a first virtual object in the virtual scene, and in response to a movement operation on the first virtual object, control the first virtual object to move toward a fourth virtual object; when the distance between the first virtual object and the fourth virtual object is less than or equal to a distance threshold, in response to the fourth virtual object being in a shooting mode, display a fourth virtual camera following the fourth virtual object.
[0040] In the above scheme, the device also includes a recording module, which is used to record the image of the virtual scene based on the perspective type of the second shooting mode in response to a video recording instruction triggered by the shooting control.
[0041] In the above scheme, the device also includes a first generating module, which is used to generate a second virtual camera when the virtual scene is in the first shooting mode, and render a first picture of the virtual scene in the first shooting mode based on the second virtual camera; based on the first picture, display the virtual scene in the first shooting mode.
[0042] In the above scheme, the device also includes a second generating module, and the second generating module is used to generate a third virtual camera different from the second virtual camera when the virtual scene is in the second shooting mode; based on the third virtual camera, render a second picture of the virtual scene in the second shooting mode; based on the second picture, display the virtual scene in the second shooting mode.
[0043] An embodiment of the present application provides an electronic device, including:
[0044] Memory for storing computer executable instructions or computer programs;
[0045] The processor is used to implement the shooting method in the virtual scene provided in the embodiment of the present application when executing the computer executable instructions or computer program stored in the memory.
[0046] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions or a computer program for causing a processor to execute and implement the shooting method in a virtual scene provided by the embodiment of the present application.
[0047] The embodiment of the present application provides a computer program product, which includes computer executable instructions or computer programs, and the computer executable instructions or computer programs are stored in a computer-readable storage medium. The processor of the electronic device reads the computer executable instructions or computer programs from the computer-readable storage medium, and the processor executes the computer executable instructions or computer programs, so that the electronic device performs the shooting method in the virtual scene provided in the embodiment of the present application.
[0048] The embodiments of the present application have the following beneficial effects:
[0049] When the virtual scene is in the first game mode, in response to the trigger instruction for the first shooting mode, the virtual scene is controlled to switch from the first game mode to the first shooting mode, and then in response to the trigger operation for the displayed first mode switching control, the shooting mode of the virtual scene is controlled to switch from the first shooting mode to the second shooting mode, so that in response to the trigger operation for the displayed shooting control, the screen of the virtual scene is shot based on the perspective type of the second shooting mode. In this way, two shooting modes of different perspective types are provided, which improves the diversity and flexibility of the shooting process and the utilization rate of the display resources of the electronic device compared to the solution in the related art that can only shoot based on the game perspective; at the same time, through the two shooting modes of different perspective types, the user can choose which shooting mode to be in according to the needs and the current game state, which solves the problem that the player is easy to lose control of the game character and it is difficult to regain control of the game character under the fixed perspective of a single camera, and does not need to only allow the game character to maintain static actions and expressions or restrict its ability to move in order to avoid the "out of the picture" situation, which can maximize the freedom and richness of the shooting process and further improve the diversity and flexibility of the shooting process. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 is a schematic diagram of the architecture of a shooting system 100 in a virtual scene provided in an embodiment of the present application;
[0051] Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0052] Figure 3 is a flowchart of a shooting method in a virtual scene provided in an embodiment of the present application;
[0053] Figure 4 is a schematic diagram of a virtual scene in a first game mode provided by an embodiment of the present application;
[0054] Figure 5 is a schematic diagram of a first game mode and a first shooting mode provided in an embodiment of the present application;
[0055] Figure 6 is a schematic diagram of a flow chart of adjusting shooting parameters provided in an embodiment of the present application;
[0056] Figure 7 is a schematic diagram of a second virtual camera provided in an embodiment of the present application;
[0057] Figure 8 is a schematic diagram of a second mode switching control provided in an embodiment of the present application;
[0058] Fig. 9 is a schematic diagram of a reset control provided in an embodiment of the present application;
[0059] Fig.10 is a schematic diagram of a shooting control and a first mode switching control provided by an embodiment of the present application;
[0060] Fig.11 is a schematic diagram of a first virtual camera provided in an embodiment of the present application;
[0061] Fig.12 is a schematic diagram of a parameter setting interface provided in an embodiment of the present application;
[0062] Fig.13 is a schematic diagram of a parameter setting control provided in an embodiment of the present application;
[0063] Fig.14 It is a schematic diagram of a picture-in-picture format provided in an embodiment of the present application;
[0064] Fig.15 is a schematic diagram of a third mode switching control provided in an embodiment of the present application;
[0065] Fig.16 is a schematic diagram of photographing multiple virtual objects provided by an embodiment of the present application;
[0066] Fig.17 is a schematic diagram of adjusting the height of the first virtual camera provided in an embodiment of the present application;
[0067] Fig.18 is a schematic diagram of a virtual photo album provided in an embodiment of the present application;
[0068] Fig.19 is a schematic diagram of a target virtual image and an operation control provided in an embodiment of the present application;
[0069] Fig. 20 is a schematic diagram of a cover provided in an embodiment of the present application;
[0070] Fig.21 is a schematic diagram of focus area and object information provided by an embodiment of the present application;
[0071] Fig. 22is a schematic diagram of an exit control provided in an embodiment of the present application;
[0072] Fig.23 is a schematic diagram of a fourth virtual object and a fourth virtual camera provided in an embodiment of the present application;
[0073] Fig.24 It is a schematic diagram of the change process of the fourth virtual camera provided in an embodiment of the present application. DETAILED DESCRIPTION
[0074] 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.
[0075] 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.
[0076] 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.
[0077] 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.
[0078] 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.
[0079] 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.
[0080] 2) 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 the terminal and needs to cooperate with the server to run, that is, it requires corresponding servers and service programs in the network to provide corresponding services. In this way, specific communication connections need to be established on the client and server sides to ensure the normal operation of the application, such as virtual scene clients (such as game clients) and video clients.
[0081] 3) Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.
[0082] 4) A virtual scene is a virtual scene displayed (or provided) when an application is running on a terminal. The virtual scene can be a simulation of the real world, a semi-simulated virtual environment, or a purely fictional virtual environment. The virtual scene can be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene. The embodiment of the present application does not limit the dimension of the virtual scene. For example, a virtual scene may include the sky, land, ocean, etc. The land may include environmental elements such as deserts and cities, and users can control virtual objects to move in the virtual scene.
[0083] 5) 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.
[0084] 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.
[0085] 6) Virtual pets refer to virtual creatures or virtual non-living things owned by virtual objects. Virtual pets are set up for virtual objects, which can improve the richness of the content displayed in virtual scenes. Among them, virtual objects can be one or more of player characters and non-player characters. The relationship between virtual pets and virtual objects is explained below. Virtual pets have dependence, interactivity, functionality and growth.
[0086] Dependence means that a virtual pet can be attached to a virtual object, that is, there is an association between the virtual pet and the virtual object, and the two are bound to each other. Interactivity means that players can control virtual objects to interact with virtual pets. For example, players can control virtual objects to feed, train or command virtual pets.
[0087] Functionality refers to the existence of corresponding functions of virtual pets, which may include assisting virtual objects to interact with other virtual objects in virtual scenes (i.e., fighting), assisting virtual objects to interact with other virtual pets in virtual scenes (i.e., fighting), assisting virtual objects to find items in virtual scenes, and assisting virtual objects to move in virtual scenes, that is, virtual pets can be used as virtual vehicles for virtual objects. Growth refers to the ability to improve the properties, skills, and levels of virtual pets through feeding, training, fighting, etc.
[0088] See also Figure 1 , Figure 1 It is a schematic diagram of the architecture of the shooting system 100 in the virtual scene provided in an embodiment of the present application, a terminal (terminal 400 is shown as an example), and the terminal 400 is connected to the server 200 through a network 300, wherein the network 300 can be a wide area network or a local area network, or a combination of the two, and wireless or wired links are used to realize data transmission.
[0089] The server 200 is used to send a picture of a virtual scene in a first game mode to the terminal 400;
[0090] Terminal 400 is used to receive an image of a virtual scene in a first game mode and display the virtual scene in the first game mode, wherein the first game mode is used to control the activities of virtual objects in the virtual scene in the virtual scene; in response to a trigger instruction for a first shooting mode, control the virtual scene to switch from the first game mode to the first shooting mode; when the virtual scene is in the first shooting mode, display a shooting control and a first mode switching control; in response to a trigger operation for the first mode switching control, control the shooting mode of the virtual scene to switch from the first shooting mode to the second shooting mode; wherein the perspective types used for shooting in the first shooting mode and shooting in the second shooting mode are different; in response to a trigger operation for the shooting control, shoot the image of the virtual scene based on the perspective type of the second shooting mode.
[0091] In this way, two shooting modes with different perspectives are provided, which improves the diversity and flexibility of the shooting process and the utilization rate of display resources of electronic devices compared to the solutions in the related art that can only shoot based on the game perspective. At the same time, through the two shooting modes with different perspectives, users can choose which shooting mode to be in according to their needs and the current game status, which solves the problem that players easily lose control of the game character and find it difficult to regain control of the game character under the fixed perspective of a single camera. There is no need to allow only the game character to maintain static movements and expressions, or restrict its ability to move, in order to avoid "out of the picture". The freedom and richness of the shooting process can be retained to the maximum extent, further improving the diversity and flexibility of the shooting process.
[0092] 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 virtual reality device, 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.
[0093] Next, an electronic device that implements the shooting method in a virtual scene provided by an embodiment of the present application is described. Figure 2 , Figure 2is 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 Taking the terminal 400 shown in as an example, Figure 2 The 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 .
[0094] 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.
[0095] 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.
[0096] 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.
[0097] 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.
[0098] 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.
[0099] 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;
[0100] 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.;
[0101] 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);
[0102] 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.
[0103] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2 The shooting device 455 in 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 first switching module 4552, a second display module 4553, a second switching module 4554 and a shooting module 4555. These modules are logical, and therefore can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.
[0104] In other embodiments, the device provided in the embodiments of the present application may be implemented in hardware. As an example, the shooting device in the virtual scene provided in the embodiments of the present application may be a processor in the form of a hardware decoding processor, which is programmed to execute the shooting method in the virtual scene provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor may 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.
[0105] In some embodiments, the terminal or server can implement the shooting method in the virtual scene provided in the embodiments 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 local (Native) application (APP, Application), that is, a local client, 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 only needs to be downloaded to a browser environment to run; it can also be a small program that can be embedded in any APP. In short, the above-mentioned computer program can be any form of client, module or plug-in.
[0106] Based on the above description of the shooting system and electronic device in the virtual scene provided by the embodiment of the present application, the shooting method in the virtual scene provided by the embodiment of the present application is described below. In actual implementation, the shooting method in the virtual scene provided by the embodiment of the present application can be implemented by the terminal or the server alone, or by the terminal and the server in collaboration, so that Figure 1 The terminal 400 in the embodiment of the present application independently executes the shooting method in the virtual scene provided by the embodiment of the present application as an example for explanation. Figure 3 , Figure 3 is a flow chart of a method for shooting in a virtual scene provided in an embodiment of the present application. Next, Figure 3 The steps shown are explained.
[0107] Step 101: The terminal displays a virtual scene in a first game mode, where the first game mode is used to control the activities of virtual objects in the virtual scene.
[0108] It should be noted that before displaying the virtual scene in the first game mode, first, the server will receive a screen acquisition request for the virtual scene sent by the terminal. Here, the terminal is provided with a client that supports shooting in the virtual scene, such as a game client, etc. When the user opens the client on the terminal and the terminal runs the client, a screen acquisition request for the virtual scene is generated and sent to the server, so that the server responds to the screen acquisition request and sends the screen of the virtual scene, that is, the game data, to the terminal, so that the terminal presents the virtual scene in the first game mode.
[0109] Among them, an application supporting virtual scenes is installed on the terminal. The application can be any one of 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 the virtual objects in the virtual scene to carry out activities. When the user opens the application on the terminal and the terminal runs the application, the terminal presents a picture of the virtual scene, where the picture of the virtual scene is observed from the first-person object perspective of the virtual scene, or observed from the third-person perspective of the virtual scene, and the picture of the virtual scene includes a first virtual object, which can be controlled by the current player or by other players (teammates) belonging to the same group as the current player.
[0110] It should be noted that the first game mode is used to control the virtual objects in the virtual scene to move in the virtual scene, that is, the first game mode refers to a mode in which the user can control the virtual objects to play games in the game scene under normal circumstances, that is, it is used to control the virtual objects in the virtual scene to move in the virtual scene; for example, see Figure 4 , Figure 4 is a schematic diagram of a virtual scene in a first game mode provided in an embodiment of the present application, based on Figure 4 , Figure 4 The figure in the middle shows the process of a virtual object flying in a virtual scene.
[0111] Step 102, in response to a trigger instruction for the first shooting mode, controlling the virtual scene to switch from the first game mode to the first shooting mode.
[0112] In actual implementation, after displaying the virtual scene in the first game mode, a trigger instruction for the first shooting mode is received, so that in response to the trigger instruction for the first shooting mode, the virtual scene is controlled to switch from the first game mode to the first shooting mode.
[0113] It should be noted that the trigger instruction for the first shooting mode can be triggered by a touch operation, such as displaying a shooting entrance, so that in response to a trigger operation on the shooting entrance, such as a click operation, a trigger instruction for the first shooting mode is received; the trigger instruction for the first shooting mode can be triggered by at least one of a mouse, keyboard, and joystick, and this is not limited to the embodiments of the present application.
[0114] At the same time, the first shooting mode is used to indicate the mode in which the user can perform shooting. The perspective corresponding to the first shooting mode includes the first-person perspective, the third-person perspective, the God's perspective or the selfie perspective, etc., which may be the same or different from the perspective of the user when playing the game normally. For example, when they are the same, the perspective corresponding to the first shooting mode and the perspective of the user when playing the game normally may both be the first-person perspective or the third-person perspective. When they are different, the perspective corresponding to the first shooting mode may be the first-person perspective, and the perspective of the user when playing the game normally may be the third-person perspective, etc. The embodiments of the present application are not limited to this.
[0115] For example, see Figure 5 , Figure 5 is a schematic diagram of a first game mode and a first shooting mode provided in an embodiment of the present application, based on Figure 5 , if the first shooting mode is the first-person perspective, Figure 5 In a, 501 indicates a virtual object controlled by a user, and the virtual object is swimming in the water. In the virtual scene in the first game mode, the following is displayed: Figure 5 The picture indicated by a; and Figure 5 The scene indicated by b in the first shooting mode is the scene from the perspective of the virtual object indicated by 501 in a.
[0116] In this way, by triggering the first shooting mode, the virtual scene is switched from the game mode for controlling the activities of virtual objects in the virtual scene to the first shooting mode. In this way, since users have different visual experiences and operational experiences in different modes, the visual diversity and operational diversity in the virtual scene are improved, thereby improving the user experience. At the same time, by triggering the first shooting mode, the human-computer interaction efficiency and the hardware resource utilization of the electronic device can also be improved.
[0117] In actual implementation, the first shooting mode can be actively selected by the user. Specifically, in response to a trigger instruction for the first shooting mode, before the virtual scene is controlled to switch from the first game mode to the first shooting mode, a shooting entrance can be displayed in the virtual scene in the first game mode; in response to a trigger operation for the shooting entrance, at least two candidate shooting modes including the first shooting mode are displayed, and different candidate shooting modes correspond to different perspective types; in response to a selection operation for the first shooting mode, a trigger instruction for the first shooting mode is received.
[0118] It should be noted that the at least two candidate shooting modes include at least a first shooting mode and a second shooting mode to be described later, and different candidate shooting modes correspond to different perspective types, that is, the first shooting mode and the second shooting mode correspond to different perspective types, and the perspective types here include at least a first-person perspective, a third-person perspective, a God's perspective or a selfie perspective, etc., and the embodiments of the present application are not limited to this.
[0119] Here, in response to a selection operation for the first shooting mode, a trigger instruction for the first shooting mode is received. If a selection operation for the second shooting mode is received, a trigger instruction for the second shooting mode is received, so that in response to the trigger instruction for the second shooting mode, the virtual scene is controlled to switch from the first game mode to the second shooting mode; then, when the virtual scene is in the second shooting mode, the shooting control and the first mode switching control are displayed, and in response to the trigger operation for the first mode switching control, the shooting mode of the virtual scene is controlled to switch from the second shooting mode to the first shooting mode; finally, in response to the trigger operation for the shooting control, the picture of the virtual scene is photographed based on the perspective type of the first shooting mode.
[0120] It should be noted that the process of controlling the virtual scene to switch from the first game mode to the second shooting mode in response to the trigger instruction for the second shooting mode is similar to the process of controlling the virtual scene to switch from the first game mode to the first shooting mode in response to the trigger instruction for the first shooting mode. The process of controlling the virtual scene to switch from the first game mode to the first shooting mode in response to the trigger instruction for the first shooting mode will be described below, and the process of controlling the virtual scene to switch from the first game mode to the second shooting mode in response to the trigger instruction for the second shooting mode will not be repeated here.
[0121] In this way, by providing candidate shooting modes of different perspective types for users to choose the shooting mode to enter, different perspective modes will bring different immersion. Users can choose the most suitable perspective according to their preferences and game needs, thereby obtaining a more personalized user experience; at the same time, different perspective modes may correspond to different operating methods, thereby improving the diversity of the user's operating process in the virtual scene, that is, improving the efficiency of human-computer interaction and the utilization of hardware resources of electronic equipment.
[0122] In actual implementation, when the virtual scene is in the first shooting mode, the shooting parameters in the first shooting mode may also be adjusted; specifically, see Figure 6 , Figure 6 is a schematic diagram of a flow chart of adjusting shooting parameters provided in an embodiment of the present application, based on Figure 6In response to the triggering operation on the first mode switching control, before controlling the shooting mode of the virtual scene to switch from the first shooting mode to the second shooting mode, the process of adjusting the shooting parameters in the first shooting mode is achieved by the following steps.
[0123] Step 201, when the virtual scene is in a first shooting mode, the terminal displays a picture of the virtual scene based on default shooting parameters; wherein the shooting parameters include at least one of a field of view direction and a field of view angle corresponding to the first shooting mode.
[0124] In actual implementation, the image of the virtual scene is rendered by a virtual camera. For example, when the virtual scene is in a first shooting mode, a second virtual camera is generated, and based on the second virtual camera, a first image of the virtual scene in the first shooting mode is rendered; based on the first image, the virtual scene in the first shooting mode is displayed; wherein the default shooting parameters here are the initial shooting parameters of the second virtual camera, that is, when the second virtual camera is generated, the initial field of view direction and initial field of view angle of the second virtual camera.
[0125] It should be noted that the second virtual camera here is a component that simulates the function of a real camera, and determines the viewing angle of the virtual scene by simulating the shooting function of a real camera, and defines the position and direction of the virtual object controlled by the user in the virtual environment, that is, it is used to determine the scene content of the virtual scene observed by the virtual object controlled by the user;
[0126] When the perspective type of the first shooting mode is different, the observation perspective of the virtual scene corresponding to the second virtual camera is also different. For example, when the perspective type of the first shooting mode is the first-person perspective, the second virtual camera can be used as the "eyes" of the virtual object controlled by the user. In this way, if the direction of the virtual object changes, the direction of the second virtual camera will also change, that is, the scene content of the virtual scene observed by the virtual object controlled by the user determined by the second virtual camera will also change.
[0127] For example, see Figure 7 , Figure 7 is a schematic diagram of a second virtual camera provided in an embodiment of the present application, based on Figure 7 , Figure 7 The dashed boxes 701 and 702 are schematic diagrams of second virtual cameras in different directions. The second virtual cameras here are also the "eyes" of the virtual object.
[0128] In this way, when the virtual scene is in the first shooting mode, a second virtual camera is generated, and the image of the virtual scene in the first shooting mode is rendered through the second virtual camera. In this way, when the virtual scene is in the first shooting mode, a virtual camera dedicated to shooting is generated separately, and shooting is performed based on the virtual camera. Compared with the solution in the related art that the virtual camera corresponding to the game and the virtual camera corresponding to the shooting are the same camera, it provides richer shooting perspectives without affecting the user's game operation, facilitates the user to shoot, and improves the user's shooting experience.
[0129] Step 202 , in response to a parameter adjustment instruction for a shooting parameter, adjusting the default shooting parameter, and using the adjusted shooting parameter to display a picture of a virtual scene.
[0130] It should be noted that the field of view direction refers to the direction that the virtual camera or observer faces, that is, the scene direction that the virtual camera faces, which determines the direction from which the user observes the virtual scene or the game world; among them, the duration direction is determined based on the front vector, the top vector and the right vector. Here, the front vector is a vector pointing to the front direction of the virtual camera, which defines the direction of the camera. In three-dimensional space, this vector usually points from the position of the camera to the center of the camera's field of view; the top vector is a vector perpendicular to the front vector, usually pointing to the sky or the top of the scene. It is used to define the up and down directions of the scene, and together with the front vector, it determines a reference plane perpendicular to the field of view plane; the right vector is a vector obtained by cross-producting the front vector and the top vector, which defines the right direction of the field of view. Then, these three vectors together constitute a local coordinate system in three-dimensional space, which is used to describe the direction of the camera in the scene.
[0131] It should be noted that the field of view direction directly defines the position and orientation vector of the virtual camera, and determines which scene objects should be rendered and how to render them. For example, in perspective projection, the field of view direction affects the perspective effect of the scene; in the culling process, the field of view direction is used to determine which objects are within the camera's field of view and which are outside the field of view. By changing the field of view direction, the camera can be moved and rotated, thereby changing the user's perspective and viewing experience.
[0132] The field of view (FOV) refers to the angle of the scene range that a virtual camera or observer can see. It is a parameter that describes the width of the camera's field of view, usually measured in degrees. The field of view is determined based on the horizontal field of view and the vertical field of view. The horizontal field of view refers to the angle of the scene range that a virtual camera can see in the horizontal direction, which determines the width of the field of view on the left and right sides; the vertical field of view refers to the angle of the scene range that a virtual camera can see in the vertical direction, which determines the width of the field of view on the upper and lower sides.
[0133] It should be noted that the size of the field of view angle directly affects the perspective effect, the field of view range, and the rendering performance; among them, for the perspective effect, the larger the field of view angle, the more obvious the perspective effect, and the more exaggerated the effect of near big and far small; for the field of view range, the larger the field of view angle, the wider the scene that can be seen, but the details may be reduced because the same size screen needs to render a larger scene; for rendering performance, the larger the field of view angle, the more pixels need to be rendered, which may have a negative impact on graphics processing performance.
[0134] In actual implementation, since the shooting parameters include at least one of the field of view direction and the field of view angle, the parameter adjustment instructions for the shooting parameters are different for different shooting parameters; next, taking different situations of shooting parameters as an example, the process of adjusting the default shooting parameters in response to the parameter adjustment instructions for the shooting parameters, and using the adjusted shooting parameters to display the image of the virtual scene is explained.
[0135] In some embodiments, the shooting parameters include a field of view direction, so that in response to a parameter adjustment instruction for the shooting parameters, before adjusting the default shooting parameters, in response to a drag operation on a picture of the virtual scene, a parameter adjustment instruction for the field of view direction is received;
[0136] Among them, if the dragging operation is a dragging operation to the left, the parameter adjustment instruction indicates that the field of view direction is adjusted to the left; if the dragging operation is a dragging operation to the right, the parameter adjustment instruction indicates that the field of view direction is adjusted to the right; if the dragging operation is an upward dragging operation, the parameter adjustment instruction indicates that the field of view direction is adjusted upward; if the dragging operation is a downward dragging operation, the parameter adjustment instruction indicates that the field of view direction is adjusted downward.
[0137] In some embodiments, the shooting parameters include a field of view angle, so that before adjusting the default shooting parameters in response to the parameter adjustment instruction for the shooting parameters, the parameter adjustment instruction for the field of view angle is received in response to a zoom operation on the picture of the virtual scene;
[0138] Among them, if the zoom operation is a zoom-out operation, that is, a two-finger pinching operation, the parameter adjustment instruction indicates that the field of view angle is increased; if the zoom operation is a zoom-in operation, that is, a two-finger separation operation, the parameter adjustment instruction indicates that the field of view angle is decreased.
[0139] In other embodiments, the shooting parameters include the field of view direction and the field of view angle, so that in response to the parameter adjustment instruction for the shooting parameters, before the default shooting parameters are adjusted, the parameter adjustment instruction for the shooting parameters is received in response to the dragging operation and the zooming operation on the picture of the virtual scene, that is, in response to the dragging operation on the picture of the virtual scene, the parameter adjustment instruction for the field of view direction is received; in response to the zooming operation on the picture of the virtual scene, the parameter adjustment instruction for the field of view angle is received.
[0140] It should be noted that the execution order of the drag operation and the zoom operation can be the drag operation first and the zoom operation later, or the zoom operation first and the drag operation later. This is not limited in the embodiments of the present application.
[0141] At the same time, as described above, if the drag operation is a left drag operation, the parameter adjustment instruction indicates that the field of view direction is adjusted to the left, and if the drag operation is a right drag operation, the parameter adjustment instruction indicates that the field of view direction is adjusted to the right; if the drag operation is an upward drag operation, the parameter adjustment instruction indicates that the field of view direction is adjusted upward; if the drag operation is a downward drag operation, the parameter adjustment instruction indicates that the field of view direction is adjusted downward;
[0142] If the zoom operation is a zoom-out operation, that is, a two-finger pinching operation, the parameter adjustment instruction indicates that the field of view angle is increased; if the zoom operation is a zoom-in operation, that is, a two-finger separation operation, the parameter adjustment instruction indicates that the field of view angle is decreased.
[0143] In this way, after entering the shooting mode, users can customize the viewing angle by adjusting the shooting parameters, which can not only obtain visual effects that are more in line with personal preferences or specific game scenes, but also enhance the player's sense of immersion; at the same time, users can adjust the shooting parameters according to the display characteristics and performance of their own devices to adapt to different devices and ensure the best display effect on different devices.
[0144] In some embodiments, it is also possible to temporarily return from the shooting mode to the game mode. At this time, although the user is in the game mode, the shooting mode has not been exited. For example, if the user directly exits the shooting mode and returns to the game mode (that is, the first game mode described above), then when the user returns to the corresponding shooting mode, the shooting parameters corresponding to the shooting mode are the initial shooting parameters, that is, when the user returns to the corresponding shooting mode, the initial shooting parameters are obtained, and the initial shooting parameters are used to display the image of the virtual scene; if the user temporarily returns from the shooting mode to the game mode, that is, the user has not yet exited the shooting mode, then when the user returns to the corresponding shooting mode, the shooting parameters corresponding to the shooting mode are the shooting parameters adjusted before the return, which is equivalent to that if the user temporarily returns from the shooting mode to the game mode, the data in the corresponding shooting mode will be cached to facilitate the user to re-enter the shooting mode for shooting, that is, when the user returns to the corresponding shooting mode, the shooting parameters adjusted before the return are obtained, and the adjusted shooting parameters are used to display the image of the virtual scene. Specifically, the virtual scene includes a first virtual object, so that when the virtual scene is in a first shooting mode, a second mode switching control is displayed; wherein the second mode switching control is used to switch from the first shooting mode to the second game mode, and the second game mode is used to control the activities of virtual objects in the virtual scene in the virtual scene without exiting the first shooting mode; in response to a trigger operation on the second mode switching control, the first shooting mode is switched to the second game mode; based on the second game mode, when the virtual scene is switched to the first shooting mode again, the adjusted shooting parameters are used to display the picture of the virtual scene in the first shooting mode.
[0145] It should be noted that the second game mode is used to indicate a game mode that temporarily returns from the shooting mode. In this mode, the user can play the game normally, but the shooting parameters in the shooting mode will also be cached, which is equivalent to the user being in the shooting mode, but the current perspective is switched from the perspective in the shooting mode to the game perspective; at the same time, in the second game mode, if the virtual object controlled by the user performs any behavior, the virtual object in the first shooting mode will behave synchronously. For example, in the second game mode, if the virtual object moves from A to B, the virtual object will be displayed at B when switching from the second game mode to the first shooting mode; in addition, the second mode switching control can be displayed in any blank position in the virtual scene, and this is not limited to the embodiments of the present application.
[0146] For example, see Figure 8 , Figure 8 is a schematic diagram of a second mode switching control provided in an embodiment of the present application, based on Figure 8 , Figure 8 What is indicated is the scene content of the virtual scene in the first shooting mode, wherein 801 indicates the second mode switching control.
[0147] In actual implementation, the trigger operation for the second mode switching control can be a click operation. In response to the trigger operation for the second mode switching control, after switching from the first shooting mode to the second game mode, it is also possible to, in the virtual scene of the second game mode, in response to the interaction operation or movement operation of the first virtual object controlled by the user, display the interaction process of the first virtual object in the virtual scene of the second game mode, or display the movement process of the first virtual object in the second game mode; then, when the first virtual object completes the interaction process or the movement process, in response to the re-triggering operation for the second mode switching control, switch from the second game mode to the first shooting mode; when the virtual scene is switched to the first shooting mode again, use the adjusted shooting parameters to display the picture of the virtual scene in the first shooting mode.
[0148] It should be noted that in the shooting mode, if the user suddenly needs to perform an interactive task or needs to move, and may have adjusted the satisfactory shooting parameters so as not to exit the shooting mode, at this time, the second mode switching control can be used to temporarily return to the game mode, so that in the virtual scene of the second game mode, in response to the interactive operation or movement operation of the first virtual object controlled by the user, the interaction process of the first virtual object in the virtual scene of the second game mode is displayed, or the movement process of the first virtual object in the second game mode is displayed.
[0149] In actual implementation, when the virtual scene is switched to the first shooting mode again, before the adjusted shooting parameters are adopted, in the virtual scene in the second game mode, in response to the trigger instruction for the first shooting mode, the virtual scene is controlled to switch from the second game mode to the first shooting mode, so that when the virtual scene is switched to the first shooting mode again, the adjusted shooting parameters are adopted to display the picture of the virtual scene in the first shooting mode.
[0150] It should be noted that the process of controlling the virtual scene to switch from the second game mode to the first shooting mode in response to the trigger instruction for the first shooting mode is similar to the process of controlling the virtual scene to switch from the first game mode to the first shooting mode in response to the trigger instruction for the first shooting mode as described above, and the embodiments of the present application are not repeated here; alternatively, the trigger instruction for the first shooting mode may be triggered when the trigger operation for the second mode switching control is received again, that is, when the trigger operation for the second mode switching control is received in the second game mode, and the embodiments of the present application are not limited to this.
[0151] In this way, through the second mode switching control, the user can return to the game mode without exiting the shooting mode, that is, retaining the adjusted shooting parameters, so that when switching from the game mode to the shooting mode again, the retained adjusted shooting parameters can be used; in this way, when the user switches between the shooting mode and the game mode, there is no need to readjust the parameters, thus maintaining the continuity of the parameter settings and improving the user experience; at the same time, there is no need to reload or recalculate the camera parameters each time a switch is made, which can save computing resources and memory and optimize resource usage.
[0152] In some embodiments, after the image of the virtual scene is displayed using the adjusted shooting parameters, a reset control can be displayed when the virtual scene is in the first shooting mode, and the reset control is used to reset the shooting parameters of the shooting mode; in response to a trigger operation on the reset control, the shooting parameters of the first shooting mode are reset from the adjusted shooting parameters to default shooting parameters, and the image of the virtual scene is displayed using the default shooting parameters.
[0153] It should be noted that if you are not satisfied with the adjustment of the shooting parameters, or after adjusting the shooting parameters, you find that the default shooting parameters are still the most suitable for taking pictures, then you do not need to adjust the shooting parameters back one by one. Instead, you can directly reset the shooting parameters of the first shooting mode from the adjusted shooting parameters to the default shooting parameters by executing a trigger operation on the reset control; at the same time, the reset control can be displayed in any blank position in the virtual scene, and the embodiments of the present application are not limited to this.
[0154] For example, see Fig. 9 , Fig. 9 is a schematic diagram of a reset control provided in an embodiment of the present application, based on Fig. 9 , Fig. 9 What is indicated is the scene content of the virtual scene in the first shooting mode, wherein 901 indicates a reset control.
[0155] In this way, after adjusting the shooting parameters multiple times, the shooting parameters can be directly reset from the adjusted shooting parameters to the default shooting parameters by executing a trigger operation on the reset control. In this way, if the user may inadvertently adjust unfamiliar parameters, resulting in unsatisfactory visual effects, the reset function can help the user quickly restore to a familiar default state without manually adjusting one by one, thereby improving the convenience of the parameter setting process; at the same time, providing a reset control can not only simplify user operations, but also improve the usability of the game interface and system, thereby improving the efficiency of human-computer interaction.
[0156] It should be noted that, as mentioned above, there are multiple shooting modes, such as the first shooting mode and the second shooting mode. Therefore, for the second shooting mode, the shooting parameters can also be adjusted, and the second shooting mode can be temporarily returned to the second game mode, and the shooting parameters can be reset by resetting the controls, etc. The relevant content will be explained below and will not be elaborated here.
[0157] In actual implementation, as mentioned above, the perspective type of the first shooting mode can be multiple, such as first-person perspective, third-person perspective, God's perspective or selfie perspective, etc. Therefore, the perspective type of the first shooting mode is the first-person perspective as an example to explain the relevant processes in the first shooting mode.
[0158] In some embodiments, the virtual scene includes a first virtual object and a second virtual object, and the perspective type corresponding to the first shooting mode is a first-person perspective; thus, in response to a trigger operation on a first mode switching control, before controlling the shooting mode of the virtual scene to switch from the first shooting mode to the second shooting mode, it is also possible to, when the virtual scene is in the first shooting mode, display the virtual scene using a first-person perspective; wherein the first-person perspective is the perspective of the first virtual object; in response to an object perspective switching instruction, the display perspective of the virtual scene is switched from the perspective of the first virtual object to the perspective of the second virtual object; in response to a trigger operation on the shooting control, the image of the virtual scene is shot based on the perspective of the second virtual object in the first shooting mode.
[0159] It should be noted that the first virtual object can be controlled by the current player, and the second virtual object can also be controlled by other players (teammates) belonging to the same group as the current player, or can be a non-player character, that is, a non-user character (NPC, Non-Player Character). The non-player character is controlled by the system and can be displayed in the terminal controlled by the user for interaction with the player character controlled by the user.
[0160] In actual implementation, the object perspective switching instruction may be triggered by a touch operation, such as displaying an object perspective switching control, thereby receiving the object perspective switching instruction in response to a triggering operation such as a click operation on the object perspective switching control; or may be triggered by at least one of a mouse, a keyboard, and a joystick, which is not limited in the embodiments of the present application;
[0161] Wherein, if there are multiple second virtual objects, then in response to the object perspective switching instruction, the process of switching the display perspective of the virtual scene from the perspective of the first virtual object to the perspective of the second virtual object may be, in response to the object perspective switching instruction, displaying perspectives including multiple second virtual objects; in response to a selection operation of the perspective of the target second virtual object among the perspectives of the multiple second virtual objects, switching the display perspective of the virtual scene from the perspective of the first virtual object to the perspective of the target second virtual object;
[0162] Alternatively, in response to the object perspective switching instruction, the distance between each second virtual object and the first virtual object is obtained; based on each distance, a second virtual object closest to or farthest from the first virtual object is selected from the plurality of second virtual objects as the target second virtual object, and the display perspective of the virtual scene is switched from the perspective of the first virtual object to the perspective of the target second virtual object;
[0163] Alternatively, in response to an object perspective switching instruction, the degree of friendliness between each second virtual object and the first virtual object is obtained; based on the degree of friendliness, the second virtual object with the highest degree of friendliness to the first virtual object is selected from multiple second virtual objects as the target second virtual object, and the display perspective of the virtual scene is switched from the perspective of the first virtual object to the perspective of the target second virtual object; this is not limited to the embodiments of the present application.
[0164] In this way, by switching the perspectives of different virtual objects to display the virtual scene in the shooting mode, the user can observe the scene from the perspectives of different virtual objects, providing a more comprehensive perspective and being able to better understand the layout of the scene and the spatial relationship between virtual objects, thereby increasing the exploration and interactivity in the virtual scene; at the same time, different perspectives can display different visual effects, and the user can experience seeing the world from the "eyes" of different virtual objects, which not only enhances the sense of immersion and substitution, but also brings freshness and visual diversity to the user; in addition, the user can experience different interaction methods by controlling different virtual objects, which increases the interactivity of the game and the diversity of the interaction process, thereby improving the efficiency of human-computer interaction and the utilization of hardware resources of electronic equipment.
[0165] In other embodiments, the perspective type corresponding to the first shooting mode is the first-person perspective, the virtual scene includes a first virtual object, and the first-person perspective is the perspective of the first virtual object; thus, when the virtual scene is in the first shooting mode, after displaying the shooting controls and the first mode switching controls, it is also possible to control the movement of the first virtual object in the virtual scene in response to a movement operation on the first virtual object; during the movement of the first virtual object, the shooting field of view under the first-person perspective is controlled to change synchronously.
[0166] It should be noted that the movement operation includes at least running operation, sprinting operation, gliding operation, squatting operation, climbing operation, swimming operation, etc., or when a virtual vehicle is displayed in a virtual scene, in response to the vehicle climbing operation of the first virtual object, the first virtual object of the vehicle is displayed, and then the movement operation may be at least including the running operation, sprinting operation, gliding operation, squatting operation, climbing operation, swimming operation, etc. of the first virtual object of the vehicle. The embodiment of the present application does not limit this.
[0167] Thus, during the movement of the first virtual object, as mentioned above, the perspective type corresponding to the first shooting mode is the first-person perspective, the virtual scene includes the first virtual object, and the first-person perspective is the perspective of the first virtual object. Therefore, the displayed image of the virtual scene will change with the changes in the scene content "seen" by the first virtual object during the movement; that is, in the shooting mode, changes in the virtual scene (such as day and night, weather, temperature, etc.), impacts on non-player characters and game characters (such as being attacked, getting wet, etc.), and the impact of player behavior on the virtual scene (such as performance actions affecting NPCs, etc.) will all be retained and continue to operate according to the normal game state.
[0168] In this way, in shooting mode, if the player is moving, the shooting field of view will change synchronously. In this way, the player can still play the game normally in shooting mode, and can capture dynamic scenes and characters while moving, which enriches the shooting materials and improves the diversity of the shooting process. At the same time, in shooting mode, the player can interact with the game environment, which also improves the flexibility and freedom of the shooting process.
[0169] In some embodiments, the perspective type corresponding to the first shooting mode is the first-person perspective, the virtual scene includes a first virtual object and a virtual pet, and the first-person perspective is the perspective of the first virtual object; thus, when the virtual scene is in the first shooting mode, after displaying the shooting controls and the first mode switching controls, it is also possible to control the movement of the first virtual object in the virtual scene in response to a movement operation on the first virtual object; during the movement of the first virtual object, the process of the virtual pet moving synchronously with the first virtual object is displayed.
[0170] It should be noted that, as mentioned above, the movement operation includes at least running operation, sprinting operation, gliding operation, squatting operation, climbing operation, swimming operation, etc., or when a virtual vehicle is displayed in a virtual scene, in response to the vehicle climbing operation of the first virtual object, the first virtual object of the vehicle is displayed, and then the movement operation can be at least including the running operation, sprinting operation, gliding operation, squatting operation, climbing operation, swimming operation, etc. of the first virtual object of the vehicle. This embodiment of the application is not limited to this.
[0171] Then, the virtual pet follows the first virtual object means that the virtual pet is always within the target range around the first virtual object, for example, a circular area with the first virtual object as a circle and the target distance as a radius; in this way, in the shooting mode, if the player is moving, the player's pet also follows the movement, thus enriching the shooting materials, improving the diversity of the shooting process, and also improving the flexibility and freedom of the shooting process.
[0172] In actual implementation, after displaying the process of the virtual pet moving synchronously with the first virtual object, it is also possible, during the movement of the virtual pet, in response to a control operation on the first virtual object, to control the first virtual object to adjust the behavior of the virtual pet; wherein the behavior of the virtual pet includes at least one of the virtual pet's orientation, posture, position, and expression; when the adjustment of the first virtual object is completed, in response to a trigger operation on a shooting control, a picture of the virtual scene is shot based on the perspective type of the first shooting mode; wherein the picture of the virtual scene includes at least the virtual pet with adjusted behavior and the first virtual object.
[0173] It should be noted that, in response to a control operation on the first virtual object, after controlling the first virtual object to adjust the behavior of the virtual pet, if no control operation on the first virtual object is received within the target time length, it is determined that the adjustment of the first virtual object is completed, wherein the control operation here is used to control the first virtual object to adjust the behavior of the virtual pet, and the target time length is also pre-set, and this is not limited in the embodiments of the present application.
[0174] Among them, for the process of controlling the first virtual object to adjust the behavior performance of the virtual pet in response to the control operation on the first virtual object, when the control operation on the first virtual object is received, the process of the first virtual object adjusting the behavior performance of the virtual pet is displayed; here, when the control operation on the first virtual object is received, at least one option is displayed, and different options correspond to different behavior performances, so that in response to the trigger operation on the target option in the at least one option, the first virtual object is controlled to adjust the behavior performance of the virtual pet corresponding to the target option; or, in response to the adjustment operation on the target behavior performance in the at least one behavior performance, the adjustment operation is determined as the control operation on the first virtual object, so that in response to the control operation on the first virtual object, the first virtual object is controlled to adjust the target behavior performance of the virtual pet.
[0175] It should be noted that at least one behavioral performance includes the direction, posture, position, and expression of the virtual pet; the adjustment operation of the target behavioral performance in at least one behavioral performance can be triggered by a control, for example, different behavioral performances correspond to different functional controls, or, the adjustment operation of the target behavioral performance in at least one behavioral performance can be performed by at least one of a mouse, keyboard, and joystick, and the embodiments of the present application are not limited to this.
[0176] In this way, in the shooting mode, the pet's behavior can be adjusted by the player character, and then shooting can be carried out after the adjustment. This not only enriches the shooting materials and increases the diversity of the shooting process, but also improves the flexibility and freedom of the shooting process, and can also improve the efficiency of human-computer interaction and the utilization of hardware resources of electronic equipment.
[0177] In some embodiments, in response to a trigger instruction for a first shooting mode, after controlling the virtual scene to switch from the first game mode to the first shooting mode, a first virtual object and a virtual pet can be displayed in the virtual scene; in response to a control operation on the first virtual object, the first virtual object is controlled to guide the virtual pet to move from a current position to a target position; when the virtual pet moves to the target position, in response to a trigger operation on the shooting control, the picture of the virtual scene is photographed based on the perspective type of the first shooting mode; wherein the picture of the virtual scene includes the virtual pet at the target position.
[0178] It should be noted that, as described above, the control operation on the first virtual object can be triggered by a control, or the control operation on the first virtual object can be performed by at least one of a mouse, a keyboard, and a joystick, and the embodiment of the present application does not limit this. In this way, by controlling the first virtual object to guide the movement of the virtual pet, the pet object moving to the target position is photographed; in this way, not only the diversity, flexibility, and freedom of the shooting process are improved, but also the efficiency of human-computer interaction and the user's shooting experience can be improved.
[0179] In actual implementation, after displaying the first virtual object and the virtual pet in the virtual scene, it is also possible to control the first virtual object and the virtual pet to interact in response to a control operation on the first virtual object; during the interaction between the first virtual object and the virtual pet, in response to a trigger operation on a shooting control, the picture of the virtual scene is shot based on the perspective type of the first shooting mode; wherein the picture of the virtual scene includes the first virtual object and the virtual pet in the interaction process.
[0180] It should be noted that, in response to the control operation on the first virtual object, the process of controlling the first virtual object to interact with the virtual pet may be, in response to the control operation on the first virtual object, controlling the first virtual object to ride the virtual pet; thereby, in the process of the first virtual pet riding the virtual pet, in response to the trigger operation on the shooting control, based on the perspective type of the first shooting mode, the picture of the virtual scene is shot, for example, in the process of the first virtual object riding the virtual pet to move, the first virtual object and the virtual pet in the moving process are shot;
[0181] The process in which the first virtual object moves by riding the virtual pet may be a process in which the first virtual object flies, glides, swims, jumps, and runs by riding the virtual pet, and this embodiment of the present application does not limit this.
[0182] Alternatively, in response to a control operation on the first virtual object, the process of controlling the first virtual object to interact with the virtual pet may be, in response to a control operation on the first virtual object, controlling the first virtual object to hug or hold hands with the virtual pet, or controlling the first virtual object to feed the virtual pet.
[0183] It should be noted that the process of controlling the first virtual object to interact with the virtual pet includes but is not limited to the above process, and this embodiment of the present application does not limit this.
[0184] Step 103: When the virtual scene is in the first shooting mode, a shooting control and a first mode switching control are displayed.
[0185] In some embodiments, when the virtual scene is in the first shooting mode, the shooting control and the first mode switching control are displayed; wherein, for the first mode switching control, in the following process, in response to a triggering operation on the first mode switching control, the shooting mode of the virtual scene can be controlled to switch from the first shooting mode to the second shooting mode;
[0186] As for the shooting control, in response to the trigger operation of the shooting control, the picture of the virtual scene can be photographed based on the perspective type of the first shooting mode; or, in response to the video recording instruction triggered by the shooting control, the picture of the virtual scene can be recorded based on the perspective type of the first shooting mode.
[0187] It should be noted that the trigger operation for the shooting control can be a click operation, and the video recording instruction triggered by the shooting control can be triggered by a pressing operation on the shooting control. Specifically, in response to the video recording instruction triggered by the shooting control, the process of recording the image of the virtual scene based on the viewing angle type of the first shooting mode can be: in response to the pressing operation on the shooting control, the video recording instruction is received; in response to the video recording instruction, in the process of executing the pressing operation, the image of the virtual scene is recorded based on the viewing angle type of the first shooting mode; in response to the end recording instruction triggered by the pressing operation on the shooting control, the video recording is ended, thereby obtaining the recorded video. Among them, the pressing operation can be a long press operation, etc., which is not limited in the embodiments of the present application.
[0188] For example, see Fig.10 , Fig.10 is a schematic diagram of a shooting control and a first mode switching control provided by an embodiment of the present application, based on Fig.10 , Fig.10 What is indicated is the scene content of the virtual scene in the first shooting mode, wherein the dotted box 1001 indicates the first mode control, and the dotted box 1002 indicates the shooting control.
[0189] Step 104, in response to a trigger operation on the first mode switching control, controlling the shooting mode of the virtual scene to switch from the first shooting mode to the second shooting mode; wherein the perspective types used for shooting in the first shooting mode and shooting in the second shooting mode are different.
[0190] It should be noted that the trigger operation for the first mode switching control may be a click operation for the first mode switching control; at the same time, if the number of perspective types is multiple and the number of shooting modes is multiple, when the shooting mode only includes the first shooting mode and the second shooting mode, in response to the trigger operation for the first mode switching control, the shooting mode of the virtual scene is directly controlled to switch from the first shooting mode to the second shooting mode;
[0191] When the shooting mode includes the first shooting mode, the second shooting mode and other shooting modes, in response to the trigger operation for the first mode switching control, the shooting mode for controlling the virtual scene can be switched from the first shooting mode to the second shooting mode in a pre-set order; so that when the trigger operation for the first mode switching control is received again, the shooting mode for controlling the virtual scene is switched from the second shooting mode to other shooting modes; or, in response to the trigger operation for the first mode switching control, the second shooting mode and other shooting modes are displayed, and in response to the selection operation for the second shooting mode, the shooting mode for controlling the virtual scene is switched from the first shooting mode to the second shooting mode. This is not limited in the embodiments of the present application.
[0192] In actual implementation, as mentioned above, the perspective type of the second shooting mode can be multiple, such as first-person perspective, third-person perspective, God's perspective or selfie perspective, etc. Therefore, the perspective type of the second shooting mode is the third-person perspective as an example to explain the relevant process in the second shooting mode.
[0193] In some embodiments, the perspective type corresponding to the second shooting mode is a third-person perspective. In response to a trigger operation on the shooting control, before shooting the picture of the virtual scene based on the perspective type of the second shooting mode, it is also possible to, when the virtual scene is in the second shooting mode, display the first virtual camera in the virtual scene, and the perspective of the first virtual camera is a third-person perspective; and display the virtual scene using the perspective of the first virtual camera; thereby, in response to a trigger operation on the shooting control, the process of shooting the picture of the virtual scene based on the perspective type of the second shooting mode can be, in response to a trigger operation on the shooting control, shooting the picture of the virtual scene based on the perspective of the first virtual camera.
[0194] Among them, when the perspective type of the second shooting mode is different, the observation perspective of the virtual scene corresponding to the first virtual camera is also different. For example, here, when the perspective type of the second shooting mode is a third-person perspective, the first virtual camera can be used as a third-party shooting device in the virtual scene, thereby providing a third-party perspective, that is, a third-person perspective.
[0195] It should be noted that the first virtual camera here is a visualization of the virtual camera used in the background to render the picture of the virtual scene in the second shooting mode. That is, the first virtual camera here is essentially the same as the virtual camera used to render the picture of the virtual scene in the second shooting mode, except that the perspective of the virtual camera used to render the picture of the virtual scene in the second shooting mode is visualized in the virtual scene through the first virtual camera.
[0196] Among them, for the virtual camera used in the background to render the image of the virtual scene in the second shooting mode, in actual implementation, in response to the trigger operation of the first mode switching control, after controlling the shooting mode of the virtual scene to switch from the first shooting mode to the second shooting mode, it is also possible to, when the virtual scene is in the second shooting mode, generate a third virtual camera different from the second virtual camera; based on the third virtual camera, render a second image of the virtual scene in the second shooting mode; and based on the second image, display the virtual scene in the second shooting mode.
[0197] It should be noted that the third virtual camera here is the virtual camera used in the background to render the image of the virtual scene in the second shooting mode. Since the third virtual camera is invisible, the first virtual camera is the visual embodiment of the third virtual camera in the virtual scene, which is used to prompt the user of the viewing angle of the third virtual camera in the second shooting mode; at the same time, similar to the second virtual camera, the third virtual camera here is also a component that simulates the function of a real camera. It determines the observation viewing angle of the virtual scene by simulating the shooting function of a real camera, and defines the position and direction of the virtual object controlled by the user in the virtual environment, that is, it is used to determine the scene content of the virtual scene observed by the virtual object controlled by the user.
[0198] In this way, when the virtual scene is in the second shooting mode, a third virtual camera is generated, and the picture of the virtual scene in the second shooting mode is rendered through the third virtual camera. In this way, when the virtual scene is in the second shooting mode, a virtual camera dedicated to shooting is generated separately, so that shooting is performed based on the virtual camera. On the basis of not affecting the user's game operation, a richer shooting perspective is provided, which is convenient for users to shoot and improves the user's shooting experience. At the same time, different virtual cameras are generated in different shooting modes. In this way, the two virtual cameras operate independently, and players can choose what they want to "see" according to their needs and current gaming status, thereby improving the diversity and flexibility of the shooting process.
[0199] In actual implementation, when the virtual scene is in the second shooting mode, the process of displaying the first virtual camera in the virtual scene may be: displaying a virtual object controlled by the user, such as the first virtual object, in the virtual scene, and obtaining the position of the first virtual object in the virtual scene; generating the first virtual camera based on the preset default shooting parameters of the first virtual camera, and displaying the first virtual camera at a target position determined based on the position; wherein the target position may be at a target distance on a target orientation of the position, and both the target orientation and the target distance are preset, and this is not limited in the embodiments of the present application.
[0200] For example, see Fig.11 , Fig.11 is a schematic diagram of a first virtual camera provided in an embodiment of the present application, based on Fig.11 , Fig.11 Indicated is the scene content of the virtual scene in the second game mode, wherein the dotted frame 1101 indicates the first virtual camera.
[0201] In this way, when the virtual scene is in the second shooting mode, the first virtual camera displayed in the virtual scene can prompt the user of the viewing angle in the second shooting mode, thereby facilitating the user to adjust the position of the controlled virtual object based on the first virtual camera to facilitate shooting; at the same time, the viewing angle of the first virtual camera is used as the viewing angle of the second shooting mode, decoupling the virtual camera and the game perspective of the virtual object controlled by the player, which improves the diversity and flexibility of the shooting process compared to the solution in the related art that the shooting perspective always follows the player's perspective.
[0202] It should be noted that after the first virtual camera is displayed in the virtual scene, the process of displaying the virtual scene using the perspective of the first virtual camera is, that is, under the perspective of the first virtual camera, based on the default shooting parameters of the first virtual camera, the virtual scene is displayed; wherein, in the second shooting mode, the default shooting parameters can also be adjusted in response to the parameter adjustment instruction for the shooting parameters, and the adjusted shooting parameters are used to display the picture of the virtual scene; here, in response to the parameter adjustment instruction for the shooting parameters, the default shooting parameters are adjusted, and the process of displaying the picture of the virtual scene using the adjusted shooting parameters is as described above, and this embodiment of the present application will not be repeated;
[0203] At the same time, after using the adjusted shooting parameters to display the picture of the virtual scene, you can temporarily return to the second game mode based on the third mode switching control. Specifically, when the virtual scene is in the second shooting mode, the third mode switching control is displayed; wherein the third mode switching control is used to switch from the second shooting mode to the second game mode; in response to a trigger operation on the third mode switching control, switch from the second shooting mode to the second game mode; based on the second game mode, when the virtual scene is switched to the second shooting mode again, the adjusted shooting parameters are used to display the picture of the virtual scene in the first shooting mode.
[0204] It should be noted that, based on the second game mode, when the virtual scene is switched to the second shooting mode again, the adjusted shooting parameters are used to display the image of the virtual scene in the first shooting mode as described above, and the embodiments of the present application will not go into details about this; and the process of the virtual scene switching to the second shooting mode again may be to directly control the virtual scene to switch from the second game mode to the second shooting mode when a trigger operation for the third mode switching control is received again; or, it may be to first receive a trigger instruction for the first shooting mode, switch the virtual scene from the second game mode to the first shooting mode, and then receive a trigger operation for the first mode switching control, switch the virtual scene from the first shooting mode to the second shooting mode, and the embodiments of the present application will not limit this.
[0205] Among them, the first mode switching control, the second mode switching control and the third mode switching control can be three different controls, or the second mode switching control is the same control as the third mode switching control. When the virtual scene is in the first shooting mode, the control, that is, the second mode switching control, is used to switch the virtual scene from the first shooting mode to the second game mode. When the virtual scene is in the second shooting mode, the control, that is, the third mode switching control, is used to switch the virtual scene from the second shooting mode to the second game mode.
[0206] In actual implementation, when the virtual scene is in the second shooting mode, a reset control will also be displayed, so that in response to the triggering operation of the reset control, the shooting parameters of the second shooting mode are reset from the adjusted shooting parameters to the default shooting parameters, and the default shooting parameters are used to display the picture of the virtual scene. In this regard, the relevant process is as described above, and the embodiment of the present application will not be repeated.
[0207] In some embodiments, if, as described above, the perspective type corresponding to the second shooting mode is a third-person perspective, then when the virtual scene is in the second shooting mode, a parameter setting interface in the second shooting mode is displayed, and the parameter setting interface is used to set the shooting parameters; based on the parameter setting interface, in response to the setting operations for the countdown parameters and the continuous shooting parameters, the shooting countdown and the number of continuous shootings when shooting the pictures in the virtual scene are set respectively; thus, in response to the trigger operation for the shooting control, based on the perspective of the first virtual camera, the process of shooting the pictures of the virtual scene can be, in response to the trigger operation for the shooting control, based on the set shooting countdown and the number of continuous shootings, the pictures in the virtual scene from the perspective of the first virtual camera are continuously shot.
[0208] It should be noted that the shooting countdown is used to indicate the duration between the moment when the trigger operation for the shooting control is received and the moment when the picture of the virtual scene is shot, and the number of continuous shots refers to the number of times the picture of the virtual scene is shot multiple times after a trigger operation for the shooting control is received.
[0209] For example, see Fig.12 , Fig.12 is a schematic diagram of a parameter setting interface provided in an embodiment of the present application, based on Fig.12 , Fig.12 Indicated is the scene content of the virtual scene in the second shooting mode, wherein 1201 indicates a parameter setting interface, the area in the dotted box 1202 is used to set the shooting countdown, and the area in the dotted box 1203 is used to set the number of continuous shots.
[0210] It should be noted that the parameter setting interface may be displayed directly when the second shooting mode is just entered, or the parameter setting control may be displayed when the virtual scene is in the second shooting mode, so that the parameter setting interface is displayed in response to the triggering operation on the parameter setting control. This is not limited in the embodiments of the present application; for example, see Fig.13 , Fig.13 is a schematic diagram of a parameter setting control provided in an embodiment of the present application, based on Fig.13 , Fig.13 The parameter setting control is indicated by 1301 in a, so that in response to the trigger operation for the parameter setting control indicated by 1301 in a, the following is displayed: Fig.13 The parameter setting interface 1302 indicated in b.
[0211] In this way, by setting the shooting countdown and the number of continuous shots in the shooting mode through the parameter setting interface, players no longer need to pose before shooting, or take photos and screenshots while operating the game character in order to take photos of dynamic moments. Dynamic behaviors can be captured very conveniently, thereby improving the flexibility and diversity of the shooting process.
[0212] In actual implementation, the set shooting countdown is the target duration, and the set number of continuous shots is the target number; thus, in response to the trigger operation of the shooting control, based on the set shooting countdown and the number of continuous shots, the process of continuously shooting the images in the virtual scene from the perspective of the first virtual camera can be, in response to the trigger operation of the shooting control, displaying the countdown of the target duration; when the countdown of the target duration is reset, shooting the images in the virtual scene from the perspective of the first virtual camera continuously for the target number of times.
[0213] It should be noted that the target duration and the target number of times can be set by the player according to his or her own needs. In this way, based on the set target duration and target number of times, after the countdown of the target duration is reset to zero, the image in the virtual scene from the perspective of the first virtual camera can be continuously photographed for the target number of times; in this way, the user can preset the shooting parameters and automatically complete the shooting task within the specified time without real-time operation, thereby improving the convenience of operation; at the same time, by accurately setting the shooting countdown and the number of continuous shots to capture the scene changes at a specific moment, it can not only enhance the planning and purposefulness of the shooting, but also make the captured images more in line with user needs.
[0214] It should be noted that the above processes are all described using the virtual scene as the second shooting mode as an example. When the virtual scene is the first shooting mode, the above processes can be generally implemented. For example, the parameter setting interface can also be displayed to perform parameter settings based on the parameter setting interface. This embodiment of the present application will not go into details.
[0215] In some embodiments, the virtual scene of the game mode and the virtual scene of the shooting mode can appear in the display interface. Specifically, the process of displaying the virtual scene from the perspective of the first virtual camera can be, when the virtual scene is in the second shooting mode, dividing the display interface of the virtual scene into a first area and a second area; in the second area, the virtual scene is displayed from the perspective of the first virtual camera; thereby, in the first area, the screen of the virtual scene in the first game mode can be displayed, and the first game mode is used to control the activities of virtual objects in the virtual scene in the virtual scene.
[0216] It should be noted that the first area and the second area can be obtained by equally dividing the display interface of the virtual scene; or, the first area and the second area can be in the form of picture-in-picture, for example, the second area is displayed in the first area, or the first area is displayed in the second area, and the embodiments of the present application are not limited to this; at the same time, the first game mode here is also the mode of the virtual scene after exiting the shooting mode. In the first area, the picture of the virtual scene in the first game mode can be displayed, and it can also be the picture of the virtual scene in the second game mode; accordingly, in addition to displaying the virtual scene in the second area using the perspective of the first virtual camera, that is, displaying the virtual scene in the second shooting mode, it can also be displayed in the second area. The virtual scene in the first shooting mode is not limited to this.
[0217] For example, see Fig.14 , Fig.14 is a schematic diagram of a picture-in-picture format provided in an embodiment of the present application, based on Fig.14 , 1401 indicates a screen of a virtual scene in a first game mode, and 1402 indicates a virtual scene displayed from the perspective of a first virtual camera.
[0218] In this way, the shooting mode and the actual game mode can be displayed in different display areas for comparison, so that during the player's game, the picture in the virtual scene under the shooting mode can be displayed in real time, which is convenient for the player to adjust the position and posture. This not only avoids frequent switching of camera perspectives, but also improves shooting efficiency and the player's shooting experience.
[0219] In some embodiments, the virtual scene includes a first virtual object. After the virtual scene is displayed using the perspective of the first virtual camera, a third mode switching control may be displayed, the third mode switching control being used to switch the second shooting mode to the second game mode, the second game mode being used to control the virtual objects in the virtual scene to move in the virtual scene without exiting the first shooting mode; in response to a trigger operation on the third mode switching control, the virtual scene is switched from the second shooting mode to the second game mode; in response to a position adjustment operation on the first virtual object, the relative position relationship between the first virtual object and the first virtual camera is adjusted in the virtual scene in the second game mode; when the relative position relationship adjustment is completed, in response to a trigger instruction on the second shooting mode, the virtual scene is controlled to switch from the second game mode to the second shooting mode; thus, in response to the trigger operation on the shooting control, the process of shooting the picture of the virtual scene based on the perspective of the first virtual camera may be to shoot the picture of the virtual scene including the first virtual object based on the perspective of the first virtual camera in response to the trigger operation on the shooting control.
[0220] For example, see Fig.15 , Fig.15 is a schematic diagram of a third mode switching control provided in an embodiment of the present application, based on Fig.15 , Fig.15 What is indicated is the picture of the virtual scene in the second shooting mode, wherein 1501 indicates the third mode switching control.
[0221] It should be noted that the second game mode and the third mode switching controls are as described above and will not be elaborated here; at the same time, as described above, the first virtual camera is visible in the virtual scene. Therefore, the user can control the relative position relationship between the first virtual camera and the first virtual object to ensure that the position of the first virtual object meets the user's needs when shooting the picture of the virtual scene based on the perspective of the first virtual camera, such as controlling the direction of the first virtual object to the first virtual camera, etc., and the embodiments of the present application are not limited to this.
[0222] In this way, the virtual scene can be controlled to switch from the second shooting mode to the second game mode through the third mode switching control, so that in the second game mode, it is convenient to adjust the relative position relationship between the first virtual object and the first virtual camera, and then return to the second shooting mode from the second game mode. In the second shooting mode, based on the adjusted relative position relationship, the first virtual camera's perspective is used to shoot the picture of the virtual scene; in this way, the user can freely adjust the relationship between the virtual object and the virtual camera in the game mode without exiting the shooting mode, so as to obtain an ideal shooting angle and composition, thereby improving shooting efficiency.
[0223] In actual implementation, if there is a second virtual object in the virtual scene, in response to a trigger operation on a shooting control, based on the perspective of the first virtual camera, a process of shooting a picture of the virtual scene including the first virtual object and the second virtual object may be, in response to a trigger operation on the shooting control, based on the perspective of the first virtual camera, shooting a picture of the virtual scene including the first virtual object and the second virtual object.
[0224] It should be noted that the head or vision of the second virtual object will follow the focus center of the first virtual camera, thus simulating the experience of the second virtual object looking at the lens, making the captured virtual image more realistic.
[0225] For example, see Fig.16 , Fig.16 is a schematic diagram of photographing multiple virtual objects provided by an embodiment of the present application, Fig.16 What is indicated is a picture of a virtual scene in a second shooting mode, wherein 1601 indicates a first virtual object controlled by a player, and 1602 indicates a second virtual object.
[0226] In actual implementation, in response to a trigger instruction for the second shooting mode, after controlling the virtual scene to switch from the game mode to the second shooting mode, it is also possible to, in response to a height adjustment operation for the first virtual camera, adjust the height of the first virtual camera in the virtual scene to adjust the height of the viewing angle of the first virtual camera.
[0227] For example, based on the height of the viewing angle of the first virtual camera, if the first virtual object does not exist in the viewing angle of the first virtual camera, or the scene content required by the user does not exist in the viewing angle of the first virtual camera, then in response to the height adjustment operation for the first virtual camera, the height of the first virtual camera in the virtual scene is adjusted until the first virtual object is included in the viewing angle of the first virtual camera.
[0228] It should be noted that if the perspective corresponding to the shooting mode is the first-person perspective, as mentioned above, the first-person perspective is the perspective of the virtual object, therefore, the height of the first-person perspective is associated with the height of the virtual object, and cannot be directly adjusted unless the height of the object is changed or the perspective of the object is directly switched; if the perspective corresponding to the shooting mode is the third-person perspective, as mentioned above, the third-person perspective is the perspective of the first virtual camera, and the height of the first virtual camera in the virtual scene can be changed, therefore, the height of the perspective of the first virtual camera can be adjusted by adjusting the height of the first virtual camera;
[0229] For example, see Fig.17 , Fig.17is a schematic diagram of adjusting the height of the first virtual camera provided in an embodiment of the present application, based on Fig.17 In order to facilitate the display of the height change process of the first virtual camera, the process of adjusting the height of the first virtual camera is demonstrated based on the second game mode. Specifically, Fig.17 The image indicated is a virtual scene in the second game mode, wherein: Fig.17 A of 1701 and Fig.17 Indicated by 1702 in b is the first virtual camera, and thus in response to the height adjustment operation for the first virtual camera, the height of the first virtual camera is adjusted from the height indicated in a to the height indicated in b.
[0230] The height adjustment operation for the first virtual camera may be triggered based on a height adjustment control, where the height adjustment control may be in the form of a slider or a button, etc., which is not limited in the embodiment of the present application.
[0231] As an example, if the height adjustment control is in the form of a button, the height adjustment operation triggered by the height adjustment control includes a trigger operation for a height increase control and a trigger operation for a height decrease control, so that in response to the height adjustment operation for the first virtual camera, the process of adjusting the height of the first virtual camera in the virtual scene may be, in response to the trigger operation for the height increase control, increasing the height of the first virtual camera in the virtual scene to increase the height of the viewing angle of the first virtual camera; in response to the trigger operation for the height decrease control, reducing the height of the first virtual camera in the virtual scene to reduce the height of the viewing angle of the first virtual camera.
[0232] For example, see Fig.15 ,based on Fig.15 , 1502 indicates a height adjustment control, where the control at the top is a height increase control, and the control at the bottom is a height decrease control.
[0233] In this way, by adjusting the height of the first virtual camera in the virtual scene, the height of the viewing angle of the first virtual camera can be adjusted. In this way, the user can customize the viewing angle height, which can not only obtain a visual effect that is more in line with personal preferences or specific game scenes, but also enhance the player's sense of immersion.
[0234] In some embodiments, as described above, if the perspective of the shooting mode is a first-person perspective, the shooting field of view under the first-person perspective will also change synchronously during the activity of the first virtual object; if the perspective of the shooting mode is a third-person perspective, the shooting field of view of the third-person perspective will only change synchronously with the changes of the first virtual object during the activity of the first virtual object. If the first virtual object moves, only the moving first virtual object will be displayed in the shooting field of the third-person perspective, while other scene contents remain unchanged. Specifically, the virtual scene includes the first virtual object, and after the virtual scene is displayed using the perspective of the first virtual camera, the first virtual object can also be controlled to move in the virtual scene in response to a movement operation on the first virtual object; during the movement of the first virtual object, the field of view of the perspective of the first virtual camera is kept unchanged.
[0235] It should be noted that keeping the field of view of the first virtual camera unchanged means keeping the shooting parameters of the first virtual camera unchanged, but the content of the virtual scene from the perspective of the first virtual camera may change, such as the position of the first virtual object changes; at the same time, if the first virtual object is controlled to perform other interactive operations, the interactive process of the first virtual object will also be displayed.
[0236] In this way, in the shooting mode, the first virtual object can be controlled to move, and during the movement of the first virtual object, the field of view of the first virtual camera is kept unchanged. In this way, dynamic scenes can be captured when the virtual object moves, which improves the diversity of the shooting process. At the same time, the game perspective of the virtual camera and the virtual object controlled by the player are decoupled, which also improves the diversity and flexibility of the shooting process compared to the solution in the related art that the shooting perspective always follows the player's perspective.
[0237] In actual implementation, after keeping the field of view of the first virtual camera unchanged, it is also possible to display prompt information when the first virtual object moves out of the field of view, where the prompt information is used to guide the adjustment of the shooting parameters of the first virtual camera; in response to the parameter adjustment operation for the shooting parameters of the first virtual camera triggered by the prompt information, the shooting parameters of the first virtual camera are adjusted; in response to the completion of the adjustment of the shooting parameters of the first virtual camera, the first virtual object is displayed in the field of view of the first virtual camera; and then, in response to the trigger operation for the shooting control, based on the perspective of the first virtual camera, a picture of the virtual scene including the first virtual object is shot.
[0238] It should be noted that the prompt information may be in text form or image form, which is not limited in the embodiments of the present application; at the same time, the prompt information may clearly indicate the shooting parameters that need to be adjusted, such as moving the viewing angle xx distance to the left, and / or enlarging the viewing angle xx times, etc., which is not limited in the embodiments of the present application; wherein, in the process of adjusting the shooting parameters of the first virtual camera, the prompt information will be updated in real time, for example, the relative position relationship between the first virtual object and the first virtual camera is obtained in real time, and based on the relative position relationship, the shooting parameter adjustment information including at least one of the viewing angle movement direction, the viewing angle movement distance and the viewing angle zoom multiple is analyzed to obtain, thereby generating prompt information based on the shooting parameter adjustment information.
[0239] In this way, when the first virtual object moves out of the field of view, the prompt information is used to facilitate the user to adjust the shooting parameters of the first virtual object, so that the first virtual object can be included again in the field of view of the first virtual camera after the parameter adjustment; in this way, through the prompt information, the user can immediately know how to operate to correct the field of view, thereby enhancing the efficiency of human-computer interaction, and through the prompt information, the user can quickly adjust the parameters after the virtual object moves out of the field of view, thereby maintaining the continuity of the game experience and avoiding interruption; at the same time, the user can quickly bring the virtual object back into the field of view, thereby not only improving the efficiency of the game operation, but also improving the user experience.
[0240] In actual implementation, when the first virtual object moves out of the field of view, the shooting parameters of the first virtual camera may not be adjusted based on the prompt information, but the first virtual object may be moved. Specifically, in response to the trigger operation on the third mode switching control, the second shooting mode is switched to the second game mode; in the virtual scene in the second game mode, in response to the movement operation on the first virtual object, the first virtual object is controlled to move within the field of view until the first virtual object is displayed within the field of view of the first virtual camera. Then, when the first virtual object moves within the field of view, in response to the trigger operation on the shooting control, the screen of the virtual scene including the first virtual object is shot based on the viewing angle of the first virtual camera.
[0241] Step 105 , in response to a trigger operation on the shooting control, shooting a picture of the virtual scene based on the viewing angle type of the second shooting mode.
[0242] In actual implementation, the trigger operation for the shooting control may be a click operation for the shooting control, including a single click operation or a double click operation, etc., which is not limited in the embodiments of the present application. At the same time, after shooting the image of the virtual scene based on the perspective type of the second shooting mode, a virtual image of the first size obtained by shooting is displayed at the first position, and the process of the virtual image gradually shrinking from the first size to the second size is displayed; wherein, in the process of the virtual image gradually shrinking, the virtual image moves from the first position to the second position.
[0243] It should be noted that the first position, the second position, the first size and the second size can all be pre-set. For example, the first position can be the center position of the display interface of the virtual scene, and the second position can be a corner position of the display interface, such as the upper right corner, etc. The embodiments of the present application do not limit this.
[0244] In some embodiments, in response to a trigger operation on a shooting control, after shooting the picture of the virtual scene based on the perspective type of the second shooting mode, a virtual album can be displayed in the picture of the virtual scene, and at least one virtual image obtained by shooting the picture in the virtual scene can be displayed in the virtual album.
[0245] It should be noted that the virtual images in the virtual album here may only include virtual images taken in the second shooting mode, or may also be virtual images included in all shooting modes, such as images in the first shooting mode and the second shooting mode, etc., and the embodiments of the present application do not limit this; at the same time, if the user exits the shooting mode, the images in the virtual album will be automatically deleted, but if the user only temporarily returns to the game mode and the second game mode from the shooting mode, the images in the virtual album will not be automatically deleted.
[0246] In actual implementation, a one-key deletion control is displayed at an associated position of the virtual album, and in response to a trigger operation on the one-key deletion control, at least one virtual image in a candidate state is displayed; in response to a selection operation of a target virtual image in at least one virtual image in the candidate state, the target virtual image is controlled to be in a selected state; in response to a confirmation operation on the target virtual image in the selected state, the target virtual image is deleted from the virtual album.
[0247] For example, see Fig.18 , Fig.18 is a schematic diagram of a virtual photo album provided in an embodiment of the present application, based on Fig.18 , the dotted box 1801 indicates a virtual album including multiple virtual images, wherein 1802 indicates a one-key deletion control.
[0248] In this way, displaying the captured virtual images through a virtual album provides an immersive image viewing method, allowing players to view and review their own photos at any time, which not only helps to improve the efficiency of human-computer interaction, but also improves the utilization rate of the captured images.
[0249] In actual implementation, after displaying at least one virtual image obtained by photographing a scene in a virtual scene in a virtual album, it is also possible to, in response to a selection operation on a target virtual image in at least one virtual image in the virtual album, enlarge and display the target virtual image; at the same time, display at least one operation control at an associated position of the target virtual image, and different operation controls are used to indicate the execution of different target operations on the target virtual image; in response to a trigger operation on a target operation control in at least one operation control, execute the target operation indicated by the target operation control on the target virtual image.
[0250] It should be noted that at least one operation control includes a delete control, a download control, a share control and a watermark control; thus, in response to a trigger operation on a target operation control in at least one operation control, the process of performing the target operation indicated by the target operation control on the target virtual image may be: when the target control is a delete control, in response to the trigger operation on the delete control, the corresponding target virtual image is deleted from the virtual album; when the target control is a download control, in response to the trigger operation on the download control, the corresponding target virtual image is downloaded from the virtual album; when the target control is a share control, in response to the trigger operation on the share control, the corresponding target virtual image is shared; when the target control is a watermark control, if there is a target watermark on the target virtual image, then in response to a watermark removal operation performed based on the watermark control, the target watermark is removed from the corresponding target virtual image; if there is no watermark on the target virtual image, then in response to a watermark addition operation performed based on the watermark control, a target watermark is added to the corresponding target virtual image.
[0251] For example, see Fig.19 , Fig.19 is a schematic diagram of a target virtual image and an operation control provided in an embodiment of the present application, based on Fig.19 The dotted box 1901 indicates the target virtual image, and the dotted box 1902 indicates four operation controls, which, from left to right, are a watermark control, a delete control, a share control, and a download control.
[0252] In actual implementation, the process of displaying a virtual album in a virtual scene may be, in the virtual scene, displaying a cover of the virtual album, where the cover is a most recently captured virtual image of at least one virtual image; and displaying the virtual album in response to a trigger operation on the cover.
[0253] It should be noted that the cover of the virtual album can be displayed at any position in the virtual scene, for example, it can be the second position mentioned above, and the size of the cover can be pre-set, for example, it can be the second size mentioned above, and this embodiment of the application does not limit this.
[0254] For example, see Fig. 20 , Fig. 20 is a schematic diagram of the cover provided in the embodiment of the present application, based on Fig. 20 , Fig. 20 What is indicated is the picture of the virtual scene in the second shooting mode, wherein 2001 indicates the cover.
[0255] In this way, by displaying the latest captured virtual image as the cover of the virtual album in the virtual scene, the user can open the virtual album by executing a trigger operation on the cover. In this way, the user can quickly access the virtual album based on the cover without going through complex menus or navigation, which not only improves the user experience and operational convenience, but also improves the efficiency of human-computer interaction. At the same time, using the latest captured image as the cover can personalize the user's creation and gaming experience, which not only improves the utilization rate of the captured images, but also further improves the user experience.
[0256] In some embodiments, in the shooting mode, virtual objects in the virtual scene can also be identified. Specifically, after controlling the shooting mode of the virtual scene to switch from the first shooting mode to the second shooting mode in response to a trigger operation on the first mode switching control, it is also possible to display the focus area when the virtual scene is in the second shooting mode; and in response to the appearance of a third virtual object in the focus area, display the object information obtained by identifying the third virtual object.
[0257] It should be noted that the focus area is used to indicate a part of the scene or object that needs to be clearly focused in the shooting mode, and is a specific area in the virtual scene from the perspective of the shooting mode; at the same time, the object information includes at least one of the name, source, level, skills and attributes of the third virtual object, and the attributes include at least health value, movement speed, defense value, friendliness, damage value, etc.
[0258] It should be noted that the third virtual object may also be controlled by other players (teammates) belonging to the same group as the current player, or may be a non-player character, i.e., a non-user character (NPC). The non-player character is controlled by the system and may be displayed in a terminal controlled by the user for interaction with the player character controlled by the user. At the same time, the third virtual object may be in the same camp or a different camp as the first virtual object controlled by the player, etc., and this is not limited in the embodiments of the present application.
[0259] In actual implementation, when it is detected that the third virtual object appears in the focus area, the third virtual object is identified to obtain object information of the third virtual object, and then the object information of the third virtual object is displayed.
[0260] For example, see Fig.21 , Fig.21 is a schematic diagram of the focus area and object information provided by the embodiment of the present application, based on Fig.21 , 2101 indicates the focus area, 2102 indicates the third virtual object, and 2103 indicates the object information obtained by recognition.
[0261] In this way, when any virtual object enters the camera screen, the object information of the corresponding virtual object will be automatically identified, thus improving the diversity of the shooting process, thereby improving the efficiency of human-computer interaction and the utilization rate of hardware resources of electronic equipment.
[0262] It should be noted that the above processes are all described using the second shooting mode as an example. The above processes can also be implemented in the first shooting mode, such as identifying virtual objects, displaying virtual photo albums, etc., and this embodiment of the present application will not go into details. Accordingly, the above processes described using the first shooting mode as an example can also be implemented in the second shooting mode, such as following the first virtual object when it moves, adjusting the direction of the virtual pet, and interacting with the virtual pet, etc., and this embodiment of the present application will not go into details.
[0263] In some embodiments, video recording of the virtual scene can also be performed. Specifically, after controlling the shooting mode of the virtual scene to switch from the first shooting mode to the second shooting mode, video recording of the virtual scene can also be performed based on the perspective type of the second shooting mode in response to a video recording instruction triggered by the shooting control.
[0264] It should be noted that, in response to the video recording instruction triggered by the shooting control, the process of recording the image of the virtual scene based on the viewing angle type of the second shooting mode may be, in response to the pressing operation on the shooting control, receiving the video recording instruction; in response to the video recording instruction, in the process of executing the pressing operation, recording the image of the virtual scene based on the viewing angle type of the second shooting mode; in response to the end recording instruction triggered by the pressing operation on the shooting control, ending the video recording, thereby obtaining the recorded video. Among them, the pressing operation may be a long press operation, etc., which is not limited in the embodiments of the present application.
[0265] In this way, through the shooting controls, the images of the virtual scene can also be recorded, which not only improves the utilization rate of the shooting controls, but also enriches the shooting methods, thereby improving the user's shooting experience.
[0266] In some embodiments, when the virtual scene is in the second shooting mode, a fourth mode switching control can also be displayed, and the fourth mode switching control is used to switch from the second shooting mode to the first shooting mode; specifically, in response to a trigger operation on the fourth mode switching control, the shooting mode of the virtual scene is controlled to switch from the second shooting mode to the first shooting mode.
[0267] It should be noted that the triggering operation for the fourth mode switching control may be a click operation; and the fourth mode switching control may be displayed at any position in the virtual scene, which is not limited by the embodiments of the present application. Fig.15 ,based on Fig.15 , 1503 indicates the fourth mode switching control.
[0268] In some embodiments, it is also possible to directly exit the shooting mode. Specifically, the virtual scene includes a first game mode and a shooting mode. The first game mode is used to control the activities of virtual objects in the virtual scene in the virtual scene, and the shooting mode includes a first shooting mode and a second shooting mode. Thus, after displaying the virtual scene in the first game mode, it is also possible to display an exit control when the virtual scene is in the shooting mode. In response to a trigger operation on the exit control, the virtual scene is controlled to exit the shooting mode, and the virtual scene is controlled to enter the first game mode.
[0269] It should be noted that when the virtual scene is in the first game mode, the virtual object controlled by the player plays the game normally in the virtual scene. If the player enters the shooting mode again from the first game mode, the shooting parameters adjusted in the previous shooting mode will be reused, and the virtual image captured in the previous shooting mode will not be displayed.
[0270] At the same time, the exit control can be displayed in each shooting mode and can also be displayed in the second game mode, so that when the virtual scene is in the second game mode, in response to the trigger operation of the exit control, the virtual scene is controlled to exit the shooting mode and the virtual scene is controlled to switch from the second game mode to the first game mode.
[0271] For example, see Fig. 22 , Fig. 22 is a schematic diagram of an exit control provided in an embodiment of the present application, based on Fig. 22 , Fig. 22 The a in a indicates the picture of the virtual scene in the first shooting mode, and the 2201 in a indicates the exit control in the first shooting mode; Fig. 22 The b in b indicates the picture of the virtual scene in the second shooting mode, and the 2202 in b indicates the exit control in the second shooting mode; Fig. 22The c in FIG. 2 indicates the screen of the virtual scene in the second game mode, and the 2203 in FIG. 2 indicates the exit control in the second game mode.
[0272] In this way, exiting the shooting mode through the exit control provides the user with a clear operation method to end the shooting mode. The user can quickly exit the shooting mode, which improves the operation efficiency. At the same time, the dedicated exit control can also reduce the situation where the user exits the shooting mode due to accidental touch.
[0273] In some embodiments, if there are other players in the virtual scene, and if the other players are in a third-person perspective shooting mode, the virtual cameras in the shooting mode of the other players will also be displayed. Specifically, after displaying the virtual scene in the first game mode, the first virtual object can be displayed in the virtual scene, and in response to a movement operation on the first virtual object, the first virtual object can be controlled to move toward a fourth virtual object; when the distance between the first virtual object and the fourth virtual object is less than or equal to a distance threshold, in response to the fourth virtual object being in the shooting mode, a fourth virtual camera following the fourth virtual object is displayed.
[0274] It should be noted that the distance threshold can be pre-set, or can also be determined according to the field of view of the first virtual object, which is not limited in the present embodiment of the application; at the same time, the fourth virtual object can be controlled by other players (teammates) belonging to the same group as the current player, or can also be controlled by other players (teammates) belonging to different groups from the current player, which is not limited in the present embodiment of the application. In addition, the fourth virtual camera here is similar to the first virtual camera described above, which is not repeated in the present embodiment of the application.
[0275] For example, see Fig.23 , Fig.23 is a schematic diagram of a fourth virtual object and a fourth virtual camera provided in an embodiment of the present application, based on Fig.23 , what is indicated by 2303 is the first virtual object, what is indicated by 2302 is the fourth virtual object, and what is indicated by 2301 is the fourth virtual camera following the fourth virtual object.
[0276] In this way, the displayed virtual camera can prompt the user whether other users are in shooting mode, and the user can intuitively see whether other players are shooting, thereby promoting communication and interaction between players; at the same time, the user can understand the behavior of other players in the current game environment and improve awareness of the game situation; in addition, in multiplayer games, such prompts can help players coordinate actions. For example, when one player is shooting, other players can avoid interfering with the shooting of the corresponding player based on the displayed virtual camera, thereby facilitating the current user to shoot, that is, improving shooting efficiency.
[0277] In actual implementation, if the fourth virtual object adjusts the shooting parameters of the fourth virtual camera, such as adjusting at least one of the field of view angle, the field of view direction, and the viewing angle height, the position change process of the fourth virtual camera will also be displayed; for example, if the fourth virtual object raises the viewing angle height of the fourth virtual camera, the process of the fourth virtual camera's height increasing will be displayed.
[0278] For example, see Fig.24 , Fig.24 is a schematic diagram of the change process of the fourth virtual camera provided in an embodiment of the present application, based on Fig.24 , Fig.24 The fourth virtual camera indicated by 2401 in a is before the fourth virtual object performs parameter adjustment. Fig.24 The fourth virtual camera indicated by 2402 in b is the fourth virtual camera after the fourth virtual object performs parameter adjustment, so that Fig.24 , it can be determined that the fourth virtual object raises the height of the viewing angle of the fourth virtual camera, and also adjusts the direction of the fourth virtual camera, that is, the field of view direction, upwards.
[0279] In this way, the parameter adjustment process for the virtual camera can be perceived by other users through the position change of the virtual camera, thus enhancing the immersion and reality of the entire virtual scene.
[0280] By applying the above embodiment of the present application, when the virtual scene is in the first game mode, in response to the trigger instruction for the first shooting mode, the virtual scene is controlled to switch from the first game mode to the first shooting mode, and then in response to the trigger operation for the displayed first mode switching control, the shooting mode of the virtual scene is controlled to switch from the first shooting mode to the second shooting mode, so that in response to the trigger operation for the displayed shooting control, the screen of the virtual scene is shot based on the perspective type of the second shooting mode. In this way, two shooting modes with different perspective types are provided, which improves the diversity and flexibility of the shooting process and the utilization rate of the display resources of the electronic device compared to the solution that can only shoot based on the game perspective in the related art; at the same time, through the two shooting modes with different perspective types, the user can choose which shooting mode to be in according to the needs and the current game state, which solves the problem that the player easily loses control of the game character and is difficult to regain control of the game character under the fixed perspective of a single camera, and does not need to only allow the game character to maintain static actions and expressions or restrict its ability to move in order to avoid the "out of the picture" situation, which can maximize the freedom and richness of the shooting process, and further improve the diversity and flexibility of the shooting process.
[0281] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.
[0282] In the shooting process of relevant games, since only one camera is used in the entire game, the game perspective is the camera perspective. In this case, if the player and the camera are bound, the camera will change with the changes in the behavior of the game character, that is, the camera can only shoot based on the perspective of the player character, which leads to a relatively simple shooting process and poor diversity in the shooting process; if the player and the camera are decoupled, and since only one camera is used in the entire game, the camera still plays the role of "the player's eyes", most games dare not provide completely free camera adjustment or retain the complete game character's ability to move, otherwise "out of frame" may occur, causing the player to lose control of the game character in visual experience and find it difficult to regain control of the game character, thereby reducing the player's experience. Therefore, this way of decoupling the player and the camera leads to low flexibility in the shooting process.
[0283] Based on this, the present application provides a shooting method in a virtual scene. On the basis of retaining the camera representing the player's game perspective, two independently operating virtual cameras are added to the game, providing two shooting modes with different perspective types. Compared with the solution in the related art that can only shoot based on the perspective of the player character, the diversity of the shooting process is improved; at the same time, through the two shooting modes with different perspective types, the user can choose which shooting mode to be in according to the needs and the current game status, which solves the problem that the player is prone to lose control of the game character and finds it difficult to regain control of the game character under the fixed perspective of a single camera. There is no need to allow the game character to maintain static movements and expressions or restrict its ability to move in order to avoid "out of the picture". The freedom and richness of the shooting process can be retained to the maximum extent, and the flexibility of the shooting process is improved.
[0284] Next, the technical solution of this application is explained from the product side.
[0285] It should be noted that the two shooting modes in this application include a handheld shooting mode and a bracket shooting mode. In some embodiments, the handheld shooting mode (first-person perspective shooting mode) is a mode that simulates a game character holding a camera to take a photo from a first-person perspective, such as Figure 5 As shown in b;
[0286] In actual implementation, after entering the handheld shooting mode, the changes in the world (virtual scene) (day and night, weather, temperature, etc.), non-player characters (NPC behavior, etc.), the impact of the world on the game character (being attacked, getting wet, etc.), and the impact of the player's behavior on the world (performance actions affecting NPCs, etc.) will all be retained and continue to operate in accordance with the normal play state. At the same time, the character (the first virtual object) is bound to the camera (the second virtual camera), and when a movement operation for the character is received based on the joystick / direction key, the character is controlled to move, and the camera will move accordingly.
[0287] In actual implementation, when a sliding operation is received on the screen, the camera's orientation (field of view direction) is adjusted, and when a zoom operation is received on the screen, the camera's field of view angle is adjusted. In this mode, the basic action capabilities of the game character (running, sprinting, crouching) and the passive capabilities of NPC riding (gliding, climbing walls, swimming, etc.) are also retained. At the same time, the camera's viewpoint is at the same height as the game character's eyes, and can adapt to the various states of the game character to create a sense of immersion.
[0288] In other embodiments, for the bracket shooting mode (third-person perspective shooting mode), that is, simulating a third-person perspective shooting mode by placing a camera bracket in a game scene, such as Fig. 20 As shown;
[0289] In actual implementation, when entering the tripod shooting mode, the changes in the world (virtual scene) (day and night, weather, temperature, etc.), non-player characters (NPC behavior, etc.), the impact of the world on the game character (being attacked, getting wet, etc.), and the impact of the player's behavior on the world (performance actions affecting NPCs, etc.) will all be retained and continue to operate in accordance with the normal play state. At the same time, a new independent camera B (third virtual camera) is added to represent the camera perspective (camera screen), while the camera A used by the player during the game is still retained and is still bound to the game character (large world screen).
[0290] In actual implementation, the position of the independent camera is fixed, but in the camera screen, when a sliding operation is received on the screen, the direction of the independent camera (field of view direction) is adjusted, and when a zoom operation is received on the screen, the field of view angle of the independent camera is adjusted; among them, in the camera screen, it can also be used to set the parameter setting interface for continuous photography and countdown photography.
[0291] In actual implementation, a switch button (third mode switch control) is displayed in the lower left corner of the camera screen. When a trigger operation is received for the button, the screen is switched to the big world screen (the virtual scene in the second game mode), that is, the perspective of camera A (game perspective). In this perspective, the player can operate the character to perform most of the action capabilities (running, jumping, riding, throwing, magic, etc.), and can also control the character to interact with some game scene interactive objects.
[0292] It should be noted that no matter you switch to camera A or camera B, or adjust any camera, the other camera will keep running independently and will not affect each other; when taking pictures, the screen of camera B is always used for screenshots.
[0293] In this way, you can use the tripod camera to record photos with friends or NPCs, or use the continuous shooting and countdown functions to record some exciting dynamic moments during the game.
[0294] In some embodiments, regarding the process of generating, processing and storing photos, the technical solution of this application does not adopt a design solution that pops up a photo cover screen after taking the photo, requiring the player to immediately handle whether to save and share the photo. Instead, a solution that is more in line with the real-world photo-taking experience is adopted, specifically, Fig.18 , 19 As shown, no matter it is a single shot or multiple shots, after taking a photo, the photo will be automatically stored in a temporary album (virtual album) and a preview thumbnail (cover) of the previous photo will be displayed. When a click operation is received on the thumbnail, the temporary album is opened to delete, save, share, etc. the photo.
[0295] In some embodiments, the function of virtual object recognition can also be Fig.21 As shown, when any virtual object (third virtual object) appears on the camera screen, game information such as the name, area form, and behavior of the virtual object will be automatically identified.
[0296] Next, the technical solution of the present application is explained from a technical perspective.
[0297] First, the process of generating selected points for the camera.
[0298] like Figure 7As shown, for the handheld shooting mode, the key is to simulate the first-person perspective, that is, the picture seen by the player is like what the game character sees with his own eyes. The technical solution of the present application uses the position of the eyes of the character's head skeleton to set the height of the camera viewpoint when handheld photography is performed. The direction is the direction in which the face of the character model is facing, and the camera needs to be surrounded by the character's collision body. In this way, it can be ensured that when the camera is too close to the wall, it can be protected by the collision body and will not penetrate the wall; at the same time, the height of the eye position of the character's head skeleton can realistically simulate the first-person perspective, and the character's skeleton will not change with the character's state, and can adapt to a variety of riding states.
[0299] For the bracket shooting mode, the key is to ensure that the position of the bracket (that is, the camera representing the camera's perspective) is reasonable and appropriate. First of all, the bracket cannot be generated in some specific situations. For example, when the game character is in the air, water, or in some gameplay that cannot be interrupted, the player will be prohibited from creating a bracket. Secondly, the generation of the bracket needs to ensure that it will not overlap, penetrate, or collide with objects in the scene, non-player characters, or even wild elves. Therefore, here, through collision detection, all collidable objects are collected to determine whether a bracket can be generated at the current position. Third, the position where the bracket is generated is 2 meters directly behind the game character model (including the overall model when riding), and the direction is the direction of the camera representing the player's perspective at the time. The initial height is a fixed height, such as Fig.11 This clearly communicates to the player that there are now two different cameras.
[0300] Second, the process of adjusting camera parameters and online real-time communication.
[0301] First of all, in the tripod photo mode, an NPC (the first virtual camera) that looks like a camera is generated in the game world (virtual scene). This is the entity of the camera that represents the camera's perspective (it has been packaged in the game, and the actual engine virtual camera, that is, the third virtual camera, is not visible); and adjustments to the camera's direction, height, position, etc. will affect the NPC in real time, and the changes in camera parameters will be transmitted to the player through changes in the position and model angle of the camera NPC.
[0302] Secondly, when there are multiple players, other players will also quickly and accurately obtain the status information of the current player's camera NPC (the fourth virtual camera) in order to cooperate with the current player to adjust the position and orientation of the game character. That is, during the current player's photo-taking process, operating the bracket will trigger the position and orientation change of the camera NPC. At the same time, the change information will be synchronized with the server, and the server will send the change information to other players in the current area, so that other players can obtain the status information of the current player's camera NPC.
[0303] Third, the process of dual-view parallel and asynchronous data acquisition and processing
[0304] In actual implementation, the camera can take pictures after generating and adjusting the parameters; specifically, in the bracket photography mode, two cameras will be used, so how to ensure that one camera is taking pictures and screenshots while the other camera is viewing the player, so that the player can smoothly perform various actions such as running, jumping, and flying, and the two do not affect each other, and even if multiple photos are collected and generated in a short time, there is no lag, which is crucial to ensuring the player's photography experience. Therefore, this application uses SceneCapture2D to collect photo data, performs asynchronous processing after collecting data, and the main thread continues to take pictures and screenshots.
[0305] The asynchronous processing flow is divided into different stages, each of which is executed in an asynchronous sequence:
[0306] Stage 1: Raw pixels `TArray64 <uint8>`Data converted to `TArrayView<const FColor> `Color data, perform ImageResize operation on element data, output thumbnail data`TArray <fcolor>.
[0307] Phase 2: Notify the main thread to create a UTexture object using the thumbnail data and refresh the interface, so that the thumbnail (cover) of the currently taken photo is displayed in the upper right corner of the photo interface.
[0308] Stage 3: Compress thumbnail data and serialize it into png format.
[0309] Phase 4: Compress element data, serialize it into png format, notify the main thread to complete the original image storage, refresh the interface, and view the complete photo in the temporary album.
[0310] Fourth, the process of photo adaptation for multiple models
[0311] In actual implementation, the image needs to be flipped when it is serialized; at the same time, the image size is modified when it is rendered on the interface, and it is modified to the scale calculated relative to ViewportSize and ViewportScale to ensure that the size is appropriate when displayed at different resolutions. In this way, the photo can be adapted to different screen ratios and resolutions.
[0312] In some embodiments, in the big world screen of the stand photography mode, a picture-in-picture mode can also be used to display the picture in the camera representing the camera perspective in real time, thereby facilitating players to adjust their positions and postures and avoiding frequent switching of camera perspectives.
[0313] In some embodiments, the game character and NPC's head or vision will be controlled to follow the camera focus center, so as to simulate the experience of the game character and NPC looking at the camera, making the photo more realistic.
[0314] In some embodiments, a selfie mode (selfie perspective) can be added, that is, the game character can simulate holding a camera to take pictures of himself and the elves. At the same time, different NPCs can be designed to give feedback on the camera and actions (interact with the characters) to increase the fun of the photo-taking process.
[0315] In this way, through the technical solution of the present application, firstly, the diverse and complex action capabilities, riding status, and interactive feedback of the game characters with the game world are retained to the greatest extent during the photo-taking process, so that these wonderful and rich dynamic moments can be captured in photos, thereby improving the diversity and flexibility of the photo-taking process; secondly, through the bracket photo-taking mode, it is supported that the player characters can take photos with any other virtual objects or NPCs, which increases the immersion and sense of substitution of the game; thirdly, for multiplayer games, through the bracket photo-taking mode and the camera model adjustment of real-time communication technology, it becomes more convenient and vivid for multiple players to take photos at the same time.
[0316] By using the above embodiment of the present application, when the virtual scene is in the first game mode, in response to the trigger instruction for the first shooting mode, the virtual scene is controlled to switch from the first game mode to the first shooting mode, and then in response to the trigger operation for the displayed first mode switching control, the shooting mode of the virtual scene is controlled to switch from the first shooting mode to the second shooting mode, so that in response to the trigger operation for the displayed shooting control, the screen of the virtual scene is shot based on the perspective type of the second shooting mode. In this way, two shooting modes of different perspective types are provided, which improves the diversity and flexibility of the shooting process and the utilization rate of the display resources of the electronic device compared to the solution that can only shoot based on the game perspective in the related art; at the same time, through the two shooting modes of different perspective types, the user can choose which shooting mode to be in according to the needs and the current game state, which solves the problem that the player is easy to lose control of the game character and it is difficult to regain control of the game character under the fixed perspective of a single camera, and does not need to only allow the game character to maintain static actions and expressions or restrict its ability to move in order to avoid the "out of the picture" situation, which can maximize the freedom and richness of the shooting process and further improve the diversity and flexibility of the shooting process.
[0317] The following is a description of an exemplary structure of the shooting device 455 in the virtual scene provided by the present application as a software module. In some embodiments, Figure 2 As shown, the software modules in the shooting device 455 stored in the virtual scene of the memory 450 may include:
[0318] A first display module 4551, used to display a virtual scene in a first game mode, wherein the first game mode is used to control the activities of virtual objects in the virtual scene in the virtual scene;
[0319] A first switching module 4552, configured to control the virtual scene to switch from the first game mode to the first shooting mode in response to a trigger instruction for the first shooting mode;
[0320] A second display module 4553, configured to display a shooting control and a first mode switching control when the virtual scene is in the first shooting mode;
[0321] A second switching module 4554 is used to control the shooting mode of the virtual scene to switch from the first shooting mode to a second shooting mode in response to a trigger operation on the first mode switching control; wherein the perspective types adopted for shooting in the first shooting mode and shooting in the second shooting mode are different;
[0322] The shooting module 4555 is used to shoot the image of the virtual scene based on the perspective type of the second shooting mode in response to the trigger operation on the shooting control.
[0323] In some embodiments, the device also includes a third display module, which is used to display a shooting entrance in the virtual scene in the first game mode; in response to a trigger operation on the shooting entrance, display at least two candidate shooting modes including the first shooting mode, and different candidate shooting modes correspond to different perspective types; in response to a selection operation on the first shooting mode, a trigger instruction for the first shooting mode is received.
[0324] In some embodiments, the device also includes a fourth display module, which is used to display the image of the virtual scene based on default shooting parameters when the virtual scene is in the first shooting mode; wherein the shooting parameters include at least one of the field of view direction and the field of view angle corresponding to the first shooting mode; in response to a parameter adjustment instruction for the shooting parameter, the default shooting parameter is adjusted, and the image of the virtual scene is displayed using the adjusted shooting parameters.
[0325] In some embodiments, the fourth display module is also used to display a second mode switching control when the virtual scene is in the first shooting mode; wherein the second mode switching control is used to switch from the first shooting mode to a second game mode, and the second game mode is used to control the movement of virtual objects in the virtual scene in the virtual scene without exiting the first shooting mode; in response to a trigger operation on the second mode switching control, switching from the first shooting mode to the second game mode; based on the second game mode, when the virtual scene is switched to the first shooting mode again, the adjusted shooting parameters are used to display the image of the virtual scene in the first shooting mode.
[0326] In some embodiments, the fourth display module is also used to display a reset control when the virtual scene is in the first shooting mode, and the reset control is used to reset the shooting parameters of the shooting mode; in response to a trigger operation on the reset control, the shooting parameters of the first shooting mode are reset from the adjusted shooting parameters to the default shooting parameters, and the default shooting parameters are used to display the picture of the virtual scene.
[0327] In some embodiments, the virtual scene includes a first virtual object and a second virtual object, and the perspective type corresponding to the first shooting mode is a first-person perspective; the device also includes a fifth display module, and the fifth display module is used to display the virtual scene using the first-person perspective when the virtual scene is in the first shooting mode; wherein the first-person perspective is the perspective of the first virtual object; in response to an object perspective switching instruction, the display perspective of the virtual scene is switched from the perspective of the first virtual object to the perspective of the second virtual object; in response to a trigger operation on the shooting control, the image of the virtual scene is shot based on the perspective of the second virtual object in the first shooting mode.
[0328] In some embodiments, the perspective type corresponding to the first shooting mode is a first-person perspective, the virtual scene includes a first virtual object, and the first-person perspective is the perspective of the first virtual object; the device also includes a first control module, and the first control module is used to control the first virtual object to move in the virtual scene in response to a movement operation on the first virtual object; during the movement of the first virtual object, the shooting field of view under the first-person perspective is controlled to change synchronously.
[0329] In some embodiments, the perspective type corresponding to the first shooting mode is a first-person perspective, the virtual scene includes a first virtual object and a virtual pet, and the first-person perspective is the perspective of the first virtual object; the device also includes a second control module, and the second control module is used to control the first virtual object to move in the virtual scene in response to a movement operation on the first virtual object; during the movement of the first virtual object, the process of the virtual pet following the first virtual object to move synchronously is displayed.
[0330] In some embodiments, the second control module is further used to control the first virtual object to adjust the behavior of the virtual pet in response to the control operation on the first virtual object during the movement of the virtual pet; wherein the behavior of the virtual pet includes at least one of the orientation, posture, position, and expression of the virtual pet; when the adjustment of the first virtual object is completed, in response to the trigger operation on the shooting control, the picture of the virtual scene is shot based on the perspective type of the first shooting mode; wherein the picture of the virtual scene includes at least the virtual pet with adjusted behavior and the first virtual object.
[0331] In some embodiments, the perspective type corresponding to the second shooting mode is a third-person perspective, and the device also includes a sixth display module, which is used to display a first virtual camera in the virtual scene when the virtual scene is in the second shooting mode, and the perspective of the first virtual camera is the third-person perspective; the virtual scene is displayed using the perspective of the first virtual camera; the shooting module 4555 is also used to respond to a trigger operation on the shooting control and shoot the image of the virtual scene based on the perspective of the first virtual camera.
[0332] In some embodiments, the device also includes a parameter setting module, which is used to display a parameter setting interface in the second shooting mode when the virtual scene is in the second shooting mode, and the parameter setting interface is used to set the shooting parameters; based on the parameter setting interface, in response to the setting operations of the countdown parameters and the continuous shooting parameters, the shooting countdown and the number of continuous shootings when shooting the pictures in the virtual scene are set respectively; the shooting module 4555 is also used to respond to the trigger operation of the shooting control, based on the set shooting countdown and the number of continuous shootings, to continuously shoot the pictures in the virtual scene from the perspective of the first virtual camera.
[0333] In some embodiments, the shooting countdown is set as a target duration, and the number of continuous shots is set as a target number; the shooting module 4555 is also used to display the countdown of the target duration in response to a trigger operation on the shooting control; when the countdown of the target duration is reset, the target number of continuous shots are taken of the images in the virtual scene from the perspective of the first virtual camera.
[0334] In some embodiments, the sixth display module is also used to divide the display interface of the virtual scene into a first area and a second area when the virtual scene is in the second shooting mode; in the second area, the virtual scene is displayed using the perspective of the first virtual camera; in the first area, the screen of the virtual scene in the first game mode is displayed, and the first game mode is used to control the activities of virtual objects in the virtual scene in the virtual scene.
[0335] In some embodiments, the virtual scene includes a first virtual object, and the sixth display module is further used to display a third mode switching control, wherein the third mode switching control is used to switch the second shooting mode to a second game mode, and the second game mode is used to control the virtual object in the virtual scene to move in the virtual scene without exiting the first shooting mode; in response to a trigger operation on the third mode switching control, the virtual scene is switched from the second shooting mode to the second game mode; in response to a position adjustment operation on the first virtual object, the relative position relationship between the first virtual object and the first virtual camera is adjusted in the virtual scene in the second game mode; when the relative position relationship adjustment is completed, in response to a trigger instruction for the second shooting mode, the virtual scene is controlled to switch from the second game mode to the second shooting mode; the shooting module 4555 is also used to shoot a picture of the virtual scene including the first virtual object based on the perspective of the first virtual camera in response to a trigger operation on the shooting control.
[0336] In some embodiments, the sixth display module is further configured to adjust the height of the first virtual camera in the virtual scene in response to a height adjustment operation on the first virtual camera, so as to adjust the height of the viewing angle of the first virtual camera.
[0337] In some embodiments, the device also includes a third control module, which is used to control the movement of the first virtual object in the virtual scene in response to a movement operation on the first virtual object; during the movement of the first virtual object, keep the field of view of the first virtual camera unchanged.
[0338] In some embodiments, the third control module is further used to display a prompt message when the first virtual object moves out of the field of view, wherein the prompt message is used to guide the adjustment of the shooting parameters of the first virtual camera; in response to a parameter adjustment operation for the shooting parameters of the first virtual camera triggered by the prompt message, the shooting parameters of the first virtual camera are adjusted; in response to completion of the adjustment of the shooting parameters of the first virtual camera, the first virtual object is displayed in the field of view of the first virtual camera.
[0339] In some embodiments, the virtual scene includes a first game mode and a shooting mode, the first game mode is used to control the activities of virtual objects in the virtual scene in the virtual scene, and the shooting mode includes the first shooting mode and the second shooting mode; the device also includes a seventh display module, and the seventh display module is used to display an exit control when the virtual scene is in the shooting mode; in response to a trigger operation on the exit control, the virtual scene is controlled to exit the shooting mode, and the virtual scene is controlled to enter the first game mode.
[0340] In some embodiments, the device further includes a fourth control module, which is used to display a first virtual object and a virtual pet in the virtual scene; in response to a control operation on the first virtual object, control the first virtual object to guide the virtual pet to move from a current position to a target position; when the virtual pet moves to the target position, in response to a trigger operation on the shooting control, shoot the picture of the virtual scene based on the perspective type of the first shooting mode; wherein the picture of the virtual scene includes the virtual pet at the target position.
[0341] In some embodiments, the device also includes an eighth display module, and the eighth display module is used to display the focus area when the virtual scene is in the second shooting mode; in response to the appearance of a third virtual object in the focus area, display object information obtained by identifying the third virtual object.
[0342] In some embodiments, the device further includes a ninth display module, and the ninth display module is used to display a virtual photo album in the picture of the virtual scene, and to display at least one virtual image obtained by photographing the picture in the virtual scene in the virtual photo album.
[0343] In some embodiments, the ninth display module is also used to display the cover of the virtual album in the virtual scene, where the cover is the most recently captured virtual image of the at least one virtual image; and the virtual album is displayed in response to a trigger operation on the cover.
[0344] In some embodiments, the device also includes a tenth display module, which is used to display a first virtual object in the virtual scene, and in response to a move operation on the first virtual object, control the first virtual object to move toward a fourth virtual object; when the distance between the first virtual object and the fourth virtual object is less than or equal to a distance threshold, in response to the fourth virtual object being in a shooting mode, display a fourth virtual camera following the fourth virtual object.
[0345] In some embodiments, the device further includes a recording module, which is configured to perform video recording of the image of the virtual scene based on the perspective type of the second shooting mode in response to a video recording instruction triggered by the shooting control.
[0346] In some embodiments, the device also includes a first generating module, which is used to generate a second virtual camera when the virtual scene is in the first shooting mode, and render a first picture of the virtual scene in the first shooting mode based on the second virtual camera; based on the first picture, display the virtual scene in the first shooting mode.
[0347] In some embodiments, the device also includes a second generating module, which is used to generate a third virtual camera different from the second virtual camera when the virtual scene is in the second shooting mode; based on the third virtual camera, render a second picture of the virtual scene in the second shooting mode; based on the second picture, display the virtual scene in the second shooting mode.
[0348] The embodiment of the present application provides a computer program product, which includes computer executable instructions or computer programs, and the computer executable instructions or computer programs are stored in a computer-readable storage medium. The processor of the electronic device reads the computer executable instructions or computer programs from the computer-readable storage medium, and the processor executes the computer executable instructions or computer programs, so that the electronic device executes the shooting method in the virtual scene described in the embodiment of the present application.
[0349] The present application embodiment provides a computer-readable storage medium storing computer-executable instructions or computer programs. When the computer-executable instructions or computer programs are executed by a processor, the processor will execute the shooting method in the virtual scene provided by the present application embodiment, for example, Figure 3 The shooting method in the virtual scene is shown.
[0350] 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.
[0351] In some embodiments, computer 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.
[0352] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing 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).
[0353] As an example, computer 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.
[0354] In summary, the embodiments of the present application have the following beneficial effects:
[0355] Two shooting modes with different viewing angles are provided, which improves the diversity and flexibility of the shooting process and the utilization rate of display resources of electronic devices compared to the solutions in the related art that can only shoot based on the game perspective. At the same time, through the two shooting modes with different viewing angles, users can choose which shooting mode to be in according to their needs and the current game status, which solves the problem that players easily lose control of the game character and find it difficult to regain control of the game character under the fixed viewing angle of a single camera. There is no need to allow only the game character to maintain static movements and expressions, or restrict its ability to move, in order to avoid "out of frame" situations. The freedom and richness of the shooting process can be retained to the maximum extent, further improving the diversity and flexibility of the shooting process.
[0356] It should be noted that in the embodiments of the present application, data related to user operations, etc., 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.
[0357] 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.< / fcolor>
Claims
1. A shooting method in a virtual scene, characterized in that: The method comprises: Displaying a virtual scene in a first game mode, wherein the first game mode is used to control virtual objects in the virtual scene to move in the virtual scene; In response to a trigger instruction for the first shooting mode, controlling the virtual scene to switch from the first game mode to the first shooting mode; When the virtual scene is in the first shooting mode, displaying a shooting control and a first mode switching control; In response to a trigger operation on the first mode switching control, controlling the shooting mode of the virtual scene to switch from the first shooting mode to a second shooting mode; The angle of view used for shooting in the first shooting mode and shooting in the second shooting mode is different; In response to a trigger operation on the shooting control, a picture of the virtual scene is shot based on the viewing angle type of the second shooting mode.
2. The method according to claim 1, characterized in that Before controlling the virtual scene to switch from the first game mode to the first shooting mode in response to the trigger instruction for the first shooting mode, the method further includes: In the virtual scene in the first game mode, displaying a shooting entrance; In response to a trigger operation on the shooting entry, displaying at least two candidate shooting modes including the first shooting mode, where different candidate shooting modes correspond to different viewing angle types; In response to a selection operation for the first shooting mode, a trigger instruction for the first shooting mode is received.
3. The method according to claim 1, characterized in that Before controlling the shooting mode of the virtual scene to switch from the first shooting mode to the second shooting mode in response to the triggering operation on the first mode switching control, the method further includes: When the virtual scene is in the first shooting mode, displaying the image of the virtual scene based on default shooting parameters; wherein the shooting parameters include at least one of the field of view direction and the field of view angle corresponding to the first shooting mode; In response to the parameter adjustment instruction for the shooting parameter, the default shooting parameter is adjusted, and the image of the virtual scene is displayed using the adjusted shooting parameter.
4. The method according to claim 3, characterized in that The virtual scene includes a first virtual object, and the method further includes: When the virtual scene is in the first shooting mode, displaying a second mode switching control; The second mode switching control is used to switch from the first shooting mode to the second game mode, and the second game mode is used to control the virtual objects in the virtual scene to move in the virtual scene without exiting the first shooting mode; In response to a trigger operation on the second mode switching control, switching from the first shooting mode to the second game mode; Based on the second game mode, when the virtual scene is switched to the first shooting mode again, the adjusted shooting parameters are used to display the image of the virtual scene in the first shooting mode.
5. The method according to claim 1, characterized in that The virtual scene includes a first virtual object and a second virtual object, and the perspective type corresponding to the first shooting mode is a first-person perspective; Before controlling the shooting mode of the virtual scene to switch from the first shooting mode to the second shooting mode in response to the triggering operation on the first mode switching control, the method further includes: When the virtual scene is in the first shooting mode, the first-person perspective is used to display the virtual scene; wherein the first-person perspective is the perspective of the first virtual object; In response to an object perspective switching instruction, switching the display perspective of the virtual scene from the perspective of the first virtual object to the perspective of the second virtual object; In response to a trigger operation on the shooting control, a picture of the virtual scene is shot based on a viewing angle of the second virtual object in the first shooting mode.
6. The method according to claim 1, characterized in that The perspective type corresponding to the first shooting mode is a first-person perspective, the virtual scene includes a first virtual object and a virtual pet, and the first-person perspective is the perspective of the first virtual object; When the virtual scene is in the first shooting mode, after displaying the shooting control and the first mode switching control, the method further includes: In response to a movement operation on the first virtual object, controlling the first virtual object to move in the virtual scene; During the movement of the first virtual object, the process of the virtual pet moving synchronously with the first virtual object is displayed.
7. The method according to claim 6, characterized in that After the process of displaying the virtual pet moving synchronously with the first virtual object, the method further includes: During the movement of the virtual pet, in response to a control operation on the first virtual object, controlling the first virtual object to adjust the behavior of the virtual pet; The behavior of the virtual pet includes at least one of the orientation, posture, position, and expression of the virtual pet; When the adjustment of the first virtual object is completed, in response to a trigger operation on the shooting control, shooting a picture of the virtual scene based on the perspective type of the first shooting mode; The image of the virtual scene at least includes the virtual pet with adjusted behavior and the first virtual object.
8. The method according to claim 1, characterized in that The perspective type corresponding to the second shooting mode is a third-person perspective. In response to the triggering operation on the shooting control, before shooting the image of the virtual scene based on the perspective type of the second shooting mode, the method further includes: When the virtual scene is in the second shooting mode, a first virtual camera is displayed in the virtual scene, and the perspective of the first virtual camera is the third-person perspective; Using the perspective of the first virtual camera to display the virtual scene; The step of responding to the triggering operation on the shooting control and shooting the image of the virtual scene based on the viewing angle type of the second shooting mode includes: In response to a trigger operation on the shooting control, a picture of the virtual scene is shot based on a viewing angle of the first virtual camera.
9. The method according to claim 8, characterized in that The method further comprises: When the virtual scene is in the second shooting mode, a parameter setting interface in the second shooting mode is displayed, where the parameter setting interface is used to set shooting parameters; Based on the parameter setting interface, in response to the setting operation of the countdown parameter and the continuous shooting parameter, respectively setting the shooting countdown and the number of continuous shootings when shooting the pictures in the virtual scene; The step of responding to the triggering operation on the shooting control and shooting the image of the virtual scene based on the viewing angle of the first virtual camera includes: In response to a trigger operation on the shooting control, based on the set shooting countdown and the number of continuous shootings, the images in the virtual scene from the perspective of the first virtual camera are continuously shot.
10. The method according to claim 8, characterized in that The step of displaying the virtual scene using the viewing angle of the first virtual camera includes: When the virtual scene is in the second shooting mode, dividing the display interface of the virtual scene into a first area and a second area; In the second area, the virtual scene is displayed using the viewing angle of the first virtual camera; The method further comprises: In the first area, a screen of the virtual scene in the first game mode is displayed, and the first game mode is used to control the activities of virtual objects in the virtual scene in the virtual scene.
11. The method according to claim 8, characterized in that The virtual scene includes a first virtual object, and after the virtual scene is displayed using the viewing angle of the first virtual camera, the method further includes: displaying a third mode switching control, wherein the third mode switching control is used to switch the second shooting mode to a second game mode, wherein the second game mode is used to control the movement of virtual objects in the virtual scene in the virtual scene without exiting the first shooting mode; In response to a trigger operation on the third mode switching control, switching the virtual scene from the second shooting mode to the second game mode; In the virtual scene in the second game mode, in response to a position adjustment operation on the first virtual object, adjusting a relative position relationship between the first virtual object and the first virtual camera; When the relative position relationship adjustment is completed, in response to a trigger instruction for the second shooting mode, controlling the virtual scene to switch from the second game mode to the second shooting mode; The step of responding to the triggering operation on the shooting control and shooting the image of the virtual scene based on the viewing angle of the first virtual camera includes: In response to a trigger operation on the shooting control, a picture of the virtual scene including the first virtual object is shot based on a viewing angle of the first virtual camera.
12. The method according to claim 8, characterized in that The virtual scene includes a first virtual object, and after the virtual scene is displayed using the viewing angle of the first virtual camera, the method further includes: In response to a movement operation on the first virtual object, controlling the first virtual object to move in the virtual scene; During the movement of the first virtual object, the field of view of the first virtual camera is kept unchanged.
13. The method according to claim 12, characterized in that After the field of view of the first virtual camera is kept unchanged, the method further includes: When the first virtual object moves out of the field of view, displaying prompt information, wherein the prompt information is used to guide adjustment of shooting parameters of the first virtual camera; In response to a parameter adjustment operation on the shooting parameters of the first virtual camera triggered based on the prompt information, adjusting the shooting parameters of the first virtual camera; In response to the completion of adjusting the shooting parameters of the first virtual camera, the first virtual object is displayed in the field of view of the first virtual camera.
14. The method according to claim 1, characterized in that After controlling the virtual scene to switch from the first game mode to the first shooting mode in response to the trigger instruction for the first shooting mode, the method further includes: Displaying a first virtual object and a virtual pet in the virtual scene; In response to a control operation on the first virtual object, controlling the first virtual object to guide the virtual pet to move from a current position to a target position; When the virtual pet moves to the target position, in response to a trigger operation on the shooting control, the image of the virtual scene is shot based on the viewing angle type of the first shooting mode; The image of the virtual scene includes the virtual pet at the target position.
15. The method according to claim 1, characterized in that After controlling the shooting mode of the virtual scene to switch from the first shooting mode to the second shooting mode in response to the triggering operation on the first mode switching control, the method further includes: When the virtual scene is in the second shooting mode, displaying a focus area; In response to a third virtual object appearing in the focus area, object information obtained by identifying the third virtual object is displayed.
16. The method according to claim 1, characterized in that After photographing the image of the virtual scene based on the perspective type of the second photographing mode in response to the triggering operation on the photographing control, the method further includes: A virtual album is displayed in the screen of the virtual scene, and at least one virtual image obtained by photographing the screen in the virtual scene is displayed in the virtual album.
17. The method according to claim 16, characterized in that Displaying a virtual photo album in the screen of the virtual scene includes: In the virtual scene, displaying a cover of the virtual album, wherein the cover is the most recently captured virtual image among the at least one virtual image; In response to a trigger operation on the cover, the virtual album is displayed.
18. The method according to claim 1, characterized in that After controlling the virtual scene to switch from the first game mode to the first shooting mode in response to the trigger instruction for the first shooting mode, the method further includes: When the virtual scene is in the first shooting mode, generating a second virtual camera, and rendering a first picture of the virtual scene in the first shooting mode based on the second virtual camera; Based on the first picture, the virtual scene in the first shooting mode is displayed.
19. The method according to claim 18, characterized in that After controlling the shooting mode of the virtual scene to switch from the first shooting mode to the second shooting mode in response to the triggering operation on the first mode switching control, the method further includes: When the virtual scene is in the second shooting mode, generating a third virtual camera different from the second virtual camera; Based on the third virtual camera, rendering obtains a second picture of the virtual scene in the second shooting mode; Based on the second picture, the virtual scene in the second shooting mode is displayed.
20. A shooting device in a virtual scene, characterized in that: The device comprises: A first display module, used to display a virtual scene in a first game mode, wherein the first game mode is used to control the activities of virtual objects in the virtual scene in the virtual scene; A first switching module, configured to control the virtual scene to switch from the first game mode to the first shooting mode in response to a trigger instruction for the first shooting mode; A second display module, used for displaying a shooting control and a first mode switching control when the virtual scene is in the first shooting mode; A second switching module, configured to control the shooting mode of the virtual scene to switch from the first shooting mode to a second shooting mode in response to a triggering operation on the first mode switching control; wherein the perspective types adopted for shooting in the first shooting mode and shooting in the second shooting mode are different; A shooting module is used to shoot a picture of the virtual scene based on the viewing angle type of the second shooting mode in response to a trigger operation on the shooting control.
21. An electronic device, characterized in that: include: Memory for storing computer executable instructions or computer programs; A processor is used to implement the shooting method in the virtual scene described in any one of claims 1 to 19 when executing the computer executable instructions or computer programs stored in the memory.
22. A computer-readable storage medium, characterized in that: Computer executable instructions or computer programs are stored, which are used to cause a processor to execute and implement the shooting method in a virtual scene as described in any one of claims 1 to 19.
23. A computer program product comprising computer executable instructions or a computer program, characterized in that When the computer executable instructions or computer program are executed by a processor, the shooting method in a virtual scene described in any one of claims 1 to 19 is implemented.
Citation Information
Patent Citations
Camera mode for capturing multiple video segments
CN116648895A
Picture display method, device and terminal
CN117138336A
View angle control method and device in game, electronic equipment and storage medium
CN117839211A
Operation control method and apparatus, electronic device, and storage medium
US20210260479A1
Camera movement switching mode method and apparatus, computer program and readable medium
WO2022000971A1