Virtual object switching method and apparatus, computer device, and storage medium

CN116999818BActive Publication Date: 2026-09-04TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210561635.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-23
Publication Date
2026-09-04
Estimated Expiration
2042-05-23

AI Technical Summary

Technical Problem

[0003]然而,目前的虚拟对象切换方式,针对所陈列的虚拟对象,都会消耗资源做一些适合于陈列虚拟对象的设计,这些适合于陈列虚拟对象的设计在实际使用中仅起到标识不同虚拟对象的作用,会导致资源利用率低

Benefits of technology

[0030] The aforementioned virtual object switching method, apparatus, computer device, storage medium, and computer program product can present the perspective of the currently selected virtual object when different virtual objects are selected. When switching virtual objects, at least two virtual objects in a conversation can be displayed from the perspective of the selected virtual object, thereby presenting richer content through the conversation content. After switching to the virtual object in a conversation, the ongoing intermediate conversation content will continue to be output. After the intermediate conversation content ends, the current conversation will be directly ended through the conversation end content. At this time, the integrity of the conversation content and the timely response of the selection operation can be taken into account, avoiding affecting the subsequent actions after the virtual object is selected. The interaction between virtual objects is fully utilized, and the resource utilization rate is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116999818B_ABST
    Figure CN116999818B_ABST
Patent Text Reader

Abstract

The application relates to a virtual object switching method and device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: when a first target virtual object in a selected state exists, displaying at least two virtual objects in conversation outside the first target virtual object in the perspective of the first target virtual object; in response to a selection operation on a second target virtual object in the at least two virtual objects in conversation, switching to the perspective of the second target virtual object in the case that any virtual object in the at least two virtual objects in conversation is outputting intermediate conversation content; in the perspective of the second target virtual object, the virtual object outputting the intermediate conversation content continues to output the intermediate conversation content until the intermediate conversation content ends; after the intermediate conversation content ends, at least one of the at least two virtual objects jumps to conversation end content for ending conversation and outputs. The method can improve resource utilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a virtual object switching method, apparatus, computer equipment, storage medium, and computer program product. Background Technology

[0002] Currently, virtual object switching methods exist in virtual object interaction applications. These methods mainly involve displaying multiple virtual objects for users to choose from, and the virtual object switching is completed after the user selects a virtual object.

[0003] However, current virtual object switching methods consume resources to design elements suitable for displaying virtual objects. In actual use, these designs only serve to identify different virtual objects, resulting in low resource utilization. Summary of the Invention

[0004] Therefore, it is necessary to provide a virtual object switching method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve resource utilization in response to the above-mentioned technical problems.

[0005] Firstly, this application provides a method for switching virtual objects. The method includes:

[0006] When there is a first target virtual object that is selected, at least two virtual objects other than the first target virtual object that are having a session are displayed from the perspective of the first target virtual object.

[0007] In response to a selection operation on the second target virtual object among at least two virtual objects in a session, if either of the at least two virtual objects in a session is outputting intermediate session content, switch to the perspective of the second target virtual object;

[0008] From the perspective of the second target virtual object, the virtual object that outputs the intermediate session content continues to output the intermediate session content until the intermediate session content ends.

[0009] After the intermediate session content ends, at least one of the at least two virtual objects jumps to the session end content used to terminate the session for output.

[0010] Secondly, this application also provides a virtual object switching device. The device includes:

[0011] The display module is used to display at least two virtual objects that are in a session, other than the first target virtual object, from the perspective of the first target virtual object when there is a first target virtual object that is selected.

[0012] The switching module is used to switch to the perspective of the second target virtual object in response to the selection operation of the second target virtual object among the at least two virtual objects in a session, when either of the at least two virtual objects in a session is outputting intermediate session content.

[0013] The Session module is used to allow the virtual object that outputs intermediate session content to continue outputting intermediate session content from the perspective of the second target virtual object until the intermediate session content ends.

[0014] The processing module is used to jump to the session end content for output when at least one of the at least two virtual objects ends after the intermediate session content has ended.

[0015] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0016] When there is a first target virtual object that is selected, at least two virtual objects other than the first target virtual object that are having a session are displayed from the perspective of the first target virtual object.

[0017] In response to a selection operation on the second target virtual object among at least two virtual objects in a session, if either of the at least two virtual objects in a session is outputting intermediate session content, switch to the perspective of the second target virtual object;

[0018] From the perspective of the second target virtual object, the virtual object that outputs the intermediate session content continues to output the intermediate session content until the intermediate session content ends.

[0019] After the intermediate session content ends, at least one of the at least two virtual objects jumps to the session end content used to terminate the session for output.

[0020] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0021] When there is a first target virtual object that is selected, at least two virtual objects other than the first target virtual object that are having a session are displayed from the perspective of the first target virtual object.

[0022] In response to a selection operation on the second target virtual object among at least two virtual objects in a session, if either of the at least two virtual objects in a session is outputting intermediate session content, switch to the perspective of the second target virtual object;

[0023] From the perspective of the second target virtual object, the virtual object that outputs the intermediate session content continues to output the intermediate session content until the intermediate session content ends.

[0024] After the intermediate session content ends, at least one of the at least two virtual objects jumps to the session end content used to terminate the session for output.

[0025] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0026] When there is a first target virtual object that is selected, at least two virtual objects other than the first target virtual object that are having a session are displayed from the perspective of the first target virtual object.

[0027] In response to a selection operation on the second target virtual object among at least two virtual objects in a session, if either of the at least two virtual objects in a session is outputting intermediate session content, switch to the perspective of the second target virtual object;

[0028] From the perspective of the second target virtual object, the virtual object that outputs the intermediate session content continues to output the intermediate session content until the intermediate session content ends.

[0029] After the intermediate session content ends, at least one of the at least two virtual objects jumps to the session end content used to terminate the session for output.

[0030] The aforementioned virtual object switching method, apparatus, computer device, storage medium, and computer program product can present the perspective of the currently selected virtual object when different virtual objects are selected. When switching virtual objects, at least two virtual objects in a conversation can be displayed from the perspective of the selected virtual object, thereby presenting richer content through the conversation content. After switching to the virtual object in a conversation, the ongoing intermediate conversation content will continue to be output. After the intermediate conversation content ends, the current conversation will be directly ended through the conversation end content. At this time, the integrity of the conversation content and the timely response of the selection operation can be taken into account, avoiding affecting the subsequent actions after the virtual object is selected. The interaction between virtual objects is fully utilized, and the resource utilization rate is improved. Attached Figure Description

[0031] Figure 1 This is an application environment diagram of a virtual object switching method in one embodiment;

[0032] Figure 2 This is a flowchart illustrating a virtual object switching method in one embodiment;

[0033] Figure 3 This is a schematic diagram showing at least two virtual objects, other than the first target virtual object, engaging in a session, in one embodiment.

[0034] Figure 4 A schematic diagram illustrating a session between at least two virtual objects in one embodiment;

[0035] Figure 5 This is a schematic diagram showing a second target virtual object and a virtual object having a face-to-face conversation with the second target virtual object in one embodiment;

[0036] Figure 6 This is a schematic diagram showing at least two virtual objects other than the first target object in one embodiment;

[0037] Figure 7 This is a schematic diagram illustrating how the distance between two virtual objects gradually decreases in one embodiment.

[0038] Figure 8 This is a schematic diagram illustrating that the distance between two virtual objects is less than a first distance in one embodiment;

[0039] Figure 9 This is a schematic diagram illustrating at least two virtual objects locked to a session state for a session in one embodiment;

[0040] Figure 10 This is a schematic diagram illustrating that, in one embodiment, the distance between a first target virtual object and at least one of at least two virtual objects is less than a third distance.

[0041] Figure 11 This is a schematic diagram illustrating that the distance between the first target virtual object and at least one of at least two virtual objects is less than a third distance in another embodiment;

[0042] Figure 12 This is a schematic diagram showing at least two optional virtual objects in addition to the first target virtual object in one embodiment;

[0043] Figure 13 This is a schematic diagram of the process of switching from a currently selected virtual object to a first target virtual object in one embodiment;

[0044] Figure 14 This is a schematic diagram of the process of switching from a currently selected virtual object to a first target virtual object in another embodiment;

[0045] Figure 15 This is a process in one embodiment where the terminal queries the server to see if there is session content that meets the conditions for initiating session content;

[0046] Figure 16This is a flowchart illustrating the application of a virtual object switching method in a game application scenario in one embodiment.

[0047] Figure 17 This is a structural block diagram of a virtual switching device in one embodiment;

[0048] Figure 18 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0049] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0050] The virtual object switching method provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, terminal 102 is equipped with a client for switching virtual objects. This client can be a virtual object interaction application, a web client, or a sub-application running in the runtime environment of a parent application. When a first target virtual object 104 is selected, terminal 102 displays at least two virtual objects 106 that are in a session outside of the first target virtual object 104 from the perspective of the first target virtual object 104. In response to the selection operation of the second target virtual object among the at least two virtual objects 106 in a session, if either of the at least two virtual objects in a session is outputting intermediate session content, the view is switched to that of the second target virtual object 108. From the perspective of the second target virtual object 108, the virtual object that is outputting intermediate session content continues to output intermediate session content until the intermediate session content ends. After the intermediate session content ends, at least one of the at least two virtual objects jumps to the session end content for output. The terminal 102 can be, but is not limited to, various desktop computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc.

[0051] In one embodiment, such as Figure 2 As shown, a method for switching virtual objects is provided, which can be applied to... Figure 1 Taking terminal 102 as an example, the explanation includes the following steps:

[0052] Step 202: When there is a first target virtual object that is selected, at least two virtual objects that are having a session outside of the first target virtual object are displayed from the perspective of the first target virtual object.

[0053] Virtual objects refer to operable objects within a virtual scene of a virtual object interaction application. For example, a virtual object can specifically refer to an operable virtual character or animal within a virtual scene. A virtual object interaction application is an application that enables virtual object interaction, where the virtual objects can be manipulated by the user. For example, a virtual object interaction application can be a game application, where the virtual objects can specifically be game characters. A virtual scene refers to a fictional scene within a virtual object interaction application, where different operations can be performed. For example, a virtual scene can be a virtual object selection scene, displaying multiple selectable virtual objects for the user to choose from. Another example is a virtual object interaction scene, where the user interacts with the virtual objects.

[0054] The first target virtual object refers to the virtual object that is currently selected and manipulated by the user. For example, the first target virtual object could specifically refer to a virtual character manipulated by the user. At least two virtual objects in a session refer to at least two virtual objects in a session state. For example, at least two virtual objects in a session state could refer to at least two virtual characters in a session state. For instance, at least two virtual objects in a session could specifically refer to at least two unselected virtual objects in a session state. In specific applications, the number of virtual objects in a session can be related to the session content. For example, when the session content can be output through two virtual objects, the number of virtual objects in a session can be two. As another example, when the session content can be output through three virtual objects, the number of virtual objects in a session can be three.

[0055] The session content can be configured according to the actual application scenario. For example, the session content can be related to ongoing interactive activities in a virtual object interaction application. Another example is related to user rankings in a virtual object interaction application. Yet another example is related to completed interactive activities in a virtual object interaction application.

[0056] Specifically, when a first target virtual object is selected, at least two virtual objects other than the first target virtual object that are in a session are displayed from the perspective of the first target virtual object. In practical applications, when a first target virtual object is selected, from the perspective of the currently selected first target virtual object, the terminal will first display at least two virtual objects other than the first target virtual object. If at least two virtual objects are virtual objects that can be in a session, then at least two virtual objects that are in a session are displayed.

[0057] In a specific application, the terminal can determine a first target virtual object in a selected state by responding to the user's selection operation. From the perspective of the first target virtual object, the terminal displays the first target virtual object and at least two other virtual objects that are in a conversation with it. Specifically, the perspective of the first target virtual object can be the perspective from behind it. When displaying the first target virtual object and the at least two other virtual objects in a conversation, the orientation of the first target virtual object can correspond to the positions of the at least two virtual objects in a conversation, and the at least two virtual objects in a conversation can be face-to-face.

[0058] For example, such as Figure 3 As shown, the perspective of the first target virtual object is the perspective behind the first target virtual object. From the perspective of the first target virtual object, the first target virtual object is located on the left side of the screen and faces at least two virtual objects that are having a conversation on the right side. The orientation between the at least two virtual objects having a conversation is face to face.

[0059] Step 204: In response to the selection operation of the second target virtual object among the at least two virtual objects in the session, if either of the at least two virtual objects in the session is outputting intermediate session content, switch to the perspective of the second target virtual object.

[0060] In this context, the second target virtual object refers to the selected virtual object among at least two virtual objects in a conversation. Intermediate conversation content refers to the portion of conversation content currently being output by the at least two virtual objects in a conversation; this content includes multiple portions. For example, intermediate conversation content can be a sentence being output by either of the at least two virtual objects. Another example is a paragraph being output by either of the at least two virtual objects, containing at least two sentences. In practical applications, multiple portions of conversation content are output by the at least two virtual objects in a conversation according to the order in which the portions appear in the conversation content and the outputter that matches the portion of conversation content. The outputter that matches the portion of conversation content refers to the one among the at least two virtual objects that outputs that portion of conversation content.

[0061] For example, based on the conversation content, the at least two virtual objects involved in the conversation can be divided into a conversation initiator and a conversation responder. Multiple parts of the conversation content are output by the conversation initiator and the conversation responder, with some parts being output by the initiator and others by the responder. To further illustrate, suppose there are two virtual objects in the conversation (including conversation initiator A and conversation responder B), and the conversation content includes four parts (including part A1, part B1, part A2, and part B2), each part being a single sentence. The conversation process can be as follows: Figure 4 As shown, the four parts of the conversation content can be output by the conversation initiator A and the conversation responder B through two rounds of conversation. The conversation initiator A first outputs part of the conversation content A1, and then the conversation responder B responds by outputting part of the conversation content B1, completing one round of conversation. Then the conversation initiator A outputs part of the conversation content A2, and the conversation responder B responds by outputting part of the conversation content B2, completing the second round of conversation.

[0062] Specifically, in response to the selection operation of the second target virtual object among at least two virtual objects in a session, and while either of the at least two virtual objects in the session is outputting intermediate session content, the viewpoint is switched to that of the second target virtual object. In a specific application, the terminal, in response to the user's selection operation of either of the at least two virtual objects in a session, determines that the virtual object selected by the user is the second target virtual object and switches to the viewpoint of the second target virtual object.

[0063] In a specific application, when the terminal displays the first target virtual object and at least two other virtual objects in a conversation from the perspective of the first target virtual object, the user can randomly select either of the at least two virtual objects in a conversation as the virtual object they wish to control, i.e., the second target virtual object. In response to the selection of the second target virtual object from the at least two virtual objects in a conversation, while either of the at least two virtual objects is currently outputting intermediate conversation content, the terminal switches to the perspective of the second target virtual object. From the perspective of the second target virtual object, the second target virtual object and the virtual objects in a conversation with it are displayed. For example, the perspective of the second target virtual object can be the perspective behind it. If there are two virtual objects in a conversation, after switching to the perspective of the second target virtual object, from its perspective, as shown below... Figure 5 As shown, the second target virtual object and the virtual object that will have a face-to-face conversation with the second target virtual object will be displayed.

[0064] In a specific application, when a user selects either of the two virtual objects in the conversation as the virtual object they want to control, the selection operation can be one of the following triggered operations: a click operation, a long press operation, a double-click operation, etc., triggered by the user on the second target virtual object.

[0065] Step 206: From the perspective of the second target virtual object, the virtual object that outputs the intermediate session content continues to output the intermediate session content until the intermediate session content ends.

[0066] In this context, "end of intermediate session content" means that the virtual object that outputs the intermediate session content has completed its output. For example, when the intermediate session content is a sentence being output, "end of intermediate session content" means that the virtual object that outputs the intermediate session content has completed outputting that sentence. Similarly, when the intermediate session content is a paragraph being output, "end of intermediate session content" means that the virtual object that outputs the intermediate session content has completed outputting that paragraph.

[0067] Specifically, from the perspective of the second target virtual object, the virtual object that outputs the intermediate session content continues to output the intermediate session content until the intermediate session ends. In practical applications, from the perspective of the second target virtual object, both the second target virtual object and the virtual object interacting with it will be displayed. At this point, the virtual object that outputs the intermediate session content will continue to output the intermediate session content until the intermediate session ends. The virtual object outputting the intermediate session content may be the selected second target virtual object or a virtual object interacting with the second target virtual object.

[0068] Step 208: After the intermediate session content ends, at least one of the at least two virtual objects jumps to the session end content used to end the session for output.

[0069] In this context, "session end content" refers to the content used to end the current session. For example, session end content can specifically refer to the farewell message output by at least one of at least two virtual objects to the other virtual objects in the session. For instance, session end content could be something like, "Sorry, I have something to do, let's talk later."

[0070] Specifically, after the intermediate session content ends, at least one of the at least two virtual objects jumps to the session end content used to terminate the session for output. In practical applications, after the intermediate session content ends, at least one of the at least two virtual objects will jump to the session end content used to terminate the session for output, in order to say goodbye to the other virtual objects that were having the session. The virtual object that outputs the session end content can be the second target virtual object, or it can be a virtual object that had a session with the second target virtual object.

[0071] The aforementioned virtual object switching method can present the perspective of the currently selected virtual object when different virtual objects are selected. When switching virtual objects, at least two virtual objects in the conversation can be displayed in the perspective of the selected virtual object, thus presenting richer content through the conversation content. After switching to the virtual object in the conversation, the ongoing intermediate conversation content will continue to be output. After the intermediate conversation content ends, the current conversation will be directly ended by the conversation end content. At this time, the integrity of the conversation content and the timely response of the selection operation can be taken into account, avoiding affecting the subsequent actions after the virtual object is selected. The interaction between virtual objects is fully utilized, and the resource utilization rate is improved.

[0072] In one embodiment, from the perspective of the first target virtual object, at least two virtual objects that are conducting a session outside of the first target virtual object are displayed, including:

[0073] From the perspective of the currently selected first target virtual object, display at least two virtual objects other than the first target virtual object;

[0074] If at least two virtual objects meet the session triggering conditions, at least two virtual objects are locked into the session state to conduct a session.

[0075] Here, "at least two virtual objects other than the first target virtual object" refers to virtual objects that are in an unselected state. The session trigger condition refers to the condition that triggers a session between at least two virtual objects. The session trigger condition can be configured according to the actual application scenario.

[0076] Specifically, from the perspective of the currently selected first target virtual object, at least two virtual objects other than the first target virtual object are displayed. If at least two virtual objects meet the session triggering conditions, they are locked into a session state for conversation. In practical applications, from the perspective of the currently selected first target virtual object, at least two virtual objects other than the first target virtual object will be displayed. These at least two virtual objects can be located anywhere on the display screen. When these at least two virtual objects are displayed, the terminal will determine whether there are at least two virtual objects that meet the session triggering conditions. If at least two virtual objects meet the session triggering conditions, they will be locked into a session state for conversation.

[0077] For example, the viewpoint of the first target virtual object can be the viewpoint behind the first target virtual object, and the positions of at least two virtual objects other than the first target virtual object (assuming that two virtual objects are observed from the viewpoint of the first target virtual object) can be as follows: Figure 6 As shown, one virtual object is located to the upper left of the first target virtual object, and another virtual object is located to the upper right of the first target virtual object.

[0078] In this embodiment, by locking at least two virtual objects into a session state to conduct a session when at least two virtual objects meet the session triggering conditions, the session triggering conditions can be used to determine which virtual objects can conduct a session, thereby increasing the probability of session triggering. This allows for the presentation of richer content through the session content, making full use of the interaction between virtual objects and improving resource utilization.

[0079] In one embodiment, at least one of the at least two virtual objects displayed is in a moving state; when the distance between at least two virtual objects meets a preset distance condition, at least two virtual objects satisfy the session triggering condition.

[0080] The preset distance condition refers to the conditions that at least two virtual objects must meet to be able to have a conversation. The preset distance condition can be configured according to the actual application scenario.

[0081] Specifically, when at least one of the displayed at least two virtual objects is in a moving state, and the distance between the at least two virtual objects meets a preset distance condition, the at least two virtual objects satisfy the session triggering condition. In a specific application, when at least one of the displayed at least two virtual objects is in a moving state, during the movement of the at least one virtual object, the terminal will determine whether the distance between the at least two virtual objects meets the preset distance condition. If the distance between the at least two virtual objects meets the preset distance condition, it is determined that the at least two virtual objects satisfy the session triggering condition, and the at least two virtual objects that satisfy the session triggering condition are locked into a session state for session initiation.

[0082] In a specific application, having at least one of at least two displayed virtual objects in a moving state can include the following situations: First, only a portion of the displayed virtual objects are in a moving state. For example, when there are two displayed virtual objects, one of them can be in a moving state. Another example is when there are three displayed virtual objects, two of them can be in a moving state. Second, both of the displayed virtual objects are in a moving state.

[0083] The virtual object in a moving state can move according to its direction and degree of movement. Specifically, the direction of movement of a virtual object relative to a first target virtual object can be any combination of one or more directions: up / down, left / right, and forward / backward. The degree of movement of a virtual object can include at least one of the following: distance traveled, magnitude of movement in the direction of movement, and speed. A greater degree of movement results in a longer distance traveled, a greater magnitude of movement in the direction of movement, and a greater speed of movement. The degree of movement of a virtual object in a moving state can be configured according to the actual application scenario.

[0084] For example, if the viewpoint of the first target virtual object can be the viewpoint behind the first target virtual object, then the positions of at least two virtual objects other than the first target virtual object (assuming that two virtual objects are observed from the viewpoint of the first target virtual object) can be as follows: Figure 6 As shown, when at least one of the displayed at least two virtual objects is in a moving state (assuming both virtual objects are in a moving state), such as Figure 7As shown, the distance between two virtual objects will gradually decrease. When the distance between the two virtual objects meets the preset distance condition, the two virtual objects meet the session trigger condition and lock into the session state to start a session.

[0085] In this embodiment, at least one of the at least two virtual objects is in a moving state. When the distance between the at least two virtual objects meets the preset distance condition, the at least two virtual objects meet the session triggering condition. The movement of the virtual objects can increase the probability of session triggering, so as to present richer content through the session content, making full use of the interaction between virtual objects and improving resource utilization.

[0086] In one embodiment, when the distance between at least two virtual objects is less than a first distance and there are no visual obstacles between at least two virtual objects, the distance between at least two virtual objects meets a preset distance condition.

[0087] The first distance can be configured according to the actual application scenario. No visual obstruction means that there are no obstructions between the lines connecting the eyes of at least two virtual objects. Specifically, no visual obstruction can mean that there are no virtual obstacles obstructing the lines connecting the eyes of at least two virtual objects. Virtual obstacles refer to environmental objects in a virtual scene that may cause visual obstruction. For example, virtual environmental objects can specifically refer to walls, forests, trees, doors, and other environmental objects placed in a virtual scene.

[0088] Specifically, when the distance between at least two virtual objects is less than a first distance and there are no visual obstacles between them, the distance between the at least two virtual objects meets the preset distance condition. In a specific application, when at least one of the at least two virtual objects is in motion, during the movement of the at least one object, the terminal compares the distance between the at least two virtual objects with the first distance. If the distance between the at least two virtual objects is less than the first distance and there are no visual obstacles between them, it is determined that the distance between the at least two virtual objects meets the preset distance condition.

[0089] For example, when comparing the distance between at least two virtual objects and a first distance, for each of the at least two virtual objects, the terminal determines a first monitoring range for each virtual object, using its position as the center and the first distance as the radius. If any one of the at least two virtual objects falls within the first monitoring range of another virtual object, it is determined that the distance between the two virtual objects is less than the first distance. The case where the distance between two virtual objects is less than the first distance can be illustrated as follows: Figure 8As shown, the two virtual objects include virtual object 1 and virtual object 2. Virtual object 2 falls within the first monitoring range of virtual object 1. The first monitoring range of virtual object 1 is obtained with the position of virtual object 1 as the center and the first distance as the radius.

[0090] In this embodiment, the distance between at least two virtual objects is judged by the distance between them, the first distance, and whether there is a visual obstacle between them. This can avoid the situation where visual obstacles affect the session effect, identify at least two virtual objects that meet the session triggering conditions, present richer content through the session content, make full use of the interaction between virtual objects, and improve resource utilization.

[0091] In one embodiment, when the distance between at least two virtual objects is less than a second distance, the distance between at least two virtual objects meets a preset distance condition, and the second distance is used for at least two virtual objects to perform physical actions for conversation.

[0092] The second distance can be configured according to the actual application scenario. Body language used in conversation refers to the body language performed by the virtual object based on the part of the conversation content being output. For example, when the part of the conversation content being output is greeting the virtual object, the specific body language used in the conversation could be the greeting action performed by the virtual object. For example, the greeting action could be a nod. Another example is a wave. Similarly, when the part of the conversation content being output is saying goodbye to the virtual object, the specific body language used in the conversation could be the farewell action performed by the virtual object. For example, the farewell action could be a wave.

[0093] Specifically, when the distance between at least two virtual objects is less than a second distance, the distance between the at least two virtual objects meets a preset distance condition. The second distance is used for the at least two virtual objects to perform physical actions during a conversation. In a specific application, when at least one of the at least two virtual objects is in a moving state, during the movement of at least one object, the terminal compares the distance between the at least two virtual objects with the second distance. If the distance between the at least two virtual objects is less than the second distance, it is determined that the distance between the at least two virtual objects meets the preset distance condition. Furthermore, when the distance between the at least two virtual objects is less than the second distance, the terminal further determines whether there is a visual obstacle between the at least two virtual objects. If there is no visual obstacle between the at least two virtual objects, it is determined that the distance between the at least two virtual objects meets the preset distance condition.

[0094] For example, when comparing the distance between at least two virtual objects and the second distance, for each of the at least two virtual objects, the terminal will use the position of each virtual object as the center and the second distance as the radius to determine the first monitoring range of each virtual object. When any one of the at least two virtual objects falls into the first monitoring range of the other virtual objects, it is determined that the distance between the two virtual objects is less than the second distance.

[0095] In this embodiment, by using the distance between at least two virtual objects and a second distance to determine whether the distance between at least two virtual objects meets the preset distance conditions, at least two virtual objects that meet the session triggering conditions can be identified. Thus, during a session, physical actions can be performed to enrich the content of the session, thereby making full use of the interaction between virtual objects and improving resource utilization.

[0096] In one embodiment, if at least two virtual objects meet the session triggering condition, at least two virtual objects lock into the session state to conduct a session, including:

[0097] When at least two virtual objects meet the session triggering conditions, the virtual object in the moving state among the at least two virtual objects stops moving, the at least two virtual objects each adjust their orientation to the direction used for the session between virtual objects, and the at least two virtual objects start the session.

[0098] Specifically, when at least two virtual objects meet the session triggering conditions, the virtual object in the moving state will stop moving, and each of the at least two virtual objects will adjust its orientation to the direction used for the session between virtual objects, thus initiating a session between the at least two virtual objects. In practical applications, when the terminal determines that at least two virtual objects meet the session triggering conditions, it will first stop the moving virtual object, then adjust the orientation of each of the at least two virtual objects to the direction used for the session between virtual objects, and finally initiate a session between the at least two virtual objects.

[0099] For example, if only one of at least two virtual objects is in a moving state, and during its movement, if it is determined that the moving virtual object and all other virtual objects (excluding the moving virtual object) meet the session triggering condition, the moving virtual object will stop moving, and both will adjust their orientation to the direction used for the virtual object session, thus initiating the session. As another example, if both at least two virtual objects are in a moving state, and the session triggering condition is met, both virtual objects will stop moving, adjust their orientation to the direction used for the virtual object session, and thus initiating the session.

[0100] In this embodiment, by stopping the movement of at least two virtual objects when at least two virtual objects meet the session triggering conditions, at least two virtual objects can be locked into a session state. By adjusting the orientation of each of the at least two virtual objects to the direction used for the session between virtual objects, the session can be started. The session content can be presented with richer content, making full use of the interaction between virtual objects and improving resource utilization.

[0101] In one embodiment, if at least two virtual objects meet the session triggering condition, at least two virtual objects lock into the session state to conduct a session, including:

[0102] When at least two virtual objects meet the session triggering conditions, and the distance between the first target virtual object and any of the at least two virtual objects does not meet the preset distance condition, at least two virtual objects are locked to the session state.

[0103] In response to a movement operation targeting a first target virtual object, the distance between the first target virtual object and at least one of at least two virtual objects is reduced;

[0104] When the distance between the first target virtual object and any of the at least two virtual objects meets a preset distance condition, the at least two virtual objects begin a session.

[0105] Specifically, when at least two virtual objects meet the session triggering conditions, and the distance between the first target virtual object and any one of the at least two virtual objects does not meet the preset distance condition, the at least two virtual objects will be locked into the session state. The terminal responds to the movement operation of the first target virtual object, thereby reducing the distance between the first target virtual object and at least one of the at least two virtual objects. During the movement of the first target virtual object, it is determined whether the distance between the first target virtual object and any one of the at least two virtual objects meets the preset distance condition. When the distance between the first target virtual object and any one of the at least two virtual objects meets the preset distance condition, the at least two virtual objects start a session.

[0106] Specifically, the movement operation can be at least one or a combination of one or more of the following triggered operations: click, long press, double-click, swipe, etc., triggered by the user at any position from the perspective of the first target virtual object. In a specific application, when at least two virtual objects are locked to the session state, the terminal responds to the user's movement operation on the first target virtual object by changing the position of the first target virtual object, thereby reducing the distance between the first target virtual object and at least one of the at least two virtual objects.

[0107] For example, the perspective of the first target virtual object can be the perspective behind the first target virtual object, such as... Figure 9 As shown, it is assumed here that at least two virtual objects are two virtual objects. When at least two virtual objects meet the session triggering condition, and the distance between the first target virtual object and any one of the at least two virtual objects does not meet the preset distance condition, at least two virtual objects are locked into the session state. The virtual object in the moving state among the at least two virtual objects stops moving. The terminal responds to the movement operation for the first target virtual object, so that the distance between the first target virtual object and at least one of the at least two virtual objects is reduced. During the movement, it is determined whether the distance between the first target virtual object and any one of the at least two virtual objects meets the preset distance condition. When the distance between the first target virtual object and any one of the at least two virtual objects meets the preset distance condition, at least two virtual objects start a session.

[0108] In this embodiment, by locking at least two virtual objects into a session state, in response to a movement operation on the first target virtual object, the distance between the first target virtual object and at least one of the at least two virtual objects can be reduced. This allows at least two virtual objects to start a session when the distance between the first target virtual object and any one of the at least two virtual objects meets a preset distance condition. This enables richer content to be presented through the session content, fully utilizing the interaction between virtual objects and improving resource utilization.

[0109] In one embodiment, when the distance between the first target virtual object and at least one of the at least two virtual objects is less than a third distance, and there is no visual obstruction between the first target virtual object and at least one of the virtual objects whose distance is less than the third distance, the distance between the first target virtual object and any one of the at least two virtual objects meets the preset distance condition.

[0110] The third distance can be configured according to the actual application scenario.

[0111] Specifically, when the distance between the first target virtual object and at least one of the at least two virtual objects is less than a third distance, and there is no visual obstruction between the first target virtual object and at least one of the at least two virtual objects, the distance between the first target virtual object and either of the at least two virtual objects meets the preset distance condition. In specific applications, the terminal responds to a movement operation on the first target virtual object, causing the distance between the first target virtual object and at least one of the at least two virtual objects to decrease. During the movement of the first target virtual object, the terminal compares the third distance with the distance between the first target virtual object and the at least two virtual objects. When the distance between the first target virtual object and at least one of the at least two virtual objects is less than the third distance, and there is no visual obstruction between the first target virtual object and at least one of the at least two virtual objects, it is determined that the distance between the first target virtual object and either of the at least two virtual objects meets the preset distance condition.

[0112] For example, when comparing the third distance and the distance between the first target virtual object and at least two virtual objects, for each of the at least two virtual objects, the terminal will use the position of each virtual object as the center and the third distance as the radius to determine the second monitoring range of each virtual object. When the first target virtual object falls into the second monitoring range of at least one of the at least two virtual objects, it is determined that the distance between the first target virtual object and any one of the at least two virtual objects meets the preset distance condition.

[0113] To further illustrate, the case where the distance between the first target virtual object and at least one of at least two virtual objects is less than the third distance can be illustrated as follows: Figure 10 As shown, assuming at least two virtual objects are virtual object 1 and virtual object 2, the first target virtual object falls within the second monitoring range of virtual object 1. The second monitoring range of virtual object 1 is obtained by taking the position of virtual object 1 as the center and the third distance as the radius. To further illustrate, the case where the distance between the first target virtual object and at least one of the at least two virtual objects is less than the third distance can be illustrated as follows: Figure 11 As shown, the first target virtual object falls within the first monitoring range of virtual object 2, and the second monitoring range of virtual object 2 is obtained with the position of virtual object 2 as the center and the third distance as the radius.

[0114] In this embodiment, the distance between the first target virtual object and any one of the at least two virtual objects is judged by the distance between the first target virtual object and at least one of the at least two virtual objects, the third distance, and whether there is a visual obstacle between the first target virtual object and at least one virtual object whose distance is less than the third distance. This can avoid the situation where visual obstacles affect the viewing effect of the conversation, so that richer content can be presented through the conversation content, the interaction between virtual objects can be fully utilized, and the resource utilization rate can be improved.

[0115] In one embodiment, the virtual object switching method further includes:

[0116] After at least one of the at least two virtual objects has finished outputting the session end content, at least one of the at least two virtual objects enters the move state, causing at least two virtual objects to leave the session state.

[0117] Specifically, after at least one of the at least two virtual objects has finished outputting the session end content, it indicates that the session between the at least two virtual objects has ended, and at least one of the at least two virtual objects enters the move state, causing the at least two virtual objects to leave the session state.

[0118] In a specific application, at least one of at least two virtual objects entering the movement state can include the following situations: First, only some of the two virtual objects enter the movement state. For example, when there are two virtual objects, one of them can enter the movement state. Another example is when there are three virtual objects, two of them can enter the movement state. Second, both of the at least two virtual objects enter the movement state.

[0119] In this embodiment, after at least one of the at least two virtual objects has finished outputting the end-of-session content, at least one of the at least two virtual objects enters a moving state, so that at least two virtual objects leave the session state and can respond to the selection operation in a timely manner, avoiding affecting subsequent actions after the selected virtual object.

[0120] In one embodiment, the virtual object switching method further includes:

[0121] In response to a first scene trigger event used to trigger a virtual object selection scene, the virtual object selection scene is entered; the virtual object selection scene is used to display multiple selectable virtual objects.

[0122] If a first target virtual object is currently selected in the virtual object selection scene, the scene view of the virtual object selection scene from the perspective of the first target virtual object will be displayed.

[0123] The virtual object selection scenario refers to a scenario where virtual objects are selected. It displays multiple selectable virtual objects, and selecting an object within the scenario allows switching between them. For example, a virtual object selection scenario could be a game lobby scene in a game application. The first scenario trigger event is the event that triggers the virtual object selection scenario. For example, the first scenario trigger event could be a scenario switching operation triggered by the user in response to the virtual object selection scenario. Specifically, a scenario switching operation triggered by the user in response to a virtual object selection scenario could be one of the following: a click, a long press, or a double-click operation on the selection control displayed corresponding to the virtual object selection scenario. Another example is a quick switch operation triggered by the user in response to a virtual object selection scenario, allowing quick access to the virtual object selection scenario from other scenarios. Furthermore, a quick switch operation could allow quick access to the virtual object selection scenario from a virtual object interaction scenario.

[0124] Specifically, in response to a first scene trigger event used to initiate a virtual object selection scene, the terminal enters a virtual object selection scene displaying multiple selectable virtual objects. If a first target virtual object is currently selected within the virtual object selection scene, the scene view of the virtual object selection scene is displayed from the perspective of the first target virtual object. For example, the perspective of the first target virtual object could be the perspective behind it, and the displayed scene view could be as follows: Figure 12 As shown, from the perspective of the first target virtual object, at least two selectable virtual objects other than the first target virtual object will be displayed (it is assumed here that three selectable virtual objects can be observed from the perspective of the first target virtual object).

[0125] In this embodiment, the virtual object selection scene can be entered by responding to the first scene trigger event. In this way, if there is a first target virtual object that is currently selected in the virtual object selection scene, the scene screen of the virtual object selection scene from the perspective of the first target virtual object can be displayed, thereby realizing scene switching.

[0126] In one embodiment, the virtual object switching method further includes:

[0127] After switching to the perspective of the second target virtual object, stop responding to the movement operation of the second target virtual object, and respond to the perspective movement operation of the second target virtual object within the preset perspective range;

[0128] After the session ends and the content is output, enable the response to movement operations and view movement operations of the second target virtual object.

[0129] The preset viewing angle range can be set according to the actual application scenario. Viewpoint movement refers to the operation of changing the viewing angle of the second target virtual object. For example, a viewpoint movement operation could specifically mean moving the viewpoint of the second target virtual object to the left. Or, for example, a viewpoint movement operation could specifically mean moving the viewpoint of the second target virtual object to the right.

[0130] Specifically, after switching to the perspective of the second target virtual object, the terminal stops responding to movement operations on the second target virtual object and responds to perspective movement operations on the second target virtual object within a preset perspective range. This ensures that after switching to the second target virtual object in the conversation, the movement of the second target virtual object will not affect the conversation of at least two virtual objects in the conversation before the conversation end content is output. This allows the ongoing intermediate conversation content to continue to be output. After the intermediate conversation content is processed, when the current conversation is ended by the conversation end content, the response to movement operations and perspective movement operations on the second target virtual object is only enabled after the conversation end content is output. This balances the integrity of the conversation content and the timely response to the selection operation, avoiding affecting subsequent actions after the virtual object is selected. The interaction between virtual objects is fully utilized, improving resource utilization.

[0131] In one embodiment, the virtual object switching method further includes:

[0132] From the perspective of the currently selected virtual object, display the first target virtual object that is in a moving state outside the current virtual object;

[0133] In response to the selection operation of the first target virtual object, the movement of the first target virtual object is stopped and the view of the first target virtual object is switched. When the first target virtual object is in a session state, the response to the movement operation of the first target virtual object is restricted.

[0134] After the session on the first target virtual object ends, resume the response to the movement operation on the first target virtual object.

[0135] Specifically, from the perspective of the currently selected virtual object, the terminal will display a first target virtual object that is in a moving state outside the current virtual object. In response to the selection operation of the first target virtual object, the first target virtual object will stop moving, and the viewpoint of the first target virtual object will be switched. The terminal will query the server for the current state of the first target virtual object. If the current state indicates that the first target virtual object is in a session state, the response to the movement operation of the first target virtual object will be restricted. After the session of the first target virtual object ends, the response to the movement operation of the first target virtual object will be restored.

[0136] In a specific application, the terminal queries the server for the current state of the first target virtual object in order to determine whether the first target virtual object is in a session, and responds differently depending on whether the first target virtual object is in a session. If the current state indicates that the first target virtual object is in a session state, the terminal will restrict the response to the movement operation of the first target virtual object until the session of the first target virtual object ends, and then resume the response to the movement operation of the first target virtual object.

[0137] In a specific application, the terminal's restriction on responding to movement operations on the first target virtual object can be achieved by stopping the response to movement operations on the first target virtual object and responding to viewpoint movement operations on the first target virtual object within a preset viewpoint range. Here, the movement operation can specifically be a positional movement operation. Further, after switching to the viewpoint of the first target virtual object, the virtual object currently outputting session content will continue to output a portion of the session content from that viewpoint until the portion ends. After the portion of the session content ends, at least one of the first target virtual object and the virtual object interacting with it will jump to output session termination content. Here, the virtual object currently outputting session content can be either the first target virtual object or a virtual object interacting with it.

[0138] For example, the process of switching from the currently selected virtual object to the first target virtual object can be as follows: Figure 13 As shown. From the perspective of the currently selected virtual object, the terminal displays a first target virtual object that is in a moving state outside the currently selected virtual object. In response to the selection operation of the first target virtual object, the terminal queries the server for the current state of the first target virtual object to request a determination of whether the first target virtual object is in a session. The server informs the terminal of the current state of the first target virtual object. If the current state indicates that the first target virtual object is in a session state, the terminal restricts the response to the movement operation of the first target virtual object. After the session of the first target virtual object ends, the response to the movement operation of the first target virtual object is restored.

[0139] In this embodiment, by responding to the selection operation of the first target virtual object, the movement of the first target virtual object is stopped and the perspective of the first target virtual object is switched. When different virtual objects are selected, the perspective of the currently selected virtual object can be presented. By restricting the response to the movement operation of the first target virtual object when the first target virtual object is in a session state, and restoring the response to the movement operation of the first target virtual object after the session ends, the integrity of the session content and the timely response of the selection operation can be taken into account, avoiding affecting the subsequent actions after the virtual object is selected. The interaction between virtual objects is fully utilized, and the resource utilization rate is improved.

[0140] In one embodiment, the virtual object switching method further includes:

[0141] After at least one of the at least two virtual objects has finished outputting the session end content, when the session content satisfies the preset closure condition, and there are at least two virtual objects conducting the session from the perspective of any virtual object, the session content that satisfies the preset closure condition will no longer appear.

[0142] The preset closure condition refers to the condition under which the session content will no longer appear, and it can be configured according to the actual application scenario. For example, a preset closure condition could specifically mean that the number of times the session content has been output has reached an output count threshold, which can be configured according to the actual application scenario. For example, the output count threshold can be 1, meaning that after the session content has been output once, the session content will no longer appear. It should be noted that a session's session content can correspond to multiple preset closure conditions. In this case, if one preset closure condition is met, the session content will no longer appear.

[0143] In a specific application, after at least one of the at least two virtual objects has finished outputting the session end content, the terminal will record the number of times the session content is output for this session. Based on the number of times the session content is output, it will determine whether the session content meets the preset closure condition. When the session content meets the preset closure condition, if there are at least two virtual objects conducting a session from the perspective of any virtual object, the session content that meets the preset closure condition will no longer appear.

[0144] Specifically, the preset closure condition can be that the number of times the session content is output has reached the output count threshold. When determining whether the session content meets the preset closure condition based on the number of times the session content is output, the terminal will compare the number of times the session content is output with the output count threshold. When the number of times the session content is output reaches the output count threshold, it is determined that the session content meets the preset closure condition.

[0145] In a specific application, the preset closure condition can be that the session content is only output within a preset time period. If the current time node is not within the preset time period after at least one of the at least two virtual objects has finished outputting the session end content, then the session content is determined to meet the preset closure condition.

[0146] The preset time period can be configured according to the actual application scenario. For example, the preset time period can be a specific time of day, such as 8:00 AM to 12:00 PM or 8:00 PM to 12:00 AM. Another example is a holiday period, such as weekends, the Spring Festival holiday, or the National Day holiday.

[0147] In this embodiment, when the session content satisfies a preset closure condition, and there are at least two virtual objects conducting a session from the perspective of any virtual object, the session content that satisfies the preset closure condition will no longer appear, thus saving resources.

[0148] In one embodiment, the virtual object switching method further includes:

[0149] The second target virtual object is used to join the virtual object interaction scene. After switching to the perspective of the second target virtual object, it responds to the second scene triggering event used to trigger the virtual object interaction scene, enters the virtual object interaction scene, and displays the scene screen of the virtual object interaction scene from the perspective of the second target virtual object.

[0150] The virtual object interaction scenario refers to the scenario in which virtual objects interact. For example, a virtual object interaction scenario could specifically be a game instance scenario in a game application. The second scenario triggering event refers to the event that triggers the virtual object interaction scenario. For example, a second scenario triggering event could specifically be a scenario switching operation triggered by the user in response to the virtual object interaction scenario. For instance, a scenario switching operation triggered by the user in response to a virtual object interaction scenario could be one of the following: a click, a long press, or a double-click operation by the user on the selection control displayed corresponding to the virtual object interaction scenario. As another example, a scenario switching operation triggered by the user in response to a virtual object interaction scenario could be a quick switching operation by the user on the corresponding virtual object interaction scenario, allowing quick access to the virtual object interaction scenario from other scenarios.

[0151] Specifically, the second target virtual object is used to join the virtual object interaction scene. After switching to the perspective of the second target virtual object, the terminal responds to the second scene triggering event used to trigger the virtual object interaction scene, enters the virtual object interaction scene, and displays the scene screen of the virtual object interaction scene from the perspective of the second target virtual object.

[0152] In this embodiment, by responding to a second scene triggering event used to trigger a virtual object interaction scene, entering the virtual object interaction scene, and displaying the scene screen of the virtual object interaction scene from the perspective of the second target virtual object, it is possible to switch the virtual scene and present the scene screen from the perspective of the currently selected virtual object.

[0153] In one embodiment, the virtual object switching method further includes:

[0154] From the perspective of the currently selected virtual object, display the first target virtual object that is in a moving state outside the current virtual object;

[0155] In response to the selection operation of the first target virtual object, the movement of the first target virtual object is stopped and the view of the first target virtual object is switched. If the first target virtual object is in an inactive state, the response to the movement operation of the first target virtual object is enabled.

[0156] Specifically, from the perspective of the currently selected virtual object, the terminal will display the first target virtual object that is in a moving state outside the current virtual object. In response to the selection operation of the first target virtual object, the first target virtual object will stop moving and the view of the first target virtual object will be switched. The terminal will query the server for the current state of the first target virtual object. If the current state indicates that the first target virtual object is in a non-session state, the terminal will enable the response to the movement operation of the first target virtual object.

[0157] In a specific application, the terminal queries the server for the current state of the first target virtual object to determine whether the first target virtual object is in a session. Different responses are given depending on whether the first target virtual object is in a session. If the current state indicates that the first target virtual object is in a non-session state, the terminal will initiate a response for a movement operation on the first target virtual object. This movement operation can specifically be a location movement operation.

[0158] For example, the process of switching from the currently selected virtual object to the first target virtual object can be as follows: Figure 14 As shown. From the perspective of the currently selected virtual object, the terminal displays a first target virtual object that is in a moving state outside the currently selected virtual object. In response to the selection operation of the first target virtual object, the terminal queries the server for the current state of the first target virtual object to request a determination of whether the first target virtual object is in a session. The server informs the terminal of the current state of the first target virtual object. If the current state indicates that the first target virtual object is in a non-session state, the terminal initiates a response to the movement operation of the first target virtual object.

[0159] In this embodiment, by responding to the selection operation of the first target virtual object, the movement of the first target virtual object is stopped and the perspective of the first target virtual object is switched. When different virtual objects are selected, the perspective of the currently selected virtual object can be presented. By enabling the response to the movement operation of the first target virtual object when the first target virtual object is in an uninterrupted state, the timely response to the selection operation can be achieved, avoiding affecting subsequent actions after the virtual object is selected.

[0160] In one embodiment, the session content has the highest priority among the set of session content that meets the session content initiation conditions. The session content initiation conditions are related to historical events that occur within a preset time period and are associated with the interaction scenario of the virtual object.

[0161] The session content initiation condition refers to the conditions for starting a session; only session content that meets the initiation condition can be initiated. The session content initiation condition can be configured according to the actual application scenario and is related to historical events associated with virtual object interaction scenarios that occurred within a preset time period. The preset time period can be configured according to the actual application scenario. For example, the preset time period could be within the past week. Another example is the past month. Historical events associated with virtual object interaction scenarios refer to events that have occurred in connection with virtual object interaction scenarios. For instance, historical events associated with virtual object interaction scenarios can specifically refer to events that occurred within the virtual object interaction scenario. For example, the session content initiation condition could be that the user controlling the selected virtual object has completed a preset number of virtual object interactions within the virtual object interaction scenario. The preset number of interactions can be configured according to the actual application scenario.

[0162] Furthermore, the conditions for initiating session content can also be related to the current time. For example, the specific condition for initiating session content can be that the current time falls within a pre-set session content initiation time period. The pre-set session content initiation time period can be configured according to the actual application scenario. For example, the session content initiation time period can be a specific time of day, such as 8:00 AM to 12:00 PM or 8:00 PM to 12:00 AM. Another example is that the session content initiation time period can be a holiday period, such as weekends, Spring Festival holidays, or National Day holidays.

[0163] It's important to note that different session content may have different priorities, and these priorities can be configured based on the specific application scenario. For example, the priority of session content can be set based on its relevance to the user controlling the selected virtual object. For instance, session content related to the user's behavior in the virtual object interaction application has a higher priority than session content that needs to be broadcast to all users within the application.

[0164] Specifically, when a first target virtual object is selected, the terminal sends a judgment request to the server to query whether there are any session content that meets the session content initiation conditions, i.e., which session content can be initiated, based on historical events associated with interactions with the virtual object that occurred within a preset time period. If only one session content meets the initiation conditions, the server directly returns the identifier of that session content, allowing the terminal to determine which session content can be initiated based on the identifier. If more than one session content meets the initiation conditions, the server returns the identifier of the session content with the highest priority among the set of session content that meets the initiation conditions, allowing the terminal to determine which session content can be initiated based on the identifier of the highest priority session content.

[0165] In a specific application, when the server returns the identifier of the highest-priority session content among the set of session content that meets the session content start conditions, if multiple session content pieces meet the highest priority in the set, the server will randomly select one of the session content identifiers to return. When querying whether there is session content that meets the session content start conditions, if a session's session content has multiple start conditions, and these start conditions are related by AND, the session content will not be started if any one of the start conditions is not met.

[0166] For example, the process of a terminal querying the server to see if there is session content that meets the conditions for initiating session content can be as follows: Figure 15As shown. When a first target virtual object is selected, the terminal sends a judgment request to the server to determine whether there are session content initiation conditions that meet the requirements for initiating a session. If no session content meets the initiation conditions, the server informs the terminal that no session content needs to be initiated. If session content meets the initiation conditions, the server informs the terminal that the currently selected virtual object is the first target virtual object, and the session content with the highest priority among the set of session content that meets the initiation conditions, so that the terminal can initiate the session content. Furthermore, initiating the session content includes determining whether at least two virtual objects other than the first target virtual object in the selected state meet the session triggering conditions. If at least two virtual objects meet the session triggering conditions, at least two virtual objects are locked into the session state to conduct the session.

[0167] The system queries historical events associated with virtual object interactions occurring within a preset time period to determine if any session content meets the session content initiation criteria, i.e., which session content can be initiated. If only one session content meets the criteria, the server directly returns its identifier, allowing the terminal to determine which session content can be initiated. If more than one session content meets the criteria, the server returns the identifier of the highest-priority session content among those meeting the criteria, allowing the terminal to determine which session content can be initiated.

[0168] In this embodiment, by starting the session content when the session content initiation conditions exist, the probability of session triggering is increased, so that richer content can be presented through the session content, making full use of the interaction between virtual objects and improving resource utilization.

[0169] This application also provides a game application scenario that utilizes the aforementioned virtual object switching method. The virtual object is a virtual task within the game application, specifically a hero. The virtual object selection scenario is a game lobby scenario, and the virtual object interaction scenario is a game instance scenario. Specifically, as... Figure 16 As shown, the application of this virtual object switching method in this application scenario is as follows:

[0170] When a first hero is selected, at least two other heroes are displayed from the first hero's perspective. When there is session content that meets the session content initiation conditions, at least one of the displayed at least two heroes is in a moving state. When the distance between the at least two heroes meets a preset distance condition, the at least two heroes meet the session trigger condition. When the at least two heroes meet the session trigger condition, and the distance between the first hero and any of the at least two heroes does not meet the preset distance condition, the at least two heroes are locked into a session state. In response to a movement operation on the first hero, the distance between the first hero and at least one of the at least two heroes is reduced. When the distance between the first hero and any of the at least two heroes meets the preset distance condition, the at least two heroes begin a session.

[0171] The first hero in the selected state can be a hero that was already selected before entering the game lobby scene. When the first hero is a hero that was already selected before entering the game lobby scene, the game lobby scene will be entered in response to the first scene trigger event used to trigger the game lobby scene. The game lobby scene is used to display multiple selectable virtual objects. At this time, the first hero currently in the selected state exists in the game lobby scene. When the first hero currently in the selected state exists in the game lobby scene, the scene screen of the game lobby scene from the perspective of the first hero is displayed.

[0172] In this scenario, the first hero selected can be one chosen after entering the game lobby. When the first hero is selected after entering the lobby, from the perspective of the currently selected hero, the first hero in a moving state will be displayed alongside the currently selected hero. In response to the selection of the first hero, the first hero's movement will be stopped, and the system will switch to the first hero's perspective, querying the server for the first hero's current state. If the first hero is in a session state, movement control responses will be restricted. Once the first hero's session ends, movement control responses will be restored. If the first hero is not in a session state, movement control responses will be enabled.

[0173] Specifically, a preset distance condition is considered met when at least two heroes are less than a first distance and there are no visual obstacles between them. Similarly, a preset distance condition is also considered met when at least two heroes are less than a second distance, where the second distance is used for physical actions during conversations. A preset distance condition is also met when the distance between the first hero and at least one of the at least two heroes is less than a third distance, and there are no visual obstacles between the first hero and at least one virtual object less than the third distance. Locking at least two heroes into a conversation state means that heroes in a moving state stop moving, and each hero adjusts their orientation to the direction used for hero conversations.

[0174] When multiple session content pieces meet the session content initiation conditions, the session content with the highest priority among the set of session content pieces that meet the initiation conditions will be output first. The session content initiation conditions are related to historical events that occurred within a preset time period and are associated with the game instance scene.

[0175] When at least two heroes have started a conversation, from the perspective of the first hero, at least two heroes other than the first hero who are having a conversation are displayed. In response to the selection of the second hero among the at least two heroes having a conversation, if either of the at least two heroes is outputting intermediate conversation content, the perspective is switched to the second hero. From the perspective of the second hero, the hero outputting the intermediate conversation content continues to output the intermediate conversation content until the intermediate conversation content ends. After the intermediate conversation content ends, at least one of the at least two heroes jumps to the conversation content used to end the conversation to output. After at least one of the at least two heroes has finished outputting the conversation end content data, at least one of the at least two heroes enters a movement state, causing the at least two heroes to leave the conversation state.

[0176] Specifically, after switching to the second hero's perspective, the system stops responding to the second hero's movement actions and only responds to the second hero's perspective movement actions within a preset perspective range. After the conversation's end content is output, the system resumes responding to the second hero's movement and perspective movement actions. The second hero is used to join the game instance scene. After switching to the second hero's perspective, in response to the second scene trigger event used to trigger the game instance scene, the player can enter the game instance scene and display the scene screen of the game instance scene from the second hero's perspective. After at least one of the at least two heroes has output the conversation's end content, if the conversation content meets the preset closure condition, and if there are at least two heroes conducting the conversation from any hero's perspective, the conversation content that meets the preset closure condition will no longer appear.

[0177] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0178] Based on the same inventive concept, this application also provides a virtual object switching device for implementing the virtual object switching method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more virtual object switching device embodiments provided below can be found in the limitations of the virtual object switching method described above, and will not be repeated here.

[0179] In one embodiment, such as Figure 17 As shown, a virtual object switching device is provided, including: a display module 1702, a switching module 1704, a session module 1706, and a processing module 1708, wherein:

[0180] Display module 1702 is used to display at least two virtual objects that are in a session outside of the first target virtual object from the perspective of the first target virtual object when there is a first target virtual object that is selected.

[0181] The switching module 1704 is used to switch to the perspective of the second target virtual object in response to a selection operation of the second target virtual object among at least two virtual objects in a session, when either of the at least two virtual objects in a session is outputting intermediate session content.

[0182] The session module 1706 is used to allow the virtual object that outputs intermediate session content to continue outputting intermediate session content from the perspective of the second target virtual object until the intermediate session content ends.

[0183] Processing module 1708 is used to, after the intermediate session content ends, jump to at least one of at least two virtual objects to output the session end content used to end the session.

[0184] The aforementioned virtual object switching device can present the perspective of the currently selected virtual object when different virtual objects are selected. When switching virtual objects, at least two virtual objects in conversation can be displayed from the perspective of the selected virtual object, thus presenting richer content through the conversation content. After switching to the virtual object in conversation, the ongoing intermediate conversation content will continue to be output. After the intermediate conversation content ends, the current conversation will be directly ended through the conversation end content. At this time, the integrity of the conversation content and the timely response of the selection operation can be taken into account, avoiding affecting the subsequent actions after the virtual object is selected. The interaction between virtual objects is fully utilized, and the resource utilization rate is improved.

[0185] In one embodiment, the display module is further configured to display at least two virtual objects other than the first target virtual object from the perspective of the first target virtual object currently in the selected state, and to lock the at least two virtual objects into the session state for session if the at least two virtual objects meet the session triggering conditions.

[0186] In one embodiment, at least one of the at least two virtual objects displayed by the display module is in a moving state, and at least two virtual objects satisfy the session triggering condition when the distance between them meets a preset distance condition.

[0187] In one embodiment, when the distance between at least two virtual objects is less than a first distance and there are no visual obstacles between at least two virtual objects, the distance between at least two virtual objects meets a preset distance condition.

[0188] In one embodiment, when the distance between at least two virtual objects is less than a second distance, the distance between at least two virtual objects meets a preset distance condition, and the second distance is used for at least two virtual objects to perform physical actions for conversation during a conversation.

[0189] In one embodiment, the display module is further configured to, when at least two virtual objects meet the session triggering condition, cause the virtual object in the moving state to stop moving, and the at least two virtual objects to adjust their orientation to the direction used for the session between the virtual objects, and the at least two virtual objects to start the session.

[0190] In one embodiment, the display module is further configured to lock at least two virtual objects into a session state when at least two virtual objects meet the session triggering condition and the distance between the first target virtual object and any one of the at least two virtual objects does not meet the preset distance condition, and in response to a movement operation on the first target virtual object, reduce the distance between the first target virtual object and at least one of the at least two virtual objects, and when the distance between the first target virtual object and any one of the at least two virtual objects meets the preset distance condition, the at least two virtual objects start a session.

[0191] In one embodiment, when the distance between the first target virtual object and at least one of the at least two virtual objects is less than a third distance, and there is no visual obstruction between the first target virtual object and at least one of the virtual objects whose distance is less than the third distance, the distance between the first target virtual object and any one of the at least two virtual objects meets the preset distance condition.

[0192] In one embodiment, the virtual object switching device further includes a session state release module. The session state release module is used to allow at least one of the at least two virtual objects to enter a moving state after at least one of the at least two virtual objects has finished outputting the session end content, so that at least two virtual objects are removed from the session state.

[0193] In one embodiment, the virtual object switching device further includes a scene triggering module, which is used to enter the virtual object selection scene in response to a first scene triggering event for triggering the virtual object selection scene. The virtual object selection scene is used to display multiple selectable virtual objects. When there is a first target virtual object that is currently selected in the virtual object selection scene, the scene screen of the virtual object selection scene is displayed from the perspective of the first target virtual object.

[0194] In one embodiment, the session module is further configured to stop responding to the movement operation of the second target virtual object after switching to the perspective of the second target virtual object, and respond to the perspective movement operation of the second target virtual object within a preset perspective range, and enable the response to the movement operation and perspective movement operation of the second target virtual object after the session end content is output.

[0195] In one embodiment, the virtual object switching device further includes a response module, which is used to display a first target virtual object that is in a moving state outside the current virtual object from the perspective of the virtual object currently in the selected state, stop the movement of the first target virtual object in response to the selection operation of the first target virtual object, and switch to the perspective of the first target virtual object, restrict the response to the movement operation of the first target virtual object when the first target virtual object is in a session state, and restore the response to the movement operation of the first target virtual object after the session of the first target virtual object ends.

[0196] In one embodiment, after at least one of the at least two virtual objects has finished outputting the session end content, when the session content satisfies the preset closure condition, and there are at least two virtual objects conducting the session from the perspective of any virtual object, the session content that satisfies the preset closure condition will no longer appear.

[0197] In one embodiment, the second target virtual object is used to join the virtual object interaction scene. The scene triggering module is also used to enter the virtual object interaction scene in response to the second scene triggering event used to trigger the virtual object interaction scene after switching to the perspective of the second target virtual object, and to display the scene screen of the virtual object interaction scene in the perspective of the second target virtual object.

[0198] In one embodiment, the response module is further configured to display a first target virtual object that is in a moving state outside the currently selected virtual object from the perspective of the virtual object currently in a selected state, stop the first target virtual object from moving in response to the selection operation of the first target virtual object, switch to the perspective of the first target virtual object, and enable the response to the movement operation of the first target virtual object when the first target virtual object is in an uninterrupted state.

[0199] In one embodiment, the session content has the highest priority among the set of session content that meets the session content initiation conditions. The session content initiation conditions are related to historical events that occur within a preset time period and are associated with the interaction scenario of the virtual object.

[0200] Each module in the aforementioned virtual object switching device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0201] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 18As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a virtual object switching method. The display unit of the computer device is used to form a visually visible image. It can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0202] Those skilled in the art will understand that Figure 18 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0203] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0204] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0205] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, causing the computer device to perform the steps in the above method embodiments.

[0206] It should be noted that the data involved in this application (including but not limited to data used for analysis, data stored, data displayed, etc.) are all data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0207] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0208] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0209] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for switching virtual objects, characterized in that, The method includes: When there is a first target virtual object that is selected, at least two virtual objects other than the first target virtual object that are having a session are displayed from the perspective of the first target virtual object. In response to the selection operation of the second target virtual object among the at least two virtual objects in the conversation, if either of the at least two virtual objects in the conversation is outputting intermediate conversation content, the viewpoint of the second target virtual object is switched. From the perspective of the second target virtual object, the virtual object that outputs the intermediate session content continues to output the intermediate session content until the intermediate session content ends; After the intermediate session content ends, at least one of the at least two virtual objects jumps to the session end content for output.

2. The method according to claim 1, characterized in that, The provision that, from the perspective of the first target virtual object, at least two virtual objects outside the first target virtual object are displayed for the session includes: From the perspective of the first target virtual object that is currently selected, display at least two virtual objects other than the first target virtual object; If at least two virtual objects meet the session triggering conditions, the at least two virtual objects are locked into the session state to conduct a session.

3. The method according to claim 2, characterized in that, At least one of the at least two virtual objects displayed is in a moving state; when the distance between the at least two virtual objects meets a preset distance condition, the at least two virtual objects satisfy the session triggering condition.

4. The method according to claim 3, characterized in that, When the distance between the at least two virtual objects is less than a first distance and there are no visual obstacles between the at least two virtual objects, the distance between the at least two virtual objects meets the preset distance condition.

5. The method according to claim 3, characterized in that, When the distance between the at least two virtual objects is less than the second distance, the distance between the at least two virtual objects meets the preset distance condition; the second distance is used for the at least two virtual objects to perform physical actions for conversation when they are having a conversation.

6. The method according to any one of claims 2 to 5, characterized in that, When at least two virtual objects meet the session triggering conditions, the at least two virtual objects lock into the session state to conduct the session, including: When at least two virtual objects meet the session triggering conditions, the virtual object in the moving state among the at least two virtual objects stops moving, the at least two virtual objects each adjust their orientation to the direction used for the session between virtual objects, and the at least two virtual objects start the session.

7. The method according to claim 2, characterized in that, When at least two virtual objects meet the session triggering conditions, the at least two virtual objects lock into the session state to conduct the session, including: When at least two virtual objects meet the session triggering conditions, and the distance between the first target virtual object and any one of the at least two virtual objects does not meet the preset distance condition, the at least two virtual objects are locked to the session state; In response to a movement operation targeting the first target virtual object, the distance between the first target virtual object and at least one of the at least two virtual objects is reduced; When the distance between the first target virtual object and any one of the at least two virtual objects meets a preset distance condition, the at least two virtual objects begin a session.

8. The method according to claim 7, characterized in that, When the distance between the first target virtual object and at least one of the at least two virtual objects is less than a third distance, and there is no visual obstacle between the first target virtual object and at least one virtual object whose distance is less than the third distance, the distance between the first target virtual object and any one of the at least two virtual objects meets the preset distance condition.

9. The method according to any one of claims 3 to 8, characterized in that, The method further includes: After at least one of the at least two virtual objects has finished outputting the session end content, at least one of the at least two virtual objects enters a moving state, causing the at least two virtual objects to leave the session state.

10. The method according to any one of claims 1 to 9, characterized in that, The method further includes: In response to a first scene trigger event for triggering a virtual object selection scene, the virtual object selection scene is entered; the virtual object selection scene is used to display a plurality of selectable virtual objects. If a first target virtual object is currently selected in the virtual object selection scene, the scene view of the virtual object selection scene from the perspective of the first target virtual object is displayed.

11. The method according to any one of claims 1 to 9, characterized in that, The method further includes: After switching to the perspective of the second target virtual object, stop responding to the movement operation of the second target virtual object, and respond to the perspective movement operation of the second target virtual object within the preset perspective range; After the session ends and the content is output, the response to the movement operation and the view movement operation of the second target virtual object is enabled.

12. The method according to any one of claims 1 to 9, characterized in that, The method further includes: From the perspective of the currently selected virtual object, display the first target virtual object that is in a moving state outside the current virtual object; In response to the selection operation of the first target virtual object, the movement of the first target virtual object is stopped and the view of the first target virtual object is switched. When the first target virtual object is in a session state, the response to the movement operation of the first target virtual object is restricted. After the session for the first target virtual object ends, the response to the movement operation of the first target virtual object is restored.

13. The method according to any one of claims 1 to 9, characterized in that, The method further includes: After at least one of the at least two virtual objects has finished outputting the session end content, when the session content satisfies the preset closure condition, and there are at least two virtual objects conducting a session from the perspective of any virtual object, the session content that satisfies the preset closure condition will no longer appear.

14. The method according to any one of claims 1 to 9, characterized in that, The method further includes: The second target virtual object is used to join the virtual object interaction scene. After switching to the perspective of the second target virtual object, in response to the second scene triggering event used to trigger the virtual object interaction scene, the virtual object interaction scene is entered and the scene screen of the virtual object interaction scene is displayed in the perspective of the second target virtual object.

15. The method according to any one of claims 1 to 9, characterized in that, The method further includes: From the perspective of the currently selected virtual object, display the first target virtual object that is in a moving state outside the current virtual object; In response to the selection operation of the first target virtual object, the movement of the first target virtual object is stopped and the view of the first target virtual object is switched. If the first target virtual object is in an uninterrupted state, the response to the movement operation of the first target virtual object is enabled.

16. The method according to any one of claims 1 to 9, characterized in that, The session content has the highest priority among the set of session content that meets the session content initiation conditions; the session content initiation conditions are related to historical events that occurred within a preset time period and are associated with the interaction scenario of the virtual object.

17. A virtual object switching device, characterized in that, The device includes: The display module is used to display at least two virtual objects that are in a session, other than the first target virtual object, from the perspective of the first target virtual object when there is a first target virtual object that is selected. A switching module is configured to, in response to a selection operation of a second target virtual object among the at least two virtual objects in a session, switch to the perspective of the second target virtual object when either of the at least two virtual objects in a session is outputting intermediate session content. The session module is used to allow the virtual object that outputs the intermediate session content to continue outputting the intermediate session content from the perspective of the second target virtual object until the intermediate session content ends. The processing module is configured to, after the intermediate session content ends, jump to at least one of the at least two virtual objects to output session end content for ending the session.

18. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 16.

19. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 16.

20. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 16.

Citation Information

Patent Citations

  • Virtual object processing method and device and medium

    CN114155849A

  • Task guiding method and device in virtual scene, equipment, medium and program product

    CN114247141A