Virtual object interaction method and device, equipment and storage medium
By responding to the target state of the virtual object and executing the target actions, combined with the animation configured by the user, the multi-action combination of virtual objects is realized, solving the problem of limited action combinations in traditional solutions, and improving the vividness of the virtual object and user interaction experience.
Patent Information
- Application Number
- CN202411641804.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-03-07
AI Technical Summary
Traditional solutions cannot support virtual objects to execute multiple actions at the same time, and users cannot flexibly configure action combinations, and the number of action combinations is limited.
The first animation is presented by responding to the target state of the virtual object; during the target state, the target virtual action is performed in response to the virtual object, and the second animation is determined; and based on the fusion strategy of the first animation and the second animation, the third animation is presented, wherein the first animation and/or the second animation are determined based on the user's configuration operation.
It realizes that virtual objects can be flexibly configured with multiple action combinations, making the virtual objects more vivid and supports user-defined complex actions.
Smart Images

Figure CN119579740A_ABST
Abstract
Description
Technical Field
[0001] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to a method, apparatus, device, and computer-readable storage medium for interacting with a virtual object. Background Art
[0002] With the rapid development of computer technology, more and more applications and platforms are currently designed to provide users with various services, such as providing virtual space. In order to make users feel immersive, virtual objects can be presented in the virtual space, and users can control virtual objects to perform various actions in the virtual space, such as standing, running, squatting and jumping. However, a vivid virtual object often needs to perform multiple actions at the same time, for example, the virtual object waves its hands while running. In traditional solutions, virtual objects are usually not supported to perform multiple actions at the same time. Even if some solutions support virtual objects to perform multiple actions at the same time, these combined actions are pre-configured by the system and the number is very limited. In view of this, traditional solutions cannot support users to flexibly configure action combinations. Summary of the invention
[0003] In a first aspect of the present disclosure, a method for interacting with a virtual object is provided. The method comprises: in response to a target state of the virtual object being triggered, presenting a first animation of the virtual object; during the target state of the virtual object, in response to the virtual object being triggered to perform a target virtual action, determining a second animation corresponding to the target virtual action; and presenting a third animation of the virtual object based on a fusion strategy of the first animation and the second animation, wherein the first animation and / or the second animation is determined based on a configuration operation of a user.
[0004] In a second aspect of the present disclosure, an interactive device for a virtual object is provided. The device includes: a first animation rendering module, configured to render a first animation of the virtual object in response to a target state of the virtual object being triggered; a second animation determination module, configured to determine a second animation corresponding to the target virtual action in response to the virtual object being triggered to perform a target virtual action during the target state of the virtual object; and a third animation rendering module, configured to render a third animation of the virtual object based on a fusion strategy of the first animation and the second animation, wherein the first animation and / or the second animation is determined based on a configuration operation of a user.
[0005] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the device executes the method of the first aspect.
[0006] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to implement the method of the first aspect.
[0007] It should be understood that the contents described in this content section are not intended to limit the key features or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0009] Figure 1 A schematic diagram showing an example environment in which embodiments according to the present disclosure may be implemented;
[0010] Figure 2A and 2B shows an example interface according to some embodiments of the present disclosure;
[0011] Figure 3 shows an example interface according to some embodiments of the present disclosure;
[0012] Figure 4 A block diagram of an animation composition according to some embodiments of the present disclosure is shown;
[0013] Figure 5A shows a state machine animation block diagram according to some embodiments of the present disclosure;
[0014] Figure 5B A flowchart of an animation fusion process according to some embodiments of the present disclosure is shown;
[0015] Figure 6 shows an animation update block diagram according to some embodiments of the present disclosure;
[0016] Figure 7 A flowchart showing an example interaction process in a virtual scene according to some embodiments of the present disclosure;
[0017] Figure 8 A schematic structural block diagram showing an example interactive device used in a virtual scene according to some embodiments of the present disclosure; and
[0018] Fig. 9 A block diagram of an electronic device capable of implementing various embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0019] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0020] It should be noted that the titles of any sections / subsections provided herein are not restrictive. Various embodiments are described throughout this article, and any type of embodiment may be included under any section / subsection. In addition, the embodiments described in any section / subsection may be combined in any manner with any other embodiments described in the same section / subsection and / or different sections / subsections.
[0021] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may be included below. The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may be included below.
[0022] Herein, unless explicitly stated, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.
[0023] The embodiments of the present disclosure may involve user data, data acquisition and / or use, etc. These aspects are subject to the corresponding laws, regulations and relevant provisions. In the embodiments of the present disclosure, all data collection, acquisition, processing, processing, forwarding, use, etc. are carried out on the premise that the user knows and confirms. Accordingly, when implementing each embodiment of the present disclosure, the type, scope of use, usage scenario, etc. of the data or information that may be involved should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with the relevant laws and regulations. The specific notification and / or authorization method can vary according to the actual situation and application scenario, and the scope of the present disclosure is not limited in this respect.
[0024] The schemes in this specification and the embodiments, if involving the processing of personal information, will be processed on the premise of having a legal basis (for example, obtaining the consent of the subject of personal information, or being necessary for the performance of a contract, etc.), and will only be processed within the scope of regulations or agreements. The user's refusal to process personal information other than the necessary information required for basic functions will not affect the user's use of basic functions. As an optional but non-restrictive implementation method, in response to receiving the user's active request, a method of sending a prompt message to the user may be, for example, a pop-up window, in which the prompt message may be presented in text. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device. It is understandable that the above notification and the process of obtaining user authorization are only illustrative and do not constitute a limitation on the implementation method of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation method of the present disclosure.
[0025] As used herein, the term "model" can learn the association between the corresponding input and output from the training data, so that after the training is completed, the corresponding output can be generated for a given input. The generation of the model can be based on machine learning technology. Deep learning is a machine learning algorithm that processes inputs and provides corresponding outputs by using multi-layer processing units. A neural network model is an example of a model based on deep learning. In this article, "model" may also be referred to as "machine learning model", "learning model", "machine learning network" or "learning network", and these terms are used interchangeably in this article.
[0026] As mentioned above, with the rapid development of computer technology, more and more applications and platforms are currently designed to provide users with various services, such as providing virtual space. In order to make users feel immersive, virtual objects can be presented in the virtual space, and users can control virtual objects to perform various actions in the virtual space, such as walking, running, squatting and jumping. However, a vivid virtual object often needs to perform multiple actions at the same time, for example, the virtual object waves both hands at the same time while running. In traditional solutions, virtual objects are usually not supported to perform multiple actions at the same time. Even if some solutions support virtual objects to perform multiple actions at the same time, these combined actions are pre-configured by the system and the number is very limited. In view of this, traditional solutions cannot support users to flexibly configure action combinations.
[0027] The embodiment of the present disclosure proposes an interactive scheme for virtual objects. The scheme includes: in response to the target state of the virtual object being triggered, presenting a first animation of the virtual object; during the target state of the virtual object, in response to the virtual object being triggered to perform a target virtual action, determining a second animation corresponding to the target virtual action; and presenting a third animation of the virtual object based on a fusion strategy of the first animation and the second animation, wherein the first animation and / or the second animation is determined based on the configuration operation of the user. In this way, the user can flexibly configure a variety of action combinations to make the virtual object more vivid.
[0028] In the context of the present disclosure, the term "animation" may indicate one or more actions performed for a virtual object. For example, in some embodiments, an animation may indicate that a virtual object performs a waving action. In other embodiments, an animation may indicate that a virtual object performs a standing action in a robot mode and a running action in a super power mode. In addition, each animation may be presented separately or as a component of other animations.
[0029] Various example implementations of the solution are described in detail below in conjunction with the accompanying drawings.
[0030] Example Environment
[0031] Figure 1 1 is a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. Figure 1 As shown, the example environment 100 may include an electronic device 110. In the example environment 100, an application 115 is installed in the electronic device 110. A user 140 may interact with the application 115 via the electronic device 110 and / or an attached device of the electronic device 110.
[0032] Application 115 can provide the user 140 with an integration of multiple applications or components. These applications can be used as application modules in application 115. In some embodiments, application 115 can be downloaded and installed as an application on electronic device 110. In some embodiments, application 115 can also be accessed in other ways, such as through a web page.
[0033] Application 115 may be any appropriate type of application capable of providing media content, examples of which may include but are not limited to: social applications, audio / video applications, media item playback applications, broadcast applications, etc. The embodiments of the present disclosure are not limited in this respect.
[0034] exist Figure 1In the environment 100 of FIG. 1 , if the application 115 is active, the electronic device 110 can present an interactive page through the application 115. The interactive page can be a page of any appropriate type, which can support the user 140 to input any appropriate type of data and present media items of any media item type to the user 140. The interactive interface can include various interfaces that can be provided by the application 115, such as a parameter setting interface, a loading interface, a special effect display interface, and the like.
[0035] In some embodiments, the electronic device 110 can communicate with the server 130 to provide services for the application 115. The electronic device 110 can be any type of mobile terminal, fixed terminal or portable terminal, including a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a handheld computer, a portable game terminal, a VR / AR device, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio receiver, an e-book device, a game device, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. In some embodiments, the electronic device 110 can also support any type of interface for the user (such as a "wearable" circuit, etc.).
[0036] The server 130 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and big data and artificial intelligence platforms. The server 130 may include, for example, a computing system / server, such as a mainframe, an edge computing node, a computing device in a cloud environment, etc. The server 130 may provide background services for the application 115 that supports virtual scenes in the electronic device 110.
[0037] A communication connection may be established between the server 130 and the electronic device 110. The communication connection may be established in a wired manner or a wireless manner. The communication connection may include, but is not limited to, a Bluetooth connection, a mobile network connection, a Universal Serial Bus (USB) connection, a Wireless Fidelity (WiFi) connection, etc., and the embodiments of the present disclosure are not limited in this respect. In the embodiments of the present disclosure, the server 130 and the electronic device 110 may implement signaling interaction through the communication connection between the two.
[0038] A machine learning model 120 is deployed in the environment 100. The machine learning model 120 can be deployed on an appropriate electronic device. As an example, the machine learning model 120 can also be deployed on other electronic devices different from the server 130, and the server 130 can, for example, call the machine learning model 120 to perform the corresponding task by way of a service call. In another example, the machine learning model 120 can also be deployed locally on the server 130, for example.
[0039] As will be described in detail below, the electronic device 110 can use the machine learning model 120 to complete the creation of the virtual object. As an example, the electronic device 110 can call the machine learning model 120 through the server 130. As another example, the electronic device 110 can also directly call the machine learning model 120. In short, the present disclosure is not limited in terms of the deployment location and calling method of the machine learning model 120.
[0040] It should be understood that the structure and function of the various elements in the environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure.
[0041] Some example embodiments of the present disclosure will be described below with continued reference to the accompanying drawings.
[0042] Example Interaction
[0043] Figures 2A to 3 200A to 300 according to some embodiments of the present disclosure. The example interfaces 200A to 300 may be, for example, Figure 1 The electronic device 110 shown is provided. It should be understood that Figures 2A to 3 The interactive interface shown is only an example, and various designs may exist in practice. For example, the various graphical elements and / or controls in the interactive interface may have different arrangements and different visual representations, one or more of the elements and / or controls may be omitted or replaced, and one or more other elements and / or controls may also exist. In addition, any appropriate content may be included in the user interface. The scope of the present disclosure is not limited in this respect.
[0044] Further, user 140 can switch and jump the interactive interface by activating the control / entry in each interactive interface or performing a predetermined operation in the interactive interface. It should be understood that the logic of switching and jumping the interactive interface can be set arbitrarily. For example, in an example embodiment, user 140 jumps from the first interactive interface to the second interactive interface by activating a control. In other embodiments, user 140 can jump from the first interactive interface to the third interactive interface by activating another control. The present disclosure is not limited in this respect. It should also be understood that although multiple interactive interfaces are described in a specific embodiment, any interactive interface described in the present disclosure can be independently implemented as a separate embodiment.
[0045] In an embodiment of the present disclosure, the application 115 may present a virtual object in an interactive interface. An example of a virtual object may be a virtual character. The user 140 may control the virtual object to perform various actions in the virtual space provided by the application 115, including moving, running, jumping, waving, shrugging, etc.
[0046] According to the embodiments discussed below in the present disclosure, the user 140 can flexibly configure one or more animations so that during the operation of the application, the virtual object can perform a combination of animations corresponding to multiple actions / postures according to the user's configuration. This flexible configuration allows the virtual character to perform various complex actions according to the user's expectations. In this way, according to the scheme discussed below in the present disclosure, the virtual object will be more vivid.
[0047] It should be understood that although the present disclosure describes some embodiments of the present disclosure by fusing the first animation and the second animation, in fact, the embodiments discussed in the present disclosure can be applied to the fusion of more animations. In other words, the present disclosure is not limited in the number of fused animations.
[0048] In operation, in response to the target state of the virtual object (e.g., running) being triggered, the electronic device 110 presents a first animation of the virtual object. During the target state of the virtual object, in response to the virtual object being triggered to perform a target virtual action (e.g., shrug and spread hands), the electronic device 110 determines a second animation corresponding to the target virtual action. Based on the fusion strategy of the first animation and the second animation, the electronic device 110 presents a third animation of the virtual object (e.g., shrug and spread hands while running), wherein the first animation and / or the second animation are determined based on the user's configuration operation. In this way, the user can freely configure multiple actions that need to be fused.
[0049] Next, the configuration process of the first animation is first described. In some embodiments, the first animation is configured based on the following process: the electronic device 110 presents a configuration window associated with the virtual object, and the configuration window is configured to present multiple groups of candidate animations corresponding to multiple preset states. In response to the selection of the first animation in a group of candidate animations corresponding to the target animation, the electronic device 110 associates the first animation with the target state of the virtual object.
[0050] See also Figure 2A The example interface 200A shown. In the example interface 200A, the electronic device 110 presents a configuration window 205. The configuration window 205 includes a plurality of preset states, for example, preset states 210-1 to 210-4. Further, each preset state corresponds to a set of candidate animations. Figure 2A In a specific embodiment of the present invention, the candidate animations corresponding to the preset state 210 standing are: boy standing, girl standing, superhero standing, superpower standing, etc. The user 140 can set a corresponding animation for each preset state.
[0051] In some embodiments, the user 140 can also preview candidate animations. As shown in the example interface 200A, when the user 140 selects the superpower standing 230, the virtual object 220 in the interactive interface stands in the manner of a superpower. The user 140 can set different animations for different preset states. Figure 2B The example interface 200B is shown. In the example interface 200B, the user 140 can set the super power run 270 for the preset state 250.
[0052] In the traditional solution, it is not supported to configure corresponding animations for different preset states of virtual objects. In the traditional solution, multiple virtual objects can be pre-configured in the application, such as superheroes and ninjas. If the user can only switch the virtual objects to achieve the desired animation effect. In this case, it is impossible to achieve that the virtual character stands in the way of a superhero and runs in the way of a ninja. According to an embodiment of the present disclosure, the user 140 can select different animations for each preset state of the virtual object, so that the virtual character can have different target animations in different preset states.
[0053] Next, the configuration process of the second animation is described. In some embodiments, the electronic device 110 presents a set of virtual actions in an action panel associated with the virtual object. In response to receiving a selection of a target virtual action in a set of virtual actions, the electronic device 110 triggers the virtual object to perform the target virtual action, that is, triggers the virtual object to perform the target virtual action in real time. In some embodiments, the set of virtual actions presented in the action panel includes at least one virtual action selected by the user from a virtual action library.
[0054] See also Figure 3 The example interface 300 shown. In the example interface 300, the electronic device 110 presents an action panel 305. The action panel presents a set of virtual actions, such as shouting, waving, pointing right hand to the sky, etc. If the user 140 selects the virtual action of shrugging and spreading hands 320, the electronic device 320 determines that the shrugging and spreading hands is the second animation. Figure 2B In a specific embodiment of the present invention, the electronic device 110 triggers the virtual object 310 to perform a target virtual action 330 .
[0055] In some embodiments, in response to the virtual object being in the target state, the electronic device 110 disables at least one virtual action in the action panel that does not match the target state. For example, when the target state is running, the virtual action of crossing legs can be prohibited. In some cases, the prohibited virtual action can be in an unselectable state. In other cases, in response to the user selecting a prohibited action, the electronic device presents a prompt message indicating that the selected virtual action cannot be performed.
[0056] As discussed above, the electronic device 110 may present a third animation of the virtual object based on a fusion strategy of the first animation and the second animation. Figure 2A and 2B In an example embodiment of the present invention, the first animation of the virtual object may be a superpower running, and the second animation may be a shrug and hands-out. In this case, the third action may be an action of shrug and hands-out while running.
[0057] According to some embodiments of the present disclosure, the final output animation may be formed in a layered form. Figure 4 The animation composition block diagram 400 according to some embodiments of the present disclosure is shown. In some embodiments, a node may include an animation node and an operation node. The animation node may be an animation output node. Additionally, each animation node may also include a slot for accommodating one or more animation clips, and the animation clip in each slot may be freely replaced when the application is running. The operation node may define the operation logic.
[0058] Further, one or more nodes can constitute an animation subgraph. One or more animation nodes and / or one or more animation subgraphs can constitute a main graph. In this way, animation clips can be combined to form various actions to meet the needs of virtual objects performing diverse actions.
[0059] In some embodiments, the switching between the plurality of preset states is configured based on a state machine associated with the virtual object, and the plurality of preset states correspond to a plurality of state nodes in the state machine. In other words, in some embodiments, the first animation can be controlled by a state machine animation. Figure 5AThe state machine animation block diagram 500A according to some embodiments of the present disclosure is shown. As shown in block diagram 500A, the state machine may include multiple state nodes, each state node may correspond to one or more preset states, and the state machine may indicate the transition relationship between the various state nodes. The animation of the state node standing up may be Figure 2A Corresponding to the settings in , the state node can run with Figure 2B . Furthermore, in response to the first instruction of user 140, the state node standing can be switched to the state node running. By defining a state machine, a virtual object can complete basic operations in a virtual space. In a traditional solution, each virtual object corresponds to a state machine. In order to enable a virtual object to perform multiple actions, the state machine settings in a traditional solution are usually very complicated. According to an embodiment of the present disclosure, the state machine only needs to design a basic state node, so various additional actions can be dynamically superimposed on the state machine animation when the program is running.
[0060] Next, we will refer to Figure 5B An example embodiment of how to fuse a second animation with a first animation is discussed in detail by illustrating an animation fusion process diagram 500B according to some embodiments of the present disclosure. In a specific embodiment of diagram 500B, the output of the state machine node corresponds to the first animation, the output of the animation node corresponds to the second animation, the fusion node is used to execute the fusion strategy, and the output of the output node corresponds to the third animation.
[0061] In some embodiments, based on the fusion strategy of the first animation and the second animation, presenting the third animation of the virtual object includes: in response to the first group of parts corresponding to the first animation not overlapping with the second group of parts corresponding to the second animation, presenting the third animation of the virtual object based on the combination of the first animation and the second animation. As an example, if the first animation is a ninja standing and the corresponding parts are legs, and the second animation is shouting and the corresponding parts are mouths, then the third animation of the virtual object can be presented based on the combination of the first animation and the second animation.
[0062] In some embodiments, based on the fusion strategy of the first animation and the second animation, presenting the third animation of the virtual object includes: in response to the target part that the first group of parts corresponding to the first animation is associated with the second group of parts corresponding to the second animation, based on the priority of the first animation and the second animation, determining the part movement of the target part. Based on the part movement of the target part, the electronic device 110 presents the third animation of the virtual object. In some embodiments, based on the priority of the first animation and the second animation, determining the part movement of the target part includes: determining a target animation with a higher priority from the first animation and the second animation; and determining the part movement of the target part based on the movement corresponding to the target part in the target animation. As an example, if the first animation is a superpower running and the corresponding parts are the upper body and the lower body, the second animation is a shrug and the corresponding part is the upper body. Further, if the priority of the second animation association is higher than the priority of the first animation, the lower body of the virtual object is a superpower running, and the upper body is a shrug and the hands are spread.
[0063] In some embodiments, based on the priority of the first animation and the second animation, determining the fusion action of the target part includes: in response to the priority information of the first animation and the second animation satisfying a preset condition, based on the weight information of the first animation and the second animation, fusing the movement of the target part in the first animation and the second animation to determine the part movement of the target part, wherein the weight information is indicated by the fusion strategy.
[0064] By properly configuring the fusion strategy, the virtual character can perform multiple actions simultaneously according to the user's instructions, thereby making the virtual object more vivid. In particular, according to the above-mentioned embodiments of the present disclosure, only a simple state machine animation needs to be pre-written, and different actions played on different parts of the body are encapsulated into animation nodes. When the application is running, the user only needs to specify the animation of the corresponding body part to be played, that is, the body animation can be integrated with the state machine animation, such as playing the shrugging and spreading hands action on the upper body while running.
[0065] In some embodiments, in order to make the action of the virtual object more coordinated, the output of the third animation may further include a transition animation. In other words, when the virtual object executes the first animation, if an instruction to execute the second animation is received, the transition animation is first executed, and the third action is executed after the transition animation ends. In this way, the action of the virtual object is made more coordinated and smooth.
[0066] Further references Figure 6 , which shows an animation update block diagram 600 according to some embodiments of the present disclosure. According to various embodiments of the present disclosure, the electronic device 110 sequentially performs various operations of the update block diagram 600 within a frame period. Figure 6As shown, the electronic device 110 performs fixed updates, updates, preparation frames, pre-delay updates, and delayed updates. In this way, in response to the user's instruction to perform a specific action (e.g., shrugging and spreading hands), the electronic device 110 can quickly integrate the action into the current action of the virtual object (e.g., running with a determined state).
[0067] Example Process
[0068] Figure 7 FIG. 7 is a flow chart showing an example interaction process 700 in a virtual scene according to some embodiments of the present disclosure. The process 700 may be implemented at the electronic device 110. Figure 1 700 is described below.
[0069] In some embodiments, the first animation is configured based on the following process: presenting a configuration window associated with the virtual object, the configuration window being configured to present multiple groups of candidate animations corresponding to multiple preset states; and in response to selection of a first animation from a group of candidate animations corresponding to the target animation, associating the first animation to the target state of the virtual object.
[0070] In some embodiments, switching between the plurality of preset states is configured based on a state machine associated with the virtual object, and the plurality of preset states correspond to a plurality of state nodes in the state machine.
[0071] In some embodiments, the electronic device 110 presents a set of virtual actions in an action panel associated with the virtual object; and in response to receiving a selection of a target virtual action in the set of virtual actions, triggers the virtual object to perform the target virtual action.
[0072] In some embodiments, in response to the virtual object being in a target state, the electronic device disables at least one virtual action in the action panel that does not match the target state.
[0073] In some embodiments, the set of virtual actions presented in the action panel includes at least one virtual action selected by the user from the virtual action library.
[0074] In some embodiments, based on the fusion strategy of the first animation and the second animation, presenting the third animation of the virtual object includes: in response to the fact that a first group of parts corresponding to the first animation do not overlap with a second group of parts corresponding to the second animation, presenting the third animation of the virtual object based on the combination of the first animation and the second animation.
[0075] In some embodiments, based on the fusion strategy of the first animation and the second animation, presenting the third animation of the virtual object includes: in response to a target part having an association between a first group of parts corresponding to the first animation and a second group of parts corresponding to the second animation, determining the part movement of the target part based on the priority of the first animation and the second animation; and presenting the third animation of the virtual object based on the part movement of the target part.
[0076] In some embodiments, based on the priorities of the first animation and the second animation, determining the part movement of the target part includes: determining a target animation with a higher priority from the first animation and the second animation; and determining the part movement of the target part based on the movement corresponding to the target part in the target animation.
[0077] In some embodiments, based on the priority of the first animation and the second animation, determining the fusion action of the target part includes: in response to the priority information of the first animation and the second animation satisfying a preset condition, based on the weight information of the first animation and the second animation, fusing the movement of the target part in the first animation and the second animation to determine the part movement of the target part, wherein the weight information is indicated by the fusion strategy.
[0078] Example devices and equipment
[0079] The embodiments of the present disclosure also provide corresponding devices for implementing the above methods or processes. Figure 8 A schematic structural block diagram of an example apparatus 800 used in a virtual scene according to some embodiments of the present disclosure is shown. The apparatus 800 may be implemented as or included in the electronic device 110. Each module / component in the apparatus 800 may be implemented by hardware, software, firmware, or any combination thereof.
[0080] like Figure 8 As shown, the device 800 includes a first animation rendering module 810, which is configured to present a first animation of the virtual object in response to the target state of the virtual object being triggered; a second animation determination module 820, which is configured to determine a second animation corresponding to the target virtual action in response to the virtual object being triggered to perform a target virtual action during the target state of the virtual object; and a third animation rendering module 830, which is configured to present a third animation of the virtual object based on a fusion strategy of the first animation and the second animation, wherein the first animation and / or the second animation is determined based on the user's configuration operation.
[0081] In some embodiments, the first animation is configured based on the following process: presenting a configuration window associated with the virtual object, the configuration window being configured to present multiple groups of candidate animations corresponding to multiple preset states; and in response to selection of a first animation from a group of candidate animations corresponding to the target animation, associating the first animation to the target state of the virtual object.
[0082] In some embodiments, switching between the plurality of preset states is configured based on a state machine associated with the virtual object, and the plurality of preset states correspond to a plurality of state nodes in the state machine.
[0083] In some embodiments, the device 800 also includes a first configuration module configured to: present a set of virtual actions in an action panel associated with the virtual object; and in response to receiving a selection of a target virtual action in the set of virtual actions, trigger the virtual object to perform the target virtual action.
[0084] In some embodiments, the device 800 further includes a disabling module configured to: in response to the virtual object being in a target state, disable at least one virtual action in the action panel that does not match the target state.
[0085] In some embodiments, the set of virtual actions presented in the action panel includes at least one virtual action selected by the user from the virtual action library.
[0086] In some embodiments, the third animation presentation module 830 is configured to present a third animation of the virtual object based on a combination of the first animation and the second animation in response to the first group of parts corresponding to the first animation not overlapping with the second group of parts corresponding to the second animation.
[0087] In some embodiments, the third animation presentation module 830 is configured to determine the part movement of the target part in response to the first group of parts corresponding to the first animation and the second group of parts corresponding to the second animation being associated with each other, based on the priority of the first animation and the second animation; and present the third animation of the virtual object based on the part movement of the target part.
[0088] In some embodiments, the third animation presentation module 830 is configured to determine a target animation with a higher priority from the first animation and the second animation; and determine the part movement of the target part based on the movement corresponding to the target part in the target animation.
[0089] In some embodiments, the third animation presentation module 830 is configured to, in response to the priority information of the first animation and the second animation satisfying a preset condition, fuse the movement of the target part in the first animation and the second animation based on the weight information of the first animation and the second animation to determine the part movement of the target part, wherein the weight information is indicated by the fusion strategy.
[0090] like Fig. 9As shown, the electronic device 900 is in the form of a general electronic device. The components of the electronic device 900 may include, but are not limited to, one or more processors or processing units 910, a memory 920, a storage device 930, one or more communication units 940, one or more input devices 990, and one or more output devices 960. The processing unit 910 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 920. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the electronic device 900.
[0091] The electronic device 900 typically includes a plurality of computer storage media. Such media can be any accessible media that can be obtained by the electronic device 900, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 920 can be a volatile memory (e.g., a register, a cache, a random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory) or some combination thereof. The storage device 930 can be a removable or non-removable medium, and can include a machine-readable medium, such as a flash drive, a disk, or any other medium, which can be used to store information and / or data and can be accessed within the electronic device 900.
[0092] The electronic device 900 may further include additional removable / non-removable, volatile / non-volatile storage media. Fig. 9 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. Memory 920 may include a computer program product 925 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.
[0093] The communication unit 940 implements communication with other electronic devices through a communication medium. Additionally, the functions of the components of the electronic device 900 can be implemented with a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 900 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
[0094] The input device 990 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 960 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 900 may also communicate with one or more external devices (not shown) through the communication unit 940 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 900, or communicate with any device that allows the electronic device 900 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).
[0095] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.
[0096] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0097] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0098] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0099] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.
[0100] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.
Claims
1. A virtual object interaction method, comprising: In response to a target state of the virtual object being triggered, presenting a first animation of the virtual object; During the target state of the virtual object, in response to the virtual object being triggered to perform a target virtual action, determining a second animation corresponding to the target virtual action; as well as Based on a fusion strategy of the first animation and the second animation, a third animation of the virtual object is presented, wherein the first animation and / or the second animation is determined based on a configuration operation of a user.
2. The method according to claim 1, wherein the first animation is configured based on the following process: presenting a configuration window associated with the virtual object, the configuration window being configured to present a plurality of groups of candidate animations corresponding to a plurality of preset states; and In response to selection of the first animation from a set of candidate animations corresponding to the target animation, the first animation is associated with the target state of the virtual object. 3 . The method according to claim 2 , wherein the switching between the plurality of preset states is configured based on a state machine associated with the virtual object, and the plurality of preset states correspond to a plurality of state nodes in the state machine.
4. The method according to claim 1, further comprising: presenting a set of virtual actions in an action panel associated with the virtual object; as well as In response to receiving a selection of the target virtual action from the set of virtual actions, the virtual object is triggered to perform the target virtual action.
5. The method according to claim 4, further comprising: In response to the virtual object being in the target state, at least one virtual action in the action panel that does not match the target state is disabled. 6 . The method according to claim 4 , wherein the set of virtual actions presented in the action panel includes at least one virtual action selected by the user from a virtual action library.
7. The method according to claim 1, wherein based on a fusion strategy of the first animation and the second animation, presenting a third animation of the virtual object comprises: In response to the first group of parts corresponding to the first animation not overlapping with the second group of parts corresponding to the second animation, the third animation of the virtual object is presented based on a combination of the first animation and the second animation.
8. The method according to claim 1, wherein based on a fusion strategy of the first animation and the second animation, presenting a third animation of the virtual object comprises: In response to a target part having an association between a first group of parts corresponding to the first animation and a second group of parts corresponding to the second animation, determining a part movement of the target part based on a priority of the first animation and the second animation; as well as Based on the part movement of the target part, the third animation of the virtual object is presented.
9. The method according to claim 8, wherein determining the part movement of the target part based on the priority of the first animation and the second animation comprises: determining a target animation with a higher priority from the first animation and the second animation; as well as The part movement of the target part is determined based on the movement corresponding to the target part in the target animation.
10. The method according to claim 8, wherein determining the fusion action of the target part based on the priority of the first animation and the second animation comprises: In response to the priority information of the first animation and the second animation satisfying a preset condition, based on the weight information of the first animation and the second animation, the movement of the target part in the first animation and the second animation is fused to determine the part movement of the target part, wherein the weight information is indicated by the fusion strategy.
11. A virtual object interaction device, comprising: A first animation presentation module, configured to present a first animation of the virtual object in response to a target state of the virtual object being triggered; A second animation determination module is configured to determine a second animation corresponding to the target virtual action in response to the virtual object being triggered to perform a target virtual action during the target state of the virtual object; as well as The third animation rendering module is configured to render a third animation of the virtual object based on a fusion strategy of the first animation and the second animation, wherein the first animation and / or the second animation is determined based on a configuration operation of the user.
12. An electronic device comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 10 when executed by the at least one processing unit.
13. A computer-readable storage medium having a computer program stored thereon, wherein the computer program can be executed by a processor to implement the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Game character action control method, device and equipment and medium
CN112090076A
Animation display method and device based on virtual environment
CN116416351A
Video image processing method and device, electronic equipment and storage medium
CN116630487A
Virtual object display method and apparatus, device, medium and program product
WO2024125136A1
Behavior state synchronization method and apparatus, and electronic device
WO2024212433A1