Shared virtual pet interactive simulation method and device, equipment and medium
By receiving and processing the interaction data of multiple users and using preset behavior models to generate behavioral information of virtual pets, the problem of multiple users being unable to interact with the same virtual pet is solved, and the interactive experience and emotional feedback authenticity of the virtual pet are improved.
Patent Information
- Application Number
- CN202510576889.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-06
- Publication Date
- 2025-09-16
AI Technical Summary
In the prior art, multiple users cannot interact with the same virtual pet, resulting in the virtual pet being unable to simulate a real pet and provide real emotional feedback, thereby reducing the interactive experience between the user and the virtual pet.
By receiving interactive data from multiple users, the system uses preset behavioral models to comprehensively process this data to generate behavioral information of virtual pets, and sends interactive animation data to each user, allowing multiple users to interact with the same virtual pet and simulate the behavior and emotional feedback of real pets.
It enables multiple users to interact with the same virtual pet, improves the interactive experience between users and virtual pets, and enhances the authenticity of the virtual pet's emotional feedback.
Smart Images

Figure CN120653104A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of virtual pets, and in particular to a method, apparatus, device and medium for sharing virtual pet interaction simulation. Background Art
[0002] With the rapid development of virtual reality technology and artificial intelligence technology, raising virtual pets has become a new form of entertainment.
[0003] Currently, users can raise virtual pets and interact with them to gain emotional value.
[0004] However, a virtual pet can only be raised by one user and cannot be raised by multiple users. Therefore, multiple users cannot interact with the same virtual pet. In multi-user interaction scenarios, the virtual pet cannot simulate a real pet and provide authentic emotional feedback, which reduces the interactive experience between users and the virtual pet. Summary of the Invention
[0005] The embodiments of the present application provide a method, apparatus, computer device, and medium for simulating a shared virtual pet interaction, aiming to solve the technical problem that multiple users cannot interact with the same virtual pet.
[0006] In a first aspect, an embodiment of the present application provides a shared virtual pet interaction simulation method, which includes:
[0007] receiving first interaction data between a first user and a shared virtual pet at a first time, wherein the first interaction data is used to represent an interaction behavior between the first user and the shared virtual pet;
[0008] receiving second interaction data between a second user and the shared virtual pet at a second time, wherein the second interaction data is used to represent an interaction behavior between the second user and the shared virtual pet;
[0009] Inputting the first interaction data into a preset behavior model to obtain first behavior information of the shared virtual pet;
[0010] inputting the second interaction data into the preset behavior model to obtain second behavior information of the shared virtual pet;
[0011] Acquire first interactive animation data of the shared virtual pet according to the first behavior information and the second behavior information;
[0012] The first interactive animation data is sent to the first user and the second user respectively, where the first interactive animation data is used to represent the interactive behaviors of the first user and the second user with the shared virtual pet respectively.
[0013] Optionally, the first behavior information includes information about a first action of the shared virtual pet, and the second behavior information includes information about a second action of the shared virtual pet. Acquiring first interactive animation data of the shared virtual pet according to the first behavior information and the second behavior information includes:
[0014] Determining whether the first action and the second action are mutually exclusive;
[0015] If yes, obtaining second interactive animation data of the shared virtual pet according to the first behavior information; obtaining third interactive animation data of the shared virtual pet according to the second behavior information; and combining the second interactive animation data and the third interactive animation data to obtain the first interactive animation data;
[0016] If not, the first behavior information and the second behavior information are combined to obtain third behavior information; and the first interactive animation data is obtained according to the third behavior information.
[0017] Optionally, the merging the second interactive animation data and the third interactive animation data to obtain the first interactive animation data includes:
[0018] Determining whether a time difference between the first time and the second time is greater than a preset time threshold;
[0019] If yes, merging the second interactive animation data and the third interactive animation data according to the time sequence of the first time and the second time to obtain the first interactive animation data;
[0020] If not, the second interactive animation data and the third interactive animation data are merged according to a preset user priority rule to obtain the first interactive animation data.
[0021] Optionally, obtaining second interactive animation data of the shared virtual pet according to the first behavior information includes:
[0022] The second interactive animation data is obtained from the preset animation library according to the information of the first action.
[0023] Optionally, the first behavior information includes emotional state information of the shared virtual pet, and obtaining the second interactive animation data from the preset animation library according to the action information includes:
[0024] Acquiring fourth interactive animation data from the preset animation library according to information about the first action;
[0025] The fourth interactive animation data is adjusted according to the emotional state information of the shared virtual pet to obtain the second interactive animation data.
[0026] Optionally, before inputting the first interaction data into a preset behavior model to obtain the first behavior information of the shared virtual pet, the method further includes:
[0027] Acquiring emotional state information of the first user at the first time;
[0028] The step of inputting the first interaction data into a preset behavior model to obtain first behavior information of the shared virtual pet includes:
[0029] The first interaction data and the emotional state information of the first user at the first time are input into the preset behavior model to obtain the first behavior information.
[0030] Optionally, before inputting the first interaction data into a preset behavior model to obtain the first behavior information of the shared virtual pet, the method further includes:
[0031] Acquiring interactive scene information of the shared virtual pet;
[0032] The step of inputting the first interaction data and the emotional state information of the first user at the first time into the preset behavior model to obtain the first behavior information includes:
[0033] The first interaction data, the emotional state information of the first user at the first time, and the interaction scene information are input into the preset behavior model to obtain the first behavior information.
[0034] In a second aspect, an embodiment of the present application further provides a shared virtual pet interactive simulation device, which includes a unit for executing the above method.
[0035] In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.
[0036] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.
[0037] The present invention provides a method, apparatus, device, and medium for simulating the interaction of a shared virtual pet. The method includes: receiving first interaction data between a first user and a shared virtual pet at a first time, the first interaction data being used to characterize the interaction behavior of the first user with the shared virtual pet; receiving second interaction data between a second user and the shared virtual pet at a second time, the second interaction data being used to characterize the interaction behavior of the second user with the shared virtual pet; inputting the first interaction data into a preset behavior model to obtain first behavior information of the shared virtual pet; inputting the second interaction data into the preset behavior model to obtain second behavior information of the shared virtual pet; obtaining first interaction animation data of the shared virtual pet based on the first and second behavior information; and sending the first interaction animation data to the first and second users, respectively, the first interaction animation data being used to characterize the interaction behavior of the first and second users with the shared virtual pet. Therefore, the technical solution of the present invention receives interaction data between the first and second users and the shared virtual pet, and inputs the interaction data into the preset behavior model to obtain behavior information of the shared virtual pet. Therefore, multiple users can interact with the same virtual pet. Shared virtual pets can integrate the interactive behaviors of different users, simulate real pets and give users real emotional feedback, thereby improving the interactive experience between users and virtual pets. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0040] One or more embodiments are exemplarily illustrated by pictures in the corresponding drawings. These exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0041] Figure 1 This is a flow chart of a method for sharing virtual pet interaction simulation provided in an embodiment of the present application;
[0042] Figure 2 A second flow chart of a shared virtual pet interaction simulation method provided in an embodiment of the present application;
[0043] Figure 3 A third flow chart of a shared virtual pet interactive simulation method provided in an embodiment of the present application;
[0044] Figure 4 A fourth flow chart of a shared virtual pet interactive simulation method provided in an embodiment of the present application;
[0045] Figure 5 A schematic block diagram of a shared virtual pet interactive simulation device provided in an embodiment of the present application;
[0046] Figure 6 A computer device is provided for an embodiment of the present application. DETAILED DESCRIPTION
[0047] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0048] The disclosure below provides many different embodiments or examples for implementing different structures of the present application. In order to simplify the disclosure of the present application, the components and settings of specific examples are described below. Of course, these are merely examples and are not intended to limit the present application. In addition, the present application may repeat reference numbers and / or letters in different examples. Such repetition is for the purpose of simplicity and clarity and does not in itself indicate the relationship between the various embodiments and / or settings discussed.
[0049] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0050] It should also be understood that the terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit the present application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0051] It should be further understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0052] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0053] In order to solve the technical problem in the prior art that multiple users cannot interact with the same virtual pet, the present application provides a shared virtual pet interaction simulation device, which enables multiple users to interact with the same virtual pet.
[0054] Figure 1 This is one of the flow charts of a method for sharing virtual pet interaction simulation provided in an embodiment of the present application. In one embodiment, the method includes:
[0055] S1. Receive first interaction data between a first user and a shared virtual pet at a first time.
[0056] Here, the first time refers to the first moment.
[0057] This application uses a 3D modeling tool to create 3D models of various pet types. Each pet type includes basic body structure and skeletal data related to that structure. The basic body structure includes the head, torso, and limbs. Users can select the pet's breed, color, and pattern based on their needs.
[0058] The user uses a terminal device to interact with a shared virtual pet. The first interaction data is used to characterize the interaction behavior of the first user with the shared virtual pet. The first interaction data includes touch commands, voice commands, and key commands. For example, the user clicks or slides the screen of the terminal device to interact with the shared virtual pet. For another example, the user controls the terminal device through voice to interact with the shared virtual pet. For another example, the user controls the terminal device through an external keyboard such as a remote control to interact with the shared virtual pet. It should be noted that the terminal device can be a smartphone, a computer, or a smart TV. This application does not impose any restrictions on this.
[0059] It should be noted that the embodiments of this application provide family accounts and member accounts. In the system default mode, one family account is bound to one shared virtual pet. Of course, one family account can also be bound to multiple shared virtual pets at the same time. Among them, multiple shared virtual pets can be shared virtual pets of different types or of the same type. This application does not impose any restrictions on this. Multiple member accounts can be bound to the same family account at the same time, allowing multiple members to interact with the same shared virtual pet.
[0060] S2. Receive second interaction data between the second user and the shared virtual pet at a second time.
[0061] The second time represents the second moment. The second interaction data is used to characterize the interaction behavior of the second user with the shared virtual pet. It should be noted that S2 can be executed before S1, or S1 and S2 can be executed simultaneously. S1 and S2 are the same or similar. This application will not repeat them here.
[0062] S3. Inputting the first interaction data into a preset behavior model to obtain first behavior information of the shared virtual pet;
[0063] The preset behavior model is an artificial intelligence model trained by the applicant using training data. The training process of the artificial intelligence model is as follows:
[0064] a. Prepare training data and validation data.
[0065] Among them, training data or verification data includes: pet behavior data, user interaction data, emotion-behavior mapping data and scene context data.
[0066] Pet behavior data includes real pet motion data and manually annotated behavior labels. For example, a 3D skeletal animation sequence of a dog walking. Another example is a wagging tail to indicate happiness.
[0067] User interaction data includes sample data of command-behavior pairs. For example, the voice command "sit" corresponds to the animation frame sequence of "pet sits".
[0068] User interaction data also includes multimodal interaction records, such as data on a pet’s “eating” action when a user touches the feeding area on the screen.
[0069] Emotion-behavior mapping data is the correlation between the user's emotional state and the pet's behavior. For example, if the user's emotional state is happy, the corresponding pet action is rubbing the user's hand. For another example, if the user's emotional state is angry, the corresponding pet action is lowering its head.
[0070] Scene context data includes the pet's action data in a specific environment. For example, in a park scene, the pet is more likely to run.
[0071] b. Build a network model.
[0072] Among them, in the embodiment of the present application, a network model is constructed based on a convolutional neural network and a long short-term memory network.
[0073] The convolutional neural network is used to extract the pet's motion features from the pet's motion data. The long short-term memory network is used to predict the pet's next action based on the pet's motion features.
[0074] c. Define the loss function of the AI model.
[0075] Among them, the loss function is the multi-classification cross entropy loss function.
[0076] d. Use training data and verification data to train and verify the network model respectively.
[0077] Among them, the accuracy of pet behavior classification, the smoothness of pet movements and the emotional matching between pets and users are used to verify whether the network model meets the requirements.
[0078] S4. Input the second interaction data into a preset behavior model to obtain second behavior information of the shared virtual pet.
[0079] It should be noted that S4 can be executed before S3, or S3 and S4 can be executed simultaneously. S3 and S4 are the same or similar. This application will not elaborate on this.
[0080] S5. Acquire first interactive animation data of the shared virtual pet according to the first behavior information and the second behavior information.
[0081] The first interactive animation data may be skeleton data of a shared virtual pet or an interactive video stream between the shared virtual pet and the user.
[0082] S6. Send the first interactive animation data to the first user and the second user respectively.
[0083] The first interactive animation data is used to represent the interactive behavior of the first user and the second user with the shared virtual pet.
[0084] After receiving the first interactive animation data, the first user terminal and the second user terminal render the skeleton in real time or directly play the interactive video stream according to the content of the first interactive animation data, so as to display the interactive behaviors of the first user and the second user with the shared virtual pet on the first user terminal and the second user terminal respectively.
[0085] In one embodiment, the first interactive animation data shares differential data of a shared virtual pet. For example, when the shared virtual pet only needs to wag its tail, the skeletal data of the shared virtual pet's tail is transmitted to the user terminal. The user terminal then updates and renders only the animation of the shared virtual pet's tail, combining the skeletal data of the current shared virtual pet. This effectively reduces the data transmission rate and improves rendering speed on the user terminal.
[0086] The present invention provides a method, apparatus, device, and medium for simulating the interaction of a shared virtual pet. The method includes: receiving first interaction data between a first user and a shared virtual pet at a first time, the first interaction data being used to characterize the interaction behavior of the first user with the shared virtual pet; receiving second interaction data between a second user and the shared virtual pet at a second time, the second interaction data being used to characterize the interaction behavior of the second user with the shared virtual pet; inputting the first interaction data into a preset behavior model to obtain first behavior information of the shared virtual pet; inputting the second interaction data into the preset behavior model to obtain second behavior information of the shared virtual pet; obtaining first interaction animation data of the shared virtual pet based on the first and second behavior information; and sending the first interaction animation data to the first and second users, respectively, the first interaction animation data being used to characterize the interaction behavior of the first and second users with the shared virtual pet. Therefore, the technical solution of the present invention receives interaction data between the first and second users and the shared virtual pet, and inputs the interaction data into the preset behavior model to obtain behavior information of the shared virtual pet. Therefore, multiple users can interact with the same virtual pet. Shared virtual pets can integrate the interactive behaviors of different users, simulate real pets and give users real emotional feedback, thereby improving the interactive experience between users and virtual pets.
[0087] See also Figure 2 , Figure 2 This is a second flow chart of a shared virtual pet interaction simulation method provided in an embodiment of the present application. In one embodiment, the first behavior information includes information about a first action of the shared virtual pet, and the second behavior information includes information about a second action of the shared virtual pet. Acquiring first interactive animation data of the shared virtual pet based on the first and second behavior information includes:
[0088] S51: Determine whether the first action and the second action are mutually exclusive.
[0089] It should be noted that when the first action and the second action conflict, they are mutually exclusive. For example, the pet's "sit" action and the pet's "run" action are mutually exclusive. If the first action and the second action are mutually exclusive, then S52 to S54 are executed. If the first action and the second action are not mutually exclusive, then S55 to S56 are executed.
[0090] S52: Acquire second interactive animation data of the shared virtual pet according to the first behavior information.
[0091] The second interactive animation data may be skeleton data of a shared virtual pet or an interactive video stream between the shared virtual pet and the user.
[0092] S53: Acquire third interactive animation data of the shared virtual pet according to the second behavior information.
[0093] It should be noted that S53 may be executed before S52, or S53 and S52 may be executed simultaneously. S52 and S53 are identical or similar. This application will not elaborate on this.
[0094] S54: Merge the second interactive animation data and the third interactive animation data to obtain first interactive animation data.
[0095] In one embodiment, the merging of the second interactive animation data and the third interactive animation data to obtain the first interactive animation data includes:
[0096] A. Determine whether the time difference between the first time and the second time is greater than a preset time threshold.
[0097] The preset time threshold is obtained by this application based on experimental data. Preferably, the preset time threshold is 2 seconds. Of course, the preset time threshold can also be 1 second. This application does not impose any restrictions on this.
[0098] B. If yes, then merge the second interactive animation data and the third interactive animation data according to the time sequence of the first time and the second time to obtain the first interactive animation data.
[0099] If the time difference between the first time and the second time is greater than a preset time threshold, it indicates that the first action of the shared virtual pet and the second action of the shared virtual pet were not performed at the same time. Therefore, the first interactive animation data can be obtained by simply merging the second interactive animation data and the third interactive animation data according to the time sequence of the first time and the second time.
[0100] C. If not, then merge the second interactive animation data and the third interactive animation data according to a preset user priority rule to obtain the first interactive animation data.
[0101] When the time difference between the first time and the second time is greater than the preset time threshold, it means that the first action of the shared virtual pet and the second action of the shared virtual pet are executed at the same time. Since the first action and the second action are mutually exclusive, it is necessary to merge the second interactive animation data and the third interactive animation data according to the preset user priority rules. Among them, the preset user priority rules are pre-set in this application. For example, the priority of the interactive behavior of parents with virtual pets is higher than the priority of the interactive behavior of children with virtual pets. Therefore, the final performance behavior of the shared virtual pet is to show the interactive behavior with parents first, and then show the interactive behavior with children.
[0102] S55: Combine the first behavior information and the second behavior information to obtain third behavior information.
[0103] When the first action of the shared virtual pet and the second action of the shared virtual pet are not mutually exclusive, the first action information and the second action information are combined to obtain third action information, wherein the third action information includes information about the first action of the shared virtual pet and information about the second action of the shared virtual pet.
[0104] S56. Obtain the first interactive animation data according to the third behavior information.
[0105] It should be noted that S56 and S52 are the same or similar, and this application will not elaborate on this.
[0106] In one embodiment, obtaining second interactive animation data of the shared virtual pet according to the first behavior information includes:
[0107] A1. Obtain second interactive animation data from a preset animation library according to information of the first action.
[0108] The preset animation library stores multiple action animations. The types of multiple action animations include complete action animations and partial action animations. Among them, the complete action animation is a shared virtual pet full-body skeleton animation. The shared virtual pet full-body skeleton animation includes animations of shared virtual pet full-body skeleton movements. For example, animations of basic behavioral movements such as sitting, walking, and jumping. Partial action clips include shared virtual pet partial skeleton animations. For example, a shared virtual pet's tail wagging, etc. Partial action clips are generally used for emotional detail enhancement. The usage scenarios of partial action clips will be detailed in the following embodiments. Here, this application will not go into details.
[0109] For example, when the first action information is information about sitting down, the action animation of the shared virtual pet sitting down is searched from the preset animation library. Of course, the obtained action animation can also be rendered into an action video stream.
[0110] In one embodiment, the first behavior information further includes emotional state information of the shared virtual pet, and obtaining the second interactive animation data from the preset animation library according to the action information includes:
[0111] a1. Obtaining fourth interactive animation data from a preset animation library according to information about the first action;
[0112] It should be noted that a1 and A1 are the same or similar and will not be described in detail herein.
[0113] a2. Adjust the fourth interactive animation data according to the emotional state information of the shared virtual pet to obtain the second interactive animation data.
[0114] For example, the playback speed of the fourth interactive animation data or the swing amplitude of the action in the interactive animation data may be adjusted according to the emotional state information of the shared virtual pet.
[0115] In one embodiment, partial action animation is obtained from a preset animation library according to the emotional state information of the shared virtual pet, and the partial action animation is combined with the complete action animation to obtain second interactive animation data.
[0116] See also Figure 3 , Figure 3 This is a flowchart of a third method for simulating a shared virtual pet interaction provided in an embodiment of the present application. In one embodiment, before inputting the first interaction data into a preset behavior model to obtain the first behavior information of the shared virtual pet, the method further includes:
[0117] S7. Obtain the emotional state information of the first user at the first time.
[0118] The emotional state information is used to represent the emotional state of the first user at the first time. The emotional state information can be angry, happy, sad, etc.
[0119] In one embodiment, the first user terminal captures an expression picture of the first user through a camera, and then uses OpenCV to identify the first user's emotional label, such as happy or angry. Finally, the identified emotional label is sent to the system as emotional state information.
[0120] In another embodiment, the first user terminal extracts the user's emotional label from the user's voice command. Specifically, the first user's emotional label, such as excitement or fatigue, can be obtained by extracting temporal emotional features from the first user's voice command based on Mel-frequency cepstral coefficients and long short-term memory networks. The identified emotional label is then sent to the system as emotional state information.
[0121] In another embodiment, the first user terminal extracts the first user's emotional tag by analyzing the text information input by the first user. For example, when the first user interacts with a shared virtual pet through text chat, the first user terminal uses a large language model to extract the first user's emotional tag based on the interactive text information input by the first user. The large language model can be Doubao or ChatGPT. This application does not impose any restrictions on this.
[0122] The step of inputting the first interaction data into a preset behavior model to obtain first behavior information of the shared virtual pet includes:
[0123] S31: Input the first interaction data and the emotional state information of the first user at the first time into a preset behavior model to obtain first behavior information.
[0124] It should be noted that the first behavior information is derived by combining the first interaction data and the emotional state of the first user at the time, making the first behavior information more consistent with the pet's actual emotional feedback in a real environment, thereby effectively improving the interactive experience between the first user and the shared virtual pet. For example, when the first user angrily says to the shared virtual pet, "Come over here," the shared virtual pet recognizes the first user's anger, lowers its ears, and slowly walks over.
[0125] See also Figure 4 , Figure 4 This is a fourth flow chart of a shared virtual pet interaction simulation method provided in an embodiment of the present application. In one embodiment, before inputting the first interaction data into a preset behavior model to obtain the first behavior information of the shared virtual pet, the method further includes:
[0126] S8. Obtain interactive scene information of the shared virtual pet.
[0127] The interactive scene information is used to indicate the interactive environment of the shared virtual pet, which includes but is not limited to a bedroom, a kitchen, and a park.
[0128] The user can change the interactive environment of the shared virtual pet through the user terminal device. Specifically, the user uploads a user-defined background image through the user terminal. The user terminal loads the customized background image and renders it to achieve the interactive environment of the shared virtual pet.
[0129] It should be noted that S8 may be executed first and then S7, or S7 and S8 may be executed simultaneously.
[0130] In one embodiment, the embodiment of the present application also includes using a distributed database to store the first interaction data, the second interaction data, the first behavior information, the second behavior information, the first interaction animation data, and the attributes and status information of the shared virtual pet itself. Among them, the attributes of the shared virtual pet itself include but are not limited to the type, breed, color, name and age of the shared virtual pet. The status information of the shared virtual pet includes but is limited to the health indicators, emotional values and growth records of the shared virtual pet. The embodiment of the present application uses the above-mentioned storage action to achieve that the status, growth progress, interaction history and other data of the shared virtual pet can be kept synchronized on different terminal devices to ensure a seamless interactive experience.
[0131] In one embodiment, the present application restricts user interaction based on user type. For example, child users may be restricted from directly purchasing virtual items to prevent accidental purchases. Virtual items include, but are not limited to, food, drinks, props, toys, and decorations. Another example is that member accounts may be prohibited from directly deleting information about shared virtual pets in a family account.
[0132] The step of inputting the first interaction data and the emotional state information of the first user at the first time into the preset behavior model to obtain the first behavior information includes:
[0133] S311: Input the first interaction data, the emotional state information of the first user at the first time, and the interaction scene information into a preset behavior model to obtain first behavior information.
[0134] It should be noted that the first behavior information is derived by combining the first interaction data with the first user's emotional state information and interaction scene information at the first moment. This makes the first behavior information more consistent with the pet's actual emotional feedback in the real environment, thereby effectively improving the interaction experience between the first user and the shared virtual pet. For example, when the first user angrily says to the shared virtual pet, "Come here!", the shared virtual pet recognizes the first user's anger and drops its ears. If the shared virtual pet's interaction environment is a park, the shared virtual pet may quickly approach. If the shared virtual pet's interaction environment is a kitchen, the shared virtual pet may slowly approach.
[0135] In one embodiment, the second behavior information is obtained in the same or similar manner as the first behavior information, and this application will not elaborate on this.
[0136] See also Figure 5 , Figure 5This is a schematic block diagram of a shared virtual pet interaction simulation device provided in an embodiment of the present application. Corresponding to the above shared virtual pet interaction simulation method, the present application also provides a shared virtual pet interaction simulation device. The shared virtual pet interaction simulation device includes a unit for executing the above shared virtual pet interaction simulation method. The shared virtual pet interaction simulation device can be configured in a desktop computer, tablet computer, laptop computer, or other terminal. Specifically, the shared virtual pet interaction simulation device includes:
[0137] A first receiving unit 501 is configured to receive first interaction data between a first user and a shared virtual pet at a first time, wherein the first interaction data is used to represent an interaction behavior between the first user and the shared virtual pet;
[0138] A second receiving unit 502 is configured to receive second interaction data between a second user and the shared virtual pet at a second time, wherein the second interaction data is used to represent an interaction behavior between the second user and the shared virtual pet;
[0139] A first input unit 503 is configured to input the first interaction data into a preset behavior model to obtain first behavior information of the shared virtual pet;
[0140] A second input unit 504 is configured to input the second interaction data into the preset behavior model to obtain second behavior information of the shared virtual pet;
[0141] An acquiring unit 505 is configured to acquire first interactive animation data of the shared virtual pet according to the first behavior information and the second behavior information;
[0142] The sending unit 506 is configured to send the first interactive animation data to the first user and the second user respectively, where the first interactive animation data is used to represent the interactive behaviors of the first user and the second user with the shared virtual pet respectively.
[0143] In one embodiment, the first behavior information includes information about a first action of the shared virtual pet, and the second behavior information includes information about a second action of the shared virtual pet. The acquiring unit 505 is specifically configured to determine whether the first action and the second action are mutually exclusive.
[0144] If yes, obtaining second interactive animation data of the shared virtual pet according to the first behavior information; obtaining third interactive animation data of the shared virtual pet according to the second behavior information; and combining the second interactive animation data and the third interactive animation data to obtain the first interactive animation data;
[0145] If not, the first behavior information and the second behavior information are combined to obtain third behavior information; and the first interactive animation data is obtained according to the third behavior information.
[0146] In one embodiment, the obtaining unit 505 is further specifically configured to determine whether a time difference between the first time and the second time is greater than a preset time threshold;
[0147] If yes, merging the second interactive animation data and the third interactive animation data according to the time sequence of the first time and the second time to obtain the first interactive animation data;
[0148] If not, the second interactive animation data and the third interactive animation data are merged according to a preset user priority rule to obtain the first interactive animation data.
[0149] In one embodiment, the acquiring unit 505 is further specifically configured to acquire the second interactive animation data from the preset animation library according to the information of the first action.
[0150] In one embodiment, the acquiring unit 505 is further configured to acquire fourth interactive animation data from the preset animation library according to the information of the first action;
[0151] The fourth interactive animation data is adjusted according to the emotional state information of the shared virtual pet to obtain the second interactive animation data.
[0152] In one embodiment, the apparatus further comprises:
[0153] The emotional state information acquiring unit 507 is configured to acquire the emotional state information of the first user at the first time;
[0154] The first input unit 503 is specifically configured to input the first interaction data and the emotional state information of the first user at the first time into the preset behavior model to obtain the first behavior information.
[0155] In one embodiment, the apparatus further comprises:
[0156] An interactive scene information acquisition unit 508 is configured to acquire interactive scene information of the shared virtual pet;
[0157] The first input unit 503 is further specifically configured to input the first interaction data, the emotional state information of the first user at the first time, and the interaction scene information into the preset behavior model to obtain the first behavior information.
[0158] like Figure 6As shown, an embodiment of the present application provides a computer device, including a processor 61, a communication interface 62, a memory 63 and a communication bus 64, wherein the processor 61, the communication interface 62, and the memory 63 communicate with each other through the communication bus 64, and the memory 63 is used to store computer programs;
[0159] In one embodiment of the present application, the processor 61 is configured to implement the control method for shared virtual pet interactive simulation provided by any one of the aforementioned method embodiments when executing the program stored in the memory 63 .
[0160] Those skilled in the art will appreciate that all or part of the steps in the method of the above-described embodiment can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the steps in the method of the above-described embodiment.
[0161] Therefore, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the shared virtual pet interaction simulation method provided in any of the aforementioned method embodiments.
[0162] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a magnetic disk, or an optical disk, etc. Any physical storage medium capable of storing program code can be non-volatile or volatile.
[0163] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0164] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and other division methods may be used in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not implemented.
[0165] The steps in the method of the embodiment of the present application can be adjusted in order, combined, and deleted according to actual needs. The units in the device of the embodiment of the present application can be combined, divided, and deleted according to actual needs. In addition, the functional units in the various embodiments of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit.
[0166] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.
[0167] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0168] Obviously, those skilled in the art may make various modifications and variations to this application without departing from the spirit and scope of this application. Thus, as long as these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
[0169] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and such modifications or substitutions should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A shared virtual pet interactive simulation method, characterized in that: include: receiving first interaction data between a first user and a shared virtual pet at a first time, wherein the first interaction data is used to represent an interaction behavior between the first user and the shared virtual pet; receiving second interaction data between a second user and the shared virtual pet at a second time, wherein the second interaction data is used to represent an interaction behavior between the second user and the shared virtual pet; Inputting the first interaction data into a preset behavior model to obtain first behavior information of the shared virtual pet; inputting the second interaction data into the preset behavior model to obtain second behavior information of the shared virtual pet; Acquire first interactive animation data of the shared virtual pet according to the first behavior information and the second behavior information; The first interactive animation data is sent to the first user and the second user respectively, where the first interactive animation data is used to represent the interactive behaviors of the first user and the second user with the shared virtual pet respectively.
2. The method according to claim 1, characterized in that The first behavior information includes information about a first action of the shared virtual pet, and the second behavior information includes information about a second action of the shared virtual pet. The step of obtaining first interactive animation data of the shared virtual pet according to the first behavior information and the second behavior information includes: Determining whether the first action and the second action are mutually exclusive; If yes, obtaining second interactive animation data of the shared virtual pet according to the first behavior information; obtaining third interactive animation data of the shared virtual pet according to the second behavior information; and combining the second interactive animation data and the third interactive animation data to obtain the first interactive animation data; If not, the first behavior information and the second behavior information are combined to obtain third behavior information; and the first interactive animation data is obtained according to the third behavior information.
3. The method according to claim 2, characterized in that The merging of the second interactive animation data and the third interactive animation data to obtain the first interactive animation data includes: Determining whether a time difference between the first time and the second time is greater than a preset time threshold; If yes, merging the second interactive animation data and the third interactive animation data according to the time sequence of the first time and the second time to obtain the first interactive animation data; If not, the second interactive animation data and the third interactive animation data are merged according to a preset user priority rule to obtain the first interactive animation data.
4. The method according to claim 2 or 3, characterized in that The acquiring of second interactive animation data of the shared virtual pet according to the first behavior information includes: The second interactive animation data is obtained from the preset animation library according to the information of the first action.
5. The method according to claim 4, characterized in that The first behavior information also includes emotional state information of the shared virtual pet, and obtaining the second interactive animation data from the preset animation library according to the action information includes: Acquiring fourth interactive animation data from the preset animation library according to information about the first action; The fourth interactive animation data is adjusted according to the emotional state information of the shared virtual pet to obtain the second interactive animation data.
6. The method according to any one of claims 1 to 3, characterized in that Before inputting the first interaction data into a preset behavior model to obtain first behavior information of the shared virtual pet, the method further includes: Acquiring emotional state information of the first user at the first time; The step of inputting the first interaction data into a preset behavior model to obtain first behavior information of the shared virtual pet includes: The first interaction data and the emotional state information of the first user at the first time are input into the preset behavior model to obtain the first behavior information.
7. The method according to claim 6, characterized in that Before inputting the first interaction data into a preset behavior model to obtain first behavior information of the shared virtual pet, the method further includes: Acquiring interactive scene information of the shared virtual pet; The step of inputting the first interaction data and the emotional state information of the first user at the first time into the preset behavior model to obtain the first behavior information includes: The first interaction data, the emotional state information of the first user at the first time, and the interaction scene information are input into the preset behavior model to obtain the first behavior information.
8. A shared virtual pet interactive simulation device, characterized in that: include: a first receiving unit, configured to receive first interaction data between a first user and a shared virtual pet at a first time, wherein the first interaction data is used to represent an interaction behavior between the first user and the shared virtual pet; a second receiving unit, configured to receive second interaction data between a second user and the shared virtual pet at a second time, wherein the second interaction data is used to represent an interaction behavior between the second user and the shared virtual pet; a first input unit, configured to input the first interaction data into a preset behavior model to obtain first behavior information of the shared virtual pet; a second input unit, configured to input the second interaction data into the preset behavior model to obtain second behavior information of the shared virtual pet; an acquiring unit, configured to acquire first interactive animation data of the shared virtual pet according to the first behavior information and the second behavior information; The sending unit is configured to send the first interactive animation data to the first user and the second user respectively, where the first interactive animation data is used to represent the interactive behaviors of the first user and the second user with the shared virtual pet respectively.
9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the computer program can implement the method according to any one of claims 1 to 7.