Virtual object interaction method, device and equipment and computer readable storage medium
By realizing many-to-one interaction of virtual objects in virtual scenes, the problem of insufficient interaction flexibility of virtual objects is solved, and the user's immersion and interactive experience are improved.
Patent Information
- Application Number
- CN202310782023.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-28
- Publication Date
- 2024-12-31
AI Technical Summary
The prior art is difficult to improve the interactive flexibility and efficiency of virtual objects in virtual social scenarios, resulting in insufficient user immersion.
By displaying multiple virtual objects in a virtual scene and allowing users to control the virtual objects to interact through action identification, many-to-one interactions between virtual objects are realized, and the flexibility of interaction is enhanced.
It improves the flexibility and diversity of virtual object interaction, allowing users to gain a higher sense of immersion and interactive experience in virtual social interaction.
Smart Images

Figure CN119215433A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of Internet technology, and in particular to a virtual object interaction method, device, equipment and computer-readable storage medium. Background Art
[0002] With the continuous development of Internet technology, people have higher and higher requirements for entertainment forms. For example, in the process of game interaction, users can interact by controlling virtual objects in virtual scenes. Therefore, it is necessary to provide a virtual object interaction method to improve the flexibility and efficiency of virtual object interaction, thereby improving the user's immersion in virtual social interaction. Summary of the invention
[0003] The embodiments of the present application provide a virtual object interaction method, device, equipment and computer-readable storage medium. The technical solution is as follows:
[0004] In one aspect, an embodiment of the present application provides a virtual object interaction method, the method comprising:
[0005] Displaying a virtual scene, wherein a first virtual object, a second virtual object, and a third virtual object are displayed in the virtual scene, wherein the second virtual object interacts with the third virtual object according to a first interactive action in the virtual scene, and a first action identifier is displayed at a first position of the second virtual object, wherein the first action identifier is an action identifier of the first interactive action;
[0006] In response to a first operation identified by the first action, the first virtual object is controlled to interact with the third virtual object according to the first interaction action.
[0007] On the other hand, an embodiment of the present application provides a virtual object interaction device, the device comprising:
[0008] A display module, configured to display a virtual scene, wherein a first virtual object, a second virtual object, and a third virtual object are displayed in the virtual scene, wherein the second virtual object interacts with the third virtual object according to a first interactive action in the virtual scene, and a first action identifier is displayed at a first position of the second virtual object, wherein the first action identifier is an action identifier of the first interactive action;
[0009] The control module is configured to control the first virtual object to interact with the third virtual object according to the first interaction action in response to a first operation on the first action identifier.
[0010] In a possible implementation manner, the device further includes:
[0011] a determination module, configured to determine an interaction state of the first virtual object in response to a first operation on the first action identifier;
[0012] An acquisition module, configured to acquire first action data of the first virtual object performing the first interaction action based on the interaction state of the first virtual object satisfying a state requirement;
[0013] The control module is used to control the first virtual object to interact with the third virtual object according to the first interaction action based on the first action data.
[0014] In a possible implementation, the acquisition module is configured to acquire, based on the interaction state of the first virtual object satisfying a state requirement, the first position information of the first virtual object, the third position information of the third virtual object, and the orientation vector of the first virtual object;
[0015] The determining module is configured to determine a rotation angle of the first virtual object according to the first position information, the third position information and the orientation vector of the first virtual object;
[0016] The control module is used to control the first virtual object to rotate according to the rotation angle so that the first virtual object faces the third virtual object after rotation;
[0017] The device also includes:
[0018] A generating module, configured to generate a first data acquisition request, wherein the first data acquisition request includes an object identifier of the first virtual object and the first action identifier;
[0019] A sending module, used for sending the first data acquisition request to the server;
[0020] A receiving module is used to receive the first action data returned by the server based on the first data acquisition request.
[0021] In a possible implementation, the determination module is used to determine a reference vector pointing from the position indicated by the first position information to the position indicated by the third position information; and determine a rotation angle of the first virtual object according to the orientation vector of the first virtual object and the reference vector.
[0022] In a possible implementation, the generating module is configured to generate a first state acquisition request in response to a first operation on the first action identifier, wherein the first state acquisition request includes an object identifier of the first virtual object;
[0023] The sending module is used to send the first status acquisition request to the server;
[0024] The receiving module is used to receive the interaction state of the first virtual object returned by the server based on the first state acquisition request.
[0025] In a possible implementation, the display module is further used to display prompt information in response to a first operation for the first action identifier, and the interaction state of the first virtual object does not meet the state requirement, wherein the prompt information is used to indicate that the first virtual object cannot perform the first interaction action.
[0026] In a possible implementation manner, an object identifier of the third virtual object is also displayed at the first position of the second virtual object, and the object identifier of the third virtual object is used to indicate an interactive object with which the second virtual object performs the first interactive action.
[0027] In a possible implementation, the display module is further configured to display the first action identifier at a second position of the first virtual object, where the first action identifier is configured to indicate that the first virtual object is performing the first interactive action.
[0028] In a possible implementation manner, an object identifier of the third virtual object is also displayed at the second position of the first virtual object, and the object identifier of the third virtual object is used to indicate an interactive object with which the first virtual object performs the first interactive action.
[0029] In a possible implementation, the sending module is also used to send an interaction state change request to the server, wherein the interaction state change request includes the first action identifier and the object identifier of the first virtual object, and the interaction state change request is used to instruct the server to change the interaction state of the first virtual object to the first interaction action corresponding to the first action identifier.
[0030] In a possible implementation, a fourth virtual object is further displayed in the virtual scene;
[0031] The display module is further configured to display an interactive control in response to a trigger operation on the fourth virtual object; and to display at least one candidate action identifier in response to a trigger operation on the interactive control, wherein any candidate action identifier corresponds to an interactive action;
[0032] The control module is further configured to, in response to a triggering operation on a second action identifier among the at least one candidate action identifier, control the first virtual object to interact with the fourth virtual object according to a second interaction action corresponding to the second action identifier.
[0033] In a possible implementation, the determining module is configured to determine the interaction state of the first virtual object in response to a triggering operation on a second action identifier among the at least one candidate action identifier;
[0034] The acquisition module is configured to acquire second action data of the first virtual object performing the second interaction action based on the interaction state of the first virtual object satisfying a state requirement;
[0035] The control module is used to control the first virtual object to interact with the fourth virtual object according to the second interaction action according to the second action data.
[0036] In a possible implementation, the control module is further configured to control the first virtual object to stop executing the first interactive action after a first duration based on the second virtual object stopping executing the first interactive action.
[0037] In a possible implementation, the display module is further used to display a stop control in the virtual scene, where the stop control is used to instruct the first virtual object to stop executing the first interactive action;
[0038] The control module is further configured to control the first virtual object to stop executing the first interactive action in response to a trigger operation on the stop control.
[0039] In a possible implementation, the display module is further configured to display at least one candidate action identifier in response to a second operation on the first action identifier, each candidate action identifier corresponds to an interactive action, and the second operation on the first action identifier is different from the first operation on the first action identifier;
[0040] The control module is further configured to, in response to a triggering operation on a third action identifier among the at least one candidate action identifier, control the first virtual object to interact with the third virtual object according to a third interaction action corresponding to the third action identifier.
[0041] On the other hand, an embodiment of the present application provides a computer device, which includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor so that the computer device implements any of the virtual object interaction methods described above.
[0042] On the other hand, a computer-readable storage medium is provided, wherein at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor so that a computer implements any of the above-mentioned virtual object interaction methods.
[0043] On the other hand, a computer program or a computer program product is also provided, wherein at least one computer instruction is stored in the computer program or the computer program product, and the at least one computer instruction is loaded and executed by a processor so that the computer implements any of the above-mentioned virtual object interaction methods.
[0044] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0045] The technical solution provided by the embodiment of the present application is that when the second virtual object interacts with the third virtual object according to the first interactive action, the first action identifier corresponding to the first interactive action will be displayed at the first position of the second virtual object. When the first user wants the first virtual object controlled by the first user to join the interaction between the second virtual object and the third virtual object, the first user selects the first action identifier to make the first virtual object join the interaction between the second virtual object and the third virtual object, that is, the first virtual object interacts with the third virtual object according to the first interactive action. The interaction between virtual objects provided by the present application is many-to-one, so that the interaction mode of virtual objects is more diversified and the interaction flexibility is stronger. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0047] Figure 1 It is a schematic diagram of an implementation environment of a virtual object interaction method provided in an embodiment of the present application;
[0048] Figure 2 is a flow chart of a virtual object interaction method provided by an embodiment of the present application;
[0049] Figure 3 is a display schematic diagram of a virtual scene provided in an embodiment of the present application;
[0050] Figure 4 is a display schematic diagram of an interactive control provided in an embodiment of the present application;
[0051] Figure 5 is a display schematic diagram of at least one candidate action identifier provided in an embodiment of the present application;
[0052] Figure 6 is a display schematic diagram of another virtual scene provided in an embodiment of the present application;
[0053] Figure 7 is a display schematic diagram of another virtual scene provided in an embodiment of the present application;
[0054] Figure 8 is a display schematic diagram of another virtual scene provided in an embodiment of the present application;
[0055] Fig. 9 is a display schematic diagram of at least one candidate action identifier provided in an embodiment of the present application;
[0056] Fig.10 is a flow chart of a virtual object interaction method provided by an embodiment of the present application;
[0057] Fig.11 is a structural schematic diagram of a virtual object interaction device provided in an embodiment of the present application;
[0058] Fig.12 It is a structural diagram of a terminal device provided in an embodiment of the present application;
[0059] Fig.13 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0061] Definitions of abbreviations or key terms involved in the embodiments of the present application.
[0062] Virtual social interaction: Users customize their own 2D (two-dimensional) or 3D (three-dimensional) humanoid models and use their own virtual objects and other people’s virtual objects to engage in social chats.
[0063] Virtual scene: refers to the scene provided (or displayed) when the application is running on the terminal device. The virtual scene refers to the scene in which the virtual objects are created to carry out activities. The virtual scene can be a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene. The virtual scene can be a simulation of the real world, a semi-simulation of the real world, or a purely fictional scene. Exemplarily, the virtual scene involved in the embodiments of the present application is a three-dimensional virtual scene.
[0064] Virtual object: refers to an movable object in a virtual scene, which can be a virtual person, a virtual animal, an animated character, etc. The first user can manipulate the virtual object by means of an external component or by clicking on a touch screen. Each virtual object has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene. Exemplarily, when the virtual scene is a three-dimensional virtual scene, the virtual object is a three-dimensional model created based on animation skeleton technology.
[0065] Figure 1 is a schematic diagram of an implementation environment of a virtual object interaction method provided in an embodiment of the present application, such as Figure 1 As shown, the implementation environment includes: a terminal device 101 and a server 102 .
[0066] Optionally, the terminal device 101 can be any electronic device product that can perform human-computer interaction with a user through one or more methods such as a keyboard, a touchpad, a remote control, voice interaction, or a handwriting device. For example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a tablet computer, a smart car machine, a smart TV, a smart speaker, a smart watch, etc. The terminal device 101 is used to execute the virtual object interaction method provided in the embodiment of the present application.
[0067] The terminal device 101 may generally refer to one of a plurality of terminal devices, and this embodiment is only illustrated by taking the terminal device 101 as an example. Those skilled in the art may know that the number of the terminal devices 101 may be more or less. For example, the terminal device 101 may be only one, or the terminal devices 101 may be dozens or hundreds, or more. The embodiment of the present application does not limit the number and device type of the terminal devices.
[0068] The server 102 is a single server, or a server cluster consisting of multiple servers, or any one of a cloud computing platform and a virtualization center, which is not limited in the embodiments of the present application. The server 102 is connected to the terminal device 101 through a wired network or a wireless network. The server 102 has a data receiving function, a data processing function, and a data sending function. Of course, the server 102 may also have other functions, which are not limited in the embodiments of the present application.
[0069] Those skilled in the art should understand that the above-mentioned terminal device 101 and server 102 are only for illustration, and other existing or future terminal devices or servers, if applicable to the present application, should also be included in the scope of protection of the present application and are included here by reference.
[0070] The present application embodiment provides a virtual object interaction method, which can be applied to the above Figure 1 The implementation environment shown is Figure 2 As an example, the flowchart of a virtual object interaction method provided in the embodiment of the present application is shown. The method can be performed by Figure 1 The terminal device 101 in the embodiment is executed. Figure 2 As shown, the method includes the following steps 201 to 202.
[0071] In step 201, a virtual scene is displayed, in which a first virtual object, a second virtual object and a third virtual object are displayed, the second virtual object interacts with the third virtual object according to a first interactive action in the virtual scene, and a first action identifier is displayed at a first position of the second virtual object, the first action identifier being an action identifier of the first interactive action.
[0072] In an exemplary embodiment of the present application, an application capable of providing a virtual scene is installed and run in a terminal device, and the application is an application capable of virtual social interaction. The application may refer to an application that needs to be downloaded and installed, or it may refer to an embedded program that relies on a host program to run, such as a mini-program, which is not limited in the embodiments of the present application. Based on the application being an embedded program, an embedded program is an application developed based on a programming language and relies on a host program to run. An embedded program does not need to be downloaded and installed, it only needs to be dynamically loaded in the host program to run. Users can find the embedded program they need by searching, scanning, etc., and can apply it by clicking on it. It will not occupy the memory of the terminal device after closing it after use, which is very convenient.
[0073] In one possible implementation, relevant information of the application is displayed in the display interface of the terminal device. The relevant information of the application may be an icon of the application, a name of the application, or other information of the application, which is not limited in this embodiment of the present application.
[0074] When the first user wants to open the application, the first user clicks on the relevant information of the application, and the terminal device receives the click operation on the relevant information of the application, opens the application, and displays a virtual scene, in which the first virtual object, the second virtual object, and the third virtual object are displayed. The second virtual object interacts with the third virtual object in the virtual scene according to the first interactive action, and a first action identifier is displayed at the first position of the second virtual object, and the first action identifier is the action identifier of the first interactive action. In the virtual scene, the second virtual object faces the third virtual object and interacts with the third virtual object according to the first interactive action.
[0075] The first position of the second virtual object may be the top of the second virtual object, the left side of the second virtual object, the right side of the second virtual object, the feet of the second virtual object, or any other position of the second virtual object, which is not limited in the embodiments of the present application. The first action identifier may be the action name of the first interactive action, the action icon of the first interactive action, or any other identifier that can represent the first interactive action, which is not limited in the embodiments of the present application.
[0076] Optionally, the first virtual object displayed in the virtual scene is a virtual object controlled by the first user, the second virtual object is a virtual object controlled by the second user, and the third virtual object is a virtual object controlled by the third user. The first user is a user using the terminal device, and the second user and the third user may be friends of the first user in the application, or may not be friends of the first user in the application, which is not limited in the embodiments of the present application.
[0077] like Figure 3 is a display schematic diagram of a virtual scene provided in an embodiment of the present application. Figure 3 A first virtual object 301, a second virtual object 302, and a third virtual object 303 are displayed in FIG. A first action mark 304 is displayed above the head of the second virtual object 302. The first action mark is a mark of an applause action. Figure 3 In the example, the second virtual object faces the third virtual object and interacts with the third virtual object according to the first interaction action. That is, the second virtual object faces the third virtual object and applauds the third virtual object.
[0078] Optionally, an object identifier of a third virtual object is also displayed at the first position of the second virtual object, and the object identifier of the third virtual object is used to indicate the interactive object with which the second virtual object performs the first interactive action. The object identifier of the third virtual object may be an object image of the third virtual object, or an object name of the third virtual object, or other identifiers that can represent the third virtual object, which is not limited in the present embodiment of the application. Figure 3 305 is the object identifier of the third virtual object. Figure 3 The object identifier of the third virtual object in the image is the object image of the third virtual object.
[0079] The virtual scene may also display relevant information of the first user, including an object image of a first virtual object controlled by the first user, an object name of the first virtual object controlled by the first user, the number of gold coins of the first user in the application, and furniture coupons of the first user in the application. Figure 3307 is the object image of the first virtual object controlled by the first user, 308 is the object name of the first virtual object controlled by the first user, 309 is the number of gold coins of the first user in the application, and 310 is the furniture voucher of the first user in the application.
[0080] Text input boxes and send controls can also be displayed in the virtual scene, such as Figure 3 311 in the figure is a text input box, and 312 is a send control. The text input box is used to input text content. The send control is used to send the text content input by the first user. When no text content is input in the text input box, the send control is in a non-touchable state. When text content is input in the text input box, the send control is in a touchable state. Optionally, the send control is displayed in white to indicate that the send control is in a touchable state, and the send control is displayed in gray to indicate that the send control is in a non-touchable state.
[0081] In a possible implementation, a fourth virtual object may also be displayed in the virtual scene, such as Figure 3 306 in the figure is the fourth virtual object. The first user can also control the first virtual object to interact with the fourth virtual object. The process of the first user controlling the first virtual object to interact with the fourth virtual object includes: in response to a trigger operation on the fourth virtual object, displaying an interactive control; in response to a trigger operation on the interactive control, displaying at least one candidate action identifier, any candidate action identifier corresponds to an interactive action, and each candidate action identifier corresponds to a different interactive action. In response to a trigger operation on a second action identifier in at least one candidate action identifier, the first virtual object is controlled to interact with the fourth virtual object according to a second interactive action corresponding to the second action identifier.
[0082] Among them, the trigger operation on the fourth virtual object can be a click operation on the fourth virtual object, or a double-click operation on the fourth virtual object, or other operations on the fourth virtual object, which is not limited in the embodiment of the present application.
[0083] Optionally, in response to a trigger operation on the fourth virtual object, the process of displaying the interactive control includes: in response to the trigger operation on the fourth virtual object, displaying the interactive control at a reference position of the fourth virtual object. The reference position of the fourth virtual object may be above the head of the fourth virtual object, or below the feet of the fourth virtual object, or to the left of the fourth virtual object, or to the right of the fourth virtual object, or at any position of the fourth virtual object, which is not limited in the embodiment of the present application.
[0084] like Figure 4 A schematic diagram of an interactive control display provided in an embodiment of the present application. Figure 4In the example, an interactive control is displayed above the head of the fourth virtual object. Figure 4 The 401 in is an interactive control.
[0085] Optionally, in response to a trigger operation on the fourth virtual object, while displaying the interactive control, a like control and a gift control may also be displayed. The like control is used to indicate a like for the fourth virtual object, and the gift control is used to indicate a gift to the fourth user controlling the fourth virtual object. Figure 4 403 is the like control and 404 is the gift control.
[0086] Since the fourth user is not a friend user of the first user in the application, an add friend control may also be displayed while displaying the interactive control. The add friend control is used to indicate adding the fourth user who controls the fourth virtual object as a friend. Figure 4 402 is an add friend control. Based on the fact that the fourth user is a friend user of the first user in the application, when the interactive control is displayed, the add friend control does not need to be displayed.
[0087] When the first user wants to control the first virtual object to interact with the fourth virtual object, the first user clicks the interactive control, and in response to the triggering operation on the interactive control, at least one candidate action identifier is displayed. Figure 5 is a schematic diagram of displaying at least one candidate action identifier provided by an embodiment of the present application. Figure 5 In the example, an action mark 501 of "applause", an action mark 502 of "hello", an action mark 503 of "heart", and an action mark 504 of "thank you" are displayed. Optionally, Figure 5 A sliding control 505 is also displayed, and the sliding control is used to slide to display action identifiers of other interactive actions.
[0088] In response to a trigger operation for a second action identifier among at least one candidate action identifier, a process of controlling a first virtual object to interact with a fourth virtual object according to a second interaction action corresponding to the second action identifier includes: in response to a trigger operation for a second action identifier among at least one candidate action identifier, determining an interaction state of the first virtual object; based on the interaction state of the first virtual object satisfying a state requirement, obtaining second action data for the first virtual object to perform a second interaction action; and according to the second action data, controlling the first virtual object to interact with the fourth virtual object according to the second interaction action.
[0089] Among them, the process of determining the interaction state of the first virtual object in response to the trigger operation of the second action identifier among at least one candidate action identifier is similar to the process of determining the interaction state of the first virtual object in response to the first operation of the first action identifier in the following step 202. The process of obtaining the second action data of the first virtual object performing the second interaction action based on the interaction state of the first virtual object satisfying the state requirements is similar to the process of obtaining the first action data of the first virtual object performing the first interaction action based on the interaction state of the first virtual object satisfying the state requirements in the following step 202, and they will not be repeated here.
[0090] Exemplarily, the first user selects the action mark of "heart shape", thereby controlling the first virtual object to make a heart shape to the fourth virtual object.
[0091] Optionally, in response to a trigger operation on a second action identifier among at least one candidate action identifier, a first virtual scene is displayed, a first virtual object interacts with a fourth virtual object in the first virtual scene according to a second interaction action, and a second virtual object interacts with a third virtual object in the first virtual scene according to a first interaction action.
[0092] In step 202, in response to a first operation for a first action identifier, the first virtual object is controlled to interact with the third virtual object according to a first interaction action.
[0093] Among them, the first operation for the first action identifier may refer to a click operation for the first action identifier, or a double-click operation for the first action identifier, or other operations for the first action identifier, which is not limited in the embodiment of the present application.
[0094] In one possible implementation, in response to a first operation for a first action identifier, a process of controlling a first virtual object to interact with a third virtual object according to a first interaction action includes: determining an interaction state of the first virtual object in response to the first operation for the first action identifier; obtaining first action data of the first virtual object performing a first interaction action based on that the interaction state of the first virtual object meets a state requirement; and controlling the first virtual object to interact with the third virtual object according to the first interaction action according to the first action data.
[0095] Optionally, in response to a first operation for a first action identifier, the process of determining the interactive state of the first virtual object includes: generating a first state acquisition request in response to the first operation for the first action identifier, the first state acquisition request including the object identifier of the first virtual object; sending the first state acquisition request to a server; and receiving the interactive state of the first virtual object returned by the server based on the first state acquisition request. The terminal device and the server are connected to each other through a wired network or a wireless network.
[0096] The server stores the interactive state of the object and the corresponding relationship between the object identifier and the interactive state of the object. After receiving the first state acquisition request, the server determines the interactive state of the first virtual object according to the first state acquisition request. Optionally, the process of the server determining the interactive state of the first virtual object includes: the server parses the first state acquisition request to obtain the object identifier of the first virtual object. According to the object identifier of the first virtual object and the corresponding relationship between the object identifier and the interactive state of the object, the interactive state of the first virtual object is determined.
[0097] After the server determines the interaction state of the first virtual object, the server returns the interaction state of the first virtual object to the terminal device, so that the terminal device acquires the interaction state of the first virtual object.
[0098] The interaction state of the first virtual object meets the state requirement, which means that the interaction state of the first virtual object is a non-interaction state, that is, the first virtual object does not perform any interaction action.
[0099] Based on the interaction state of the first virtual object satisfying the state requirement, the process of obtaining first action data of the first virtual object performing a first interaction action includes: based on the interaction state of the first virtual object satisfying the state requirement, obtaining first position information of the first virtual object, third position information of the third virtual object and a direction vector of the first virtual object; determining a rotation angle of the first virtual object according to the first position information, the third position information and the direction vector of the first virtual object; controlling the first virtual object to rotate according to the rotation angle so that the first virtual object faces the third virtual object after rotation; generating a first data acquisition request, the first data acquisition request including an object identifier and a first action identifier of the first virtual object; sending the first data acquisition request to a server; and receiving first action data returned by the server based on the first data acquisition request.
[0100] The process of obtaining the first position information of the first virtual object, the third position information of the third virtual object, and the orientation vector of the first virtual object includes: the server stores the position information of each virtual object, the corresponding relationship between the position information of each virtual object and the object identification of each virtual object, the orientation vector of each virtual object, and the corresponding relationship between the orientation vector of each virtual object and the object identification of each virtual object. The terminal device generates a first information acquisition request, which carries the object identification of the first virtual object and the object identification of the third virtual object. The first information acquisition request is used to obtain the first position information of the first virtual object, the third position information of the third virtual object, and the orientation vector of the first virtual object. The terminal device sends the first information acquisition request to the server. The server receives the first information acquisition request, parses the first information acquisition request, and obtains the object identification of the first virtual object and the object identification of the third virtual object. The server determines the first position information of the first virtual object and the third position information of the third virtual object according to the object identification of the first virtual object, the object identification of the third virtual object, and the corresponding relationship between the object identification of each virtual object and the position information of each virtual object; and determines the orientation vector of the first virtual object according to the object identification of the first virtual object and the corresponding relationship between the object identification of each virtual object and the orientation vector of each virtual object.
[0101] After the server obtains the first position information of the first virtual object, the third position information of the third virtual object, and the orientation vector of the first virtual object, the server returns the first position information of the first virtual object, the third position information of the third virtual object, and the orientation vector of the first virtual object to the terminal device, so that the terminal device obtains the first position information of the first virtual object, the third position information of the third virtual object, and the orientation vector of the first virtual object.
[0102] After the terminal device obtains the first position information of the first virtual object, the third position information of the third virtual object and the orientation vector of the first virtual object, the process of determining the rotation angle of the first virtual object includes: determining a reference vector pointing from the position indicated by the first position information to the position indicated by the third position information; determining the rotation angle of the first virtual object based on the orientation vector and the reference vector of the first virtual object.
[0103] Optionally, the rotation angle of the first virtual object is determined according to the orientation vector and the reference vector of the first virtual object according to the following formula (1).
[0104]
[0105] In the above formula (1), θ is the rotation angle of the first virtual object, A is the orientation vector of the first virtual object, B is the reference vector, |A| is the modulus of the orientation vector of the first virtual object, and |B| is the modulus of the reference vector.
[0106] The reason for determining the rotation angle of the first virtual object and controlling the first virtual object to rotate according to the rotation angle is to make the first virtual object face the third virtual object, so that the subsequent interaction actions of the first virtual object are interaction actions for the third virtual object, making the interaction actions of the first virtual object more targeted.
[0107] like Figure 6 FIG. 1 is a schematic diagram showing another virtual scene provided in an embodiment of the present application. Figure 6 The first virtual object faces the third virtual object and applauds the third virtual object.
[0108] Optionally, in response to the first operation for the first action identifier, the second virtual scene is displayed, the first virtual object interacts with the third virtual object in the second virtual scene according to the first interaction action, and the second virtual object interacts with the third virtual object in the second virtual scene according to the first interaction action.
[0109] In one possible implementation, in response to a first operation for a first action identifier, and the interaction state of the first virtual object does not meet the state requirements, a prompt message is displayed, and the prompt message is used to indicate that the first virtual object cannot perform the first interaction action. Optionally, the content of the prompt message can be any content, and the embodiment of the present application is not limited to this. Exemplarily, the interaction state of the first virtual object is that the first virtual object is performing a reference interaction action, and the reference interaction action is different from the first interaction action, then the content of the prompt message is: You are currently performing other interaction actions and cannot perform the first interaction action. For another example, the interaction state of the first virtual object is that the first virtual object interacts with the reference virtual object according to the first interaction action, and the reference virtual object is different from the third virtual object, then the content of the prompt message is: You are currently interacting with other virtual objects according to the first interaction action, and you cannot interact with the third virtual object for the time being.
[0110] Optionally, in response to the first operation on the first action identifier, after controlling the first virtual object to interact with the third virtual object according to the first interaction action, a first action identifier may also be displayed at the second position of the first virtual object, and the first action identifier is used to indicate that the first virtual object is performing the first interaction action.
[0111] Among them, the second position of the first virtual object can be the top of the first virtual object, or the feet of the first virtual object, or the left side of the first virtual object, or the right side of the first virtual object, or any position of the first virtual object, which is not limited in the embodiments of the present application.
[0112] like Figure 7 FIG. 1 is a schematic diagram showing another virtual scene provided in an embodiment of the present application. Figure 7 In the example, the first virtual object faces the third virtual object, and the first virtual object applauds the third virtual object. A first action mark 701 is displayed on the right side of the first virtual object.
[0113] Optionally, an object identifier of a third virtual object is also displayed at the second position of the first virtual object, and the object identifier of the third virtual object is used to indicate an interactive object with which the first virtual object performs the first interactive action.
[0114] like Figure 8 FIG. 1 is a schematic diagram showing another virtual scene provided in an embodiment of the present application. Figure 8 In the figure, the first virtual object faces the third virtual object, the first virtual object applauds the third virtual object, and a first action identifier 801 and an object identifier 802 of the third virtual object are displayed on the right side of the first virtual object.
[0115] In a possible implementation, in response to a first operation for a first action identifier, after controlling the first virtual object to interact with the third virtual object according to the first interaction action, since the first virtual object has interacted with the third virtual object according to the first interaction action, the interaction state of the first virtual object can be changed. The process of changing the interaction state of the first virtual object includes: generating an interaction state change request, the interaction state change request includes the first action identifier and the object identifier of the first virtual object, the interaction state change request is used to instruct the server to change the interaction state of the first virtual object to the first interaction action corresponding to the first action identifier; sending the interaction state change request to the server, so that the server changes the interaction state of the first virtual object according to the interaction state change request.
[0116] Exemplarily, the interaction state change request includes the first action identifier "applause" and the object identifier of the first virtual object "character A". After sending the interaction state change request to the server, the server parses the interaction state change request, obtains the first action identifier and the object identifier of the first virtual object, and the server changes the interaction state of "character A" to "applause".
[0117] In a possible implementation, in response to a first operation for a first action identifier, after controlling the first virtual object to interact with the third virtual object according to the first interaction action, the first interaction action is stopped based on the second virtual object, and the first virtual object is controlled to stop executing the first interaction action after a first duration. The first duration is set based on experience or adjusted according to the implementation environment, and the embodiment of the present application does not limit this. Exemplarily, the first duration is 5 seconds.
[0118] For example, after the first virtual object interacts with the third virtual object according to the first interaction action, if the second virtual object stops performing the first interaction action on the third virtual object, the first virtual object is controlled to stop performing the first interaction action on the third virtual object after 5 seconds.
[0119] In a possible implementation, after the first virtual object is controlled to interact with the third virtual object according to the first interaction action, a stop control is displayed in the virtual scene, and the stop control is used to instruct the first virtual object to stop executing the first interaction action. Figure 6 601 is a stop control. In response to a first operation on a first interactive action, after controlling the first virtual object to interact with the third virtual object according to the first interactive action, in response to a trigger operation on the stop control, controlling the first virtual object to stop executing the first interactive action.
[0120] Optionally, the first user can control the first virtual object to interact with the third virtual object according to other interactive actions. The process includes: in response to a second operation on the first action identifier, displaying at least one candidate action identifier, any candidate action identifier corresponding to an interactive action; in response to a trigger operation on a third action identifier in at least one candidate action identifier, controlling the first virtual object to interact with the third virtual object according to a third interactive action corresponding to the third action identifier.
[0121] The second operation for the first action identifier may be a long press operation for the first action identifier, a double click operation for the first action identifier, or other operations for the first action identifier, which are not limited in the present embodiment. The second operation for the first action identifier is different from the first operation for the first action identifier.
[0122] like Fig. 9 is a schematic diagram of displaying at least one candidate action identifier provided by an embodiment of the present application. Fig. 9 In (1), a second operation for the first action identifier is received, and in Fig. 9In (2), at least one candidate action identifier is displayed, which are an action identifier 901 of "applause", an action identifier 902 of "hello", an action identifier 903 of "heart gesture", and an action identifier 904 of "thank you". In response to a trigger operation on the action identifier of "heart gesture", the first virtual object is controlled to face the third virtual object and gesture a heart gesture to the third virtual object.
[0123] In response to a trigger operation on a third action identifier among at least one candidate action identifier, a process of controlling the first virtual object to interact with the third virtual object according to a third interaction action corresponding to the third action identifier is similar to the process of controlling the first virtual object to interact with the third virtual object according to the first interaction action in response to the first operation on the first action identifier in the above process, and the embodiments of the present application will not be repeated here.
[0124] Optionally, in response to a trigger operation on a third action identifier among at least one candidate action identifier, a third virtual scene is displayed, the first virtual object interacts with the third virtual object in the third virtual scene according to a third interaction action, and the second virtual object interacts with the third virtual object in the third virtual scene according to the first interaction action.
[0125] In the above method, when the second virtual object interacts with the third virtual object according to the first interactive action, the first action identifier corresponding to the first interactive action will be displayed at the first position of the second virtual object. When the first user wants the first virtual object controlled by the first user to join the interaction between the second virtual object and the third virtual object, the first user selects the first action identifier to make the first virtual object join the interaction between the second virtual object and the third virtual object, that is, the first virtual object interacts with the third virtual object according to the first interactive action. The interaction between virtual objects provided by the present application is many-to-one, so that the interaction mode of virtual objects is more diversified and the interaction flexibility is stronger.
[0126] Fig.10 This is a flowchart of a virtual object interaction method provided by an embodiment of the present application, the method includes three execution entities, namely a first user, a terminal device and a server. The first user is a user using a terminal device. A virtual scene is displayed in the terminal device, and the virtual scene includes a first virtual object, a second virtual object, a third virtual object and a fourth virtual object. The first virtual object is a virtual object controlled by the first user, the second virtual object is a virtual object controlled by the second user, the third virtual object is a virtual object controlled by the third user, and the fourth virtual object is a virtual object controlled by the fourth user. The second virtual object interacts with the third virtual object in the virtual scene according to the first interaction action. The method includes the following steps 1 to 22.
[0127] Step 1: The first user clicks on the fourth virtual object.
[0128] Step 2: The terminal device displays the interactive control.
[0129] Step 3: The first user clicks the interactive control.
[0130] Step 4: The terminal device displays at least one candidate action identifier.
[0131] Each candidate action identifier corresponds to an interactive action. Each candidate action identifier corresponds to a different interactive action. The candidate action identifier may refer to the action name of the corresponding interactive action or the action image of the corresponding interactive action.
[0132] Step 5: The first user clicks on a second action identifier among at least one candidate action identifier.
[0133] The second action identifier is an action identifier of a second interactive action.
[0134] Step 6: The terminal device sends a second data acquisition request to the server.
[0135] The second data acquisition request includes an object identifier and a second action identifier of the first virtual object, and the second data acquisition request is used to obtain action data of the first virtual object performing a second interactive action.
[0136] Step 7: The server returns the second action data to the terminal device.
[0137] Step 8: The terminal device controls the first virtual object to interact with the fourth virtual object according to the second interaction action based on the second action data.
[0138] Step 9: The terminal device requests the object identifier of the fourth virtual object from the server.
[0139] The object identifier of the fourth virtual object may be the object name of the fourth virtual object, may be the object image of the fourth virtual object, or may be other identifiers of the fourth virtual object, which is not limited in the embodiment of the present application.
[0140] Step 10: The server returns the object identifier of the fourth virtual object to the terminal device.
[0141] Step 11: The terminal device displays a second action identifier and an object identifier of a fourth virtual object at a second position of the first virtual object.
[0142] The second position of the first virtual object can be the top of the first virtual object, or the left side of the first virtual object, or the right side of the first virtual object, or under the feet of the first virtual object, or any position of the first virtual object, which is not limited in the embodiments of the present application.
[0143] Step 12: The first user clicks the stop control.
[0144] After the first virtual object performs the second interactive action, a stop control is displayed in the terminal device, and the stop control is used to instruct the first virtual object to stop performing the second interactive action.
[0145] Step 13: The terminal device controls the first virtual object to stop executing the second interaction action, and the interaction state of the first virtual object is adjusted to the first interaction state.
[0146] The interaction state of the first virtual object being the first interaction state means that the first virtual object does not perform an interaction action.
[0147] Step 14: The first user clicks the first action identifier.
[0148] Since the second virtual object interacts with the third virtual object according to the first interactive action in the virtual scene, a first action identifier is displayed at the first position of the second virtual object, and the first action identifier is an action identifier of the first interactive action.
[0149] Step 15: The terminal device sends a first data acquisition request to the server.
[0150] The first data acquisition request includes an object identifier and a first action identifier of a first virtual object, and the first data acquisition request is used to acquire action data of the first virtual object performing a first interactive action.
[0151] Step 16: The server returns the first action data to the terminal device.
[0152] Step 17: The terminal device controls the first virtual object to interact with the third virtual object according to the first interaction action based on the first action data.
[0153] Step 18: The terminal device requests the object identifier of the third virtual object from the server.
[0154] The object identifier of the third virtual object may be the object name of the third virtual object, may be an object image of the third virtual object, or may be an identifier that can represent the third virtual object, which is not limited in this embodiment of the present application.
[0155] Step 19: The server returns the object identifier of the third virtual object to the terminal device.
[0156] Step 20: The terminal device displays the first action identifier and the object identifier of the third virtual object at the second position of the first virtual object.
[0157] Step 21: The first user clicks the stop control.
[0158] Step 22: The terminal device controls the first virtual object to stop executing the first interactive action, and the interactive state of the first virtual object is adjusted to the first interactive state.
[0159] Fig.11 FIG. 1 is a schematic diagram of a structure of a virtual object interaction device provided in an embodiment of the present application. Fig.11 As shown, the device comprises:
[0160] Display module 1101, used to display a virtual scene, wherein a first virtual object, a second virtual object and a third virtual object are displayed in the virtual scene, wherein the second virtual object interacts with the third virtual object according to a first interactive action in the virtual scene, and a first action identifier is displayed at a first position of the second virtual object, wherein the first action identifier is an action identifier of the first interactive action;
[0161] The control module 1102 is configured to control the first virtual object to interact with the third virtual object according to the first interaction action in response to the first operation for the first action identifier.
[0162] In a possible implementation, the device further includes:
[0163] A determination module, configured to determine an interaction state of a first virtual object in response to a first operation for a first action identifier;
[0164] An acquisition module, configured to acquire first action data of a first interactive action performed by the first virtual object based on the interactive state of the first virtual object satisfying a state requirement;
[0165] The control module 1102 is used to control the first virtual object to interact with the third virtual object according to the first interaction action according to the first action data.
[0166] In a possible implementation, the acquisition module is configured to acquire first position information of the first virtual object, third position information of the third virtual object, and a direction vector of the first virtual object based on the interaction state of the first virtual object satisfying a state requirement;
[0167] A determination module, configured to determine a rotation angle of the first virtual object according to the first position information, the third position information and the orientation vector of the first virtual object;
[0168] A control module 1102, configured to control the first virtual object to rotate according to a rotation angle, so that the first virtual object faces the third virtual object after rotation;
[0169] The device also includes:
[0170] A generating module, configured to generate a first data acquisition request, wherein the first data acquisition request includes an object identifier and a first action identifier of a first virtual object;
[0171] A sending module, used for sending a first data acquisition request to a server;
[0172] The receiving module is used to receive the first action data returned by the server based on the first data acquisition request.
[0173] In a possible implementation, the determination module is used to determine a reference vector that points from a position indicated by the first position information to a position indicated by the third position information; and determine a rotation angle of the first virtual object according to the orientation vector of the first virtual object and the reference vector.
[0174] In a possible implementation, the generating module is configured to generate a first state acquisition request in response to a first operation for a first action identifier, wherein the first state acquisition request includes an object identifier of a first virtual object;
[0175] A sending module, used for sending a first status acquisition request to a server;
[0176] The receiving module is used to receive the interaction state of the first virtual object returned by the server based on the first state acquisition request.
[0177] In a possible implementation, the display module 1101 is further configured to, in response to a first operation for a first action identifier and when the interaction state of the first virtual object does not meet a state requirement, display a prompt message indicating that the first virtual object cannot perform the first interaction action.
[0178] In a possible implementation, an object identifier of a third virtual object is also displayed at the first position of the second virtual object, and the object identifier of the third virtual object is used to indicate an interactive object with which the second virtual object performs the first interactive action.
[0179] In a possible implementation, the display module 1101 is further configured to display a first action identifier at a second position of the first virtual object, where the first action identifier is configured to indicate that the first virtual object is performing a first interactive action.
[0180] In a possible implementation, an object identifier of a third virtual object is also displayed at the second position of the first virtual object, and the object identifier of the third virtual object is used to indicate an interactive object with which the first virtual object performs the first interactive action.
[0181] In a possible implementation, the sending module is also used to send an interaction state change request to the server, where the interaction state change request includes a first action identifier and an object identifier of the first virtual object, and the interaction state change request is used to instruct the server to change the interaction state of the first virtual object to a first interaction action corresponding to the first action identifier.
[0182] In a possible implementation, a fourth virtual object is also displayed in the virtual scene;
[0183] The display module 1101 is further configured to display an interactive control in response to a trigger operation on the fourth virtual object; and to display at least one candidate action identifier in response to a trigger operation on the interactive control, wherein any candidate action identifier corresponds to an interactive action;
[0184] The control module 1102 is further configured to, in response to a triggering operation on a second action identifier among at least one candidate action identifier, control the first virtual object to interact with the fourth virtual object according to a second interaction action corresponding to the second action identifier.
[0185] In a possible implementation, the determination module is configured to determine the interaction state of the first virtual object in response to a trigger operation on a second action identifier among at least one candidate action identifier;
[0186] An acquisition module, configured to acquire second action data of the first virtual object performing a second interaction action based on the interaction state of the first virtual object satisfying a state requirement;
[0187] The control module 1102 is used to control the first virtual object to interact with the fourth virtual object according to the second interaction action according to the second action data.
[0188] In a possible implementation, the control module 1102 is further configured to control the first virtual object to stop executing the first interactive action after a first duration based on the second virtual object stopping executing the first interactive action.
[0189] In a possible implementation, the display module 1101 is further used to display a stop control in the virtual scene, where the stop control is used to instruct the first virtual object to stop executing the first interactive action;
[0190] The control module 1102 is further configured to control the first virtual object to stop executing the first interactive action in response to a trigger operation on the stop control.
[0191] In a possible implementation, the display module 1101 is further configured to display at least one candidate action identifier in response to a second operation on the first action identifier, each candidate action identifier corresponds to an interactive action, and the second operation on the first action identifier is different from the first operation on the first action identifier;
[0192] The control module 1102 is further configured to, in response to a triggering operation on a third action identifier among at least one candidate action identifier, control the first virtual object to interact with the third virtual object according to a third interaction action corresponding to the third action identifier.
[0193] When the second virtual object of the above device interacts with the third virtual object according to the first interactive action, the first action identifier corresponding to the first interactive action will be displayed at the first position of the second virtual object. When the first user wants the first virtual object controlled by the first user to join the interaction between the second virtual object and the third virtual object, the first user selects the first action identifier to make the first virtual object join the interaction between the second virtual object and the third virtual object, that is, the first virtual object interacts with the third virtual object according to the first interactive action. The interaction between virtual objects provided by the present application is many-to-one, so that the interaction mode of virtual objects is more diversified and the interaction flexibility is stronger.
[0194] It should be understood that the above-mentioned device only uses the division of the above-mentioned functional modules as an example to illustrate when implementing its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0195] Fig.12 The structure block diagram of a terminal device 1200 provided by an exemplary embodiment of the present application is shown. The terminal device 1200 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal device 1200 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0196] Typically, the terminal device 1200 includes: a processor 1201 and a memory 1202 .
[0197] The processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1201 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1201 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1201 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1201 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0198] The memory 1202 may include one or more computer-readable storage media, which may be non-transitory. The memory 1202 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1202 is used to store at least one instruction, which is used to be executed by the processor 1201 to implement the virtual object interaction method provided in the method embodiment of the present application.
[0199] In some embodiments, the terminal device 1200 may further optionally include: a peripheral device interface 1203 and at least one peripheral device. The processor 1201, the memory 1202 and the peripheral device interface 1203 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1203 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1204, a display screen 1205, a camera assembly 1206, an audio circuit 1207 and a power supply 1209.
[0200] The peripheral device interface 1203 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1201 and the memory 1202. In some embodiments, the processor 1201, the memory 1202, and the peripheral device interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1201, the memory 1202, and the peripheral device interface 1203 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0201] The radio frequency circuit 1204 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1204 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1204 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1204 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1204 can communicate with other terminal devices through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1204 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0202] The display screen 1205 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1205 is a touch display screen, the display screen 1205 also has the ability to collect touch signals on the surface or above the surface of the display screen 1205. The touch signal can be input to the processor 1201 as a control signal for processing. At this time, the display screen 1205 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1205 can be one, set on the front panel of the terminal device 1200; in other embodiments, the display screen 1205 can be at least two, respectively set on different surfaces of the terminal device 1200 or in a folding design; in other embodiments, the display screen 1205 can be a flexible display screen, set on a curved surface or a folding surface of the terminal device 1200. Even, the display screen 1205 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1205 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0203] The camera assembly 1206 is used to capture images or videos. Optionally, the camera assembly 1206 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal device 1200, and the rear camera is arranged on the back of the terminal device 1200. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1206 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0204] The audio circuit 1207 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1201 for processing, or input them into the radio frequency circuit 1204 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal device 1200. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1201 or the radio frequency circuit 1204 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1207 may also include a headphone jack.
[0205] The power supply 1209 is used to power various components in the terminal device 1200. The power supply 1209 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1209 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0206] In some embodiments, the terminal device 1200 further includes one or more sensors 1120 , including but not limited to: an acceleration sensor 1211 , a gyroscope sensor 1212 , a pressure sensor 1213 , an optical sensor 1215 , and a proximity sensor 1216 .
[0207] The acceleration sensor 1211 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal device 1200. For example, the acceleration sensor 1211 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1201 can control the display screen 1205 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1211. The acceleration sensor 1211 can also be used to collect game or user motion data.
[0208] The gyro sensor 1212 can detect the body direction and rotation angle of the terminal device 1200, and the gyro sensor 1212 can cooperate with the acceleration sensor 1211 to collect the user's 3D actions on the terminal device 1200. The processor 1201 can implement the following functions based on the data collected by the gyro sensor 1212: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0209] The pressure sensor 1213 can be set on the side frame of the terminal device 1200 and / or the lower layer of the display screen 1205. When the pressure sensor 1213 is set on the side frame of the terminal device 1200, it can detect the user's holding signal of the terminal device 1200, and the processor 1201 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1213. When the pressure sensor 1213 is set on the lower layer of the display screen 1205, the processor 1201 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 1205. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0210] The optical sensor 1215 is used to collect the ambient light intensity. In one embodiment, the processor 1201 can control the display brightness of the display screen 1205 according to the ambient light intensity collected by the optical sensor 1215. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1205 is increased; when the ambient light intensity is low, the display brightness of the display screen 1205 is reduced. In another embodiment, the processor 1201 can also dynamically adjust the shooting parameters of the camera assembly 1206 according to the ambient light intensity collected by the optical sensor 1215.
[0211] The proximity sensor 1216, also called a distance sensor, is usually arranged on the front panel of the terminal device 1200. The proximity sensor 1216 is used to collect the distance between the user and the front of the terminal device 1200. In one embodiment, when the proximity sensor 1216 detects that the distance between the user and the front of the terminal device 1200 is gradually decreasing, the processor 1201 controls the display screen 1205 to switch from the screen-on state to the screen-off state; when the proximity sensor 1216 detects that the distance between the user and the front of the terminal device 1200 is gradually increasing, the processor 1201 controls the display screen 1205 to switch from the screen-off state to the screen-on state.
[0212] Those skilled in the art will understand that Fig.12 The structure shown in the figure does not constitute a limitation on the terminal device 1200, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0213] Fig.13The schematic diagram of the structure of the server provided in the embodiment of the present application, the server 1300 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1301 and one or more memories 1302, wherein the one or more memories 1302 store at least one program code, and the at least one program code is loaded and executed by the one or more processors 1301 to implement the virtual object interaction method provided by the above-mentioned various method embodiments. Of course, the server 1300 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the server 1300 may also include other components for implementing device functions, which will not be repeated here.
[0214] In an exemplary embodiment, a computer-readable storage medium is further provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to enable a computer to implement any of the above-mentioned virtual object interaction methods.
[0215] Optionally, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0216] In an exemplary embodiment, a computer program or a computer program product is also provided, wherein at least one computer instruction is stored in the computer program or the computer program product, and the at least one computer instruction is loaded and executed by a processor to enable a computer to implement any of the above-mentioned virtual object interaction methods.
[0217] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the requests and instructions involved in this application are obtained with full authorization.
[0218] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0219] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0220] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A virtual object interaction method, characterized in that: The method comprises: Displaying a virtual scene, wherein a first virtual object, a second virtual object, and a third virtual object are displayed in the virtual scene, wherein the second virtual object interacts with the third virtual object according to a first interactive action in the virtual scene, and a first action identifier is displayed at a first position of the second virtual object, wherein the first action identifier is an action identifier of the first interactive action; In response to a first operation identified by the first action, the first virtual object is controlled to interact with the third virtual object according to the first interaction action.
2. The method according to claim 1, characterized in that In response to the first operation for the first action identifier, controlling the first virtual object to interact with the third virtual object according to the first interaction action includes: In response to a first operation for the first action identifier, determining an interaction state of the first virtual object; Based on the interaction state of the first virtual object satisfying the state requirement, obtaining first action data of the first virtual object performing the first interaction action; According to the first action data, the first virtual object is controlled to interact with the third virtual object according to the first interaction action.
3. The method according to claim 2, characterized in that The acquiring, based on the interaction state of the first virtual object satisfying a state requirement, first action data of the first virtual object executing the first interaction action includes: Based on the interaction state of the first virtual object satisfying the state requirement, obtaining first position information of the first virtual object, third position information of the third virtual object, and a direction vector of the first virtual object; determining a rotation angle of the first virtual object according to the first position information, the third position information, and a direction vector of the first virtual object; Controlling the first virtual object to rotate according to the rotation angle so that the first virtual object faces the third virtual object after rotation; generating a first data acquisition request, wherein the first data acquisition request includes an object identifier of the first virtual object and the first action identifier; Sending the first data acquisition request to the server; The first action data is received, which is returned by the server based on the first data acquisition request.
4. The method according to claim 3, characterized in that The determining the rotation angle of the first virtual object according to the first position information, the third position information, and the orientation vector of the first virtual object includes: Determine a reference vector that points from the position indicated by the first position information to the position indicated by the third position information; A rotation angle of the first virtual object is determined according to the orientation vector of the first virtual object and the reference vector.
5. The method according to claim 2, characterized in that: The determining, in response to the first operation for the first action identifier, an interaction state of the first virtual object includes: In response to a first operation for the first action identifier, generating a first state acquisition request, wherein the first state acquisition request includes an object identifier of the first virtual object; Sending the first status acquisition request to the server; Receive the interaction state of the first virtual object returned by the server based on the first state acquisition request.
6. The method according to any one of claims 2 to 5, characterized in that: The method further comprises: In response to a first operation for the first action identifier, and if the interaction state of the first virtual object does not meet a state requirement, a prompt message is displayed, where the prompt message is used to indicate that the first virtual object cannot perform the first interaction action.
7. The method according to any one of claims 1 to 5, characterized in that: An object identifier of the third virtual object is also displayed at the first position of the second virtual object, and the object identifier of the third virtual object is used to indicate an interactive object with which the second virtual object performs the first interactive action.
8. The method according to any one of claims 1 to 5, characterized in that: After controlling the first virtual object to interact with the third virtual object according to the first interaction action in response to the first operation for the first action identifier, the method further includes: The first action identifier is displayed at a second position of the first virtual object, where the first action identifier is used to indicate that the first virtual object is performing the first interactive action.
9. The method according to claim 8, characterized in that An object identifier of the third virtual object is also displayed at the second position of the first virtual object, and the object identifier of the third virtual object is used to indicate an interactive object with which the first virtual object performs the first interactive action.
10. The method according to any one of claims 1 to 5, characterized in that: After controlling the first virtual object to interact with the third virtual object according to the first interaction action in response to the first operation for the first action identifier, the method further includes: An interaction state change request is sent to a server, wherein the interaction state change request includes the first action identifier and the object identifier of the first virtual object, and the interaction state change request is used to instruct the server to change the interaction state of the first virtual object to a first interaction action corresponding to the first action identifier.
11. The method according to any one of claims 1 to 5, characterized in that: A fourth virtual object is also displayed in the virtual scene; After displaying the virtual scene, the method further includes: In response to a trigger operation on the fourth virtual object, displaying an interactive control; In response to a trigger operation on the interactive control, at least one candidate action identifier is displayed, and any candidate action identifier corresponds to an interactive action; In response to a triggering operation on a second action identifier among the at least one candidate action identifier, the first virtual object is controlled to interact with the fourth virtual object according to a second interaction action corresponding to the second action identifier.
12. The method according to claim 11, characterized in that In response to the triggering operation on the second action identifier among the at least one candidate action identifier, controlling the first virtual object to interact with the fourth virtual object according to the second interaction action corresponding to the second action identifier includes: In response to a triggering operation on a second action identifier among the at least one candidate action identifier, determining an interaction state of the first virtual object; Based on the interaction state of the first virtual object satisfying the state requirement, obtaining second action data of the first virtual object performing the second interaction action; According to the second action data, the first virtual object is controlled to interact with the fourth virtual object according to the second interaction action.
13. The method according to any one of claims 1 to 5, characterized in that: After controlling the first virtual object to interact with the third virtual object according to the first interaction action in response to the first operation for the first action identifier, the method further includes: Based on the second virtual object stopping executing the first interactive action, the first virtual object is controlled to stop executing the first interactive action after a first time period.
14. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Displaying a stop control in the virtual scene, wherein the stop control is used to instruct the first virtual object to stop performing the first interactive action; In response to a trigger operation on the stop control, the first virtual object is controlled to stop performing the first interaction action.
15. The method according to any one of claims 1 to 5, characterized in that: After displaying the virtual scene, the method further includes: In response to a second operation on the first action identifier, displaying at least one candidate action identifier, each candidate action identifier corresponds to an interactive action, and the second operation on the first action identifier is different from the first operation on the first action identifier; In response to a triggering operation on a third action identifier among the at least one candidate action identifier, the first virtual object is controlled to interact with the third virtual object according to a third interaction action corresponding to the third action identifier.
16. A virtual object interaction device, characterized in that: The device comprises: A display module, configured to display a virtual scene, wherein a first virtual object, a second virtual object, and a third virtual object are displayed in the virtual scene, wherein the second virtual object interacts with the third virtual object according to a first interactive action in the virtual scene, and a first action identifier is displayed at a first position of the second virtual object, wherein the first action identifier is an action identifier of the first interactive action; The control module is configured to control the first virtual object to interact with the third virtual object according to the first interaction action in response to a first operation on the first action identifier.
17. A computer device, characterized in that: The computer device includes a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor, so that the computer device implements the virtual object interaction method according to any one of claims 1 to 15.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program code, and the at least one program code is loaded and executed by a processor so that a computer implements the virtual object interaction method according to any one of claims 1 to 15.
19. A computer program product, characterized in that The computer program product stores at least one computer instruction, and the at least one computer instruction is loaded and executed by a processor so that a computer implements the virtual object interaction method according to any one of claims 1 to 15.