Virtual scene interaction processing method and device, electronic equipment, computer readable storage medium and computer program product
By keeping the virtual object's body stationary and rotating only its head in response to view rotation, players can silently observe surroundings, enhancing the gaming experience in virtual scenes.
Patent Information
- Application Number
- CN202411110299.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-12-03
AI Technical Summary
In virtual scene interactions, particularly in shooting games, players expose themselves by making noise when turning to observe the surroundings due to the large amplitude of the turning movement, reducing the gaming experience.
Implement a method where the virtual object's body remains stationary while the head rotates in response to a view rotation operation, switching to a second virtual scene picture from the head's rotated perspective, allowing silent observation.
Enables players to obtain surrounding information without making sound, enriching strategic depth and improving the gaming experience by providing a silent observation method.
Smart Images

Figure CN119056052A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a method, device, electronic device, computer-readable storage medium and computer program product for interactive processing of a virtual scene. Background Art
[0002] Display technology based on graphics processing hardware has expanded the channels for perceiving the environment and obtaining information, especially the display technology of virtual scenes. It can realize diversified interactions between virtual objects controlled by users (or players) or artificial intelligence according to actual application needs, and has various typical application scenarios. For example, in virtual scenes such as games, it can simulate the real battle process between virtual objects.
[0003] Taking shooting games as an example, in the related technology, players can check the surrounding situation by controlling the game character to turn around. However, due to the large amplitude of the turning movement, it is inevitable that noise will be made when the player controls the game character to turn around, thereby exposing themselves and reducing the player's gaming experience. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device, computer-readable storage medium and computer program product for interactive processing of a virtual scene, which can enable players to obtain surrounding information without making any sound, enrich the strategic depth of the game, and thus enhance the player's gaming experience.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] The present application provides a method for interactive processing of a virtual scene, including:
[0007] Displaying a first virtual scene picture, wherein the first virtual scene picture is obtained by a virtual object observing the virtual scene from a first perspective;
[0008] In response to the view rotation operation, the body of the virtual object is kept from rotating, and the head of the virtual object is controlled to rotate a corresponding angle along the direction indicated by the view rotation operation, and
[0009] Switch and display a second virtual scene picture, wherein the second virtual scene picture is obtained when the virtual object observes the virtual scene from a second viewing angle, and the second viewing angle is a viewing angle corresponding to a rotation of the head of the virtual object.
[0010] The embodiment of the present application provides an interactive processing device for a virtual scene, including:
[0011] A display module, configured to display a first virtual scene image, wherein the first virtual scene image is obtained by a virtual object observing the virtual scene from a first perspective;
[0012] A control module, configured to keep the body of the virtual object from rotating in response to the view angle rotation operation, and control the head of the virtual object to rotate a corresponding angle along the direction indicated by the view angle rotation operation;
[0013] The display module is further used to switch and display a second virtual scene picture, wherein the second virtual scene picture is obtained when the virtual object observes the virtual scene from a second viewing angle, and the second viewing angle is the viewing angle corresponding to the rotation of the head of the virtual object.
[0014] An embodiment of the present application provides an electronic device, including:
[0015] A memory for storing executable instructions;
[0016] The processor is used to implement the interactive processing method of the virtual scene provided in the embodiment of the present application when executing the executable instructions stored in the memory.
[0017] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for implementing the interactive processing method of the virtual scene provided in the embodiment of the present application when executed by a processor.
[0018] An embodiment of the present application provides a computer program product, including a computer program or computer executable instructions, which are used to implement the interactive processing method of the virtual scene provided in the embodiment of the present application when executed by a processor.
[0019] The embodiments of the present application have the following beneficial effects:
[0020] When receiving the perspective rotation operation triggered by the player, the surrounding information is obtained by only turning the head of the virtual object. Since the amplitude of the head rotation movement is small, no sound will be produced. In this way, a silent observation method can be provided to the player, allowing the player to choose to obtain surrounding information without making any sound and exposing themselves, enriching the tactical choices in the virtual scene and thus improving the player's gaming experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 1 is a schematic diagram of the architecture of a virtual scene interactive processing system 100 provided in an embodiment of the present application;
[0022] Figure 2 is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present application;
[0023] Figure 3It is a flowchart of the interactive processing method of the virtual scene provided in the embodiment of the present application;
[0024] Figure 4 It is a flowchart of the interactive processing method of the virtual scene provided in the embodiment of the present application;
[0025] Figure 5 It is a schematic diagram of an application scenario of the interactive processing method of a virtual scene provided in an embodiment of the present application;
[0026] Figure 6 It is a schematic diagram of an application scenario of the interactive processing method of a virtual scene provided in an embodiment of the present application;
[0027] Fig. 7A and Figure 7B It is a schematic diagram of an application scenario of the interactive processing method of a virtual scene provided in an embodiment of the present application;
[0028] Fig. 8A and Figure 8B It is a schematic diagram of an application scenario of the interactive processing method of a virtual scene provided in an embodiment of the present application;
[0029] Fig. 9 is a schematic diagram comparing turning around observation and turning head observation provided in an embodiment of the present application;
[0030] Fig.10 It is a schematic diagram of an application scenario of the interactive processing method of a virtual scene provided in an embodiment of the present application;
[0031] Fig.11 It is a flowchart of the interactive processing method of the virtual scene provided in the embodiment of the present application;
[0032] Fig.12 is a schematic diagram of a setting interface provided in an embodiment of the present application;
[0033] Fig.13 is a schematic diagram of an angle limiting interface provided in an embodiment of the present application;
[0034] Fig.14 It is a schematic diagram of the setting interface provided in the embodiment of the present application. DETAILED DESCRIPTION
[0035] 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.
[0036] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can 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.
[0037] It is understandable that in the embodiments of the present application, when user information and other related data (such as data of a game character controlled by a player) are involved, 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 the relevant data must comply with relevant laws, regulations and standards.
[0038] In the following description, the terms "first\second\..." are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\..." 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.
[0039] 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.
[0040] 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.
[0041] 1) In response to: 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 may be executed.
[0042] 2) Virtual scene: It is the scene displayed (or provided) when the application is running on the terminal device. The scene can be a simulation environment of the real world, a semi-simulation and semi-fictitious virtual environment, or a purely fictitious 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, the 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.
[0043] 3) Virtual objects: images of various people and objects that can interact in a virtual scene, or movable objects in a virtual scene. The movable objects can be virtual characters, virtual animals, cartoon characters, etc., such as characters and animals displayed in a virtual scene. For example, a virtual object can be a virtual image in a virtual scene that represents a 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.
[0044] 4) Cloud gaming: Also known as gaming on demand, it means deploying a game program on a server and running an instance of the game program (referred to as a game instance). The game instance sends the game data output during the running process to the browser page of the user terminal. The page calls the media component of the browser to decode the game data and renders the real-time game screen during the game according to the decoding result. When the page detects the operation performed by the user on the game screen, it will report it to the game instance running on the server. When the game data generated by the game instance in response to the operation is received, the decoding and rendering process will be repeated, so that the game screen changes according to the user's operation are presented on the page.
[0045] In other words, cloud gaming is an online gaming technology based on cloud computing technology. Cloud gaming technology enables thin clients with relatively limited graphics processing and data computing capabilities to run high-quality games. In a cloud gaming scenario, the game is not played on the user terminal (such as the player's game terminal), but on the cloud server, which renders the game scene into an audio and video stream and transmits it to the user terminal over the network. In this way, the user terminal does not need to have powerful graphics computing and data processing capabilities, but only needs to have basic streaming media playback capabilities and the ability to obtain player input commands and send them to the cloud server.
[0046] Take shooting games as an example. In realistic shooting games, players can judge the enemy's information (such as location) through sound. In related technologies, when the player controls the game character to turn around and observe the surrounding situation, due to the large amplitude of the turning action, the game character will inevitably make a sound when turning, thereby exposing itself.
[0047] In view of this, the embodiments of the present application provide a method, device, electronic device, computer-readable storage medium and computer program product for interactive processing of a virtual scene, which enables players to obtain surrounding information without making any sound and exposing themselves. The electronic device provided by the embodiment of the present application is described below. The electronic device provided by the embodiment of the present application can be implemented as a terminal device (corresponding to a stand-alone version of the game), or implemented in collaboration with a terminal device and a server (corresponding to a networked version of the game). The following is an example of an interactive processing method for a virtual scene provided by an embodiment of the present application being implemented in collaboration with a server and a terminal device.
[0048] Before introducing the architecture of the interactive processing system of the virtual scene provided by the embodiment of the present application, the game mode involved in the embodiment of the present application is first introduced. The scheme for the collaborative implementation of the terminal device and the server mainly involves two game modes, namely the local game mode and the cloud game mode, wherein the local game mode refers to the terminal device and the server jointly running the game processing logic, the operation instructions input by the player in the terminal device, part of which is processed by the terminal device running the game logic, and the other part is processed by the server running the game logic, and the game logic processing run by the server is often more complicated and requires more computing power; the cloud game mode refers to the game logic processing run entirely by the server (such as a cloud server), and the cloud server renders the game scene data into an audio and video stream, which is then transmitted to the terminal device for display via the network. In other words, the terminal device only needs to have basic streaming media playback capabilities and the ability to obtain the player's operation instructions and send them to the server.
[0049] The following describes the architecture of the interactive processing system for the virtual scene provided in the embodiments of the present application.
[0050] For example, see Figure 1 , Figure 1 is a schematic diagram of the architecture of the virtual scene interactive processing system 100 provided in an embodiment of the present application, such as Figure 1 As shown, the interactive processing system 100 of the virtual scene includes: a server 200, a network 300 and a terminal device 400, wherein the server 200 is a background server of a client 410 running on the terminal device 400, the network 300 can be a local area network or a wide area network, or a combination of the two, the terminal device 400 is a terminal device associated with a user (or player), and a client 410 runs on the terminal device 400. The client 410 can be various types of clients, such as a shooting game client, a role-playing game client, and a browser.
[0051] In some embodiments, taking shooting games as an example, a first virtual scene screen can be displayed in the human-computer interaction interface of the client 410, wherein the first virtual scene screen can be obtained by a virtual object (such as game character A) controlled by the user observing the virtual scene from a first perspective (such as the current perspective), and then when a perspective rotation operation triggered by the user is received, the client 410 can respond to the perspective rotation operation, keep the body (i.e., torso and limbs) of the virtual object from rotating, and control the head of the virtual object to rotate a corresponding angle along the direction indicated by the perspective rotation operation, and switch from the first virtual scene screen to the second virtual scene screen, wherein the second virtual scene screen is obtained by the virtual object observing the virtual scene from a second perspective, and the second perspective is the perspective corresponding to the rotation of the head of the virtual object. In this way, players can obtain surrounding information without making any sound and exposing themselves, thereby enriching the strategic depth in the game and improving the player's gaming experience.
[0052] It should be noted that the virtual scene in the interactive processing method of the virtual scene provided in the embodiment of the present application can be completely based on the output of the terminal device, or based on the coordinated output of the terminal device and the server. For example, it can completely rely on the computing power of the graphics processing hardware of the terminal device 400 to complete the relevant data calculation and output of the virtual scene, wherein the types of graphics processing hardware include central processing units (CPU) and graphics processing units (GPU). For example, when forming the visual perception of the virtual scene, the terminal device 400 calculates the data required for display through the graphics computing hardware, and completes the loading, parsing and rendering of the display data, and the graphics output hardware outputs a video frame that can form a visual perception of the virtual scene, for example, a two-dimensional video frame is presented on the display screen of a smartphone, or a video frame that realizes a three-dimensional display effect is projected on the lenses of augmented reality / virtual reality glasses; in addition, in order to enrich the perception effect, the terminal device 400 can also use different hardware to form one or more of auditory perception, tactile perception, motion perception and taste perception.
[0053] Of course, it is also possible to rely on the computing power of the server 200 to complete the virtual scene calculation and output the virtual scene on the terminal device 400. For example, taking the formation of visual perception of the virtual scene as an example, the server 200 calculates the virtual scene-related display data (such as scene data) and sends it to the terminal device 400 through the network 300. The terminal device 400 relies on the graphics computing hardware to complete the loading, parsing and rendering of the display data, and relies on the graphics output hardware to output the virtual scene to form a visual perception. For example, a two-dimensional video frame can be presented on the display screen of a smartphone, or a video frame with a three-dimensional display effect can be projected on the lenses of augmented reality / virtual reality glasses. As for the perception of the form of the virtual scene, it can be understood that the corresponding hardware output of the terminal device 400 can be used, such as using a microphone to form auditory perception, using a vibrator to form tactile perception, and so on.
[0054] In addition, it should be noted that Figure 1 The server 200 in the example 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 (CDNs), and big data and artificial intelligence platforms. The terminal device 400 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a car terminal, etc., but is not limited thereto. The terminal device 400 and the server 200 may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.
[0055] In other embodiments, the terminal device or server can also implement the interactive processing method of the virtual scene provided by the embodiment of the present application by running various computer executable instructions or computer programs. For example, computer executable instructions can be commands, machine instructions or software instructions at the microprogram level. The computer program can be a native program or software module in the operating system; it can be a local (Native) application (APPlication, APP), that is, a program that needs to be installed in the operating system to run, such as a shooting game APP; it can also be a small program that can be embedded in any APP, that is, a program that can be run only by downloading it to a browser environment. In short, the above-mentioned computer executable instructions can be instructions in any form, and the above-mentioned computer program can be an application, module or plug-in in any form.
[0056] The structure of the electronic device provided in the embodiment of the present application is further described below. Taking the electronic device as a terminal device as an example, see Figure 2 , Figure 2 is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present application, Figure 2 The electronic device 500 shown includes: at least one processor 510, a memory 550, at least one network interface 520 and a user interface 530. The various components in the electronic device 500 are coupled together via a bus system 540. It is understood that the bus system 540 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 540 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 540 is not described in detail. Figure 2 Various buses are labeled as bus system 540 .
[0057] The processor 510 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.
[0058] The user interface 530 includes one or more output devices 531 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 530 also includes one or more input devices 532, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0059] The memory 550 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 550 may optionally include one or more storage devices that are physically remote from the processor 510.
[0060] The memory 550 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 550 described in the embodiments of the present application is intended to include any suitable type of memory.
[0061] In some embodiments, the memory 550 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.
[0062] Operating system 551, including system programs for processing various basic system services and performing hardware-related tasks, such as framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks;
[0063] A network communication module 552, for reaching other computing devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB);
[0064] a presentation module 553 for enabling presentation of information via one or more output devices 531 (e.g., display screen, speaker, etc.) associated with the user interface 530 (e.g., a user interface for operating peripherals and displaying content and information);
[0065] The input processing module 554 is used to detect one or more user inputs or interactions from one of the one or more input devices 532 and translate the detected inputs or interactions.
[0066] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2 The interactive processing device 555 of the virtual scene stored in the memory 550 is shown, which can be software in the form of programs and plug-ins, including the following software modules: display module 5551, control module 5552, acquisition module 5553, determination module 5554, prediction module 5555 and training module 5556. These modules are logical, so they can be arbitrarily combined or further split according to the functions implemented. It should be pointed out that in Figure 2 For the sake of convenience, all the above modules are shown at once, but it should not be considered that the interactive processing device 555 of the virtual scene excludes the implementation that can only include the display module 5551 and the control module 5552. The functions of each module will be explained below.
[0067] The interactive processing method of the virtual scene provided in the embodiment of the present application will be specifically described below in combination with the exemplary application and implementation of the terminal device provided in the embodiment of the present application.
[0068] See also Figure 3 , Figure 3 is a flowchart of the interactive processing method of the virtual scene provided in the embodiment of the present application, which will be combined with Figure 3 The steps shown are explained.
[0069] It should be noted that Figure 3The method shown can be executed by various forms of computer programs running on the terminal device, and is not limited to the client. For example, it can also be the operating system, software module, script, and applet mentioned above. Therefore, the example of the client in the following should not be regarded as a limitation on the embodiments of the present application. In addition, for the convenience of expression, the terminal device and the client running on the terminal device are not specifically distinguished in the following.
[0070] In step 101, a first virtual scene image is displayed.
[0071] Here, the first virtual scene image can be obtained by a virtual object (e.g., a game character A controlled by the current player in the game scene) observing the virtual scene from a first perspective (e.g., the current perspective). Specifically, a virtual camera corresponding to the virtual object can be set in the virtual scene, and the virtual camera can be controlled to shoot the virtual scene from the first perspective, thereby obtaining the first virtual scene image.
[0072] For example, taking the virtual object as a game character A controlled by the current player, a virtual camera corresponding to the game character A can be set in the game scene (i.e., virtual scene) where the game character A is located. For example, when the first-person perspective is adopted, a virtual camera can be set near the head of the game character A (e.g., the position where the eyes of the game character A are located), and the game scene is photographed by the virtual camera to obtain the corresponding game scene picture (i.e., the first virtual scene picture), wherein the perspective of the virtual camera is the same as the perspective of the game character A. In other words, the virtual camera can be used as the eyes of the game character A to shoot the game scene, thereby obtaining the corresponding game scene picture. In addition, when the third-person perspective is adopted, the virtual camera can be set behind the game character A and bound to the game character A, that is, when the game character A moves in the game scene, the virtual camera will follow the game character A to move, and in addition, the virtual camera will not be actually displayed in the game scene, that is, the player cannot recognize the virtual camera bound to the game character A from the game scene.
[0073] It should be noted that players can control virtual objects in virtual scenes to carry out activities, including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking and throwing at least one of the following, and virtual objects can be simulated characters or cartoon characters, etc. In addition, in addition to displaying virtual objects controlled by the current player (such as game character A), virtual scenes can also display virtual objects controlled by other players or artificial intelligence (such as game character B), where game character A and game character B can belong to the same camp, that is, the two are in a cooperative relationship and jointly perform a certain task; of course, game character A and game character B can also belong to different camps, that is, the two are in a hostile relationship of mutual confrontation.
[0074] In some embodiments, taking a shooting game as an example, a virtual object controlled by the current player may be displayed in a virtual scene, wherein the virtual object may hold a virtual shooting prop (e.g., a virtual firearm), and the first virtual scene screen is obtained by the virtual object observing the virtual scene from a first perspective, for example, it may be a screen displayed from the first-person perspective of the virtual object (i.e., a screen obtained by shooting the virtual scene with a virtual camera set near the head of the virtual object), or it may be a screen displayed from the third-person perspective of the virtual object (i.e., a screen obtained by shooting the virtual scene with a virtual camera set behind the virtual object). Various controls may also be superimposed on the first virtual scene screen, for example, including at least one of a moving control, a shooting control, a throwing control, a mini-map control, and a map orientation guide control, and the player may control the virtual object to perform a corresponding action by clicking on the corresponding control.
[0075] In step 102, in response to the view angle rotation operation, the body of the virtual object is kept from rotating, and the head of the virtual object is controlled to rotate a corresponding angle along the direction indicated by the view angle rotation operation.
[0076] Here, the body of the virtual object specifically refers to the trunk and limbs of the virtual object. In addition, the angle of rotation of the virtual object's head may be related to the perspective rotation operation. For example, when the perspective rotation operation is a moving operation (including a sliding operation on a touch screen and a dragging operation on a mouse, etc.), the angle to be rotated of the virtual object's head may be determined based on the moving distance of the moving operation; when the perspective rotation operation is a pressing operation on a certain direction control, the angle to be rotated of the virtual object's head may be determined based on the pressing force of the pressing operation. Of course, the perspective rotation operation may also be used only to determine the direction in which the virtual object's head is rotated, and the angle to be rotated of the virtual object's head may be automatically determined based on artificial intelligence, which will be described in detail below.
[0077] For example, when the terminal device is a desktop computer or a laptop computer, the perspective rotation operation can be an input operation based on an external input device. For example, the player's operation of holding down the middle mouse button and dragging can be identified as a perspective rotation operation, or the player's pressing operation on a specific key on the keyboard can be identified as a perspective rotation operation, or the player's shaking operation on the handle can be identified as a perspective rotation operation; when the terminal device is a mobile terminal such as a mobile phone or a tablet computer, the player's triggering operation on a specific virtual control displayed on the touch screen can be identified as a perspective rotation operation, or the sliding operation on the touch screen can be identified as a perspective rotation operation. The embodiments of the present application do not make specific limitations on this.
[0078] In some embodiments, the perspective rotation operation may be a moving operation (for example, it may be an operation of holding down the middle mouse button and dragging), and the above-mentioned control of the virtual object's head to rotate the corresponding angle along the direction indicated by the perspective rotation operation may be achieved in the following manner: obtaining the moving distance of the moving operation; determining the angle to be rotated of the virtual object's head based on the moving distance, wherein the angle to be rotated of the virtual object's head is positively correlated with the moving distance (that is, the longer the moving distance, the greater the angle to be rotated of the virtual object's head); controlling the virtual object's head to rotate the determined angle along the moving direction of the moving operation (that is, the direction indicated by the perspective rotation operation).
[0079] By way of example, the above-mentioned determination of the angle to be rotated of the virtual object's head based on the moving distance can be achieved in the following manner: when the moving distance is less than a distance threshold (for example, 3 cm), a pre-created mapping table is queried based on the moving distance to obtain an angle corresponding to the moving distance as the angle to be rotated of the virtual object's head, wherein the mapping table includes a mapping relationship between different moving distances and different angles; when the moving distance is greater than the distance threshold, a pre-set maximum rotatable angle (for example, 80 degrees) is used as the angle to be rotated of the virtual object's head. In this way, the penetration of the model caused by the virtual object's head rotating at an excessively large angle can be avoided.
[0080] For example, taking the terminal device as a desktop computer, when it is detected that the player holds down the middle mouse button (i.e., the mouse wheel) and drags the mouse to the right, the distance the player drags the mouse can be obtained, and the pre-created mapping table is queried according to the distance to obtain the angle corresponding to the distance. For example, assuming that the distance the player drags the mouse is 1 cm, after querying the mapping table, it is known that the angle corresponding to 1 cm is 15 degrees, then 15 degrees can be used as the angle of the virtual object's head to be rotated, and finally the virtual object's head can be controlled to rotate 15 degrees to the right. In addition, when it is detected that the distance the player drags the mouse (e.g., assuming 5 cm) exceeds the distance threshold, that is, the angle corresponding to the distance cannot be queried from the mapping table, the pre-set maximum rotatable angle corresponding to the right direction (e.g., assuming 90 degrees) can be used as the angle of the virtual object's head to be rotated. In other words, the rotation angle of the virtual object's head is limited. Even if the distance the player drags the mouse to the right is greater than the distance threshold, the virtual object's head is only controlled to rotate 90 degrees to the right, thereby avoiding the occurrence of model penetration due to the excessive rotation angle of the virtual object's head.
[0081] For example, taking the terminal device as a mobile phone, when it is detected that the player slides the screen to the left, the distance of the player sliding the screen can be obtained, and the pre-created mapping table can be queried according to the distance to obtain the angle corresponding to the distance. For example, assuming that the distance detected that the player slides the screen to the left is 2 cm, the angle corresponding to 2 cm in the mapping table (for example, assuming 20 degrees) can be used as the angle to be rotated for the head of the virtual object, and then the head of the virtual object can be controlled to rotate 20 degrees to the left while keeping the body of the virtual object from rotating, so as to view the situation on the left side of the virtual object. In addition, if it is detected that the distance the player slides the screen is less than the distance threshold, that is, the angle corresponding to the distance cannot be found in the mapping table, the pre-set maximum rotatable angle corresponding to the left direction (for example, 90 degrees) can be used as the angle to be rotated for the head of the virtual object, that is, when it is detected that the distance the player slides the screen to the left is greater than the distance threshold, the head of the virtual object is only controlled to rotate 90 degrees to the left, so that the penetration caused by the excessive rotation angle of the head of the virtual object can be avoided.
[0082] In some other embodiments, at least one direction control may be displayed in the virtual scene, and the above-mentioned view rotation operation may be a pressing operation on any direction control. The above-mentioned control of the head of the virtual object to rotate the corresponding angle along the direction indicated by the view rotation operation may be achieved in the following manner: obtaining a pressing parameter of the pressing operation; determining the angle to be rotated of the head of the virtual object based on the pressing parameter; and controlling the head of the virtual object to rotate the determined angle along the direction indicated by the pressed direction control.
[0083] It should be noted that the direction control for controlling the rotation direction of the head of the virtual object and the direction control for controlling the moving direction of the virtual object can be the same set of direction controls, that is, the direction control can have two different modes, for example, in the first mode, the direction control is used to control the moving direction of the virtual object; in the second mode, the direction control is used to control the rotation direction of the head of the virtual object. In addition, in order to facilitate the player to distinguish, the direction control can have different display styles in different modes, for example, in the first mode, the direction control can be red, and in the second mode, the direction control can be green. Alternatively, when the direction control is in the first mode, a first prompt information can be displayed near the direction control, wherein the first prompt information is used to prompt that the direction control is used to control the moving direction of the virtual object; when the direction control is in the second mode, a second prompt information can be displayed near the direction control, wherein the second prompt information is used to prompt that the direction control is used to control the rotation direction of the head of the virtual object, and the embodiment of the present application does not specifically limit this.
[0084] In addition, the switching of the direction control mode can be realized by triggering the mode switching control. For example, a mode switching control can be displayed near the direction control, and the player can switch by clicking the mode switching control. For example, assuming that the direction control is currently in the first mode, and the player wants to turn the head of the virtual object to view the surrounding situation at this time, the mode switching control can be clicked. After receiving the player's click operation on the mode switching control, the mode of the direction control can be switched from the first mode to the second mode, that is, the direction control is used to control the rotation direction of the head of the virtual object at this time, that is, the player can control the head of the virtual object to rotate in the corresponding direction by clicking the direction control. If the player's click operation on the mode switching control is received again later, the mode of the direction control can be switched from the second mode to the first mode again, that is, the direction control is used to control the moving direction of the virtual object at this time. When the player's click operation on the direction control is received, the body of the virtual object can be controlled to rotate in the direction indicated by the clicked direction control, that is, the moving direction of the virtual object can be controlled to rotate in the direction indicated by the clicked direction control. In this way, by reusing the same set of direction controls, it is possible to avoid interference to the player due to too many controls being presented in the virtual scene screen.
[0085] In some embodiments, the direction control for controlling the rotation direction of the virtual object's head and the direction control for controlling the movement direction of the virtual object may also be two different sets of direction controls. That is, two sets of direction controls may be displayed in the virtual scene, one set of direction controls is used to control the rotation direction of the virtual object's head, and the other set of direction controls is used to control the movement direction of the virtual object. For example, the direction control located on the left side of the virtual scene can be used to control the movement direction of the virtual object, while the direction control located on the right side of the virtual scene can be used to control the rotation direction of the virtual object's head. Of course, the player can also set it according to his own habits. For example, the player can also set the direction control located on the left side of the virtual scene to control the rotation direction of the virtual object's head, and set the direction control located on the right side of the virtual scene to control the movement direction of the virtual object. The embodiments of the present application do not make specific limitations on this.
[0086] It should be noted that the display style of the direction control (e.g., direction control 1) used to control the rotation direction of the head of the virtual object and the display style of the direction control (e.g., direction control 2) used to control the movement direction of the virtual object can be different. For example, direction control 1 can be displayed in red, and direction control 2 can be displayed in green to facilitate user distinction. Of course, the display style of direction control 1 and the display style of direction control 2 can also be the same. For example, corresponding prompt information can be displayed near direction control 1 and direction control 2, respectively, to prompt the functions of each direction control. For example, first prompt information that the direction control is used to control the rotation direction of the head of the virtual object can be displayed near direction control 1, and second prompt information that the direction control is used to control the movement direction of the virtual object can be displayed near direction control 2. The embodiment of the present application does not specifically limit this.
[0087] In other embodiments, the above-mentioned pressing parameters may include pressing duration and pressing force, and the above-mentioned determination of the angle to which the head of the virtual object is to be rotated based on the pressing parameters can be achieved in the following way: when the pressing duration is greater than a duration threshold (for example, 2 seconds), the pressure interval in which the pressing force is located is determined; and the angle corresponding to the determined pressure interval is used as the angle to which the head of the virtual object is to be rotated, wherein different pressure intervals correspond to different angles.
[0088] It should be noted that the purpose of detecting the pressing duration is to avoid identifying the player's accidental touch as a perspective rotation operation. That is to say, only when the player presses the direction control for a duration greater than the duration threshold will it be identified as a perspective rotation operation, thereby avoiding the player's accidental pressing of the direction control operation being identified as a perspective rotation operation.
[0089] In some other embodiments, following the above example, when it is detected that the pressing force exceeds a preset maximum pressure interval, the following processing may be performed: an angle corresponding to the maximum pressure interval is used as the angle at which the head of the virtual object is to be rotated.
[0090] For example, four directional controls, i.e., up, down, left, and right, may be displayed in a virtual scene. When a player presses the upward directional control, and the pressing duration of the pressing operation exceeds a duration threshold, the pressing force of the pressing operation may be obtained, and then the target pressure interval in which the pressing force is located among multiple pre-set pressure intervals may be determined, wherein each pressure interval corresponds to an angle, and then the angle corresponding to the target pressure interval (e.g., 30 degrees) may be used as the angle at which the head of the virtual object is to be rotated, and finally the head of the virtual object may be controlled to rotate 30 degrees upward. In addition, if it is detected that the pressing force of the player pressing the directional control exceeds the maximum pressure interval, the angle corresponding to the maximum pressure interval may be used as the angle at which the head of the virtual object is to be rotated, so that the penetration caused by the virtual object's head rotating at an excessively large angle may be avoided.
[0091] In some embodiments, the angle of the head of the virtual object to be rotated can also be determined according to the duration of the player pressing the direction control, wherein the angle of the head of the virtual object to be rotated can be positively correlated with the duration of the player pressing the direction control, that is, the longer the player presses the direction control, the greater the angle of the head of the virtual object to be rotated. For example, assuming that the duration of the player pressing the upward direction control is 3 seconds, the angle corresponding to 3 seconds (for example, assuming 30 degrees) can be queried from a pre-created mapping table, wherein the mapping table can include a mapping relationship between different pressing durations and different angles, and then the head of the virtual object can be controlled to rotate 30 degrees upward while keeping the body of the virtual object from rotating. In addition, if it is detected that the duration of the player pressing the upward direction control exceeds the duration threshold, the pre-set maximum rotatable angle corresponding to the upward direction (for example, 80 degrees) can be used as the angle of the head of the virtual object to be rotated, that is, even if the duration of the player pressing the upward direction control exceeds the duration threshold, the head of the virtual object is only controlled to rotate 80 degrees upward, so that the penetration caused by the excessive rotation angle of the head of the virtual object can be avoided.
[0092] That is to say, in order to avoid penetration caused by excessive rotation angle of the virtual object's head, before controlling the virtual object's head to rotate in the direction indicated by the perspective rotation operation, the player can also set the maximum rotation angle of the virtual object's head in different directions. For example, the player can set the maximum rotation angle of the virtual object's head in the horizontal and vertical directions respectively in the setting interface, that is, the rotation angle of the virtual object's head can be limited to avoid penetration.
[0093] In some embodiments, the angle to which the virtual object's head is to be rotated may also be determined based on artificial intelligence. The above-mentioned control of the virtual object's head to rotate to a corresponding angle along the direction indicated by the perspective rotation operation may also be achieved in the following manner: based on the feature data of the virtual scene (such as the position distribution of other virtual objects in the virtual scene, the type of virtual scene, etc.) and the feature data of the virtual object (such as whether the virtual object is in a moving state, whether it is holding a virtual shooting prop, etc.), a machine learning model is called to perform predictive processing to obtain the angle to which the virtual object's head is to be rotated; the virtual object's head is controlled to rotate to the determined angle in the direction indicated by the perspective rotation operation.
[0094] For example, taking the virtual object as a game character A controlled by the current player, when a perspective rotation operation triggered by the player is received, the feature data of the game character A and the feature data of the game scene in which the game character A is located can be obtained, and then the feature data of the game character A and the feature data of the game scene can be encoded and processed respectively, and then the encoded feature data (including the feature data of the game character A and the feature data of the game scene) can be input into the trained machine learning model for prediction processing to obtain the angle at which the head of the game character A is to be rotated (for example, assuming it is 20 degrees), and then the head of the game character A can be controlled to rotate 20 degrees in the direction indicated by the perspective rotation operation while keeping the body of the game character A from rotating. In this way, the player only needs to determine the rotation direction of the game character's head, and can automatically determine the angle at which the head of the game character needs to be rotated based on the feature data of the game character and the feature data of the game scene using artificial intelligence, thereby reducing the player's operating burden and further improving the player's gaming experience.
[0095] In other embodiments, continuing with the above example, before calling the machine learning model for prediction processing, the following processing can also be performed: obtaining feature data of the sample virtual scene and feature data of the sample virtual object; based on the feature data of the sample virtual scene and the feature data of the sample virtual object, calling the initialized machine learning model for prediction processing to obtain the angle to which the head of the sample virtual object is to be rotated; determining the difference between the angle to which the head of the sample virtual object is to be rotated and the pre-marked rotation angle; performing back propagation based on the difference, and updating the parameters of the machine learning model layer by layer during the back propagation process.
[0096] It should be noted that the principle of the back propagation (BP) algorithm is mainly based on the gradient descent method. The weights and parameters of the machine learning model (such as the neural network model) are adjusted by calculating the gradient of the loss function to the weights and parameters to improve the accuracy of the neural network model training. The working principle of the algorithm mainly includes the following steps: 1. Forward propagation: The input data is gradually converted into the prediction results through the hierarchical structure and parameters of the neural network model to achieve a complex mapping between input and output. This includes the input layer receiving sample data, the hidden layer receiving the signal of the input layer neuron and performing weighted summation and bias operations, and finally the output layer receiving the signal from the hidden layer and performing similar weighted summation and bias operations to obtain the prediction results. 2. Calculate the loss: Compare the predicted results with the actual results, and calculate the deviation between the predicted results and the actual results. This deviation is called the loss function or error function, which represents the fitting quality of the model. The smaller the value of the loss function, the higher the fitting quality of the model. 3. Back propagation: Using the chain rule, the error gradient is calculated from the output layer to the input layer, and the partial derivatives of the neural network model parameters are efficiently solved to achieve the optimization of network parameters and the minimization of the loss function. This includes calculating the gradient of the loss function starting from the output layer, then backpropagating the error information to the hidden layer, and calculating the error gradient of each neuron layer by layer. 4. Parameter update: Based on the calculated gradient information, use gradient descent or other optimization algorithms to update the weights and bias parameters in the network to minimize the loss function. This process is iterated until the value of the loss function reaches the minimum or the preset training round is reached, at which point the training of the neural network model ends.
[0097] For example, the exemplary structure of the machine learning model may include: an input layer (i.e., an embedding layer), an encoding layer (e.g., it may be composed of multiple cascaded convolutional layers), a fully connected layer, and an output layer (including an activation function, such as a Softmax function). After obtaining the feature data of the sample virtual scene and the feature data of the sample virtual object, the feature data may first be input into the input layer for embedding processing, and then the embedded feature vector output by the input layer may be encoded by the encoding layer to obtain a hidden layer feature vector, and then the hidden layer feature vector may be fully connected by the fully connected layer, and finally the fully connected result output by the fully connected layer may be input into the output layer so that the output layer is activated by the activation function, thereby obtaining a prediction result (i.e., the angle at which the head of the sample virtual object is to be rotated). After obtaining the angle at which the head of the sample virtual object is to be rotated output by the initialized machine learning model, the angle at which the head of the sample virtual object is to be rotated and the pre-marked rotation angle may be substituted into the loss function to obtain the corresponding difference, and back propagation may be performed based on the difference, so that the parameters of the machine learning model may be updated layer by layer during the back propagation process to obtain a trained machine learning model.
[0098] It should be noted that the above-mentioned machine learning model can be various types of neural network models, such as convolutional neural network models, deep learning neural network models, and support vector machines, etc. The embodiments of the present application do not specifically limit the type of machine learning model.
[0099] That is to say, in the embodiment of the present application, the player only needs to determine the rotation direction of the virtual object's head, and the angle to which the virtual object's head is to be rotated can be automatically determined based on artificial intelligence. In this way, the player's operating burden can be reduced and the player's gaming experience can be further enhanced.
[0100] In some embodiments, taking shooting games as an example, the rotation speed of the game character's head when rotating can be determined according to the design intention of the game and the player's operating habits. For example, in the game, a sensitivity coefficient is usually set, and the multiplication result of the coefficient and the operating parameters of the view rotation operation (such as the moving distance of the moving operation, such as the sliding distance or the dragging distance, or the pressing force of the pressing operation) can be used as the rotation speed of the game character's head when rotating. In addition, the player can adjust the sensitivity coefficient according to his own preferences to meet the personalized needs of different players.
[0101] In other embodiments, following the above example, since the frame rate of the game may be different, before multiplying the operation parameter of the view rotation operation with the sensitivity coefficient, the operation parameter may also be multiplied with the time parameter, thereby ensuring that the rotation speed of the game character's head is independent of the frame rate, so that the rotation speed of the game character's head is consistent on different devices. In addition, in order to prevent discomfort or game experience problems caused by the excessive rotation speed of the game character's head, the maximum rotation speed of the game character's head may also be limited. For example, when the rotation speed set by the player is greater than the maximum rotation speed, a prompt message may be output to remind the player to make changes.
[0102] In some embodiments, in order to make the rotation of the virtual object's head smoother, the virtual object's head can also be controlled to rotate at a gradual speed. For example, in Unity, the "Mathf.Lerp" function can be used in Unity to smoothly transition from one rotation speed to another. In addition, in some games, the rotation speed of the game character's head can also be dynamically adjusted according to the game state or the character state. For example, when the game character is in a special state, the rotation speed of the game character's head may become slower or faster.
[0103] Of course, the rotation speed of the virtual object's head can also be set by the player. For example, in the game setting interface, a corresponding option can be provided for the player to set the rotation speed of the virtual object's head to meet the habits and preferences of different players.
[0104] In some embodiments, a rotation speed setting control may also be displayed in the virtual scene. Before controlling the head of the virtual object to rotate a corresponding angle in the direction indicated by the perspective rotation operation, the following processing may be performed: in response to the setting operation for the rotation speed setting control, the set rotation speed is obtained. The above-mentioned control of the head of the virtual object to rotate a corresponding angle in the direction indicated by the perspective rotation operation may be achieved in the following manner: the head of the virtual object is controlled to rotate a corresponding angle in the direction indicated by the perspective rotation operation according to the set rotation speed.
[0105] For example, taking the virtual object as a game character A controlled by the current player, the player can set the rotation speed of the game character A. For example, a rotation speed setting control can be displayed in the game scene, and the player can set the rotation speed of the game character A through the rotation speed setting control. For example, assuming the rotation speed set by the player is 1 degree / second, when the perspective rotation operation triggered by the player is received, the head of the game character A can be controlled to rotate at a speed of 1 degree / second and a corresponding angle along the direction indicated by the perspective rotation operation. In other words, the player can customize the rotation speed of the game character's head, further enhancing the player's gaming experience.
[0106] It should be noted that if the player does not set the rotation speed of the virtual object's head, the virtual object's head can be controlled to rotate according to the default rotation speed, or the virtual object's head can be controlled to rotate according to the rotation speed set by the player last time. The embodiments of the present application do not make specific limitations on this.
[0107] In other embodiments, in the process of controlling the rotation of the virtual object's head, the rotation speed of the virtual object's head may be variable. For example, the rotation speed of the virtual object's head may be fast at first and then slow, or slow at first and then fast. The embodiments of the present application do not specifically limit this.
[0108] For example, taking the virtual object as a game character A controlled by the current player, when receiving the perspective rotation operation triggered by the player, for example, when detecting that the player holds down the middle mouse button and drags the mouse to the left, the body of the game character A can be kept from rotating, and the head of the game character A can be controlled to rotate slowly (for example, 1 degree / second) to the left first, and when it is detected that the head of the game character A rotates halfway, the head of the game character A can be controlled to rotate rapidly (for example, 3 degrees / second) to the left, that is, in the process of controlling the rotation of the head of the game character A, the rotation speed of the head of the game character A can be variable, so that the situation of a person turning his head in the real world can be more realistically simulated. In other words, the rotation process of the head of the virtual object can be divided into multiple stages, and the rotation speed of the head of the virtual object can be different in different stages. For example, the player can set the corresponding rotation speed for each stage, so that the head turning action can be more realistically simulated.
[0109] In some embodiments, the virtual scene may also include a virtual camera corresponding to the virtual object (for example, a virtual camera located at the eyes of the virtual object, corresponding to the first-person perspective), wherein the first virtual scene image is obtained by shooting the virtual scene with the virtual camera at a first perspective. When the head of the virtual object is controlled to rotate a corresponding angle in the direction indicated by the perspective rotation operation, the following processing may also be performed: control the virtual camera to rotate the angle in the direction indicated by the perspective rotation operation, and shoot the virtual scene with the rotated virtual camera to obtain a second virtual scene image, that is, the second virtual scene image is obtained by shooting the virtual scene with the virtual camera at a second perspective.
[0110] For example, taking the virtual object as a game character A controlled by the current player, a virtual camera corresponding to game character A can be set in the game scene where game character A is located. For example, the virtual camera can be set at the eyes of game character A. When the head of game character A is controlled to rotate in the direction indicated by the perspective rotation operation, the virtual camera can also be controlled to rotate synchronously in the direction indicated by the perspective rotation operation. Subsequently, the game scene can be photographed by the rotated virtual camera to obtain a second game scene screen (i.e., a second virtual scene screen).
[0111] The following will continue to describe the specific implementation process of controlling the head of the virtual object to rotate in the direction indicated by the view rotation operation.
[0112] In some embodiments, the specific implementation process of controlling the rotation of the head of the virtual object may involve multiple levels such as input processing, physical simulation, animation system, and graphics rendering pipeline, which are described in detail below.
[0113] 1. Input Management: The game engine can capture the player's input actions through the underlying input application programming interface (API), such as keyboard pressing operations or mouse dragging operations. The game engine can convert these physical signals into logical signals within the game through the input management system. For example, the player's mouse dragging operation can be converted into the rotation direction and angle of the virtual object's head.
[0114] 2. Game Logic: The game logic layer receives signals sent by the input management system and decides how to respond to these signals based on the game design. In this layer, the rotation direction of the head of the virtual object (such as the game character) can be calculated. This can usually be determined by combining the current perspective of the virtual object, the state of the virtual object, and other logic of the game.
[0115] 3. Physics Engine: If a virtual object (such as a game character) uses a physics engine for physical simulation, the physics engine may be involved in the calculation of head rotation to ensure that the rotation conforms to the laws of physics. For example, the physics engine can simulate the muscle strength, joint limitations, etc. of the game character, making the head rotation of the game character more realistic.
[0116] 4. Animation System: The rotation of the game character's head can usually be achieved through the animation system, such as skeletal animation or vertex animation. For skeletal animation, the game character's head is composed of a series of bones, each of which can rotate independently. The animation system can adjust the transformation matrix of the relevant bones according to the rotation direction and angle of the game character's head, thereby changing the direction of the game character's head. For vertex animation, the vertex data of the game character's head can be directly manipulated to change the direction of the game character's head, thereby achieving the rotation effect.
[0117] 5. Rendering Pipeline: Once the orientation of the game character's head is calculated by the animation system, this information will be passed to the rendering pipeline. The rendering pipeline can calculate the final image displayed on the screen based on the transformation matrix of the game character's head and other rendering parameters (such as material, lighting, etc.).
[0118] It should be noted that the rotation of the game character's head can be represented by a transformation matrix, which can be applied in the vertex shader of the rendering pipeline to change the position and orientation of the vertex. In order to smoothly and accurately rotate the game character's head in a three-dimensional virtual scene, quaternions can be used to represent the rotation, wherein quaternions can avoid the gimbal lock problem and provide smoother rotation during interpolation. In addition, in skeletal animation, each vertex may be affected by other bones, and the degree of influence of each bone can be determined by the bone weight. The animation system can mix the transformations of different bones according to the weight to obtain the final position of the vertex. In the rendering stage, the shader program can use the final position and orientation information of the vertex to decide how to draw the game character's head, such as lighting information, texture mapping, etc.
[0119] In other embodiments, following the above example, when controlling the virtual camera to rotate the angle in the direction indicated by the perspective rotation operation (i.e., the angle at which the head of the virtual object rotates), the following processing can also be performed: controlling the virtual object's shoulders to synchronously retreat a corresponding distance, wherein the distance is positively correlated with the angle, i.e., the greater the angle at which the virtual camera rotates, the greater the distance the virtual object's shoulders retreat.
[0120] For example, continuing with the example of the virtual object being the game character A controlled by the current player, while controlling the virtual camera corresponding to the game character A (for example, a virtual camera set at the eyes of the game character A) to rotate in the direction indicated by the perspective rotation operation, the shoulders of the game character A can also be controlled to move backward synchronously. In this way, the problem of interlacing between the virtual camera and the shoulders of the game character A can be avoided during the rotation of the virtual camera.
[0121] In some embodiments, the virtual scene may also include a setting entrance. Before controlling the head of the virtual object to rotate a corresponding angle in the direction indicated by the perspective rotation operation, the following processing may also be performed: in response to a trigger operation on the setting entrance, a setting interface is displayed, wherein the setting interface can be used to set the maximum rotatable angles of the virtual object's head in different directions (for example, including horizontal and vertical directions), and the rotation speed of the virtual object's head. The above-mentioned control of the virtual object's head to rotate a corresponding angle in the direction indicated by the perspective rotation operation can be achieved in the following manner: controlling the virtual object's head to rotate a corresponding angle in the direction indicated by the perspective rotation operation at the rotation speed, wherein the angle is less than or equal to the maximum rotatable angle corresponding to the direction indicated by the perspective rotation operation.
[0122] For example, taking a shooting game as an example, a setting entry can also be displayed in the game scene, for example, the setting entry can be displayed in the upper right corner of the game scene. When a player clicks on the setting entry, a setting interface can be displayed in the game scene in a floating manner, wherein the setting interface can include multiple areas for the player to set the maximum rotatable angles of the virtual object's head in different directions, and the rotation speed of the virtual object's head. For example, the player can set the maximum rotatable angles of the virtual object's head in the horizontal direction and the vertical direction based on the setting interface. For example, the setting interface can display a first setting control for setting the maximum rotatable angle of the virtual object's head in the horizontal direction, and a second setting control for setting the maximum rotatable angle of the virtual object's head in the vertical direction. In this way, the angle set by the player in the first setting control can be used as the maximum rotatable angle of the virtual object's head in the horizontal direction; similarly, the angle set by the player in the second setting control can be used as the maximum rotatable angle of the virtual object's head in the vertical direction. In addition, a third setting control for setting the rotation speed of the virtual object's head can also be displayed in the setting interface. In this way, the rotation speed set by the player in the third setting control can be used as the rotation speed set for the virtual object's head, and the virtual object's head will subsequently rotate according to this rotation speed.
[0123] It should be noted that, in addition to being used to set the maximum rotatable angles of the virtual object's head in different directions and the rotation speed of the virtual object's head, the setting interface can also be used to set the rotation speed of the virtual camera corresponding to the virtual object and the maximum rotatable angles of the virtual camera in different directions. For example, a fourth setting control for setting the rotation speed of the virtual camera can also be displayed in the setting interface, that is, the rotation speed set by the player in the fourth setting control can be used as the rotation speed of the virtual camera. In addition, a fifth setting control for setting the maximum rotatable angle of the virtual camera in the horizontal direction and a sixth setting control for setting the maximum rotatable angle of the virtual camera in the vertical direction can also be displayed in the setting interface. In this way, the angle set by the player in the fifth setting control can be used as the maximum rotatable angle of the virtual camera in the horizontal direction, and similarly, the angle set by the player in the sixth setting control can be used as the maximum rotatable angle of the virtual camera in the vertical direction.
[0124] In some embodiments, the virtual object may hold a virtual shooting prop (e.g., a virtual firearm), and the shooting direction of the virtual shooting prop (e.g., the muzzle direction of the virtual firearm) may be determined based on the orientation of the virtual object's body (e.g., when the virtual object's body is facing left, the muzzle direction is also facing left). The above step 102 may be implemented in the following manner: in response to a perspective rotation operation, the shooting direction of the virtual shooting prop is kept unchanged (i.e., the shooting direction of the virtual shooting prop is kept unchanged by keeping the virtual object's body from rotating), and the head of the virtual object is controlled to rotate a corresponding angle in the direction indicated by the perspective rotation operation.
[0125] For example, taking shooting games as an example, the game character (i.e., virtual object) displayed in the game scene can hold a virtual shooting prop (such as a virtual gun). When a perspective rotation operation triggered by the player is received, for example, when it is detected that the player holds down the middle mouse button and drags, the muzzle direction of the virtual gun held by the game character can be kept unchanged by keeping the game character's body from rotating, and the game character's head can be controlled to rotate a corresponding angle along the dragging direction. In this way, the direction of the game character's body and muzzle remains unchanged, and the surrounding information is obtained only by rotating the game character's head. Since the amplitude of turning the head is smaller than that of turning the body, the player will not make a sound to expose himself when controlling the game character to turn his head, thereby satisfying the player's needs of not exposing himself without making a sound, and obtaining surrounding information, thereby improving the player's gaming experience.
[0126] In other embodiments, while controlling the game character to turn its head, the player can also control the game character to use a virtual firearm to shoot. The above-mentioned response to the perspective rotation operation can also be achieved in the following way: in response to the perspective rotation operation and the shooting operation, while controlling the virtual object's head to rotate a corresponding angle along the direction indicated by the perspective rotation operation, the shooting direction of the virtual shooting prop is kept unchanged, and the virtual shooting prop is controlled to shoot in the shooting direction.
[0127] For example, assuming that the player presses the fire key (e.g., "A" key) on the keyboard while holding down the middle mouse button and dragging the mouse to the right, the muzzle direction (e.g., the forward direction) of the virtual firearm held by the game character can be kept unchanged while controlling the game character's head to turn to the right, and the virtual firearm can be controlled to shoot forward. In other words, the perspective of the game character and the muzzle direction of the virtual firearm can be different. While controlling the game character to turn his head, the virtual firearm held by the game character can also be controlled to shoot in the previous direction, thereby further improving the player's gaming experience and gaming fun. In some embodiments, the orientation of the body of the virtual object can be used to determine the moving direction of the virtual object, and the above step 102 can also be implemented in the following manner: in response to receiving a perspective rotation operation during the process of controlling the movement of the virtual object, the moving direction of the virtual object is kept unchanged (i.e., the body of the virtual object does not rotate), and the head of the virtual object is controlled to rotate a corresponding angle along the direction indicated by the perspective rotation operation.
[0128] By way of example, the above-mentioned response to receiving a perspective rotation operation during the process of controlling the movement of a virtual object, keeping the moving direction of the virtual object unchanged, and controlling the head of the virtual object to rotate a corresponding angle along the direction indicated by the perspective rotation operation can be achieved in the following manner: in response to receiving a movement instruction triggered for the virtual object (for example, receiving a pressing operation on the "W" key on the keyboard, or a clicking operation on a virtual direction control displayed on the screen), controlling the virtual object to move in the direction indicated by the movement instruction; in response to receiving a perspective rotation operation (for example, holding down the middle mouse button and dragging) during the process of the virtual object moving in the direction indicated by the movement instruction, keeping the moving direction of the virtual object unchanged, and controlling the head of the virtual object to rotate a corresponding angle along the direction indicated by the perspective rotation operation. In this way, the player's desire to observe the surroundings without changing the moving direction of the game character can be met.
[0129] For example, taking the virtual object as a game character A controlled by the current player in the game scene, when the player wants to keep the moving direction of the game character A and observe the surroundings while controlling the movement of the game character A, the technical solution provided in the embodiment of the present application can be used to implement it. For example, when the player presses the "W" key on the keyboard, the game character can be controlled to move forward. Assuming that a perspective rotation operation triggered by a player is received during the process of controlling game character A to move forward (for example, holding down the middle mouse button and dragging), the body of game character A can be kept from rotating (since the movement direction of game character A is determined by the orientation of the body of game character A, the movement direction of game character A will not change when the body of game character A is kept from rotating). That is, while keeping game character A moving forward, the head of game character A is controlled to rotate a corresponding angle in the direction indicated by the perspective rotation operation. For example, assuming that it is detected that the player holds down the middle mouse button and drags 1 cm to the right, the head of game character A can be controlled to rotate 10 degrees to the right. In this way, while controlling game character A to sprint quickly towards the destination, the player can also control game character A to turn his head to quickly check the surrounding situation, thereby improving the player's gaming experience.
[0130] In step 103, the second virtual scene screen is switched to be displayed.
[0131] Here, the second virtual scene picture may be obtained when the virtual object observes the virtual scene from a second perspective, wherein the second perspective is a perspective corresponding to a rotation of the head of the virtual object.
[0132] In some embodiments, when there is a virtual camera bound to a virtual object in the virtual scene, for example, when there is a virtual camera set near the head of the virtual object in the virtual scene, when the head of the virtual object is controlled to rotate, the virtual camera bound to the virtual object can also be controlled to rotate synchronously, and then the virtual scene can be photographed by the rotated virtual camera to obtain a second virtual scene image.
[0133] In other embodiments, see Figure 4 , Figure 4 is a flow chart of the interactive processing method of the virtual scene provided in the embodiment of the present application, such as Figure 4 As shown, after executing Figure 3 After step 103 shown, you can also perform Figure 4 Steps 104 and 105 shown will be combined Figure 4 The steps shown are explained.
[0134] In step 104, in response to the view rotation operation being released, the head of the virtual object is controlled to rotate a corresponding angle in the opposite direction to the direction indicated by the view rotation operation.
[0135] In some embodiments, because the technical solution provided in the embodiments of the present application is to obtain peripheral information rather than to change the moving direction of the virtual object, the perspective rotation operation will be released after the peripheral information is obtained. For example, taking the perspective rotation operation as a moving operation (such as the player holding down the middle mouse button and dragging the mouse to the left) as an example, when it is detected that the moving operation is released (such as the player lets go), the head of the virtual object can be controlled to rotate a corresponding angle in the opposite direction of the direction indicated by the perspective rotation operation (that is, the head of the virtual object can be controlled to return to the normal position).
[0136] For example, when it is detected that the player holds down the middle mouse button and drags 1 cm to the left, the head of the game character A can be controlled to turn 10 degrees to the left while keeping the body of the virtual object (e.g., the game character A controlled by the current player) unchanged, so that the player can observe the situation on the left side of the game character A. Then, when it is detected that the player releases the mouse button, the head of the game character A can be controlled to turn 10 degrees to the right, that is, the head of the game character A can be controlled to return to the normal position.
[0137] For example, when the view rotation operation is a pressing operation on a direction control, assuming that a pressing operation of the upward direction control displayed in the virtual scene is received, and the pressing force of the pressing operation is 10 Newtons, the head of the game character A can be controlled to rotate upward by 10 degrees while keeping the body of the virtual object (for example, the game character A controlled by the current player) unchanged. Then, when it is detected that the player lets go (that is, the pressing operation is released), the head of the game character A can be controlled to rotate downward by 10 degrees, that is, the head of the game character A is controlled to return to the normal position.
[0138] It should be noted that the rotation speed of the game character A's head when it is straightened and the rotation speed when it rotates in response to the view rotation operation can be the same or different, and the embodiment of the present application does not specifically limit this. For example, the player can set the rotation speed of the virtual object's avatar in response to the view rotation operation and the rotation speed when the view rotation operation is released in the setting interface; of course, the rotation speed set by the player can also be used as the rotation speed of the virtual object's head in response to the view rotation operation and the rotation speed when the view rotation operation is released, and the embodiment of the present application does not specifically limit this.
[0139] In some embodiments, the virtual scene may include a virtual camera corresponding to the virtual object, such as a virtual camera set at the eyes of the virtual object (corresponding to the first-person perspective). When the head of the virtual object is controlled to rotate a corresponding angle in the opposite direction to the direction indicated by the perspective rotation operation, the following processing can also be performed: control the virtual camera to rotate the same angle in the opposite direction to the direction indicated by the perspective rotation operation.
[0140] In other embodiments, following the above example, the virtual scene may further include a camera rotation speed setting control. Before controlling the virtual camera to rotate by the same angle in the opposite direction to the direction indicated by the perspective rotation operation, the following processing may be performed: in response to a setting operation for the camera rotation speed setting control, the rotation speed set for the virtual camera is obtained. The above-mentioned control of the virtual camera to rotate by the same angle in the opposite direction to the direction indicated by the perspective rotation operation may be achieved in the following manner: the virtual camera is controlled to rotate by the same angle in the opposite direction to the direction indicated by the perspective rotation operation according to the set rotation speed.
[0141] For example, taking shooting games as an example, a setting control for setting the rotation speed of a virtual camera (for example, a virtual camera set near the head of game character A) bound to a virtual object (for example, a game character A controlled by the current player) can also be displayed in the game scene. The player can use the setting control to set the rotation speed of the virtual camera. For example, the rotation speed (for example, 4 degrees / second) set by the player in the setting control can be used as the rotation speed of the virtual camera bound to game character A. In this way, when it is necessary to control the virtual camera to rotate, the virtual camera can be controlled to rotate at the rotation speed. For example, when it is detected that the view rotation operation is released, the virtual camera can be controlled to return to the normal position at a rotation speed of 4 degrees / second, thereby meeting the personalized needs of different players.
[0142] In step 105, the second virtual scene picture is switched back to the first virtual scene picture.
[0143] In some embodiments, after controlling the head of the virtual object to rotate the same angle in the opposite direction to the direction indicated by the perspective rotation operation, the perspective of the virtual object changes from the second perspective back to the first perspective. At this time, the virtual scene picture displayed in the human-computer interaction interface can be switched from the second virtual scene picture back to the first virtual scene picture.
[0144] For example, taking the virtual object as a game character A controlled by the current player, there may be a virtual camera bound to the game character A in the game scene. For example, a corresponding virtual camera may be set near the head of the game character A, and the game scene may be photographed from a first perspective through the virtual camera to obtain a first game scene screen. Then, when a perspective rotation operation triggered by the player is received (for example, the player holds down the middle mouse button and drags 1 cm to the right), the head of the game character A may be controlled to rotate 10 degrees to the right while keeping the body of the game character A from rotating. At the same time, the virtual camera bound to the game character A may be controlled to rotate 10 degrees to the right synchronously. Subsequently, the game scene may be photographed from a second perspective through the rotated virtual camera to obtain a second game scene screen, that is, the information on the right side of the game character A may be obtained by controlling the head of the game character A to rotate to the right. Finally, when it is detected that the perspective rotation operation is released (for example, it is detected that the player lets go), the head of the game character A can be controlled to return to the normal position (that is, the head of the game character A is controlled to turn 10 degrees to the left), and the virtual camera bound to the game character A can be controlled to return to the normal position synchronously (that is, the virtual camera is controlled to turn 10 degrees to the left synchronously). In other words, the perspective of the game character A is switched back to the first perspective from the second perspective, and the game scene screen displayed in the human-computer interaction interface can also be switched back to the first game scene screen from the second game scene screen to keep it consistent with the perspective of the game character A.
[0145] The interactive processing method for a virtual scene provided in an embodiment of the present application, when receiving a perspective rotation operation triggered by a player, keeps the body of the virtual object from rotating, and obtains surrounding information only by rotating the head of the virtual object. Since the amplitude of the head rotation movement is small, no sound is produced. In this way, a silent observation method can be provided to the player, allowing the player to choose to obtain surrounding information without making any sound and exposing themselves, thereby enriching the tactical choices in the virtual scene and improving the player's gaming experience.
[0146] Below, taking a first-person shooter (FPS) game as an example, an exemplary application of the embodiment of the present application in an actual application scenario is described.
[0147] The embodiment of the present application provides an interactive processing method of a virtual scene, which can be applied to a first-person shooting game. In the game, a simulated character turns his head to observe the surrounding action gameplay is provided. For example, the player can control the virtual camera bound to the game character to look around by holding down the middle mouse button (i.e., the mouse wheel) and dragging, so that the surrounding information can be obtained without exposing his voice. In this way, on the one hand, it can meet the player's demands for not changing the moving direction of the game character and observing the surrounding when controlling the game character to move. For example, while the player controls the game character to sprint quickly toward the destination, the game character can be controlled to turn his head to quickly check the surrounding situation; on the other hand, in a realistic shooting game, the player will need to judge the enemy's position through sound information, and when controlling the game character to observe the surrounding situation by turning around, due to the large amplitude of the turning movement, the game character will make a sound when turning around, thereby exposing his position. In contrast, the embodiment of the present application can provide a silent observation method for the player, allowing the player to choose to obtain limited field of view information without making a sound and exposing himself, thereby enriching the tactical choice.
[0148] Specifically, in the technical solution provided in the embodiment of the present application, the player can control the virtual camera bound to the game character to look around by holding down the middle mouse button and dragging the mouse to obtain surrounding information. In addition, in order to prevent the player from observing at too large an angle and causing penetration, a range limit on the rotatable angle can be configured. In addition, the corresponding 3P character (that is, the performance of the game character controlled by the current player in the eyes of other players) will also have an animation performance of turning his head. In this way, on the one hand, it can meet the player's demand for not changing the moving direction of the game character and observing the surroundings when controlling the movement of the game character; on the other hand, it also enriches the tactical choices of the game and enriches the playability of the game.
[0149] The interactive processing method of the virtual scene provided in the embodiment of the present application is described in detail below.
[0150] In some embodiments, the player can control the rotation of a virtual camera bound to the game character (eg, a virtual camera located near the head of the game character) by long pressing the middle mouse button and dragging the mouse to observe the surrounding situation.
[0151] For example, see Figure 5 , Figure 5 is a schematic diagram of an application scenario of the interactive processing method of a virtual scene provided in an embodiment of the present application, such as Figure 5 As shown, in the game scene, a game character 502 holding a virtual gun 501 is displayed from a first-person perspective. When it is detected that the player holds down the middle mouse button and drags the mouse upward, the virtual camera bound to the game character 502 can be controlled ( Figure 5The game character 502 can be controlled to turn its head upward (i.e., simulate the action of the game character 502 turning its head and looking upward) while keeping the body (i.e., limbs and torso) of the game character 502 not rotating (so that the muzzle of the virtual firearm 501 held by the game character 502 does not rotate) to observe the situation above the game character 502; when it is detected that the player holds down the middle mouse button and drags the mouse to the left, the virtual camera bound to the game character 502 can be controlled to turn left. , while keeping the body of the game character 502 unchanged, the head of the game character 502 can be controlled to turn left (i.e., simulating the action of the game character 502 turning its head to look left) to observe the situation on the left side of the game character 502; when it is detected that the player holds down the middle button of the mouse and drags the mouse to the right, the virtual camera bound to the game character 502 can be controlled to turn right, and while keeping the body of the game character 502 unchanged, the head of the game character 502 can be controlled to turn right (i.e., simulating the action of the game character 502 turning its head to look right) to observe the situation on the right side of the game character 502. In other words, the player can control the virtual camera bound to the game character to turn by holding down the middle button of the mouse and dragging the mouse, so that the player can observe the situation around him without making any sound or exposing himself, thereby improving the player's gaming experience.
[0152] In other embodiments, game developers (or game planners) may configure the viewing angle of the game character. For example, the viewing angle of the game character may be determined based on the rotation angle of the virtual camera. For example, the maximum observable angle of the game character in the vertical upward direction may be 60 degrees, the maximum observable angle in the vertical downward direction may be 35 degrees, and the maximum observable angle in the horizontal direction (including horizontal left and horizontal right) may be ±35 degrees.
[0153] It should be noted that the observation angle of the game character will not exceed the maximum rotation angle of the virtual camera. For example, when the maximum upward rotation angle of the virtual camera bound to the game character is 90 degrees, that is, the game character has raised his body, pointed the gun at the sky and looked up. The player holds down the middle mouse button and drags it further upward to observe. After superimposing the observation angle of holding down the middle mouse button, it still will not exceed 90 degrees.
[0154] In some embodiments, the player can also adjust the rotation speed of the virtual camera bound to the game character in the setting interface when holding down the middle mouse button and dragging, and this value can be applied to both horizontal and vertical rotations. Of course, the player can also set the rotation speed of the virtual camera in the horizontal and vertical directions separately in the setting interface. For example, there can be two different setting controls in the setting interface, which are used to set the rotation speed of the virtual camera in the horizontal and vertical directions respectively. This embodiment of the application does not specifically limit this.
[0155] For example, see Figure 6 , Figure 6 is a schematic diagram of an application scenario of the interactive processing method of a virtual scene provided in an embodiment of the present application, such as Figure 6 As shown, a free view sensitivity magnification setting control 601 may be displayed in the setting interface, and the player may set the rotation speed of the virtual camera through the free view sensitivity magnification setting control 601. For example, assuming that the player sets the magnification to 1 through the free view sensitivity magnification setting control 601, and assuming that the player sets the rotation speed of the virtual camera to 2.5 degrees / second, when the player subsequently holds down the middle mouse button and drags, the virtual camera bound to the game character may be controlled to rotate at a speed of 2.5 degrees / second. In this way, the personalized needs of different players may be met, further enhancing the player's gaming experience.
[0156] In other embodiments, taking a realistic first-person shooter game as an example, every move of the game character controlled by the player in the game scene will expose sound information, so the player needs to control the sound volume of his own game character, and can understand the information (such as the location) of the enemy (i.e., the game character controlled by other players) by listening. When the player wants to obtain more visual field information without exposing himself, he can use the technical solution provided in the embodiment of the present application to only control the head of the game character to rotate (i.e., turn his head to observe) to obtain limited visual field information.
[0157] It should be noted that similar observation behaviors include players controlling the game character to directly rotate itself and the direction of the gun barrel for observation (i.e., turning around to observe). Although this method has a larger observation angle and the direction of the gun barrel will also change, making it easier for players to control the game character to attack in a timely manner, the game character will make a sound when turning around, thereby exposing itself. In other words, turning around to observe will cause the game character to turn around, make a sound, and expose its position, while turning its head to observe will not make a sound or expose itself. In this way, players can freely choose different observation methods according to actual conditions. For example, when the player does not want to make a sound and expose himself, he can use the method of only turning the game character's head (e.g. Fig. 7AThe player can turn his head to observe, at this time, the body of the game character and the muzzle of the virtual gun held by him will not rotate) to obtain limited field of view information; when the player wants to obtain a larger field of view information, he can control the game character to directly rotate himself (for example Figure 7B As shown in the turning observation, the body of the game character and the muzzle direction of the virtual gun held by the game character will rotate), which enriches the gameplay of the game and enhances the player's gaming experience.
[0158] The following will continue to explain the difference between turning around and observing from the perspective of other players.
[0159] For example, see Fig. 8A , Fig. 8A is a schematic diagram of an application scenario of the interactive processing method of a virtual scene provided in an embodiment of the present application, such as Fig. 8A As shown, turning around to observe will cause the entire body of the game character 801 to rotate. As the body of the game character 801 rotates, the muzzle direction of the virtual firearm 802 held by the game character 801 will also rotate (i.e., other players can see that the body and muzzle direction of the game character controlled by the current player will turn toward themselves). However, since the movement amplitude of turning around to observe is large, the game character 801 will make a sound when turning around, exposing itself.
[0160] For example, see Figure 8B , Figure 8B is a schematic diagram of an application scenario of the interactive processing method of a virtual scene provided in an embodiment of the present application, such as Figure 8B As shown, turning the head to observe will only cause the head of the game character 803 to turn. Since the body of the game character 803 does not turn, the muzzle direction of the virtual firearm 804 held by the game character 803 will not change (i.e., other players can see that only the head of the game character controlled by the current player is turned towards themselves, but the muzzle of the virtual firearm held by the game character will not be facing themselves). Since the movement amplitude of turning the head to observe is small, the game character 803 will not make any sound to expose itself when turning its head.
[0161] In some embodiments, when controlling the movement of a game character, the player has a desire to observe the surroundings without changing the direction of movement of the game character. For example, when the player controls the game character to sprint quickly toward the destination, the player can use the method of turning the head to observe provided by the embodiment of the present application to quickly check the surrounding situation. Or in an indoor environment, when the player wants to control the game character to quickly rush through the door and observe whether there is anyone in the door (i.e., the game character controlled by other players), and does not want to be hit by the game character controlled by other players because of stopping to observe, the player can also use the method of turning the head to observe provided by the embodiment of the present application to quickly check, thereby increasing the depth of the physical skills at the operational level.
[0162] For example, see Fig. 9 , Fig. 9 is a schematic diagram comparing turning around and turning the head to observe provided in the embodiment of the present application, such as Fig. 9 As shown, when the player controls the movement of the game character, turning around to observe requires the game character to change direction completely in order to see the side information; while turning the head to observe does not require changing the movement direction of the game character to see the side information.
[0163] In some embodiments, for a game character displayed in a first-person perspective (i.e., 1P perspective), the player can control the virtual camera bound to the game character (e.g., a virtual camera located near the head of the game character) to rotate by holding down the middle mouse button and dragging the mouse to observe the surrounding situation. Since the entire body model of the game character is displayed in the game scene, the shoulders of the game character may intersect with the virtual camera during the process of controlling the rotation of the virtual camera. In order to prevent the 1P lens from intersect, the shoulders of the game character may be controlled to move back accordingly while controlling the rotation of the virtual camera.
[0164] In other embodiments, while controlling the rotation of a virtual camera bound to the first-person perspective of a game character, the corresponding third-person perspective (ie, 3P) game character may also be controlled to perform a corresponding head-turning action.
[0165] For example, see Fig.10 , Fig.10 is a schematic diagram of an application scenario of the interactive processing method of a virtual scene provided in an embodiment of the present application, such as Fig.10 As shown, when it is detected that the player holds down the middle mouse button and drags to the right, while controlling the virtual camera bound to the game character of the 1P perspective to turn right, the head of the game character of the 3P perspective can also be controlled to turn right (i.e., other players can see that the game character controlled by the current player is looking to the right); when it is detected that the player holds down the middle mouse button and drags to the left, while controlling the virtual camera bound to the game character of the 1P perspective to turn left, the head of the game character of the 3P perspective can also be controlled to turn left (i.e., other players can see that the game character controlled by the current player is looking to the left).
[0166] It should be noted that turning the head to observe will not change the direction of the game character's body and the muzzle of the virtual firearm held. In other words, other players can see that only the head of the game character controlled by the current player has turned, but the direction of the game character's body and the muzzle of the virtual firearm held will not change.
[0167] Next, continue to combine Fig.11 The interactive processing method of the virtual scene provided in the embodiment of the present application is described.
[0168] For example, see Fig.11 , Fig.11 is a flowchart of the interactive processing method of the virtual scene provided in the embodiment of the present application, which will be combined with Fig.11 The steps shown are explained.
[0169] In step 201, when it is detected that the player holds down the middle button of the mouse and drags, the virtual camera bound to the game character is controlled to rotate.
[0170] In some embodiments, when it is detected that the player is holding down the middle mouse button and dragging, the virtual camera (i.e., 1P lens) bound to the first-person perspective game character can be controlled to rotate. For example, when it is detected that the player is holding down the middle mouse button and dragging to the left, the virtual camera can be controlled to rotate to the left, so that the player can observe the situation on the left without making any sound; when it is detected that the player is holding down the middle mouse button and dragging to the right, the virtual camera can be controlled to rotate to the right, so that the player can observe the situation on the right without making any sound.
[0171] It should be noted that the rotation speed of the virtual camera during the rotation process can be affected by the sensitivity in the settings, that is, the player can adjust the sensitivity multiplier in the settings interface to determine the final rotation speed of the virtual camera.
[0172] For example, see Fig.12 , Fig.12 is a schematic diagram of a setting interface provided in an embodiment of the present application, such as Fig.12 As shown, when a player clicks on a setting entry displayed in a game scene, a setting interface 1201 may be displayed in the game scene, wherein "Look Around XSensitivity" indicates the rotation sensitivity of the virtual camera bound to the game character in the horizontal direction, and "Look Around YSensitivity" indicates the rotation sensitivity of the virtual camera bound to the game character in the vertical direction. The player may also adjust the free viewing angle sensitivity multiplier in the setting interface, and the final rotation sensitivity of the virtual camera in the horizontal direction = "Look Around Xsensitivity" multiplied by the set free viewing angle sensitivity multiplier. For example, assuming that the player sets "Look Around Xsensitivity" to 2.5 degrees / cm and sets the sensitivity multiplier to 2 times, the final rotation sensitivity of the virtual camera in the horizontal direction is 5 degrees / cm, that is, the virtual camera rotates 5 degrees for every 1 cm movement of the mouse by the player. Similarly, the final rotation sensitivity of the virtual camera in the vertical direction = "Look Aroud YSensitivity" multiplied by the set free viewing angle sensitivity multiplier.
[0173] In addition, the rotation angle of the virtual camera will also be affected by the maximum rotation angle and the angle of the virtual camera itself. Fig.12 The “Max Look Around Yaw” displayed in the setting interface 1201 indicates the maximum rotatable angle of the virtual camera in the horizontal left direction; the “Min Look Around Yaw” indicates the maximum rotatable angle of the virtual camera in the horizontal right direction; the “Max Look Around Pitch” indicates the maximum rotatable angle of the virtual camera in the vertical upward direction; and the “Min Look Around Pitch” indicates the maximum rotatable angle of the virtual camera in the vertical downward direction.
[0174] For example, see Fig.13 , Fig.13 is a schematic diagram of an angle restriction interface provided in an embodiment of the present application, such as Fig.13 As shown, the virtual camera bound to the game character also has angle limitations. For example, the "Max Yaw" displayed in the angle limitation interface 1301 indicates the maximum horizontal rotation angle of the virtual camera in the left direction; "Min Yaw" indicates the maximum horizontal rotation angle of the virtual camera in the right direction; "Max Pitch" indicates the maximum vertical rotation angle of the virtual camera in the upward direction; and "Min Pitch" indicates the maximum vertical rotation angle of the virtual camera in the downward direction. That is, when the player holds down the middle mouse button to rotate the virtual camera bound to the game character, the rotation angle will not exceed Fig.13 The Yaw and Pitch angle values shown in the figure are as follows: the maximum horizontal direction is ±180 degrees, the maximum vertical upward direction is 75 degrees, and the maximum vertical downward direction is -85 degrees.
[0175] In step 202, the head of the game character is also controlled to rotate.
[0176] In some embodiments, see Fig.14 , Fig.14 is a schematic diagram of a setting interface provided in an embodiment of the present application, such as Fig.14As shown, in a mixed space, there are 9 animations, which respectively represent the head deflection actions of the center, horizontal ±45 degrees, and vertical ±90 degrees. For example, for the point 1401 in the upper left corner, it represents the action of the game character's head looking up 90 degrees and looking to the left 45 degrees at the same time. When the 1P camera rotates to the corresponding angle, the head of the 3P character (i.e., the game character in the third-person perspective) will be superimposed with this rotation animation, so that the performance of the game character is more realistic. In other words, while controlling the rotation of the virtual camera corresponding to the 1P perspective, other players can see that the head of the game character will also rotate accordingly. For example, when the virtual camera is controlled to rotate to the left, other players can see that the head of the game character will also rotate to the left.
[0177] In step 203, when it is detected that the player releases the middle mouse button, the virtual camera bound to the game character is controlled to return to the center.
[0178] In some embodiments, before executing step 203, the player can also set the interp speed of the virtual camera in the setting interface, for example, Fig.12 , the "PitchOffset Interp Speed" displayed in the setting interface 1201 indicates the vertical return speed of the virtual camera when returning to the center, and the "Yaw OffsetInterp Speed" indicates the horizontal return speed of the virtual camera when returning to the center. Subsequently, when it is detected that the player releases the middle mouse button, the virtual camera can be controlled to return to the center according to the return speed set by the player in the setting interface.
[0179] It should be noted that while controlling the virtual camera bound to the game character to return to the center, the game character's head can also be controlled to return to the center. For example, the player can also set the speed of returning to the center of the game character's head in the setting interface, such as the speed of returning to the center of the game character's head in the horizontal direction and the speed of returning to the center of the game character's head in the vertical direction. Then, when it is detected that the player releases the middle mouse button, the game character's head can be controlled to return to the center according to the speed of returning to the center of the game character's head set by the player in the setting interface.
[0180] In summary, the interactive processing method of the virtual scene provided in the embodiment of the present application has the following beneficial effects:
[0181] 1. Players can observe the in-game environment without revealing their voices, which increases the choice of observation methods and enriches the strategic depth of the game;
[0182] 2. Players can observe the surrounding environment without changing the direction of movement of the game character. It has application scenarios in both outdoor observation and indoor combat, which enriches the game's operating skills and enhances the player's gaming experience.
[0183] The following is a description of an exemplary structure of the virtual scene interaction processing device 555 provided in the embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the virtual scene interaction processing device 555 of the memory 550 may include: a display module 5551 and a control module 5552 .
[0184] Display module 5551 is used to display a first virtual scene picture, wherein the first virtual scene picture is obtained by the virtual object observing the virtual scene with a first perspective; control module 5552 is used to keep the body of the virtual object from rotating in response to a perspective rotation operation, and control the head of the virtual object to rotate a corresponding angle along the direction indicated by the perspective rotation operation; display module 5551 is also used to switch to display a second virtual scene picture, wherein the second virtual scene picture is obtained by the virtual object observing the virtual scene with a second perspective, and the second perspective is the perspective corresponding to the rotation of the head of the virtual object.
[0185] In some embodiments, the perspective rotation operation includes a moving operation, wherein the moving operation includes a sliding operation and a dragging operation; the interactive processing device 555 of the virtual scene also includes an acquisition module 5553 and a determination module 5554, wherein the acquisition module 5553 is used to acquire the moving distance of the moving operation; the determination module 5554 is used to determine the angle to be rotated of the head of the virtual object based on the moving distance, wherein the angle is positively correlated with the moving distance; and the control module 5552 is used to control the rotation angle of the head of the virtual object along the moving direction of the moving operation.
[0186] In some embodiments, the determination module 5554 is also used to query a mapping table based on the moving distance to obtain the angle to which the head of the virtual object is to be rotated when the moving distance is less than a distance threshold, wherein the mapping table includes a mapping relationship between different moving distances and different angles; and to use a pre-set maximum rotatable angle as the angle to which the head of the virtual object is to be rotated when the moving distance is greater than the distance threshold.
[0187] In some embodiments, the virtual scene includes at least one direction control, and the perspective rotation operation includes a pressing operation on any direction control; the acquisition module 5553 is also used to obtain the pressing parameters of the pressing operation; the determination module 5554 is also used to determine the angle to which the head of the virtual object is to be rotated based on the pressing parameters; the control module 5552 is also used to control the rotation angle of the head of the virtual object along the direction indicated by the pressed direction control.
[0188] In some embodiments, the pressing parameters include pressing duration and pressing intensity; the determination module 5554 is also used to determine the pressure interval in which the pressing intensity is located when the pressing duration is greater than a duration threshold; and the angle corresponding to the pressure interval is used as the angle at which the head of the virtual object is to be rotated, wherein different pressure intervals correspond to different angles.
[0189] In some embodiments, the determination module 5554 is further configured to use the angle corresponding to the maximum pressure interval as the angle at which the head of the virtual object is to rotate when the pressing force exceeds a preset maximum pressure interval.
[0190] In some embodiments, the interactive processing device 555 of the virtual scene also includes a prediction module 5555, which is used to call a machine learning model to perform prediction processing based on the feature data of the virtual scene and the feature data of the virtual object, so as to obtain the angle to which the head of the virtual object is to be rotated; the control module 5552 is also used to control the head of the virtual object to rotate the perspective in the direction indicated by the perspective rotation operation.
[0191] In some embodiments, the interactive processing device 555 of the virtual scene also includes a training module 5556, which is used to obtain feature data of the sample virtual scene and feature data of the sample virtual object; based on the feature data of the sample virtual scene and the feature data of the sample virtual object, call the initialized machine learning model for prediction processing to obtain the angle to which the head of the sample virtual object is to be rotated; determine the difference between the angle to which the head of the sample virtual object is to be rotated and the pre-marked rotation angle; perform back propagation based on the difference, and update the parameters of the machine learning model layer by layer during the back propagation process.
[0192] In some embodiments, the virtual scene includes a rotation speed setting control; the acquisition module 5553 is also used to obtain the set rotation speed in response to a setting operation on the rotation speed setting control; the control module 5552 is also used to control the head of the virtual object to rotate a corresponding angle along the direction indicated by the perspective rotation operation according to the set rotation speed.
[0193] In some embodiments, the virtual scene includes a virtual camera corresponding to the virtual object, and the first virtual scene image is obtained by shooting the virtual scene with the virtual camera at a first perspective; the control module 5552 is also used to control the virtual camera to rotate an angle along the direction indicated by the perspective rotation operation when controlling the head of the virtual object to rotate a corresponding angle along the direction indicated by the perspective rotation operation, wherein the second virtual scene image is obtained by shooting the virtual scene with the virtual camera at a second perspective.
[0194] In some embodiments, the control module 5552 is also used to control the virtual object's shoulder to synchronously retreat a corresponding distance when controlling the virtual camera to rotate in the direction indicated by the perspective rotation operation, wherein the distance is positively correlated with the angle.
[0195] In some embodiments, the control module 5552 is also used to control the head of the virtual object to rotate in the opposite direction of the direction indicated by the perspective rotation operation in response to the perspective rotation operation being released, and to switch back from the second virtual scene screen to the first virtual scene screen.
[0196] In some embodiments, the virtual scene includes a virtual camera corresponding to the virtual object; the control module 5552 is also used to control the virtual camera to rotate at an angle in the opposite direction to the direction indicated by the perspective rotation operation when controlling the head of the virtual object to rotate at an angle in the opposite direction to the direction indicated by the perspective rotation operation.
[0197] In some embodiments, the virtual scene also includes a camera rotation speed setting control; the acquisition module 5553 is also used to obtain the rotation speed set for the virtual camera in response to the setting operation of the camera rotation speed setting control; the control module 5552 is also used to control the virtual camera to rotate at an angle in the opposite direction of the direction indicated by the viewing angle rotation operation according to the rotation speed.
[0198] In some embodiments, the virtual scene includes a setting entrance; the display module 5551 is also used to display a setting interface in response to a trigger operation on the setting entrance, wherein the setting interface is used to set the maximum rotatable angles of the virtual object's head in different directions, and the rotation speed of the virtual object's head; the control module 5552 is also used to control the virtual object's head to rotate a corresponding angle along the direction indicated by the perspective rotation operation according to the rotation speed, wherein the angle is less than or equal to the maximum rotatable angle corresponding to the direction.
[0199] In some embodiments, the virtual object holds a virtual shooting prop; the control module 5552 is also used to respond to the perspective rotation operation, keep the body of the virtual object from rotating and the shooting direction of the virtual shooting prop unchanged, and control the head of the virtual object to rotate a corresponding angle along the direction indicated by the perspective rotation operation.
[0200] In some embodiments, the orientation of the virtual object's body is used to determine the direction of movement of the virtual object; the control module 5552 is also used to respond to receiving a perspective rotation operation during the process of controlling the movement of the virtual object, keep the moving direction of the virtual object unchanged, and control the head of the virtual object to rotate a corresponding angle in the direction indicated by the perspective rotation operation.
[0201] It should be noted that the description of the device in the embodiment of the present application is similar to the description of the method embodiment described above, and has similar beneficial effects as the method embodiment, so it will not be repeated. Figure 3 ,or Figure 4 The present invention should be understood by referring to the description of any one of the accompanying drawings.
[0202] The embodiment of the present application provides a computer program product, which includes a computer program or a computer executable instruction, and the computer program or the computer executable instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer executable instruction from the computer-readable storage medium, and the processor executes the computer executable instruction, so that the computer device executes the interactive processing method of the virtual scene described in the embodiment of the present application.
[0203] The present application embodiment provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the processor will execute the interactive processing method of the virtual scene provided by the present application embodiment, for example, Figure 3 ,or Figure 4 The interactive processing method of the virtual scene is shown.
[0204] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.
[0205] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0206] As an example, the executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.
[0207] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims
1. A method for interactive processing of a virtual scene, characterized in that: The method comprises: Displaying a first virtual scene picture, wherein the first virtual scene picture is obtained by a virtual object observing the virtual scene from a first perspective; In response to the view rotation operation, the body of the virtual object is kept from rotating, and the head of the virtual object is controlled to rotate a corresponding angle along the direction indicated by the view rotation operation, and Switch and display a second virtual scene picture, wherein the second virtual scene picture is obtained when the virtual object observes the virtual scene from a second viewing angle, and the second viewing angle is a viewing angle corresponding to a rotation of the head of the virtual object.
2. The method according to claim 1, characterized in that The viewing angle rotation operation includes a moving operation, wherein the moving operation includes a sliding operation and a dragging operation; The controlling the head of the virtual object to rotate a corresponding angle along the direction indicated by the perspective rotation operation includes: Obtaining a moving distance of the moving operation; Determining an angle at which the head of the virtual object is to be rotated based on the moving distance, wherein the angle is positively correlated with the moving distance; The head of the virtual object is controlled to rotate by the angle along the moving direction of the moving operation.
3. The method according to claim 2, characterized in that The determining, based on the moving distance, an angle at which the head of the virtual object is to be rotated comprises: When the moving distance is less than the distance threshold, querying a mapping table based on the moving distance to obtain an angle at which the head of the virtual object is to be rotated, wherein the mapping table includes mapping relationships between different moving distances and different angles; When the moving distance is greater than the distance threshold, the preset maximum rotatable angle is used as the angle at which the head of the virtual object is to be rotated.
4. The method according to claim 1, characterized in that: The virtual scene includes at least one direction control, and the viewing angle rotation operation includes a pressing operation on any of the direction controls; The controlling the head of the virtual object to rotate a corresponding angle along the direction indicated by the perspective rotation operation includes: Acquire a pressing parameter of the pressing operation; determining an angle at which the head of the virtual object is to be rotated based on the pressing parameter; The head of the virtual object is controlled to rotate the angle along the direction indicated by the pressed direction control.
5. The method according to claim 4, characterized in that The pressing parameters include pressing duration and pressing force; The step of determining the angle at which the head of the virtual object is to be rotated based on the pressing parameter comprises: When the pressing duration is greater than a duration threshold, determining a pressure interval in which the pressing intensity is located; The angle corresponding to the pressure interval is used as the angle at which the head of the virtual object is to be rotated, wherein different pressure intervals correspond to different angles.
6. The method according to claim 5, characterized in that The method further comprises: When the pressing force exceeds a preset maximum pressure interval, an angle corresponding to the maximum pressure interval is used as an angle at which the head of the virtual object is to be rotated.
7. The method according to claim 1, characterized in that The controlling the head of the virtual object to rotate a corresponding angle along the direction indicated by the perspective rotation operation includes: Based on the feature data of the virtual scene and the feature data of the virtual object, a machine learning model is called to perform prediction processing to obtain an angle at which the head of the virtual object is to be rotated; The head of the virtual object is controlled to rotate the viewing angle along the direction indicated by the viewing angle rotation operation.
8. The method according to claim 7, characterized in that Before calling the machine learning model for prediction processing, the method further includes: Acquire feature data of a sample virtual scene and feature data of a sample virtual object; Based on the feature data of the sample virtual scene and the feature data of the sample virtual object, calling the initialized machine learning model to perform prediction processing to obtain the angle at which the head of the sample virtual object is to be rotated; Determine the difference between the angle at which the head of the sample virtual object is to be rotated and the pre-marked rotation angle; Back propagation is performed based on the difference, and the parameters of the machine learning model are updated layer by layer during the back propagation process.
9. The method according to any one of claims 1 to 8, characterized in that: The virtual scene includes a rotation speed setting control; Before controlling the head of the virtual object to rotate a corresponding angle along the direction indicated by the viewing angle rotation operation, the method further includes: In response to a setting operation on the rotation speed setting control, acquiring a set rotation speed; The controlling the head of the virtual object to rotate a corresponding angle along the direction indicated by the perspective rotation operation includes: The head of the virtual object is controlled to rotate a corresponding angle along the direction indicated by the viewing angle rotation operation according to the set rotation speed.
10. The method according to any one of claims 1 to 8, characterized in that: The virtual scene includes a virtual camera corresponding to the virtual object, and the first virtual scene image is obtained by shooting the virtual scene with the first viewing angle by the virtual camera; When controlling the head of the virtual object to rotate a corresponding angle along the direction indicated by the viewing angle rotation operation, the method further includes: The virtual camera is controlled to rotate the angle along the direction indicated by the viewing angle rotation operation, wherein the second virtual scene image is obtained by shooting the virtual scene with the virtual camera at the second viewing angle.
11. The method according to claim 10, characterized in that When controlling the virtual camera to rotate the angle along the direction indicated by the viewing angle rotation operation, the method further includes: Control the shoulders of the virtual object to synchronously retreat a corresponding distance, wherein the distance is positively correlated with the angle.
12. The method according to any one of claims 1 to 8, characterized in that: After switching to display the second virtual scene picture, the method further includes: In response to the view rotation operation being released, the head of the virtual object is controlled to rotate the angle in the opposite direction of the direction indicated by the view rotation operation, and the second virtual scene picture is switched back to the first virtual scene picture.
13. The method according to claim 12, characterized in that The virtual scene includes a virtual camera corresponding to the virtual object; When controlling the head of the virtual object to rotate the angle in a direction opposite to the direction indicated by the perspective rotation operation, the method further includes: The virtual camera is controlled to rotate the angle in the opposite direction to the direction indicated by the viewing angle rotation operation.
14. The method according to claim 13, characterized in that The virtual scene also includes a camera rotation speed setting control; Before controlling the virtual camera to rotate the angle in a direction opposite to the direction indicated by the viewing angle rotation operation, the method further includes: In response to a setting operation on the camera rotation speed setting control, obtaining a rotation speed set for the virtual camera; The controlling the virtual camera to rotate the angle in a direction opposite to the direction indicated by the viewing angle rotation operation comprises: The virtual camera is controlled to rotate the angle in the opposite direction of the direction indicated by the viewing angle rotation operation according to the rotation speed.
15. The method according to any one of claims 1 to 14, characterized in that The virtual scene includes setting an entrance; Before controlling the head of the virtual object to rotate a corresponding angle along the direction indicated by the viewing angle rotation operation, the method further includes: In response to a trigger operation on the setting entry, displaying a setting interface, wherein the setting interface is used to set the maximum rotatable angles of the head of the virtual object in different directions and the rotation speed of the head of the virtual object; The controlling the head of the virtual object to rotate a corresponding angle along the direction indicated by the perspective rotation operation includes: The head of the virtual object is controlled to rotate a corresponding angle along the direction indicated by the viewing angle rotation operation at the rotation speed, wherein the angle is less than or equal to the maximum rotatable angle corresponding to the direction.
16. The method according to any one of claims 1 to 14, characterized in that The virtual object holds a virtual shooting prop, and the orientation of the body of the virtual object is used to determine the shooting direction of the virtual shooting prop; In response to the view angle rotation operation, keeping the body of the virtual object from rotating and controlling the head of the virtual object to rotate a corresponding angle along the direction indicated by the view angle rotation operation includes: In response to the view angle rotation operation, the shooting direction of the virtual shooting prop is kept unchanged, and the head of the virtual object is controlled to rotate a corresponding angle along the direction indicated by the view angle rotation operation.
17. The method according to claim 16, characterized in that In response to the view rotation operation, keeping the shooting direction of the virtual shooting prop unchanged, and controlling the head of the virtual object to rotate a corresponding angle along the direction indicated by the view rotation operation, comprises: In response to the view rotation operation and the shooting operation, when the head of the virtual object is controlled to rotate a corresponding angle along the direction indicated by the view rotation operation, the shooting direction of the virtual shooting prop is kept unchanged, and the virtual shooting prop is controlled to shoot in the shooting direction.
18. The method according to any one of claims 1 to 14, characterized in that The orientation of the body of the virtual object is used to determine the moving direction of the virtual object; In response to the view angle rotation operation, keeping the body of the virtual object from rotating and controlling the head of the virtual object to rotate a corresponding angle along the direction indicated by the view angle rotation operation includes: In response to receiving a view rotation operation during the process of controlling the movement of the virtual object, the moving direction of the virtual object is kept unchanged, and the head of the virtual object is controlled to rotate a corresponding angle along the direction indicated by the view rotation operation.
19. The method according to claim 18, characterized in that In response to receiving a view rotation operation during the process of controlling the movement of the virtual object, keeping the moving direction of the virtual object unchanged, and controlling the head of the virtual object to rotate a corresponding angle along the direction indicated by the view rotation operation, comprises: In response to receiving a movement instruction triggered for the virtual object, controlling the virtual object to move in a direction indicated by the movement instruction; In response to receiving a view rotation operation during the process of controlling the virtual object to move in the direction, the moving direction of the virtual object is kept unchanged, and the head of the virtual object is controlled to rotate a corresponding angle along the direction indicated by the view rotation operation.
20. An interactive processing device for a virtual scene, characterized in that: The device comprises: A display module, configured to display a first virtual scene image, wherein the first virtual scene image is obtained by a virtual object observing the virtual scene from a first perspective; A control module, configured to keep the body of the virtual object from rotating in response to the view angle rotation operation, and control the head of the virtual object to rotate a corresponding angle along the direction indicated by the view angle rotation operation; The display module is further used to switch and display a second virtual scene picture, wherein the second virtual scene picture is obtained when the virtual object observes the virtual scene from a second viewing angle, and the second viewing angle is the viewing angle corresponding to the rotation of the head of the virtual object.
21. An electronic device, characterized in that: include: A memory for storing executable instructions; A processor is used to implement the interactive processing method of the virtual scene described in any one of claims 1 to 19 when executing the executable instructions stored in the memory.
22. A computer-readable storage medium storing computer-executable instructions, characterized in that: When the computer executable instructions are executed by a processor, the interactive processing method of the virtual scene described in any one of claims 1 to 19 is implemented.
23. A computer program product comprising a computer program or computer executable instructions, characterized in that When the computer program or computer executable instructions are executed by a processor, the interactive processing method of the virtual scene described in any one of claims 1 to 19 is implemented.
Citation Information
Cited By
Virtual attribute operation control method and device and storage medium
CN120478975A
Interaction processing method and apparatus for virtual scene, and electronic device, computer-readable storage medium and computer program product
WO2026037023A1
