An information processing method and system for virtual characters

By decomposing cartoon clips and automatically updating the animation parameter weights based on numerical calculations, the problem that animations in the existing technology cannot be automatically updated according to specific scenes and object changes is solved, and more realistic and rich animation effects are achieved, improving user experience.

CN114140561BActive Publication Date: 2025-06-17SHANGHAI MIHA YOUHAIYUANCHENG TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111452183.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-01
Publication Date
2025-06-17
Estimated Expiration
2041-12-01

AI Technical Summary

Technical Problem

Existing game animations cannot automatically update animation parameters according to specific scenes and object changes, resulting in poor animation effects and unable to play some action animations.

Method used

By decomposing the animation clips, automatically update the animation parameter weights based on the numerical calculation, fuse preset trajectories, detect the collision properties of virtual characters and objects, and dynamically update the animation parameters.

Benefits of technology

It enriches the animation effects, increases the authenticity of the animation, improves the user experience, and can simulate the interaction between virtual characters and the environment more realistically.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114140561B_ABST
    Figure CN114140561B_ABST
Patent Text Reader

Abstract

The present application relates to a method and system for processing information of a virtual character, and relates to the field of animation technology. The method includes obtaining a first medium environment of the virtual character, as well as trigger actions and process actions in the first medium environment; detecting a first object within a preset area according to the position information of the actions and calculating distance information; when the current environment is in a first state, the virtual character enters the next action according to preset trajectory information; when the current environment is in a second state, according to the impact attributes between the virtual character and the first object, updating the first trajectory, second trajectory and third trajectory, and displaying the animation of the virtual character according to the updated trajectory information. The method and system for processing information of the virtual character in the present application decompose animation segments, automatically update the weight of animation parameters according to numerical calculations, fuse preset trajectories, enrich the animation effects, increase the authenticity of the animation, and improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of animation technology, and particularly to a method and system for processing information of virtual characters. Background Art

[0002] In recent years, with the rapid development of technologies such as Virtual Reality (VR), Augmented Reality (AR), Mixed Reality (MR), and XR (X Reality, where X represents an unknown variable), different scenarios such as VR, AR, MR, and XR can be realized in the field of game animation. Currently, with the high-speed development of technologies such as virtual reality, human-computer interaction, and network communication, based on motion capture technology, multiple fields are actively promoting the virtual-real combination mode, accelerating the exploration of animation solutions closer to reality, and striving to create an immersive virtual simulation game system with a realistic environment, strong immersion, and intuitive operation.

[0003] Existing game animations directly adopt fixed overall motion animations and cannot change animation parameters, etc., resulting in less than ideal animation effects. For example, if an animated character hits an object such as a rock after entering the water, the corresponding animation may not be playable, and the game display effect is not good; or, if the entire path is judged, the system will not be able to play some action animations of the character, etc.

[0004] Therefore, it is desirable to provide a method and system for processing information of virtual characters, which decompose animation segments, automatically update the weight of animation parameters according to numerical calculations, fuse preset trajectories, enrich animation effects, increase the authenticity of animations, and improve the user experience. Summary of the Invention

[0005] According to the first aspect of some embodiments of the present application, there is provided a method for processing information of a virtual character, which is applied to a terminal (such as an electronic device, etc.). The method may include: obtaining a first medium environment of the virtual character, as well as a trigger action and a process action in the first medium environment; detecting a first object within a preset area according to a first position of the trigger action and calculating a first distance; when the current environment is in a first state, the virtual character enters the process action according to a first trajectory; detecting a first object within a preset area according to a second position of the process action and calculating a second distance; when the current environment is in a first state, the virtual character executes an intervention action to enter a second medium environment according to a second trajectory; detecting a first object within a preset area according to a third position of the intervention action and calculating a third distance; when the current environment is in a first state, the virtual character executes an exit action to leave the second medium environment according to a third trajectory, and the third trajectory includes an exit direction of the exit action; wherein, when the current environment is in a second state, according to an impact attribute between the virtual character and the first object, the first trajectory, the second trajectory and the third trajectory are updated, and an animation of the virtual character is displayed according to the updated trajectory information.

[0006] In some embodiments, the preset area includes a preset distance range of the virtual character, and the impact attribute includes an impact object mass and an impact speed. The specifically displaying the animation of the virtual character according to the updated trajectory information includes detecting whether there is a first object within the preset distance range of the virtual character; when colliding with the virtual character in the second state of the current environment, calculating and updating the trajectory information according to the impact object mass and the impact speed, and the trajectory information includes a first trajectory, a second trajectory, and a third trajectory; when the current environment is in the second state, calculating a first distance, a second distance, and / or a third distance between the virtual character and the first object; the first distance includes the distance between the virtual character at the first position and the first object, the second distance includes the distance between the virtual character at the second position and the first object, and the third distance includes the distance between the virtual character at the third position and the first object; when there are at least two first objects, comparing the at least two distance information and updating the trajectory information according to a preset condition; through finite state machine management, displaying the animation of the virtual character according to the updated trajectory information.

[0007] In some embodiments, the virtual character performing an exit action to leave the second medium environment according to a third trajectory specifically includes: if there is no first object within the preset distance range of the virtual character, randomly outputting the exit direction; if there is a first object within the preset distance range of the virtual character, outputting the corresponding exit direction according to the distance information; if there are at least two first objects within the preset distance range of the virtual character, outputting the corresponding exit direction according to the comparison information of the distances and the preset conditions, where the preset conditions include the user's input information and the associated information of the virtual character.

[0008] In some embodiments, the information processing method of the virtual character specifically includes obtaining the spatial coordinate interval of the second medium environment and the real-time position coordinates of the virtual character; determining whether the real-time position coordinates of the virtual character belong to the spatial coordinate interval; when the real-time position coordinates of the virtual character belong to the spatial coordinate interval, determining that the virtual character enters the second medium environment.

[0009] In some embodiments, the virtual character performing an exit action to leave the second medium environment according to a third trajectory specifically includes obtaining the internal cause information of the virtual character and outputting the corresponding exit direction according to the internal cause information, where the internal cause information of the virtual character includes the initial velocity of the triggering action, and outputting the corresponding exit direction according to the initial velocity of the triggering action.

[0010] In some embodiments, the virtual character performing an exit action to leave the second medium environment according to a third trajectory specifically includes: obtaining the external cause information of the virtual character and outputting the corresponding exit direction according to the external cause information.

[0011] In some embodiments, the external cause information of the virtual character includes the user's input information, environmental information, and intervention information, and outputting the corresponding exit direction according to the user's input information, environmental information, and intervention information.

[0012] In some embodiments, the information processing method of the virtual character specifically includes: decomposing the animation of the virtual character into at least two animation segments, where the first animation segment includes the triggering action and process action in the first medium environment, and the second animation segment includes the intervention action and exit action in the second medium environment; presetting the trajectory information of the virtual character in different actions through a state machine; obtaining the associated information of the virtual character, where the associated information includes position information, first object information, internal cause information, and external cause information, and the external cause information includes impact attributes; fusing the preset trajectory information according to the associated information and updating the animation parameters of the virtual character.

[0013] In some embodiments, updating the animation parameters of the virtual character specifically includes: obtaining an action library of motion capture through a finite state machine; matching motion capture data according to the association information of the virtual character; and updating the animation parameters of the virtual character according to the motion capture data.

[0014] According to a second aspect of some embodiments of the present application, a system is provided. The system includes: a memory configured to store data and instructions; a processor communicatively coupled to the memory. When executing the instructions in the memory, the processor is configured to: obtain a first medium environment of the virtual character, as well as a trigger action and a process action in the first medium environment; detect a first object within a preset area and calculate a first distance according to a first position of the trigger action; when the current environment is in a first state, the virtual character enters the process action according to a first trajectory; detect a first object within a preset area and calculate a second distance according to a second position of the process action; when the current environment is in the first state, the virtual character performs an intervention action to enter a second medium environment according to a second trajectory; detect a first object within a preset area and calculate a third distance according to a third position of the intervention action; when the current environment is in the first state, the virtual character performs an exit action to leave the second medium environment according to a third trajectory, where the third trajectory includes an exit direction of the exit action; and when the current environment is in a second state, update the first trajectory, the second trajectory, and the third trajectory according to an impact attribute between the virtual character and the first object, and display an animation of the virtual character according to the updated trajectory information.

[0015] Therefore, according to an information processing method and system for a virtual character of some embodiments of the present application, by decomposing animation segments, automatically updating animation parameter weights according to numerical calculations, fusing preset trajectories, enriching animation effects, increasing the authenticity of the animation, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] To better understand and illustrate some embodiments of the present application, the following will describe with reference to the accompanying drawings. In these drawings, the same numerical reference numbers indicate corresponding parts in the drawings.

[0017] Figure 1 is an exemplary schematic diagram of an information processing system for a virtual character provided according to some embodiments of the present application.

[0018] Figure 2 is an exemplary flowchart of an information processing method for a virtual character provided according to some embodiments of the present application.

[0019] Figure 3 is a horizontal schematic diagram for calculating distances in an information processing method for a virtual character provided according to some embodiments of the present application.

[0020] Figure 4 It is a top - view schematic diagram for calculating the distance by the information - processing method of a virtual character provided according to some embodiments of the present application. Detailed implementation manners

[0021] The following description with reference to the accompanying drawings is for facilitating a comprehensive understanding of various embodiments of the present application defined by the claims and their equivalent content. These embodiments include various specific details for facilitating understanding, but these are only regarded as exemplary. Therefore, those skilled in the art can understand that various changes and modifications can be made to the various embodiments described herein without departing from the scope and spirit of the present application. Additionally, for the purpose of briefly and clearly describing the present application, descriptions of well - known functions and structures will be omitted.

[0022] The terms and phrases used in the following specification and claims are not limited to their literal meanings, but are only for enabling a clear and consistent understanding of the present application. Therefore, for those skilled in the art, it can be understood that the description of various embodiments of the present application is only for illustrative purposes and does not limit the present application defined by the appended claims and their equivalents.

[0023] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in some embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without making creative efforts belong to the scope of protection of the present application.

[0024] It should be noted that the terms used in the embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. The singular forms of "a", "an", "one", "the", and "said" used in the embodiments of the present application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more of the associated listed items. The expressions "first", "second", "the first", and "the second" are used to modify the corresponding elements without considering the order or importance, and are only used to distinguish one element from another element without limiting the corresponding elements.

[0025] The terminal according to some embodiments of the present application may be an electronic device, which may include a personal computer (PC, such as a tablet computer, a desktop computer, a notebook, a netbook, a personal digital assistant (PDA)), a client device, a virtual reality device (VR), an augmented reality device (AR), a mixed reality device (MR), an XR device, a rendering machine, a smart phone, a mobile phone, an e-book reader, a portable multimedia player (PMP), an audio / video player (MP3 / MP4), a camera, and a wearable device, etc., or a combination of one or more of them. According to some embodiments of the present application, the wearable device may include an accessory type (such as a watch, a ring, a bracelet, glasses, or a head-mounted device (HMD)), an integrated type (such as electronic clothing), a decorative type (such as a skin pad, a tattoo, or an embedded electronic device), etc., or a combination of several of them. In some embodiments of the present application, the electronic device may be flexible, not limited to the above devices, or may be a combination of one or more of the above various devices. In the present application, the term "user" may refer to a person using the electronic device or a device using the electronic device (such as an artificial intelligence electronic device).

[0026] Embodiments of the present application provide a method and a system for processing information of a virtual character. To facilitate the understanding of the embodiments of the present application, the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0027] Figure 1 is an exemplary schematic diagram of a system for processing information of a virtual character provided according to some embodiments of the present application. As Figure 1 described, the information processing system 100 of the virtual character may include a network 110, a control terminal 120, a user terminal 130, a server 140, etc. Specifically, the control terminal 120 and the user terminal 130 establish communication through the network. For example, the control terminal 120 and the user terminal 130 may communicate in the same local area network (such as the network environment of the same router). Further, the control terminal 120 may be connected to the network 110 by wire (such as a network cable, etc.) or wirelessly (such as a cloud server, etc.), and the user terminal 130 may establish a communication connection with the network 110 by wire or wirelessly (such as WIFI, etc.). In some embodiments, the user terminal 130 may send animation parameters of the virtual character, etc. to the control terminal 120 and the server 140. Further, the control terminal 120 and the server 140 may play information such as animation clips of the virtual character on the user terminal 130. Further, the control terminal 120 and the server 140 may obtain action library information of the motion capture technology through the network 110, the user terminal 130, etc.

[0028] According to some embodiments of the present application, the control terminal 120 and the user terminal 130 may be the same or different terminal devices, etc. The terminal device may include, but is not limited to, a smart terminal, a mobile terminal, a computer, a rendering machine, etc. In a game scenario, the control terminal 120 may include a computer, etc., and the user terminal 130 may include a game device, etc. In some embodiments, the control terminal 120 and the user terminal 130 may be integrated in one device, for example, an all-in-one machine, a smart terminal (such as a tablet, a mobile phone), etc. In some embodiments, the server 140 is a type of computer, which has advantages such as faster operation and higher load than ordinary computers, and correspondingly, a higher price. In a network environment, the server may provide computing or application services for other client machines (such as terminals like a PC, a smart phone, an ATM, etc., and large devices like a transportation system). The server has high-speed CPU computing power, long-term reliable operation, powerful I / O external data throughput capacity, and better scalability. The services that the server can provide include, but are not limited to, the ability to undertake response service requests, undertake services, and guarantee services. As an electronic device, the server has an extremely complex internal structure, including an internal structure similar to that of an ordinary computer. As an example, the internal structure of the server may include a central processing unit (CPU), a hard disk, a memory, a system, a system bus, etc.

[0029] In some embodiments of the present application, the information processing system 100 of the virtual character may omit one or more components, or may further include one or more other components. As an example, the information processing system 100 of the virtual character may include a plurality of user terminals 130, such as a plurality of game devices or a plurality of game user terminals, etc. As another example, the information processing system 100 of the virtual character may include a plurality of control terminals 120. As still another example, the information processing system 100 of the virtual character may include a plurality of servers 140, etc. The network 110 may be any type of communication network, and the communication network may include a computer network (e.g., a local area network (LAN) or a wide area network (WAN)), the Internet, and / or a telephone network, etc., or a combination of several. In some embodiments, the network 110 may be other types of wireless communication networks. The wireless communication may include microwave communication and / or satellite communication, etc. The wireless communication may include cellular communication, for example, Global System for Mobile Communications (GSM), Code Division Multiple Access (CDMA), The 3rd Generation Telecommunication (3G), The 4th Generation Telecommunication (4G), The 5th Generation Telecommunication (5G), The 6th Generation Telecommunication (6G), Long Term Evolution (LTE), LTE-Advanced (LTE-A), Wideband Code Division Multiple Access (WCDMA), Universal Mobile Telecommunications System (UMTS), Wireless Broadband (WiBro), etc., or a combination of several. In some embodiments, the user terminal 130 may be other electronic devices with equivalent functional modules, and the electronic device may include a virtual reality device (VR), a rendering machine, a personal computer (PC, such as a tablet computer, a desktop computer, a notebook, a netbook, a personal digital assistant (PDA)), a smart phone, a mobile phone, an e-book reader, a portable multimedia player (PMP), an audio / video player (MP3 / MP4), a camera, and a wearable device, etc., or a combination of one or several of them.

[0030] In some embodiments, the WIFI may be other types of wireless communication technologies. According to some embodiments of the present application, the wireless communication may include Wireless Fidelity (WiFi), Bluetooth, Bluetooth Low Energy (BLE), ZigBee, Near Field Communication (NFC), magnetic secure transmission, radio frequency, and Body Area Network (BAN), etc., or a combination of several. According to some embodiments of the present application, the wired communication may include Global Navigation Satellite System (Glonass / GNSS), Global Positioning System (GPS), Beidou Navigation Satellite System, or Galileo (European Global Satellite Navigation System), etc. The wired communication may include Universal Serial Bus (USB), High-Definition Multimedia Interface (HDMI), Recommend Standard 232 (RS-232), and / or Plain Old Telephone Service (POTS), etc., or a combination of several.

[0031] It should be noted that the above description of the information processing system 100 for virtual characters is only for convenience of description and does not limit the present application to the scope of the examples given. It can be understood that for those skilled in the art, based on the principle of this system, various combinations of each component may be made, or a subsystem may be formed and connected to other components, and various modifications and changes may be made to the form and details of the application fields of the above methods and systems. For example, the control end 120 and the user end 130 may be integrated in one device. Such deformations are all within the protection scope of the present application.

[0032] Figure 2 is an exemplary flowchart of a method for processing information of a virtual character provided according to some embodiments of the present application. As Figure 2 described, the process 200 may be implemented by the information processing system 100 for virtual characters. In some embodiments, the method 200 for processing information of the virtual character may be automatically started or started by an instruction. The instruction may include a system instruction, a device instruction, a user instruction, an action instruction, etc., or a combination of several.

[0033] In 201, obtain the first medium environment of the virtual character, as well as the trigger action and process action in the first medium environment. Operation 201 can be implemented through the control terminal 120, user terminal 130, and server 140 of the information processing system 100 of the virtual character. In some embodiments, the control terminal 120 and / or the server 140 can obtain the first medium environment of the virtual character, and obtain the trigger action and process action of the virtual character in the first medium environment through the user terminal 130. In some embodiments, the user terminal 130 can cause the virtual character to enter the trigger action, process action, etc. according to user input. As an example, the virtual character can include, but is not limited to, an animated character, a game character, a representative character of the user in the virtual world, etc. For another example, in a virtual reality game scenario, the user himself can be a representative character of the virtual character in the real world. In some embodiments, the medium environment can include environments with different medium attributes, and the medium attributes can include the presence or absence of a medium, medium composition, medium density, etc. As an example, the medium environment can include, but is not limited to, a vacuum medium environment, an atmospheric medium environment, a land medium environment, a water medium environment, a wetland medium environment, a desert medium environment, etc. In some embodiments, the first medium environment can be an atmospheric medium environment. The trigger action can include the initial action of the virtual character leaving the first medium environment. The process action can include the process action of the virtual character in the first medium environment.

[0034] According to some embodiments of the present application, when the virtual character is in the atmospheric medium environment, it can act at the interface between the atmospheric medium environment and the land medium environment. In some embodiments, the virtual character can leave the atmospheric medium environment through a trigger action, and the trigger action can include a takeoff action, and the takeoff action can be realized by means of the land medium environment. In some embodiments, after the virtual character executes the takeoff action by means of the land medium environment, it can execute a process action in the atmospheric medium environment, and the process action can include a falling action. For another example, when the first medium environment is a vacuum, the process action of the virtual character can include a floating action, etc. The process action of the virtual character in the first medium environment can produce corresponding change effects based on the medium attributes of the medium environment.

[0035] At 202, according to the first position of the triggering action, a first object within a preset area is detected and a first distance is calculated. Operation 202 can be implemented by the control terminal 120, the user terminal 130, and the server 140 of the information processing system 100 of the virtual character. In some embodiments, the control terminal 120 and / or the server 140 can detect a first object within a preset area and calculate a first distance based on the first position of the triggering action input by the user terminal 130. As an example, the first position may include position information such as the position where the virtual character performs the triggering action, for example, the position space coordinate values X1Y1Z1. In some embodiments, the preset area may include a preset distance range of the virtual character. For example, the preset distance range includes an interval range with a distance of 0 to a (preset distance) from the virtual character (position space coordinate values X1Y1Z1), and the preset area may include the position space coordinate area (X1±a)(Y1±a)(Z1±a). The first object may include other virtual characters, NPCs (Non-Player Characters), still objects (such as stones), non-still objects (such as birds), etc. The physical objects may include objects that can produce a collision effect with the virtual character (such as obstacles). The first distance may include the distance information between the first object and the first position of the virtual character. When the first object is a still object, the first distance information can be determined according to the distance between the first position and the still object. When the first object is a non-still object, another virtual character, or an NPC, the first distance information can be updated in real time according to the coordinate position information of the first position and the changing first object.

[0036] According to some embodiments of the present application, the detecting a first object within a preset area and calculating a first distance specifically includes: detecting whether there is a first object within the preset distance range of the virtual character; when the current environment is in a second state (the first state is that there is no first object in the current environment, and the second state is that there is a first object in the current environment), calculating the first distance between the virtual character and the first object; the first distance may include the distance between the virtual character at the first position and the first object; when there are at least two first objects, comparing the at least two distance information, and updating the trajectory information according to preset conditions, the trajectory information including a first trajectory, a second trajectory, and a third trajectory.

[0037] According to some embodiments of the present application, when the virtual character performs a takeoff action, the control terminal 120 can obtain the takeoff position information of the virtual character and detect whether there are obstacles within a preset area of 2 meters around the virtual character. If there are obstacles (such as a rock, a bird, etc.), calculate the distance between the takeoff position of the virtual character and the rock, and the distance to the bird, etc. Further, according to the distance comparison information and preset conditions, update the takeoff trajectory of the takeoff action.

[0038] In 203, when the current environment is in the first state, the virtual character enters the process action according to the first trajectory. Operation 203 can be implemented by the control terminal 120 and the server 140 of the information processing system 100 of the virtual character. In some embodiments, according to the detection result, when the current environment is in the first state, the control terminal 120 and / or the server 140 can control the virtual character to enter the process action according to the first trajectory. As an example, the first trajectory may include trajectory information corresponding to the trigger action.

[0039] According to some embodiments of the present application, in the takeoff action, when there are no obstacles within the preset area for the virtual character, the virtual character can enter the process action according to the preset takeoff trajectory. For example, in an atmospheric medium environment, the virtual character enters the falling action according to the takeoff trajectory.

[0040] In 204, according to the second position of the process action, detect the first object within the preset area and calculate the second distance. Operation 204 can be implemented by the server 140 and / or the control terminal 120 of the information processing system 100 of the virtual character. In some embodiments, the server 140 and / or the control terminal 120 can detect the first object within the preset area and calculate the second distance according to the second position of the process action. As an example, the second position may include the position information where the virtual character is located when performing the process action, such as the position space coordinate values X2Y2Z2. In some embodiments, the process action may include a process action within a certain time interval, and the position information corresponding to the process action is position information that changes with time, such as the position space coordinate values X2Y2Z2(Ti). The second distance may include the distance information between the first object and the second position of the virtual character. The second distance information can be updated in real time according to the coordinate position information of the second position changing with time and the coordinate position information of the first object changing.

[0041] According to some embodiments of the present application, detecting the first object in the preset area and calculating the second distance specifically include: detecting whether there is a first object within the preset distance range of the virtual character; when the current environment is in the second state, calculating the second distance between the virtual character and the first object; the second distance may include the distance between the virtual character at the second position and the first object; when there are at least two first objects, comparing the at least two distance information, and updating the trajectory information according to the preset conditions, where the trajectory information includes a second trajectory and a third trajectory.

[0042] According to some embodiments of the present application, when the virtual character performs a falling action, the control terminal 120 can obtain the falling position information of the virtual character changing with time, and detect whether there are obstacles within a preset area of 2 meters around the virtual character. If there are obstacles (such as stones, birds, etc.), calculate the distance between the real-time falling position of the virtual character and the stone, and the distance between the virtual character and the bird, etc. Further, according to the distance comparison information and the preset conditions, update the falling trajectory of the falling action.

[0043] In 205, when the current environment is in the first state, the virtual character performs an intervention action of entering the second medium environment according to the second trajectory. Operation 205 can be implemented by the control terminal 120, the user terminal 130, and the server 140 of the information processing system 100 of the virtual character. In some embodiments, according to the detection result, when the current environment is in the first state, the control terminal 120 and / or the server 140 can control the virtual character to perform an intervention action of entering the second medium environment according to the second trajectory. As an example, the second trajectory may include trajectory information corresponding to the process action. In some embodiments, the second medium environment may include a medium environment with different medium properties from the first medium environment, for example, a water medium environment, etc.

[0044] According to some embodiments of the present application, during the falling motion, when there is no obstacle within the preset area for the virtual character, the virtual character can enter the intervention motion in the second medium environment according to the preset falling trajectory. For example, in the atmospheric medium environment, the virtual character enters the water entry motion in the second medium environment (e.g., the water medium environment) according to the falling trajectory. In some embodiments, the intervention motion of the virtual character is updated according to the temperature parameter of the medium environment. As an example, when the second medium environment is the water medium environment, it is determined whether the temperature parameter of the current medium environment is less than or equal to the freezing point. If the temperature parameter is less than or equal to the freezing point and the second medium environment is currently in a frozen state, the frozen state of the second medium environment, including the ice layer thickness, ice layer hardness, ice layer load-bearing capacity, etc., can be simulated according to the temperature parameter, and the water entry trajectory of the water entry motion, etc., is updated according to the frozen state. The freezing point is the temperature at which a crystal changes from a liquid state to a solid state. As an example, when the ice layer thickness is greater than 15 cm and / or it can bear at least 50 kg per 10 square meters, the virtual character cannot execute the water entry trajectory into the second medium environment. Another example is that when the input information of the player is obtained and an ice hole is opened in the frozen state, the virtual character can integrate information such as the preset water entry trajectory and the ice hole direction trajectory, etc., and execute the water entry motion according to the updated water entry trajectory. Further, the displayed animation can be changed according to the impact attribute of the virtual character and the frozen second medium environment.

[0045] At 206, according to the third position of the intervention motion, the first object within the preset area is detected and the third distance is calculated. Operation 206 can be implemented by the control end 120 and the server 140 of the information processing system 100 of the virtual character. In some embodiments, the control end 120 and / or the server 140 can detect the first object within the preset area and calculate the third distance according to the third position of the intervention motion. As an example, the third position may include the position information where the virtual character is located when performing the intervention motion, etc., for example, the position space coordinate values X3Y3Z3. When the first object is a static object, the third distance information can be determined according to the distance between the third position and the static object. When the first object is a non-static object, another virtual character or an NPC, the third distance information can be updated in real time according to the changing coordinate position information between the third position and the first object.

[0046] According to some embodiments of the present application, detecting the first object within the preset area and calculating the third distance specifically includes: detecting whether there is a first object within the preset distance range of the virtual character; when the current environment is in the second state, calculating the third distance between the virtual character and the first object; the third distance may include the distance between the virtual character at the third position and the first object; when there are at least two first objects, comparing the at least two distance information, and updating the trajectory information according to the preset conditions, where the trajectory information includes the third trajectory.

[0047] According to some embodiments of the present application, when the virtual character performs a water entry action, the control terminal 120 can obtain the water entry position information of the virtual character and detect whether there are obstacles within a preset area of 2 meters around the virtual character. If there are obstacles (such as stones, birds, etc.), calculate the distance between the water entry position of the virtual character and the stone, and the distance from the bird, etc. Further, according to the distance comparison information and the preset conditions, update the water entry trajectory of the water entry action.

[0048] In 207, when the current environment is in the first state, the virtual character performs an exit action to leave the second medium environment according to the third trajectory, and the third trajectory includes the exit direction of the exit action. Operation 207 can be implemented by the control terminal 120 and the server 140 of the information processing system 100 of the virtual character. In some embodiments, according to the detection result, when the current environment is in the first state, the control terminal 120 and / or the server 140 can control the virtual character to perform an exit action to leave the second medium environment according to the third trajectory, and the third trajectory includes the exit direction of the exit action. The third trajectory may include trajectory information corresponding to the exit action. In some embodiments, the second medium environment may include a medium environment with different medium properties from the first medium environment, for example, a water medium environment, etc.

[0049] According to some embodiments of the present application, if there is no first object within the preset distance range of the virtual character, randomly output the exit direction; if there is a first object within the preset distance range of the virtual character, output the corresponding exit direction according to the distance information; if there are at least two first objects within the preset distance range of the virtual character, output the corresponding exit direction according to the comparison information of the distances and the preset conditions, and the preset conditions may include user input information, associated information of the virtual character, etc. As an example, Figure 3As shown, when the preset condition of the virtual character is a time limit (for example, the shortest time to exit the water medium environment, etc.), the virtual character updates the water exit direction to O→A according to the comparison result that the distance OA is less than the distance OB. For another example, when the preset condition of the virtual character is a target limit (for example, the target of exiting the water medium environment is to delay the water exit process, etc.), the virtual character updates the water exit direction to O→B according to the comparison result that the distance OB is greater than the distance OA.

[0050] In some embodiments, the control terminal 120 and / or the server 140 may obtain the internal cause information of the virtual character and output the corresponding water exit direction according to the internal cause information. The internal cause information of the virtual character may include the initial velocity of the triggering action, and the corresponding water exit direction is output according to the initial velocity of the triggering action.

[0051] In some embodiments, the control terminal 120 and / or the server 140 may obtain the external cause information of the virtual character and output the corresponding water exit direction according to the external cause information. The external cause information of the virtual character may include the user input information, environmental information, and intervention information, and the corresponding water exit direction is output according to the user input information, environmental information, and intervention information. The intervention information may include, but is not limited to, impact attribute information, etc.

[0052] According to some embodiments of the present application, the control terminal 120 and / or the server 140 may determine whether the real-time position coordinates XtYtZt of the virtual character belong to the spatial coordinate interval XijYijZij according to the obtained interval XijYijZij of the second medium environment space coordinates. When the real-time position coordinates XtYtZt of the virtual character belong to the spatial coordinate interval XijYijZij, it is determined that the virtual character enters the second medium environment.

[0053] According to some embodiments of the present application, during the process from the intervention action to the water exit action, when there is no obstacle in the preset area for the virtual character, the virtual character may perform the water exit action of leaving the second medium environment according to the preset water exit trajectory. For example, in a water medium environment, the virtual character performs the water exit action of leaving the second medium environment (for example, the water medium environment) according to the water exit trajectory. The water exit trajectory includes the water exit direction of the water exit action. As an example, when it is determined that the virtual character enters the second medium environment, the intervention point where the virtual character enters the second medium environment may be further determined, the distances between the intervention point and the boundaries of the second medium environment in each direction are judged, and the water exit trajectory of the water exit action is updated according to the distance comparison information and the preset conditions.

[0054] In 208, when the current environment is in the second state, according to the impact attributes of the virtual character and the first object, update the first trajectory, the second trajectory, and the third trajectory, and display the animation of the virtual character according to the updated trajectory information. Operation 208 can be implemented by the control terminal 120 and the server 140 of the information processing system 100 of the virtual character. In some embodiments, when the current environment is in the second state and an impact occurs with the virtual character, the control terminal 120 and / or the server 140 can update the first trajectory, the second trajectory, and the third trajectory according to the impact attributes of the virtual character and the first object, and display the animation of the virtual character according to the updated trajectory information. In some embodiments, the impact attributes may include, but are not limited to, impact mass, impact speed, impact direction, etc. The control terminal 120 and / or the server 140 can calculate and update the trajectory information according to impact attributes such as impact mass and impact speed. The impact mass may include the mass of the virtual character, the mass of the first object, etc. The impact speed may include the speed of the virtual character before and after impact, the speed of the first object before and after impact, etc. The impact direction may include the direction of the virtual character before and after impact, the direction of the first object before and after impact, etc. The control terminal 120 and / or the server 140 can automatically calculate and update a plurality of preset trajectory information according to values such as impact attributes, manage through a finite state machine, and display the animation of the virtual character according to the updated trajectory information. The trajectory information may include, but is not limited to, information such as initial velocity and movement direction.

[0055] According to some embodiments of the present application, process 200 can obtain the input information of the user in the trigger action, process action, intervention action, and exit action, update the first trajectory, the second trajectory, and the third trajectory according to the input information, and display the animation of the virtual character according to the updated trajectory information, etc.

[0056] According to some embodiments of the present application, process 200 can further include decomposing the animation of the virtual character into at least two animation segments. The at least two animation segments may include a first animation segment, a second animation segment, etc. The first animation segment may include the trigger action and process action in the first medium environment, and the second animation segment may include the intervention action and exit action in the second medium environment. In some embodiments, the first animation segment can be further decomposed into at least two animation sub-segments. For example, a trigger animation sub-segment (such as a takeoff animation), a process animation sub-segment (such as a falling animation), etc. In some embodiments, the second animation segment can be further decomposed into at least two animation sub-segments. For example, an intervention animation sub-segment (such as an entering water animation), an exit animation sub-segment (such as an exiting water animation), etc.

[0057] In some embodiments, process 200 may further preset the trajectory information of the virtual character in different actions through a state machine. The trajectory information may include, but is not limited to, take-off trajectory, falling trajectory, water-entry trajectory, water-exit trajectory, etc. In some embodiments, process 200 may further obtain the association information of the virtual character. The association information may include position information, first object information, internal factor information, and external factor information. The internal factor information may include, but is not limited to, information such as the initial take-off velocity of the virtual character; the external factor information may include, but is not limited to, input information, environmental information, intervention information, etc. The input information may include the input information of the user; the environmental information may include, but is not limited to, wind, rain, thunder, electricity, snow, etc.; the intervention information may include, but is not limited to, being hit by other characters, being hit by a stone, being hit by a bird, etc. In some embodiments, process 200 may further fuse the preset trajectory information according to the association information and update the animation parameters of the virtual character. As an example, when the virtual character is hit by other characters during the take-off process, the take-off trajectory can be updated by changing the take-off direction of the take-off trajectory, etc. Another example, when the virtual character is hit by a bird during the falling process, the falling trajectory can be updated by changing the falling direction of the falling trajectory, etc. Another example, when the environmental state of the virtual character during the falling process is a heavy rain, the falling trajectory can be updated by changing the falling speed of the falling trajectory, etc. Another example, when the virtual character is hit by a stone during the water-entry process, the water-entry trajectory can be updated by changing the water-entry point of the water-entry trajectory, etc. Another example, when the virtual character obtains the force parameter of the user input system during the water-exit process, the water-exit trajectory can be updated by changing the water-exit point of the water-exit trajectory, etc.

[0058] According to some embodiments of the present application, process 200 may further include obtaining an action library of motion capture through an infinite state machine. In some embodiments, according to the association information of the virtual character, the control end 120 and / or the server 140 may match the motion capture data, and update the animation parameters of the virtual character according to the motion capture data. In some embodiments, process 200 may update the weight of the state machine for changing the animation parameters according to the input information of the user. As an example, by presetting different weights for the input information, position information, first object information, internal factor information, external factor information, etc. of the user, the state machine may fuse the preset trajectory and different-direction trajectories generated according to different weight information to update the animation of the virtual character. The external factor information may include impact attributes, force field information, etc.

[0059] According to some embodiments of the present application, the animation of the virtual character may be displayed in the UI of the user end 130 and / or implemented in a specific scenario. The scenario may include, but is not limited to, any scenario or combination of scenarios such as VR, AR, MR, and XR.

[0060] Figure 3It is a horizontal schematic diagram for calculating distance according to the information processing method of a virtual character provided by some embodiments of the present application. As Figure 3 shown, the intervention action of the virtual character entering the second medium environment may include an intervention point, and the intervention point is the intersection point where the virtual character intervenes at the interface between the second medium environment and the first medium environment. As an example, when the second medium environment is a water medium environment, the intervention point of the virtual character is the water entry point, and the water entry point is the intersection point of the horizontal plane where the virtual character dives into the water medium environment. In some embodiments, taking the interface between the second medium environment and the first medium environment as the reference horizontal plane (in Figure 3 the horizontal schematic diagram, the reference horizontal plane is indicated by the reference horizontal line AOB of the cross-section), a vertical line is drawn from the position of the first object to the reference horizontal line, and the intersection point of the vertical line and the reference horizontal line is the position point of the first object, and the distance between the intervention point and the position point is calculated. As an example, when there are at least two first objects, the first objects may include object A and object B. A vertical line A is drawn from the position of object A to the reference horizontal line, and a vertical line B is drawn from the position of object B to the reference horizontal line. The position points where the vertical line A and the vertical line B intersect with the reference horizontal line are position point A and position point B respectively. The distance OA between the water entry point O and position point A, and the distance OB between the water entry point O and position point B are calculated, and the distance OA and the distance OB are compared, and the trajectory information of the virtual character is updated according to the comparison result.

[0061] In some embodiments, the trajectory information of the virtual character may include an exit direction (for example, the exit direction in the water medium environment). As an example, when the preset condition of the virtual character is a time limit (for example, the shortest time-consuming to exit the water medium environment, etc.), the virtual character updates the exit direction to O→A according to the comparison result that the distance OA is less than the distance OB. Another example is that when the preset condition of the virtual character is a target limit (for example, the target of exiting the water medium environment is to delay the water exit process, etc.), the virtual character updates the exit direction to O→B according to the comparison result that the distance OB is greater than the distance OA.

[0062] Figure 4 It is a top view schematic diagram for calculating distance according to the information processing method of a virtual character provided by some embodiments of the present application. As Figure 4 shown, in the top view schematic diagram, taking the virtual character (in Figure 4In the top - view schematic diagram, the character establishes a horizontal axis and a vertical axis coordinate system centered on a circle (the character is schematically represented as a circle). Multi - directional rays are drawn from the character to the four quadrants of the coordinate system to detect the distance to the first object (e.g., an obstacle) around the character. In some embodiments, a horizontal axis and a vertical axis coordinate system can be established centered on the first object (any object, such as an obstacle, etc.) around the character, and multi - directional rays are drawn from the first object around the character to the four quadrants of the coordinate system to detect the distance between the character and the first object around it.

[0063] According to some embodiments of the present application, a collision body can also be created on the virtual character to detect the distance to the first object (e.g., an obstacle) around the virtual character, etc.

[0064] It should be noted that the above description of process 200 is only for convenience of description and does not limit the present application to the scope of the exemplified embodiments. It can be understood that for those skilled in the art, based on the principle of this system, various combinations of the operations may be made without departing from the principle, or sub - processes may be formed and combined with other operations, and various modifications and changes in form and details may be made to the functions of implementing the above - mentioned processes and operations. For example, process 200 may further include operations such as obtaining an action library for motion capture through a finite - state machine and updating the animation parameters of the virtual character according to the motion capture data. Such variations are all within the protection scope of the present application.

[0065] In summary, according to a method and system for processing information of a virtual character according to an embodiment of the present application, by decomposing animation segments, automatically updating the weights of animation parameters according to numerical calculations, fusing preset trajectories, enriching animation effects, increasing the authenticity of the animation, and improving the user experience.

[0066] It should be noted that the above - mentioned embodiments are only used as examples, and the present application is not limited to such examples, but can be variously changed.

[0067] It should be noted that in this specification, the term "comprising", "including" or any other variant thereof is intended to cover non - exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.

[0068] Finally, it should also be noted that the above - mentioned series of processes include not only the processes executed in chronological order as described herein, but also processes executed in parallel or separately, rather than in chronological order.

[0069] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by hardware related to computer program instructions. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), etc.

[0070] The above-disclosed are only some preferred embodiments of the present application, and the scope of rights of the present application cannot be limited thereby. Those of ordinary skill in the art can understand all or part of the processes of the above embodiments, and the equivalent changes made according to the claims of the present application still fall within the scope covered by the invention.

Claims

1. A method for processing information of a virtual character, characterized in that, Including: Obtaining the first medium environment of the virtual character, as well as the trigger action and process action in the first medium environment; Detecting a first object within a preset area according to the first position of the trigger action and calculating a first distance between the virtual character at the first position and the first object; When the current environment is in the first state, the virtual character enters the process action according to the first trajectory; Detecting a first object within a preset area according to the second position of the process action and calculating a second distance between the virtual character at the second position and the first object; When the current environment is in the first state, the virtual character performs an intervention action to enter the second medium environment according to the second trajectory; Detecting a first object within a preset area according to the third position of the intervention action and calculating a third distance between the virtual character at the third position and the first object; wherein, the first distance, the second distance, and the third distance are used to determine the possibility of a collision between the virtual character and the first object; When the current environment is in the first state, the virtual character performs an exit action to leave the second medium environment according to the third trajectory, and the third trajectory includes the exit direction of the exit action; Wherein, when the current environment is in the second state, according to the collision attribute between the virtual character and the first object, the first trajectory, the second trajectory, and the third trajectory are updated, and the animation of the virtual character is displayed according to the updated trajectory information; There is no possibility of a collision with the first object in the first state, and there is a possibility of a collision with the first object in the second state; The information processing method of the virtual character specifically includes: decomposing the animation of the virtual character into at least two animation segments, the first animation segment includes the trigger action and process action in the first medium environment, and the second animation segment includes the intervention action and exit action in the second medium environment; presetting the trajectory information of the virtual character in different actions through a state machine; obtaining the associated information of the virtual character, the associated information includes position information, first object information, internal cause information, and external cause information, the internal cause information includes the initial velocity of the trigger action, and the external cause information includes the collision attribute; fusing the preset trajectory information according to the associated information and updating the animation parameters of the virtual character.

2. The method according to claim 1, characterized in that, The preset area includes the preset distance range of the virtual character, the collision attribute includes the mass of the collision object and the collision speed, and the displaying the animation of the virtual character according to the updated trajectory information specifically includes: Detecting whether there is a first object within the preset distance range of the virtual character; When a collision occurs with the virtual character in the second state of the current environment, calculating and updating the trajectory information according to the mass of the collision object and the collision speed, and the trajectory information includes the first trajectory, the second trajectory, and the third trajectory; When the current environment is in the second state, calculating the first distance, the second distance, and / or the third distance; When there are at least two first objects, comparing the at least two distance information and updating the trajectory information according to preset conditions; Managed by a finite state machine, display the animation of the virtual character according to the updated trajectory information.

3. The method according to claim 2, characterized in that, The specific process of the virtual character performing an exit action to leave the second medium environment according to the third trajectory includes: If there is no first object within the preset distance range of the virtual character, randomly output the exit direction; If there is a first object within the preset distance range of the virtual character, output the corresponding exit direction according to the distance information; If there are at least two first objects within the preset distance range of the virtual character, output the corresponding exit direction according to the comparison information of the distances and the preset conditions, where the preset conditions include the user's input information and the associated information of the virtual character.

4. The method according to claim 1, characterized in that, The information processing method of the virtual character specifically includes: Obtain the spatial coordinate range of the second medium environment and the real-time position coordinates of the virtual character; Judge whether the real-time position coordinates of the virtual character belong to the spatial coordinate range; When the real-time position coordinates of the virtual character belong to the spatial coordinate range, determine that the virtual character enters the second medium environment.

5. The method according to claim 1, characterized in that, The specific process of the virtual character performing an exit action to leave the second medium environment according to the third trajectory includes: Obtain the internal cause information of the virtual character, and output the corresponding exit direction according to the internal cause information; output the corresponding exit direction according to the initial velocity of the trigger action.

6. The method according to claim 1, characterized in that, The specific process of the virtual character performing an exit action to leave the second medium environment according to the third trajectory includes: Obtain the external cause information of the virtual character, and output the corresponding exit direction according to the external cause information.

7. The method according to claim 6, characterized in that, The external cause information of the virtual character includes the user's input information, environmental information, and intervention information, and output the corresponding exit direction according to the user's input information, environmental information, and intervention information.

8. The method according to claim 1, characterized in that, The specific process of updating the animation parameters of the virtual character includes: Obtain the action library of motion capture through an infinite state machine; Match the motion capture data according to the associated information of the virtual character; Update the animation parameters of the virtual character according to the motion capture data.

9. According to the method of claim 1, wherein The method further includes: During the process from the intervention action to the exit action, when there is no obstacle within the preset area for the virtual character, the virtual character performs an exit action to leave the second medium environment according to the preset exit trajectory.

10. A system, wherein Includes: A memory configured to store data and instructions; A processor communicating with the memory, wherein when executing the instructions in the memory, the processor is configured to: Obtain the first medium environment of the virtual character, as well as the trigger action and process action in the first medium environment; According to the first position of the trigger action, detect the first object within the preset area and calculate the first distance between the virtual character at the first position and the first object; When the current environment is in the first state, the virtual character enters the process action according to the first trajectory; According to the second position of the process action, detect the first object within the preset area and calculate the second distance between the virtual character at the second position and the first object; When the current environment is in the first state, the virtual character performs an intervention action to enter the second medium environment according to the second trajectory; According to the third position of the intervention action, a first object within a preset area is detected and a third distance between the virtual character at the third position and the first object is calculated; wherein, the first distance, the second distance, and the third distance are used to determine the possibility of a collision between the virtual character and the first object; When the current environment is in the first state, the virtual character performs an exit action to leave the second medium environment according to the third trajectory, and the third trajectory includes the exit direction of the exit action; Wherein, when the current environment is in the second state, according to the collision attributes of the virtual character and the first object, the first trajectory, the second trajectory, and the third trajectory are updated, and the animation of the virtual character is displayed according to the updated trajectory information; There is no possibility of a collision with the first object in the first state, and there is a possibility of a collision with the first object in the second state; The information processing method of the virtual character specifically includes: decomposing the animation of the virtual character into at least two animation segments, the first animation segment includes a trigger action and a process action in the first medium environment, and the second animation segment includes an intervention action and an exit action in the second medium environment; presetting the trajectory information of the virtual character in different actions through a state machine; obtaining the associated information of the virtual character, the associated information includes position information, first object information, internal cause information, and external cause information, the internal cause information includes the initial velocity of the trigger action, and the external cause information includes collision attributes; fusing the preset trajectory information according to the associated information to update the animation parameters of the virtual character.

Citation Information

Patent Citations

  • Animation generation method and device, electronic equipment and storage medium

    CN111223170A

  • Animation processing method and device, computer storage medium and electronic equipment

    CN111292401A