








技术领域technical field
本公开涉及计算机技术领域,具体而言,涉及一种虚拟对象的位姿控制方法、装置以及计算机存储介质。The present disclosure relates to the field of computer technologies, and in particular, to a method, device, and computer storage medium for pose control of a virtual object.
背景技术Background technique
随着计算机技术的发展,逐渐开发出各种交互式应用程序来满足用户的使用需求,比如游戏应用。一般在游戏应用中会设置虚拟角色的拾取动作,以使玩家能够控制虚拟角色拾取交互场景中的虚拟物品。With the development of computer technology, various interactive application programs are gradually developed to meet the needs of users, such as game applications. Generally, a pickup action of a virtual character is set in a game application, so that the player can control the virtual character to pick up virtual items in an interactive scene.
但是,一般设置的拾取动作虚拟角色手臂伸出的长度以及弯腰的角度均是固定的,当虚拟角色待拾取的虚拟物品与拾取动作不适配时,虚拟角色则无法拾取虚拟物品。However, the length of the arm extension and the bending angle of the avatar's arm are generally set for the pickup action. When the virtual item to be picked up by the avatar does not match the pickup action, the avatar cannot pick up the virtual item.
发明内容SUMMARY OF THE INVENTION
本公开实施例至少提供一种虚拟对象的位姿控制方法、装置以及计算机存储介质。The embodiments of the present disclosure provide at least a method, an apparatus, and a computer storage medium for pose control of a virtual object.
第一方面,本公开实施例提供了一种虚拟对象的位姿控制方法,包括:In a first aspect, an embodiment of the present disclosure provides a pose control method for a virtual object, including:
响应拾取目标虚拟物品的触发操作,获取所述目标虚拟物品的第一位姿信息;In response to the trigger operation of picking up the target virtual item, obtain the first pose information of the target virtual item;
根据所述第一位姿信息确定所述目标虚拟物品的目标标准姿态;Determine the target standard posture of the target virtual item according to the first posture information;
基于所述目标虚拟物品的第一位姿信息和所述目标标准姿态对应的第二位姿信息、以及目标虚拟角色执行拾取动作的目标部位的移动轨迹信息,展示所述目标虚拟物品变化到目标标准姿态、并被所述目标虚拟角色拾取的动画特效。Based on the first pose information of the target virtual item, the second pose information corresponding to the target standard pose, and the movement track information of the target part where the target virtual character performs the pickup action, it is displayed that the target virtual item changes to the target Standard posture and animation effects picked up by the target virtual character.
在一种可能的实施方式中,所述根据所述第一位姿信息确定所述目标虚拟物品的目标标准姿态:In a possible implementation manner, the determining the target standard posture of the target virtual item according to the first posture information:
从预先配置的所述目标虚拟物品对应的多个标准姿态中,确定与所述目标虚拟角色的拾取动作相匹配的候选标准姿态;from a plurality of preconfigured standard poses corresponding to the target virtual item, determining a candidate standard pose that matches the pickup action of the target virtual character;
分别计算所述目标虚拟物品从当前姿态变化到所述候选标准姿态的变化角度;respectively calculating the change angle of the target virtual item from the current posture to the candidate standard posture;
选择变化角度最小的所述候选标准姿态作为所述目标标准姿态。The candidate standard pose with the smallest change angle is selected as the target standard pose.
在一种可能的实施方式中,根据以下方式预先配置所述标准姿态:In a possible implementation, the standard pose is pre-configured in the following manner:
根据所述目标虚拟角色的至少一种拾取动作,配置与各所述拾取动作匹配的标准姿态;或者,根据所述目标虚拟物品的形状,配置多种所述标准姿态;其中,所述标准姿态具有对应的第二位姿信息。According to at least one pick-up action of the target virtual character, a standard pose matching each pick-up action is configured; or, according to the shape of the target virtual item, a plurality of the standard poses are configured; wherein, the standard pose It has the corresponding second pose information.
在一种可能的实施方式中,从预先配置的所述目标虚拟物品对应的多个标准姿态中,确定与所述目标虚拟角色的拾取动作相匹配的候选标准姿态,包括:In a possible implementation manner, from a plurality of pre-configured standard poses corresponding to the target virtual item, determining a candidate standard pose that matches the pickup action of the target virtual character, including:
根据所述目标虚拟角色执行所述拾取动作时所述目标部位的姿态信息,从预先配置的所述目标虚拟物品对应的多个标准位姿中,确定与所述目标部位的位姿信息匹配的所述候选标准姿态。According to the posture information of the target part when the target virtual character performs the pick-up action, from a plurality of pre-configured standard postures corresponding to the target virtual item, determine the one that matches the posture information of the target part. the candidate standard pose.
在一种可能的实施方式中,所述位姿信息包括姿态信息和位置信息,根据以下步骤展示所述动画特效:In a possible implementation manner, the posture information includes posture information and position information, and the animation special effect is displayed according to the following steps:
根据所述目标虚拟物品的所述姿态信息、以及所述目标标准姿态,展示所述目标虚拟物品从当前姿态旋转到目标标准姿态的旋转动画特效;以及,According to the attitude information of the target virtual item and the target standard attitude, displaying the special effect of the rotation animation of the target virtual item rotating from the current attitude to the target standard attitude; and,
根据所述目标虚拟物品的所述位置信息、以及所述目标虚拟角色的所述目标部位在执行拾取动作过程中的移动轨迹信息,展示所述目标虚拟物品跟随所述目标部位移动的移动动画特效。According to the position information of the target virtual item and the movement track information of the target part of the target virtual character in the process of performing the pick-up action, a moving animation special effect of the target virtual item moving with the target part is displayed .
在一种可能的实施方式中,展示所述目标虚拟物品从当前姿态旋转到目标标准姿态的旋转动画特效,以及所述目标虚拟物品跟随所述目标部位移动的移动动画特效,包括:In a possible implementation, displaying the special effect of the rotation animation of the target virtual item rotating from the current posture to the target standard posture, and the special animation effect of the movement of the target virtual item following the movement of the target part, including:
同步展示所述目标虚拟物品的旋转动画特效和移动动画特效。Simultaneously displaying the rotating animation special effects and the moving animation special effects of the target virtual item.
在一种可能的实施方式中,展示所述目标虚拟物品变化到目标标准姿态、并被所述目标虚拟角色拾取的动画特效,包括:In a possible implementation manner, displaying the animation special effects of the target virtual item changing to the target standard posture and being picked up by the target virtual character, including:
响应于所述目标虚拟角色执行完成弯腰动作的第一阶段动作,同步展示所述目标虚拟角色执行弯腰动作的第二阶段动作以及所述目标部位执行拾取动作的过程,以及所述目标虚拟物品从当前姿态旋转到目标标准姿态、并被所述目标虚拟角色拾取的动画特效。In response to the target avatar performing the first stage action of bending over, simultaneously displaying the second stage action of the target avatar performing the bending action and the process of the target part performing the picking action, and the target virtual character performing the second stage action The animation effect of the object being rotated from the current posture to the target standard posture and picked up by the target virtual character.
在一种可能的实施方式中,响应拾取目标虚拟物品的触发操作,获取所述目标虚拟物品的第一位姿信息,包括:In a possible implementation manner, in response to a trigger operation of picking up a target virtual item, acquiring the first pose information of the target virtual item includes:
响应针对当前交互界面中拾取按钮的触发操作,获取与所述触发操作对应的所述目标虚拟物品在场景地图坐标系下的第一绝对位姿信息,以及所述目标虚拟角色在场景地图坐标系下的第二绝对位姿信息;In response to the trigger operation for picking up the button in the current interactive interface, obtain the first absolute pose information of the target virtual item in the scene map coordinate system corresponding to the trigger operation, and the target virtual character in the scene map coordinate system. The second absolute pose information below;
根据所述第一绝对位姿信息和所述第二绝对位姿信息,确定所述目标虚拟物品相对所述目标虚拟角色的相对位姿信息,将该相对位姿信息作为所述目标虚拟物品的第一位姿信息。According to the first absolute pose information and the second absolute pose information, determine the relative pose information of the target virtual item relative to the target virtual character, and use the relative pose information as the target virtual item's relative pose information. First pose information.
第二方面,本公开实施例还提供一种虚拟对象的位姿控制装置,包括:In a second aspect, an embodiment of the present disclosure further provides a device for controlling a pose of a virtual object, including:
响应模块,用于响应拾取目标虚拟物品的触发操作,获取所述目标虚拟物品的第一位姿信息;a response module, configured to obtain the first pose information of the target virtual item in response to a trigger operation of picking up the target virtual item;
确定模块,用于根据所述第一位姿信息确定所述目标虚拟物品的目标标准姿态;a determining module, configured to determine the target standard posture of the target virtual item according to the first posture information;
展示模块,用于基于所述目标虚拟物品的第一位姿信息和所述目标标准姿态对应的第二位姿信息、以及目标虚拟角色执行拾取动作的目标部位的移动轨迹信息,展示所述目标虚拟物品变化到目标标准姿态、并被所述目标虚拟角色拾取的动画特效。A display module, configured to display the target based on the first pose information of the target virtual item and the second pose information corresponding to the target standard pose, and the movement track information of the target part of the target virtual character performing the pickup action The animation special effect that the virtual item changes to the target standard posture and is picked up by the target virtual character.
在一种可能的实施方式中,所述确定模块,具体用于从预先配置的所述目标虚拟物品对应的多个标准姿态中,确定与所述目标虚拟角色的拾取动作相匹配的候选标准姿态;分别计算所述目标虚拟物品从当前姿态变化到所述候选标准姿态的变化角度;选择变化角度最小的所述候选标准姿态作为所述目标标准姿态。In a possible implementation manner, the determining module is specifically configured to determine, from a plurality of pre-configured standard poses corresponding to the target virtual item, a candidate standard pose that matches the pickup action of the target virtual character ; Calculate the change angle of the target virtual item from the current posture to the candidate standard posture respectively; select the candidate standard posture with the smallest change angle as the target standard posture.
在一种可能的实施方式中,所述装置还包括:In a possible implementation, the device further includes:
配置模块,用于根据所述目标虚拟角色的至少一种拾取动作,配置与各所述拾取动作匹配的标准姿态;或者,根据所述目标虚拟物品的形状,配置多种所述标准姿态;其中,所述标准姿态具有对应的第二位姿信息。a configuration module, configured to configure a standard pose matching each of the pick-up actions according to at least one pickup action of the target virtual character; or, according to the shape of the target virtual item, configure a plurality of the standard poses; wherein , the standard pose has corresponding second pose information.
在一种可能的实施方式中,所述确定模块,具体用于根据所述目标虚拟角色执行所述拾取动作时所述目标部位的姿态信息,从预先配置的所述目标虚拟物品对应的多个标准姿态中,确定与所述目标部位的位姿信息匹配的所述候选标准姿态。In a possible implementation manner, the determining module is specifically configured to, according to the posture information of the target part when the target virtual character performs the pick-up action, select from a plurality of preconfigured objects corresponding to the target virtual item In the standard pose, the candidate standard pose that matches the pose information of the target part is determined.
在一种可能的实施方式中,所述位姿信息包括姿态信息和位置信息,所述展示模块,具体用于根据所述目标虚拟物品的所述姿态信息、以及所述目标标准姿态,展示所述目标虚拟物品从当前姿态旋转到目标标准姿态的旋转动画特效;以及,根据所述目标虚拟物品的所述位置信息、以及所述目标虚拟角色的所述目标部位在执行拾取动作过程中的移动轨迹信息,展示所述目标虚拟物品跟随所述目标部位移动的移动动画特效。In a possible implementation manner, the pose information includes pose information and position information, and the display module is specifically configured to display the pose information according to the pose information of the target virtual item and the target standard pose. and, according to the position information of the target virtual item and the movement of the target part of the target virtual character in the process of performing the pick-up action Track information, showing the moving animation special effects of the target virtual item moving along with the target part.
在一种可能的实施方式中,所述展示模块,具体用于同步展示所述目标虚拟物品的旋转动画特效和移动动画特效。In a possible implementation manner, the display module is specifically configured to synchronously display the rotation animation special effects and the moving animation special effects of the target virtual item.
在一种可能的实施方式中,所述展示模块,具体用于响应于所述目标虚拟角色执行完成弯腰动作的第一阶段动作,同步展示所述目标虚拟角色执行弯腰动作的第二阶段动作以及所述目标部位执行拾取动作的过程,以及所述目标虚拟物品从当前姿态旋转到目标标准姿态、并被所述目标虚拟角色拾取的动画特效。In a possible implementation, the display module is specifically configured to synchronously display the second stage of the target virtual character performing the bending action in response to the target virtual character performing the first stage action of bending over. The action and the process of picking up the target part, and the animation special effect of the target virtual item rotating from the current posture to the target standard posture and being picked up by the target virtual character.
在一种可能的实施方式中,所述响应模块,具体用于响应针对当前交互界面中拾取按钮的触发操作,获取与所述触发操作对应的所述目标虚拟物品的在场景地图坐标系下的第一绝对位姿信息,以及所述目标虚拟角色在场景地图坐标系下的第二绝对位姿信息;根据所述第一绝对位姿信息和所述第二绝对位姿信息,确定所述目标虚拟物品相对所述目标虚拟角色的相对位姿信息,将该相对位姿信息作为所述目标虚拟物品的第一位姿信息。In a possible implementation manner, the response module is specifically configured to, in response to a trigger operation for picking up a button in the current interactive interface, acquire the scene map coordinate system of the target virtual item corresponding to the trigger operation. the first absolute pose information, and the second absolute pose information of the target virtual character in the scene map coordinate system; the target is determined according to the first absolute pose information and the second absolute pose information The relative pose information of the virtual item relative to the target virtual character, and the relative pose information is used as the first pose information of the target virtual item.
第三方面,本公开可选实现方式还提供一种计算机设备,处理器、存储器,所述存储器存储有所述处理器可执行的机器可读指令,所述处理器用于执行所述存储器中存储的机器可读指令,所述机器可读指令被所述处理器执行时,所述机器可读指令被所述处理器执行时执行上述第一方面,或第一方面中任一种可能的实施方式中的步骤。In a third aspect, an optional implementation manner of the present disclosure further provides a computer device, a processor, and a memory, where the memory stores machine-readable instructions executable by the processor, and the processor is configured to execute the instructions stored in the memory. machine-readable instructions, when the machine-readable instructions are executed by the processor, when the machine-readable instructions are executed by the processor, the above-mentioned first aspect, or any possible implementation of the first aspect, is executed steps in the method.
第四方面,本公开可选实现方式还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被运行时执行上述第一方面,或第一方面中任一种可能的实施方式中的步骤。In a fourth aspect, an optional implementation manner of the present disclosure further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program executes the first aspect, or any of the first aspect, when the computer program is run. steps in one possible implementation.
本公开实施例提供的虚拟对象的位姿控制方法、装置以及计算机存储介质,响应针对目标虚拟物品的拾取触发操作,获取目标虚拟物品的第一位姿信息,然后,根据该第一位姿信息确定目标虚拟物品的目标标准姿态;然后,基于目标虚拟物品的第一位姿信息和目标标准姿态对应的第二位姿信息、以及目标虚拟角色执行拾取动作的目标部位的移动轨迹信息,展示目标虚拟物品从当前位姿变化到目标标准姿态、并被目标虚拟角色拾取的动画特效;在本公开实施例中,可以将处于任意姿态下的虚拟物品,调整到与目标虚拟角色的拾取动作适配的标准姿态,使用户可以控制目标虚拟角色拾取交互场景中处于任意姿态下的虚拟物品,并将虚拟物品的姿态调整过程、以及整个拾取过程展示给用户,使用户能够清晰获知虚拟角色拾取虚拟物品的整个过程,增强虚拟物品拾取过程的真实体验,本公开实施例中虚拟物品被拾取时的展示画面更加符合现实场景中物品被拾取的过程,从而增加了虚拟物品被拾取时展示画面的精准度。The pose control method, device, and computer storage medium of a virtual object provided by the embodiments of the present disclosure acquire first pose information of the target virtual object in response to a pickup trigger operation for the target virtual object, and then, according to the first pose information Determine the target standard pose of the target virtual item; then, based on the first pose information of the target virtual item and the second pose information corresponding to the target standard pose, and the movement track information of the target part where the target virtual character performs the pickup action, display the target An animation special effect in which the virtual item changes from the current pose to the target standard pose and is picked up by the target virtual character; in the embodiment of the present disclosure, the virtual item in any pose can be adjusted to suit the pickup action of the target virtual character The standard posture allows the user to control the target avatar to pick up virtual objects in any posture in the interactive scene, and display the posture adjustment process of the virtual object and the entire picking process to the user, so that the user can clearly know that the avatar picks up the virtual object The whole process of picking up the virtual item enhances the real experience of the virtual item picking process. In the embodiment of the present disclosure, the display screen when the virtual item is picked up is more in line with the picking process of the item in the real scene, thereby increasing the accuracy of the display screen when the virtual item is picked up. .
关于上述虚拟对象的位姿控制装置、计算机设备、及计算机可读存储介质的效果描述参见上述虚拟对象的位姿控制方法的说明,这里不再赘述。For the description of the effects of the above-mentioned virtual object pose control apparatus, computer equipment, and computer-readable storage medium, please refer to the description of the above-mentioned virtual object pose control method, which will not be repeated here.
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present disclosure more obvious and easy to understand, the preferred embodiments are exemplified below, and are described in detail as follows in conjunction with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,此处的附图被并入说明书中并构成本说明书中的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to explain the technical solutions of the embodiments of the present disclosure more clearly, the following briefly introduces the accompanying drawings required in the embodiments, which are incorporated into the specification and constitute a part of the specification. The drawings illustrate embodiments consistent with the present disclosure, and together with the description serve to explain the technical solutions of the present disclosure. It should be understood that the following drawings only show some embodiments of the present disclosure, and therefore should not be regarded as limiting the scope. Other related figures are obtained from these figures.
图1示出了本公开实施例所提供的一种虚拟对象的位姿控制方法的流程图;FIG. 1 shows a flowchart of a method for controlling the pose of a virtual object provided by an embodiment of the present disclosure;
图2示出了本公开实施例所提供的虚拟对象的位姿控制方法中,一种目标虚拟物品对应的多种标准姿态的示意图;2 shows a schematic diagram of multiple standard poses corresponding to a target virtual item in the pose control method of a virtual object provided by an embodiment of the present disclosure;
图3示出了本公开实施例所提供的虚拟对象的位姿控制方法中,一种当前交互界面的展示界面的示意图;3 shows a schematic diagram of a display interface of a current interactive interface in the pose control method of a virtual object provided by an embodiment of the present disclosure;
图4示出了本公开实施例所提供的虚拟对象的位姿控制方法中,一种弯腰动作的第一阶段动作的展示画面的示意图;4 shows a schematic diagram of a display screen of a first-stage action of a bending action in the pose control method of a virtual object provided by an embodiment of the present disclosure;
图5示出了本公开实施例所提供的虚拟对象的位姿控制方法中,一种弯腰动作的第二阶段动作的展示画面的示意图;FIG. 5 shows a schematic diagram of a display screen of a second-stage action of bending over in the pose control method of a virtual object provided by an embodiment of the present disclosure;
图6示出了本公开实施例所提供的虚拟对象的位姿控制方法中,一种目标虚拟物品的旋转动画特效的展示界面的示意图;6 shows a schematic diagram of a display interface of a rotating animation special effect of a target virtual object in the pose control method of a virtual object provided by an embodiment of the present disclosure;
图7示出了本公开实施例所提供的虚拟对象的位姿控制方法中,一种目标虚拟物品的移动动画特效的展示界面的示意图;7 shows a schematic diagram of a display interface of a moving animation special effect of a target virtual object in the pose control method of a virtual object provided by an embodiment of the present disclosure;
图8示出了本公开实施例所提供的一种虚拟对象的位姿控制装置的示意图;FIG. 8 shows a schematic diagram of a pose control device for a virtual object provided by an embodiment of the present disclosure;
图9示出了本公开实施例所提供的一种计算机设备的示意图。FIG. 9 shows a schematic diagram of a computer device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。通常在此处描述和示出的本公开实施例的组件可以以各种不同的配置来布置和设计。因此,以下对本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only These are some, but not all, embodiments of the present disclosure. The components of the disclosed embodiments generally described and illustrated herein may be arranged and designed in a variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure is not intended to limit the scope of the disclosure as claimed, but is merely representative of selected embodiments of the disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present disclosure.
一般在游戏应用中会设置虚拟角色的拾取动作,以使玩家能够控制虚拟角色拾取交互场景中的虚拟物品。但是,设置的拾取动作对应的手臂伸出的长度以及虚拟角色弯腰的角度均是固定的,当虚拟角色待拾取的虚拟物品与拾取动作不适配时,玩家无法控制虚拟角色拾取虚拟物品。Generally, a pickup action of a virtual character is set in a game application, so that the player can control the virtual character to pick up virtual items in an interactive scene. However, the length of the arm extension corresponding to the pickup action and the angle at which the avatar bends are fixed. When the virtual item to be picked up by the avatar does not match the pickup action, the player cannot control the avatar to pick up the virtual item.
基于上述研究,本公开提供了一种虚拟对象的位姿控制方法、装置以及计算机存储介质,可以将处于任意姿态下的虚拟物品,调整到与目标虚拟角色的拾取动作适配的标准姿态,使用户可以控制目标虚拟角色拾取交互场景中处于任意姿态下的虚拟物品,并将虚拟物品的姿态调整过程、以及整个拾取过程展示给用户,使用户能够清晰获知虚拟角色拾取虚拟物品的整个过程,增强虚拟物品拾取过程的真实体验,本公开实施例中虚拟物品被拾取时的展示画面更加符合现实场景中物品被拾取的过程,从而增加了虚拟物品被拾取时展示画面的精准度。Based on the above research, the present disclosure provides a pose control method, device, and computer storage medium for a virtual object, which can adjust a virtual object in any pose to a standard pose that matches the pickup action of the target virtual character, so that the The user can control the target virtual character to pick up the virtual item in any posture in the interactive scene, and display the posture adjustment process of the virtual item and the whole picking process to the user, so that the user can clearly know the whole process of the virtual character picking up the virtual item. For the real experience of the virtual item picking process, the display screen when the virtual item is picked up in the embodiment of the present disclosure is more in line with the picking process of the item in the real scene, thereby increasing the accuracy of the display screen when the virtual item is picked up.
针对以上方案所存在的缺陷,均是发明人在经过实践并仔细研究后得出的结果,因此,上述问题的发现过程以及下文中本公开针对上述问题所提出的解决方案,都应该是发明人在本公开过程中对本公开做出的贡献。The defects existing in the above solutions are all the results obtained by the inventor after practice and careful research. Therefore, the discovery process of the above problems and the solutions to the above problems proposed by the present disclosure hereinafter should be the inventors Contributions made to this disclosure during the course of this disclosure.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.
为便于对本实施例进行理解,首先对本公开实施例所公开的一种虚拟对象的位姿控制方法进行详细介绍,本公开实施例所提供的虚拟对象的位姿控制方法的执行主体一般为具有一定计算能力的计算机设备,该计算机设备例如包括:终端设备或服务器或其它处理设备,终端设备可以为用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字助理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备等。在一些可能的实现方式中,该虚拟对象的位姿控制方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。In order to facilitate the understanding of this embodiment, a method for controlling the pose of a virtual object disclosed in the embodiment of the present disclosure is first introduced in detail. Computer equipment with computing capabilities, the computer equipment includes for example: terminal equipment or server or other processing equipment, the terminal equipment can be user equipment (User Equipment, UE), mobile equipment, user terminals, terminals, cellular phones, cordless phones, personal digital Assistant (Personal Digital Assistant, PDA), handheld devices, computing devices, in-vehicle devices, wearable devices, etc. In some possible implementations, the pose control method of the virtual object may be implemented by the processor calling computer-readable instructions stored in the memory.
下面以执行主体为终端设备为例对本公开实施例提供的虚拟对象的位姿控制方法加以说明。The following describes the pose control method of the virtual object provided by the embodiment of the present disclosure by taking the execution subject as a terminal device as an example.
在一些交互应用中,可能存在玩家控制虚拟角色拾取或搬运交互场景中的虚拟物品的游戏过程,为了增强虚拟物品拾取过程的真实体验,使虚拟物品被拾取时的展示画面更加符合现实场景中物品被拾取的过程,本公开实施例提供了如下述步骤S101~步骤S103的虚拟对象的位姿控制方法,具体描述参如下所示。In some interactive applications, there may be a game process in which the player controls the virtual character to pick up or carry virtual items in the interactive scene. In order to enhance the real experience of the virtual item picking process, the display screen when the virtual item is picked up is more in line with the items in the real scene. In the process of being picked up, an embodiment of the present disclosure provides a method for controlling the pose of a virtual object as described in the following steps S101 to S103, and the specific description is as follows.
参见图1所示,为本公开实施例提供的虚拟对象的位姿控制方法的流程图,所述方法包括步骤S101~S103,其中:Referring to FIG. 1 , which is a flowchart of a method for controlling a pose of a virtual object according to an embodiment of the present disclosure, the method includes steps S101 to S103 , wherein:
S101、响应拾取目标虚拟物品的触发操作,获取所述目标虚拟物品的第一位姿信息。S101. Acquire first pose information of the target virtual item in response to a trigger operation of picking up the target virtual item.
其中,目标虚拟物品用来表征当前交互界面中用户待拾取的虚拟物品,可以包括当前交互界面中的任意虚拟物品,比如,可以包括当前交互界面中的石头、箱子、树枝、木头等多种物品中的至少一种。The target virtual item is used to represent the virtual item to be picked up by the user in the current interactive interface, and may include any virtual item in the current interactive interface, for example, may include stones, boxes, branches, wood and other items in the current interactive interface at least one of them.
这里,当前交互界面可以为交互类应用中的场景界面;比如,当交互类应用为游戏应用时,则该当前交互界面为游戏场景界面。Here, the current interactive interface may be a scene interface in an interactive application; for example, when the interactive application is a game application, the current interactive interface is a game scene interface.
其中,第一位姿信息可以包括目标虚拟物品的当前位置信息和当前姿态信息,这里,当前姿态信息可以是目标虚拟物品的当前朝向信息,也可以是目标虚拟物品相对交互界面的角度信息。The first attitude information may include current position information and current attitude information of the target virtual item, where the current attitude information may be the current orientation information of the target virtual item, or may be the angle information of the target virtual item relative to the interactive interface.
在具体实施中,用户在当前交互界面中触发拾取按钮后,终端设备响应针对当前交互界面中拾取按钮的触发操作,并获取当前交互界面中,用户待拾取的目标虚拟物品的在场景地图坐标系下的第一绝对位姿信息、以及目标虚拟角色在场景地图坐标系下的第二绝对位姿信息;根据第一绝对位姿信息和第二绝对位姿信息,确定目标虚拟物品相对目标虚拟角色的相对位姿信息,将该相对位姿信息作为目标虚拟物品的第一位姿信息。In a specific implementation, after the user triggers the pickup button in the current interactive interface, the terminal device responds to the trigger operation for the pickup button in the current interactive interface, and obtains the scene map coordinate system of the target virtual item to be picked up by the user in the current interactive interface and the second absolute pose information of the target virtual character in the scene map coordinate system; according to the first absolute pose information and the second absolute pose information, determine the target virtual item relative to the target virtual character The relative pose information of , and the relative pose information is taken as the first pose information of the target virtual item.
这里,目标虚拟物品的在场景地图坐标系下的第一绝对位姿信息可以包括:目标虚拟物品在当前交互场景地图坐标系下的当前位置信息和当前姿态信息;目标虚拟角色在场景地图坐标系下的第二绝对位姿信息可以包括:目标虚拟角色在当前交互场景地图坐标系下的当前位置信息和当前姿态信息;其中,当前交互场景可以包括游戏场景。Here, the first absolute pose information of the target virtual item in the scene map coordinate system may include: the current position information and current posture information of the target virtual item in the current interactive scene map coordinate system; the target virtual character in the scene map coordinate system The second absolute pose information may include: current position information and current posture information of the target virtual character in the current interaction scene map coordinate system; wherein, the current interaction scene may include a game scene.
这里,目标虚拟物品相对目标虚拟角色的相对位姿信息用来表征目标虚拟物品相对于目标虚拟角色的位置信息和姿态信息。Here, the relative pose information of the target virtual item relative to the target virtual character is used to represent the position information and attitude information of the target virtual item relative to the target virtual character.
在本公开实施例中,在获取到目标虚拟物品在当前交互场景坐标系下的位置信息和姿态信息、以及目标虚拟角色在当前交互场景坐标系下的位置信息和姿态信息后,可以基于预先存储的交互场景坐标系、和虚拟物品坐标系、以及虚拟角色坐标系之间的相对变换关系,通过坐标系变化,将目标虚拟物品在交互场景坐标系下的位置信息和姿态信息,变化到目标虚拟角色坐标系下,确定目标虚拟物品在目标虚拟角色坐标系下的位置信息和姿态信息(即确定目标虚拟物品相对目标虚拟角色的相对位姿信息),将确定的目标虚拟物品在目标虚拟角色坐标系下的位置信息和姿态信息,作为目标虚拟物品的第一位姿信息。In the embodiment of the present disclosure, after obtaining the position information and posture information of the target virtual item in the coordinate system of the current interaction scene, and the position information and posture information of the target virtual character in the coordinate system of the current interaction scene, the The relative transformation relationship between the coordinate system of the interactive scene, the coordinate system of the virtual item, and the coordinate system of the virtual character, through the change of the coordinate system, the position information and attitude information of the target virtual item in the coordinate system of the interactive scene are changed to the target virtual item. Under the character coordinate system, determine the position information and attitude information of the target virtual item in the target virtual character coordinate system (that is, determine the relative pose information of the target virtual item relative to the target virtual character), and place the determined target virtual item in the target virtual character coordinate system. The position information and attitude information under the system are used as the first attitude information of the target virtual item.
在具体实施中,基于步骤S101获取到目标虚拟物品相对于目标虚拟角色的相对位姿信息后,可以根据该相对位姿信息、以及目标虚拟角色在拾取目标虚拟物品时的拾取动作,确定与拾取动作匹配的目标标准姿态,具体描述参见下述步骤S102所示。In a specific implementation, after obtaining the relative pose information of the target virtual item relative to the target virtual character based on step S101, the relative pose information and the picking action of the target virtual character when picking up the target virtual item can be used to determine and pick up the target virtual item. The target standard posture of the action matching is described in the following step S102 for specific description.
S102、根据所述第一位姿信息确定所述目标虚拟物品的目标标准姿态。S102. Determine the target standard posture of the target virtual item according to the first posture information.
其中,目标标准姿态用来表征与目标虚拟角色的拾取动作适配的朝向,该目标标准姿态包括目标虚拟物品在目标虚拟角色坐标系下的相对姿态,与被目标虚拟角色拾取时目标虚拟角色的朝向相关;这里,目标标准姿态具有对应的第二位姿信息,关于第二位姿信息的详细描述参见下述步骤S103中对第二位姿信息的描述。Among them, the target standard posture is used to represent the orientation suitable for the pickup action of the target avatar, and the target standard posture includes the relative posture of the target avatar in the target avatar coordinate system, and the target avatar when it is picked up by the target avatar. The orientation is related; here, the target standard pose has corresponding second pose information. For the detailed description of the second pose information, refer to the description of the second pose information in the following step S103.
在具体实施中,会预先配置交互场景中每种虚拟物品在被拾取时对应的至少一种标准姿态,一般可以根据下述方法预先配置与目标虚拟角色的拾取动作适配的标准姿态,具体描述如下所示:根据目标虚拟角色的至少一种拾取动作,配置与各拾取动作匹配的标准姿态;或者,根据目标虚拟物品的形状,配置多种标准姿态。In the specific implementation, at least one standard posture corresponding to each virtual item in the interactive scene is pre-configured when it is picked up. Generally, the standard posture suitable for the pickup action of the target virtual character can be pre-configured according to the following method. As follows: according to at least one pickup action of the target virtual character, a standard pose matching each pickup action is configured; or, according to the shape of the target virtual item, multiple standard poses are configured.
其中,标准姿态具有对应的第二位姿信息;这里,标准姿态用来表征目标虚拟物品在被拾取时,与目标虚拟角色的拾取动作适配的标准朝向;第二位姿信息包括标准姿态信息、以及在标准姿态下目标虚拟物品的位置信息。Wherein, the standard posture has corresponding second posture information; here, the standard posture is used to represent the standard orientation of the target virtual object when it is picked up, which is adapted to the picking action of the target virtual character; the second posture information includes standard posture information , and the position information of the target virtual item in the standard pose.
具体的,可以根据拾取目标虚拟物品对应的标准动作,确定目标虚拟物品的标准姿态:当目标虚拟角色可以通过多种拾取动作拾取目标虚拟物品时,即目标虚拟物品对应多种拾取动作时,则为各种拾取动作均配置对应的标准姿态,也就是说为目标虚拟物品配置多种标准姿态,比如,目标虚拟角色可以通过三种拾取动作:拾取动作1、拾取动作2、拾取动作3拾取目标虚拟物品,则目标虚拟物品对应的标准姿态包括与拾取动作1匹配的标准姿态、与拾取动作2匹配的标准姿态、与拾取动作3匹配的标准姿态。Specifically, the standard posture of the target virtual item can be determined according to the standard actions corresponding to picking up the target virtual item: when the target virtual character can pick up the target virtual item through multiple pickup actions, that is, when the target virtual item corresponds to multiple pickup actions, then The corresponding standard poses are configured for various pickup actions, that is to say, multiple standard poses are configured for the target virtual item. For example, the target virtual character can pick up the target through three pickup actions: pickup action 1, pickup action 2, and pickup action 3. For virtual items, the standard poses corresponding to the target virtual item include a standard pose matching the pick-up action 1 , a standard pose matching the pick-up action 2 , and a standard pose matching the pick-up action 3 .
具体的,还可以根据目标虚拟物品的形状,为目标虚拟物品配置至少一个标准姿态;比如,当目标虚拟物品为长方体箱子时,由于长方体箱子有上面、下面、正面、背面、左侧面、右侧面六个面,因此,会为该长方体箱子配置与每个面对应的标准姿态,则该长方体箱子具有6个标准姿态,具体的长方体箱子的6种标准姿态的示意图可以如图2所示,包括上面朝下的标准姿态2a、下面朝下的标准姿态2b、正面朝下的标准姿态2c、背面朝下的标准姿态2d、左侧面朝下的标准姿态2e、右侧面朝下的标准姿态2f。Specifically, at least one standard pose can also be configured for the target virtual item according to the shape of the target virtual item; for example, when the target virtual item is a cuboid box, because the cuboid box has top, bottom, front, back, left side, right side There are six sides on the side. Therefore, the cuboid box will be configured with a standard attitude corresponding to each face. Then the cuboid box has six standard attitudes. The schematic diagram of the six standard attitudes of the specific cuboid box can be shown in Figure 2. It includes the standard attitude 2a facing down, the standard attitude 2b facing down, the standard attitude 2c facing down, the standard attitude 2d facing down, the standard attitude 2e facing down on the left side, and the standard attitude facing down on the right side. The standard pose of 2f.
这里,一般会将配置好的交互场景中每种虚拟物品对应的至少一种标准姿态进行存储。Here, at least one standard pose corresponding to each virtual item in the configured interaction scene is generally stored.
在具体实施中,在基于上述步骤S101确定目标虚拟物品的第一位姿信息后,可以从预先配置并存储的每种虚拟物品对应的至少一个标准姿态中,确定目标虚拟物品被目标虚拟角色拾取时,与目标虚拟角色的拾取动作相匹配的候选标准姿态;分别计算目标虚拟物品从当前姿态变化到候选标准姿态的变化角度,选择变化角度最小的候选标准姿态,作为目标虚拟物品的目标标准姿态。In a specific implementation, after determining the first pose information of the target virtual item based on the above step S101, it can be determined from the pre-configured and stored at least one standard pose corresponding to each virtual item that the target virtual item is picked up by the target virtual character When , the candidate standard pose that matches the pickup action of the target virtual character; calculate the change angle of the target virtual item from the current pose to the candidate standard pose, and select the candidate standard pose with the smallest change angle as the target standard pose of the target virtual item .
其中,变化角度是指目标虚拟物品从当前姿态变化到标准姿态的角度;这里,该变化可以包括旋转变化,因此,该变化角度可以包括旋转角度。The change angle refers to the angle at which the target virtual item changes from the current posture to the standard posture; here, the change may include a rotation change, so the change angle may include a rotation angle.
具体的,在确定目标虚拟物品的当前位置信息和当前姿态信息后,可以根据目标虚拟角色执行拾取动作时目标部位的姿态信息,从预先配置并存储的目标虚拟物品对应的至少一个标准姿态中,确定与目标部位的姿态信息匹配的候选标准姿态;然后,计算目标虚拟物品在虚拟角色坐标系下的当前朝向信息与目标虚拟物品在虚拟角色坐标系下的候选标准朝向之间的夹角(即计算目标虚拟物品从当前姿态变化到候选标准姿态的变化角度),将夹角(即变化角度)最小的目标候选标准姿态(朝向),作为目标虚拟物品的目标标准姿态(朝向)。Specifically, after determining the current position information and the current posture information of the target virtual item, according to the posture information of the target part when the target virtual character performs the picking action, from at least one standard posture corresponding to the target virtual item pre-configured and stored, Determine the candidate standard posture that matches the posture information of the target part; then, calculate the angle between the current orientation information of the target virtual item under the virtual character coordinate system and the candidate standard orientation of the target virtual item under the virtual character coordinate system (i.e. Calculate the change angle of the target virtual item from the current pose to the candidate standard pose), and take the target candidate standard pose (orientation) with the smallest included angle (ie, change angle) as the target standard pose (orientation) of the target virtual item.
其中,目标部位可以包括目标虚拟角色的手部;这里,目标部位的姿态信息可以包括两只手之间的相对位姿信息,也就是说可以包括两只手之间的相对距离信息、相对方位信息、相对朝向信息;这里,一般预先存储每种类型的虚拟物品对应的目标虚拟角色在拾取时所作的拾取动作的手部姿态信息,也就是说,一般会预先存储处于不同摆放情况下每种形状的虚拟物品被拾取时,目标虚拟角色的手部之间的相对距离、相对方位以及相对朝向;比如,处于正面朝下摆放在地面上的长方体形状的虚拟物品对应的拾取动作为:两只手平行、且两只手之间的距离与长方体的长相等;再比如,处于左侧面朝下摆放在地面上的长方体形状的虚拟物品对应的拾取动作为:两只手平行、且两只手之间的距离与长方体的宽相等;再比如,处于圆锥底面朝下摆放在地面上的圆锥形状的虚拟物品对应的拾取动作为:两只手处于半圆状态、且两只手构成的圆半径小于底面半径。Wherein, the target part can include the hand of the target virtual character; here, the posture information of the target part can include the relative posture information between the two hands, that is to say, it can include the relative distance information, relative orientation between the two hands information, relative orientation information; here, the hand posture information of the picking action performed by the target virtual character corresponding to each type of virtual item is generally pre-stored. When a virtual item of various shapes is picked up, the relative distance, relative orientation and relative orientation between the hands of the target avatar; for example, the picking action corresponding to the virtual item in the shape of a cuboid placed face down on the ground is: The two hands are parallel, and the distance between the two hands is equal to the length of the cuboid; for another example, the pickup action corresponding to a cuboid-shaped virtual item placed on the ground with the left side facing down is: the two hands are parallel, And the distance between the two hands is equal to the width of the cuboid; for another example, the pickup action corresponding to a conical-shaped virtual item placed on the ground with the bottom of the cone facing down is: the two hands are in a semicircle state, and the two hands The radius of the formed circle is smaller than the radius of the base.
示例性的,若当前交互界面的展示界面如图3所示(以终端设备为手机为例)时,该当前交互界面中包括:目标虚拟角色、与地面之间夹角为30度的长方体箱子(目标虚拟物品)、拾取按钮;当用户触发当前交互界面中的拾取按钮后,终端设备响应针对当前交互界面中拾取按钮的触发操作,并获取当前交互界面中,用户待拾取的目标虚拟物品(这里,该目标虚拟物品为正方体箱子)的第一位姿信息,在获取到正方体箱子的第一位姿信息后,可以根据目标虚拟角色在拾取图3中所示的正方体箱子时手部的姿态信息:两只手平行、两只手之间的距离可以等于正方体的边长,从预先配置并存储的正方体箱子对应的至少一种标准姿态中,确定该正方体箱子对应的预先配置的6种标准姿态;然后计算正方体箱子在目标虚拟角色坐标下的当前朝向、与上述确定的正方体箱子对应的6种标准朝向之间的夹角,并在正方体箱子对应的预先配置的6种标准姿态中,选择对应的夹角最小的标准姿态(即正方体箱子从目标虚拟角色坐标下的当前朝向变化到上述确定的正方体箱子对应的6种标准朝向时,变化角度最小的标准朝向):下面朝下的标准姿态2b,作为目标虚拟物品的目标标准姿态。Exemplarily, if the display interface of the current interactive interface is as shown in FIG. 3 (taking the terminal device as a mobile phone as an example), the current interactive interface includes: a target virtual character and a cuboid box with an angle of 30 degrees from the ground. (target virtual item), pickup button; when the user triggers the pickup button in the current interactive interface, the terminal device responds to the trigger operation for the pickup button in the current interactive interface, and obtains the target virtual item to be picked up by the user in the current interactive interface ( Here, the target virtual item is the first pose information of the cube box). After the first pose information of the cube box is obtained, the hand posture of the target virtual character when picking up the cube box shown in FIG. 3 can be used according to the Information: The two hands are parallel, and the distance between the two hands can be equal to the side length of the cube. From at least one standard posture corresponding to the preconfigured and stored cube box, determine the preconfigured 6 standards corresponding to the cube box Attitude; then calculate the current orientation of the cube box under the coordinates of the target virtual character, and the angle between the 6 standard orientations corresponding to the cube box determined above, and select from the 6 pre-configured standard postures corresponding to the cube box. The standard attitude with the smallest corresponding angle (that is, when the cube box changes from the current orientation under the coordinates of the target virtual character to the six standard orientations corresponding to the cube box determined above, the standard orientation with the smallest change angle): the standard attitude facing down 2b, as the target standard pose of the target virtual item.
在具体实施中,基于上述步骤S101确定目标虚拟物品的第一位姿信息,并基于步骤S102确定目标虚拟物品的目标标准姿态之后,可以根据目标虚拟物品的第一姿态信息、以及目标标准姿态对应的第二位姿信息、以及目标虚拟角色执行拾取动作时手部的移动轨迹,生成目标虚拟角色拾取目标虚拟物品的动画效果,具体描述参见下述步骤S103所示。In a specific implementation, after determining the first pose information of the target virtual item based on the above step S101, and determining the target standard pose of the target virtual item based on step S102, the first pose information of the target virtual item and the target standard pose corresponding to The second pose information of the target virtual character and the movement trajectory of the hand when the target virtual character performs the picking action, generate an animation effect of the target virtual character picking up the target virtual item. For a specific description, refer to the following step S103.
S103、基于所述目标虚拟物品的第一位姿信息和所述目标标准姿态对应的第二位姿信息、以及目标虚拟角色执行拾取动作的目标部位的移动轨迹信息,展示所述目标虚拟物品变化到目标标准姿态、并被所述目标虚拟角色拾取的动画特效。S103. Display the change of the target virtual item based on the first pose information of the target virtual item, the second pose information corresponding to the target standard pose, and the movement track information of the target part where the target virtual character performs the pickup action The animation effect of reaching the target standard pose and being picked up by the target virtual character.
其中,位姿信息包括目标虚拟物品在目标虚拟角色坐标系下的位置信息和姿态信息;这里,姿态信息为朝向信息。The pose information includes position information and attitude information of the target virtual item in the target virtual character coordinate system; here, the attitude information is orientation information.
这里,由于目标虚拟物品在每种标准姿态下都存在对应的标准位置;因此,会预先存储每种标准姿态下目标虚拟物品的位置信息,即在存储目标虚拟物品的标准姿态信息的同时,会对应存储标准位置信息;因此,可以由目标虚拟物品的标准姿态,确定该标准姿态下目标虚拟物品的标准位置,即可以根据目标虚拟物品的标准姿态,确定目标虚拟物品的在目标虚拟角色坐标系下的标准位姿信息。Here, since the target virtual item has a corresponding standard position in each standard attitude; therefore, the position information of the target virtual item under each standard attitude will be pre-stored, that is, when the standard attitude information of the target virtual item is stored, the target virtual item will be stored in advance. Correspondingly stores the standard position information; therefore, the standard position of the target virtual item under the standard attitude can be determined from the standard attitude of the target virtual item, that is, the target virtual item can be determined according to the standard attitude of the target virtual item in the target virtual character coordinate system The standard pose information under .
这里,目标标准姿态对应的第二位姿信息用来表征处于目标标准姿态下的目标虚拟物品的目标标准位姿信息,可以包括目标虚拟角色坐标系下目标标准姿态信息和目标标准位置信息。Here, the second pose information corresponding to the target standard pose is used to represent the target standard pose information of the target virtual item in the target standard pose, and may include target standard pose information and target standard position information in the target virtual character coordinate system.
在具体实施中,可以基于获取到的目标虚拟物品的第一位姿信息中的当前姿态信息、以及目标标准姿态,生成目标虚拟物品从当前姿态旋转到目标标准姿态的旋转动画特效(这里,在将目标虚拟物品从当前姿态旋转到目标标准姿态的同时,会将目标虚拟物品从第一位姿信息中的第一位置调整到目标标准姿态对应的第二位姿信息中的目标标准位置);并根据目标虚拟物品的第一位姿信息中的当前位置信息、以及目标标准姿态对应的第二位姿信息中的标准位置信息、以及目标虚拟角色的手部在执行拾取动作过程中的移动轨迹信息,生成在目标虚拟物品被拾取时,目标虚拟物品由第二位姿信息中的标准位置信息跟随目标虚拟角色的手部移动的移动动画特效,并同步展示目标虚拟物品的旋转动画特效和移动动画特效。In a specific implementation, based on the current posture information in the obtained first posture information of the target virtual item and the target standard posture, a rotation animation special effect in which the target virtual item is rotated from the current posture to the target standard posture can be generated (here, in While rotating the target virtual item from the current attitude to the target standard attitude, the target virtual item will be adjusted from the first position in the first attitude information to the target standard position in the second attitude information corresponding to the target standard attitude); And according to the current position information in the first pose information of the target virtual item, the standard position information in the second pose information corresponding to the target standard pose, and the movement trajectory of the hand of the target virtual character in the process of performing the pickup action information, which is generated when the target virtual item is picked up, the target virtual item is moved by the standard position information in the second pose information following the movement animation effect of the target virtual character's hand, and synchronously displays the rotation animation effect and movement of the target virtual item animation effects.
这里,旋转动画特效不仅包括目标虚拟物品从当前姿态旋转到目标标准姿态的姿态变化动画特效,还包括从第一姿态信息中的当前位置调整到和目标虚拟角色在进行拾取动作时手部的姿态信息匹配的第二姿态信息中的目标标准位置的位置变化动画特效(即移位动画特效)。Here, the rotation animation effect not only includes the attitude change animation effect of the target virtual item being rotated from the current attitude to the target standard attitude, but also includes the adjustment from the current position in the first attitude information to the position of the hand of the target virtual character when the pickup action is performed. The position change animation special effect (ie the displacement animation special effect) of the target standard position in the second attitude information whose information is matched.
这里,目标虚拟角色的手部在执行拾取动作过程中移动轨迹信息可以为根据拾取的虚拟物品的类型,预先设置好的;比如,拾取的物品为石头等体积较大、重量较大的虚拟物体时,则设置拾取石头的移动轨迹信息包括将石头从地面捡起并扛到目标虚拟角色的肩膀上的整个过程轨迹;再比如,拾取的物品为形状规则的箱子时,则设置拾取箱子的移动轨迹信息包括将箱子从地面搬起并搬到目标虚拟角色的腰部位置的整个过程轨迹。Here, the movement trajectory information of the target avatar's hand during the pickup action may be preset according to the type of the picked-up virtual object; for example, when the picked-up object is a large and heavy virtual object such as a stone , then setting the movement trajectory information of the picked stone includes the entire process trajectory of picking up the stone from the ground and carrying it on the shoulder of the target avatar; for another example, when the picked item is a box with a regular shape, set the movement trajectory of the picked box The information includes the entire process trajectory of lifting the box from the ground and moving it to the waist position of the target avatar.
具体的,在用户触发当前交互界面的拾取按钮后,目标虚拟角色执行弯腰动作的第一阶段动作,并在目标虚拟角色执行完成弯腰动作的第一阶段动作,执行弯腰动作的第二阶段动作和手部拾取动作时,同步进行将目标虚拟物品从第一位姿信息中的当前位姿变化到目标标准位姿、以及将目标虚拟物品从当前位置调整到和目标虚拟角色在进行拾取动作时手部的姿态信息匹配的第二姿态信息中的目标标准位置,并跟随目标虚拟角色的手部被拾取的拾取过程,这里,终端设备在展示目标虚拟角色执行弯腰动作的第二阶段动作以及手部执行拾取动作时,同步展示目标虚拟物品从当前姿态旋转到目标标准姿态的姿态变化动画特效、以及目标虚拟物品从当前位置调整到和目标虚拟角色在进行拾取动作时手部的姿态信息匹配的第二姿态信息中的目标标准位置的移位动画特效、以及目标虚拟物品在被拾取时跟随目标虚拟角色的手部移动的移动动画特效。Specifically, after the user triggers the pickup button of the current interactive interface, the target virtual character performs the first stage action of the bending over action, and the target virtual character performs the first stage action of completing the bending over action, and performs the second stage action of the bending over action. During the stage action and the hand pickup action, the target virtual item is changed from the current pose in the first pose information to the target standard pose, and the target virtual item is adjusted from the current position to the target virtual character is being picked up. During the action, the gesture information of the hand matches the target standard position in the second gesture information, and follows the pick-up process in which the hand of the target avatar is picked up. Here, the terminal device is displaying the second stage of the target avatar performing the bending action. When the action and the hand perform the pick-up action, the animation effects of the pose change of the target virtual item from the current pose to the target standard pose are displayed synchronously, and the target virtual item is adjusted from the current position to the hand pose of the target virtual character when the pick-up action is performed. The displacement animation effect of the target standard position in the second gesture information matched with the information, and the movement animation effect of the target virtual item following the hand movement of the target virtual character when it is picked up.
其中,弯腰动作的第一阶段动作用来表征目标虚拟角色弯腰的前半段,弯腰动作的第二阶段动作用来表征目标虚拟角色弯腰的后半段;这里,一般可以设置多种类型的弯腰动作,比如,可以包括目标虚拟角色的上半身弯曲、下半身不动(即改变目标虚拟角色的上半身与地面之间的夹角、下半身仍然处于与地面垂直的姿态不变)的动作,还可以包括目标虚拟角色的上半身弯曲、下半身蹲下(也就是,既改变目标虚拟角色的上半身与地面之间的夹角、也改变下半身的腿部与地面之间的夹角)的动作;这里,弯腰动作以目标虚拟角色的上半身弯曲、下半身不动的动作为例,则目标虚拟角色弯腰的前半段可以包括目标虚拟角色从竖直站立(即目标虚拟角色与地面垂直,且目标虚拟角色的上半身和下半身在同一水平线上,即目标虚拟角色的上半身与地面之间的夹角为90度,且目标虚拟角色下半身与地面之间的夹角也为90度)逐渐弯曲上半身,直到上半身与地面之间的夹角达到第一预设阈值(这里,第一预设阈值可以为根据多次实践结果计算得到的,比如,可以为45度),具体的弯腰动作的第一阶段动作的展示画面可以如图4所示,该展示画面中展示有目标虚拟角色由上半身与地面之间的夹角为30度的状态1,逐渐弯腰变换到上半身与地面之间的夹角为45度的状态2;目标虚拟角色弯腰的后半段可以包括目标虚拟角色从目标虚拟角色的上半身与地面之间的夹角达到第一预设阈值开始,逐渐弯曲上半身,直到上半身与地面平行,即与地面之间的夹角为0度;具体的弯腰动作的第二阶段动作的展示画面可以如图5所示,该展示画面中展示有目标虚拟角色由上半身与地面之间的夹角为45度的状态2,逐渐弯腰变换到上半身与地面之间的夹角为0度的状态3。Among them, the first stage of the bending action is used to represent the first half of the target avatar's bending, and the second stage of the bending action is used to represent the second half of the target avatar's bending; here, generally, a variety of The type of bending action, for example, can include the action of bending the upper body of the target avatar and immobilizing the lower body (that is, changing the angle between the upper body of the target avatar and the ground, and the lower body is still in a posture perpendicular to the ground), It can also include the action of bending the upper body of the target avatar and squatting the lower body (that is, changing both the angle between the upper body of the target avatar and the ground, and the angle between the legs of the lower body and the ground); here The bending action is taken as an example in which the upper body of the target avatar is bent and the lower body does not move, then the first half of the target avatar bending down may include the target avatar standing vertically (that is, the target avatar is perpendicular to the ground, and the target avatar is The upper body and lower body of the character are on the same horizontal line, that is, the angle between the upper body of the target avatar and the ground is 90 degrees, and the angle between the lower body of the target avatar and the ground is also 90 degrees) Gradually bend the upper body until the upper body The angle between the ground and the ground reaches the first preset threshold (here, the first preset threshold can be calculated according to the results of multiple practice, for example, it can be 45 degrees), the first stage of the specific bending action. The display screen can be as shown in Figure 4. The display screen shows the target virtual character from the state 1 where the angle between the upper body and the ground is 30 degrees, and gradually bends down and changes to the angle between the upper body and the ground is 45 degrees. State 2 of degrees; the second half of the target avatar bending down may include the target avatar starting from the angle between the upper body of the target avatar and the ground reaching the first preset threshold, and gradually bending the upper body until the upper body is parallel to the ground, That is, the angle between the ground and the ground is 0 degrees; the display screen of the second stage action of the specific bending action can be shown in Figure 5, and the display screen shows the angle between the upper body of the target virtual character and the ground. It is state 2 of 45 degrees, and gradually bends down to change to state 3 that the angle between the upper body and the ground is 0 degrees.
这里,目标虚拟对象在弯腰过程中,目标虚拟角色手部摆出拾取动作触碰目标虚拟物品,目标虚拟物品由当前姿态旋转到目标标准姿态,并跟随目标虚拟角色手部的移动而移动,从而生成目标虚拟物品从当前姿态旋转到目标标准姿态的姿态变化动画特效、以及目标虚拟物品从当前位置调整到和目标虚拟角色在进行拾取动作时手部的姿态信息匹配的第二姿态信息中的目标标准位置的移位动画特效、以及目标虚拟物品在被拾取时跟随目标虚拟角色的手部移动的移动动画特效,也即目标虚拟物品被拾取时的动画特效。Here, during the bending process of the target virtual object, the target virtual character's hand performs a pick-up action to touch the target virtual item, and the target virtual item rotates from the current posture to the target standard posture, and moves with the movement of the target virtual character's hand. Thereby, an animation special effect of attitude change in which the target virtual item is rotated from the current attitude to the target standard attitude is generated, and the target virtual item is adjusted from the current position to the second attitude information that matches the attitude information of the hand of the target virtual character when the pick-up action is performed. The displacement animation special effect of the target standard position and the moving animation special effect of the target virtual item following the hand movement of the target virtual character when it is picked up, that is, the animation special effect when the target virtual item is picked up.
示例性的,在用户触发交互界面中的拾取按钮后,目标虚拟角色执行弯腰动作的第一阶段动作(即目标虚拟角色的上半身与地面之间的夹角达到第一预设阈值)后,继续执行弯腰动作,终端设备在展示目标虚拟角色执行弯腰动作的第二阶段动作(即目标虚拟角色的上半身从与地面之间的夹角由第一预设阈值逐渐减小到0)以及手部执行拾取动作时,同步展示目标虚拟物品从当前姿态旋转到目标标准姿态的姿态变化动画特效、以及目标虚拟物品从当前位置调整到和目标虚拟角色在进行拾取动作时手部的姿态信息匹配的第二姿态信息中的目标标准位置的移位动画特效(这里,将目标虚拟物品从当前姿态旋转到目标标准姿态的姿态变化动画特效、以及目标虚拟物品从当前位置调整到和目标虚拟角色在进行拾取动作时手部的姿态信息匹配的第二姿态信息中的目标标准位置的移位动画特效,作为目标虚拟物品从当前姿态旋转到目标标准姿态的旋转动画特效)、以及目标虚拟物品在被拾取时跟随目标虚拟角色的手部移动的移动动画特效;具体的目标虚拟物品的旋转动画特效的展示界面如图6所示,以终端设备为手机为例,该展示界面中包括:目标虚拟角色、长方体箱子(目标虚拟物品)、以及从长方体箱子从当前姿态a旋转到目标标准姿态b的旋转变化过程,这里,用虚线长方体箱子表征处于当前姿态a的目标虚拟物品,实线长方体箱子表征旋转到目标标准姿态b的目标虚拟物品;具体的目标虚拟物品的移动动画特效的展示界面如图7所示,以终端设备为手机为例,该展示界面中包括:目标虚拟角色、长方体箱子(目标虚拟物品)、以及长方体箱子跟随目标虚拟角色的手部从位置a被移动到位置b的移动变化过程、以及位于位置a的目标虚拟物品和位于位置b的目标虚拟物品。Exemplarily, after the user triggers the pickup button in the interactive interface, the target virtual character performs the first stage action of the bending action (that is, after the angle between the upper body of the target virtual character and the ground reaches the first preset threshold), Continue to perform the bowing action, and the terminal device displays the second stage action of the target virtual character performing the bowing action (that is, the angle between the upper body of the target virtual character and the ground gradually decreases from the first preset threshold to 0) and When the hand performs the pick-up action, the animation effects of the pose change of the target virtual item rotating from the current pose to the target standard pose are displayed synchronously, and the target virtual item is adjusted from the current position to match the hand pose information of the target virtual character when the pick-up action is performed. The displacement animation special effect of the target standard position in the second posture information of The displacement animation effect of the target standard position in the second attitude information matched by the gesture information of the hand during the pickup action is used as the rotation animation effect of the target virtual item from the current attitude to the target standard attitude), and the target virtual item is being The moving animation special effect that follows the hand movement of the target virtual character when picking it up; the specific display interface of the rotating animation special effect of the target virtual item is shown in Figure 6. Taking the terminal device as a mobile phone as an example, the display interface includes: the target virtual character , the cuboid box (target virtual item), and the rotation change process from the cuboid box from the current pose a to the target standard pose b, here, the dashed cuboid box is used to represent the target virtual item in the current pose a, and the solid line cuboid box represents the rotation To the target virtual item of the target standard posture b; the display interface of the moving animation special effect of the specific target virtual item is shown in Figure 7, taking the terminal device as a mobile phone as an example, the display interface includes: the target virtual character, the cuboid box (target). virtual item), and the movement change process of the cuboid box being moved from position a to position b following the hand of the target avatar, and the target virtual item at position a and the target virtual item at position b.
本公开实施例中,响应针对目标虚拟物品的拾取触发操作,获取目标虚拟物品的第一位姿信息,然后,根据该第一位姿信息确定目标虚拟物品的目标标准姿态;然后,基于目标虚拟物品的第一位姿信息和目标标准姿态对应的第二位姿信息、以及目标虚拟角色执行拾取动作的目标部位的移动轨迹信息,展示目标虚拟物品从当前位姿变化到目标标准姿态、并被目标虚拟角色拾取的动画特效;;在本公开实施例中,可以将处于任意姿态下的虚拟物品,调整到与目标虚拟角色的拾取动作适配的标准姿态,使用户可以控制目标虚拟角色拾取交互场景中处于任意姿态下的虚拟物品,并将虚拟物品的姿态调整过程、以及整个拾取过程展示给用户,使用户能够清晰获知虚拟角色拾取虚拟物品的整个过程,增强虚拟物品拾取过程的真实体验,本公开实施例中虚拟物品被拾取时的展示画面更加符合现实场景中物品被拾取的过程,从而增加了虚拟物品被拾取时展示画面的精准度。In the embodiment of the present disclosure, in response to a pickup trigger operation for the target virtual item, the first pose information of the target virtual item is obtained, and then the target standard pose of the target virtual item is determined according to the first pose information; then, based on the target virtual item The first pose information of the item and the second pose information corresponding to the target standard pose, as well as the movement trajectory information of the target part of the target virtual character performing the pickup action, show that the target virtual item changes from the current pose to the target standard pose, and is The animation special effect of picking up the target virtual character; In the embodiment of the present disclosure, the virtual item in any posture can be adjusted to a standard posture suitable for the picking action of the target virtual character, so that the user can control the picking up interaction of the target virtual character The virtual items in any posture in the scene, and the posture adjustment process of the virtual items and the whole picking process are displayed to the user, so that the user can clearly know the whole process of picking up the virtual items by the virtual character, and enhance the real experience of the virtual item picking process. In the embodiment of the present disclosure, the display screen when the virtual item is picked up is more in line with the process of picking up the item in the real scene, thereby increasing the accuracy of the display screen when the virtual item is picked up.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above method of the specific implementation, the writing order of each step does not mean a strict execution order but constitutes any limitation on the implementation process, and the specific execution order of each step should be based on its function and possible Internal logic is determined.
基于同一发明构思,本公开实施例中还提供了与虚拟对象的位姿控制方法对应的虚拟对象的位姿控制装置,由于本公开实施例中的装置解决问题的原理与本公开实施例上述虚拟对象的位姿控制方法相似,因此装置的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, the embodiment of the present disclosure also provides a virtual object pose control device corresponding to the virtual object pose control method. The pose control methods of the objects are similar, so the implementation of the device can refer to the implementation of the method, and the repetition will not be repeated.
参照图8所示,为本公开实施例提供的一种虚拟对象的位姿控制装置800的示意图,所述装置包括:响应模块801、确定模块802和展示模块803;其中,Referring to FIG. 8 , which is a schematic diagram of a
响应模块801,用于响应拾取目标虚拟物品的触发操作,获取所述目标虚拟物品的第一位姿信息。The
确定模块802,用于根据所述第一位姿信息确定所述目标虚拟物品的目标标准姿态。The determining
展示模块803,用于基于所述目标虚拟物品的第一位姿信息和所述目标标准姿态对应的第二位姿信息、以及目标虚拟角色执行拾取动作的目标部位的移动轨迹信息,展示所述目标虚拟物品变化到目标标准姿态、并被所述目标虚拟角色拾取的动画特效。The
在一种可能的实施方式中,确定模块802,具体用于从预先配置的所述目标虚拟物品对应的多个标准姿态中,确定与所述目标虚拟角色的拾取动作相匹配的候选标准姿态;分别计算所述目标虚拟物品从当前姿态变化到所述候选标准姿态的变化角度;选择变化角度最小的所述候选标准姿态作为所述目标标准姿态。In a possible implementation manner, the determining
在一种可能的实施方式中,所述装置还包括:In a possible implementation, the device further includes:
配置模块,用于根据所述目标虚拟角色的至少一种拾取动作,配置与各所述拾取动作匹配的标准姿态;或者,根据所述目标虚拟物品的形状,配置多种所述标准姿态;其中,所述标准姿态具有对应的第二位姿信息。a configuration module, configured to configure a standard pose matching each of the pick-up actions according to at least one pickup action of the target virtual character; or, according to the shape of the target virtual item, configure a plurality of the standard poses; wherein , the standard pose has corresponding second pose information.
在一种可能的实施方式中,确定模块802,具体用于根据所述目标虚拟角色执行所述拾取动作时所述目标部位的姿态信息,从预先配置的所述目标虚拟物品对应的多个标准姿态中,确定与所述目标部位的位姿信息匹配的所述候选标准姿态。In a possible implementation manner, the determining
在一种可能的实施方式中,所述位姿信息包括姿态信息和位置信息,展示模块803,具体用于根据所述目标虚拟物品的所述姿态信息,以及所述目标标准姿态,展示所述目标虚拟物品从当前姿态旋转到目标标准姿态的旋转动画特效;以及,根据所述目标虚拟物品的所述位置信息、以及所述目标虚拟角色的所述目标部位在执行拾取动作过程中的移动轨迹信息,展示所述目标虚拟物品跟随所述目标部位移动的移动动画特效。In a possible implementation manner, the posture information includes posture information and position information, and the
在一种可能的实施方式中,展示模块803,具体用于同步展示所述目标虚拟物品的旋转动画特效和移动动画特效。In a possible implementation manner, the
在一种可能的实施方式中,展示模块803,具体用于响应于所述目标虚拟角色执行完成弯腰动作的第一阶段动作,同步展示所述目标虚拟角色执行弯腰动作的第二阶段动作以及所述目标部位执行拾取动作的过程,以及所述目标虚拟物品从当前姿态旋转到目标标准姿态、并被所述目标虚拟角色拾取的动画特效。In a possible implementation manner, the
在一种可能的实施方式中,响应模块801,具体用于响应针对当前交互界面中拾取按钮的触发操作,获取与所述触发操作对应的所述目标虚拟物品的在场景地图坐标系下的第一绝对位姿信息,以及所述目标虚拟角色在场景地图坐标系下的第二绝对位姿信息;根据所述第一绝对位姿信息和所述第二绝对位姿信息,确定所述目标虚拟物品相对所述目标虚拟角色的相对位姿信息,将该相对位姿信息作为所述目标虚拟物品的第一位姿信息。In a possible implementation manner, the
本公开实施例中,响应针对目标虚拟物品的拾取触发操作,获取目标虚拟物品的第一位姿信息,然后,根据该第一位姿信息确定目标虚拟物品的目标标准姿态;然后,基于目标虚拟物品的第一位姿信息和目标标准姿态对应的第二位姿信息、以及目标虚拟角色执行拾取动作的目标部位的移动轨迹信息,展示目标虚拟物品从当前位姿变化到目标标准姿态、并被目标虚拟角色拾取的动画特效;在本公开实施例中,可以将处于任意姿态下的虚拟物品,调整到与目标虚拟角色的拾取动作适配的标准姿态,使用户可以控制目标虚拟角色拾取交互场景中处于任意姿态下的虚拟物品,并将虚拟物品的姿态调整过程、以及整个拾取过程展示给用户,使用户能够清晰获知虚拟角色拾取虚拟物品的整个过程,增强虚拟物品拾取过程的真实体验,本公开实施例中虚拟物品被拾取时的展示画面更加符合现实场景中物品被拾取的过程,从而增加了虚拟物品被拾取时展示画面的精准度。In the embodiment of the present disclosure, in response to a pickup trigger operation for the target virtual item, the first pose information of the target virtual item is obtained, and then the target standard pose of the target virtual item is determined according to the first pose information; then, based on the target virtual item The first pose information of the item and the second pose information corresponding to the target standard pose, as well as the movement trajectory information of the target part of the target virtual character performing the pickup action, show that the target virtual item changes from the current pose to the target standard pose, and is The animation special effect of the target virtual character picking up; in the embodiment of the present disclosure, the virtual item in any posture can be adjusted to a standard posture suitable for the picking action of the target virtual character, so that the user can control the target virtual character to pick up the interactive scene The virtual items in any posture are displayed in the virtual item, and the posture adjustment process of the virtual item and the whole picking process are displayed to the user, so that the user can clearly know the whole process of the virtual character picking up the virtual item, and enhance the real experience of the virtual item picking process. In the disclosed embodiment, the displayed image when the virtual item is picked up is more in line with the process of picking up the item in the real scene, thereby increasing the accuracy of the displayed image when the virtual item is picked up.
关于装置中的各模块的处理流程、以及各模块之间的交互流程的描述可以参照上述方法实施例中的相关说明,这里不再详述。For the description of the processing flow of each module in the apparatus and the interaction flow between the modules, reference may be made to the relevant descriptions in the foregoing method embodiments, which will not be described in detail here.
基于同一技术构思,本申请实施例还提供了一种计算机设备。参照图9所示,为本申请实施例提供的计算机设备900的结构示意图,包括处理器901、存储器902、和总线903。其中,存储器902用于存储执行指令,包括内存9021和外部存储器9022;这里的内存9021也称内存储器,用于暂时存放处理器901中的运算数据,以及与硬盘等外部存储器9022交换的数据,处理器901通过内存9021与外部存储器9022进行数据交换,当计算机设备900运行时,处理器901与存储器902之间通过总线903通信,使得处理器901执行以下指令:Based on the same technical concept, the embodiments of the present application also provide a computer device. Referring to FIG. 9 , a schematic structural diagram of a computer device 900 provided in an embodiment of the present application includes a
响应拾取目标虚拟物品的触发操作,获取所述目标虚拟物品的第一位姿信息;根据所述第一位姿信息确定所述目标虚拟物品的目标标准姿态;基于所述目标虚拟物品的第一位姿信息和所述目标标准姿态对应的第二位姿信息、以及目标虚拟角色执行拾取动作的目标部位的移动轨迹信息,展示所述目标虚拟物品变化到目标标准姿态、并被所述目标虚拟角色拾取的动画特效。In response to the trigger operation of picking up the target virtual item, obtain first pose information of the target virtual item; determine the target standard pose of the target virtual item according to the first pose information; based on the first pose information of the target virtual item The pose information and the second pose information corresponding to the target standard pose, and the movement track information of the target part of the target virtual character performing the pick-up action, show that the target virtual item changes to the target standard pose and is virtualized by the target. Character pickup animation effects.
其中,处理器901的具体处理流程可以参照上述方法实施例的记载,这里不再赘述。For the specific processing flow of the
本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中所述的虚拟对象的位姿控制方法的步骤。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。Embodiments of the present disclosure further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the method for controlling the pose of a virtual object described in the foregoing method embodiments is executed. A step of. Wherein, the storage medium may be a volatile or non-volatile computer-readable storage medium.
本公开实施例还提供一种计算机程序产品,该计算机程序产品承载有程序代码,所述程序代码包括的指令可用于执行上述方法实施例中所述的虚拟对象的位姿控制方法的步骤,具体可参见上述方法实施例,在此不再赘述。Embodiments of the present disclosure further provide a computer program product, where the computer program product carries program codes, and the instructions included in the program codes can be used to execute the steps of the pose control method of the virtual object described in the above method embodiments, specifically Reference may be made to the foregoing method embodiments, and details are not described herein again.
其中,上述计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。Wherein, the above-mentioned computer program product can be specifically implemented by means of hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. Wait.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the system and device described above, reference may be made to the corresponding process in the foregoing method embodiments, which will not be repeated here. In the several embodiments provided by the present disclosure, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. The apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces, indirect coupling or communication connection of devices or units, which may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-OnlyMemory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a processor-executable non-volatile computer-readable storage medium. Based on such understanding, the technical solutions of the present disclosure can be embodied in the form of software products in essence, or the parts that contribute to the prior art or the parts of the technical solutions. The computer software products are stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes.
最后应说明的是:以上所述实施例,仅为本公开的具体实施方式,用以说明本公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that the above-mentioned embodiments are only specific implementations of the present disclosure, and are used to illustrate the technical solutions of the present disclosure rather than limit them. The protection scope of the present disclosure is not limited thereto, although referring to the foregoing The embodiments describe the present disclosure in detail. Those of ordinary skill in the art should understand that: any person skilled in the art can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed by the present disclosure. Changes can be easily thought of, or equivalent replacements are made to some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be covered in the present disclosure. within the scope of protection. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110088734.XACN112774203B (en) | 2021-01-22 | 2021-01-22 | Pose control method and device of virtual object and computer storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110088734.XACN112774203B (en) | 2021-01-22 | 2021-01-22 | Pose control method and device of virtual object and computer storage medium |
| Publication Number | Publication Date |
|---|---|
| CN112774203Atrue CN112774203A (en) | 2021-05-11 |
| CN112774203B CN112774203B (en) | 2023-04-28 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110088734.XAActiveCN112774203B (en) | 2021-01-22 | 2021-01-22 | Pose control method and device of virtual object and computer storage medium |
| Country | Link |
|---|---|
| CN (1) | CN112774203B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113362472A (en)* | 2021-05-27 | 2021-09-07 | 百度在线网络技术(北京)有限公司 | Article display method, apparatus, device, storage medium and program product |
| CN113570690A (en)* | 2021-08-02 | 2021-10-29 | 北京慧夜科技有限公司 | Interactive animation generation model training, interactive animation generation method and system |
| CN114155605A (en)* | 2021-12-03 | 2022-03-08 | 北京字跳网络技术有限公司 | A control method, device and computer storage medium |
| CN114245099A (en)* | 2021-12-13 | 2022-03-25 | 北京百度网讯科技有限公司 | Video generation method and device, electronic equipment and storage medium |
| CN114237396A (en)* | 2021-12-15 | 2022-03-25 | 北京字跳网络技术有限公司 | Action adjustment method, device, electronic device, and readable storage medium |
| CN114612553A (en)* | 2022-03-07 | 2022-06-10 | 北京字跳网络技术有限公司 | Virtual object control method and device, computer equipment and storage medium |
| CN115888111A (en)* | 2022-11-10 | 2023-04-04 | 珠海金山数字网络科技有限公司 | Virtual object interaction method and device |
| WO2023143217A1 (en)* | 2022-01-28 | 2023-08-03 | 北京字跳网络技术有限公司 | Special effect prop display method, apparatus, device, and storage medium |
| WO2025066320A1 (en)* | 2023-09-28 | 2025-04-03 | 腾讯科技(深圳)有限公司 | Virtual scene interaction data processing method and apparatus, and electronic device, computer program product and computer-readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2015172843A (en)* | 2014-03-11 | 2015-10-01 | 株式会社リコー | Item management device, item management system, item management method, and program |
| CN108579088A (en)* | 2018-04-28 | 2018-09-28 | 腾讯科技(深圳)有限公司 | The method, apparatus and medium that control virtual objects are picked up virtual objects |
| CN110370268A (en)* | 2018-09-11 | 2019-10-25 | 天津京东深拓机器人科技有限公司 | The methods, devices and systems sorted in case |
| CN111273780A (en)* | 2020-02-21 | 2020-06-12 | 腾讯科技(深圳)有限公司 | Animation playing method, device and equipment based on virtual environment and storage medium |
| CN111760275A (en)* | 2020-07-08 | 2020-10-13 | 网易(杭州)网络有限公司 | Game control method and device and electronic equipment |
| US20210216349A1 (en)* | 2018-07-19 | 2021-07-15 | Soul Machines Limited | Machine interaction |
| US20210268380A1 (en)* | 2019-04-11 | 2021-09-02 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for observing virtual item in virtual environment and readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2015172843A (en)* | 2014-03-11 | 2015-10-01 | 株式会社リコー | Item management device, item management system, item management method, and program |
| CN108579088A (en)* | 2018-04-28 | 2018-09-28 | 腾讯科技(深圳)有限公司 | The method, apparatus and medium that control virtual objects are picked up virtual objects |
| US20210216349A1 (en)* | 2018-07-19 | 2021-07-15 | Soul Machines Limited | Machine interaction |
| CN110370268A (en)* | 2018-09-11 | 2019-10-25 | 天津京东深拓机器人科技有限公司 | The methods, devices and systems sorted in case |
| US20210268380A1 (en)* | 2019-04-11 | 2021-09-02 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for observing virtual item in virtual environment and readable storage medium |
| CN111273780A (en)* | 2020-02-21 | 2020-06-12 | 腾讯科技(深圳)有限公司 | Animation playing method, device and equipment based on virtual environment and storage medium |
| CN111760275A (en)* | 2020-07-08 | 2020-10-13 | 网易(杭州)网络有限公司 | Game control method and device and electronic equipment |
| Title |
|---|
| 邹英强等: "空间方位向量与包围体策略结合的3D模型拾取", 《光电工程》* |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113362472A (en)* | 2021-05-27 | 2021-09-07 | 百度在线网络技术(北京)有限公司 | Article display method, apparatus, device, storage medium and program product |
| CN113570690A (en)* | 2021-08-02 | 2021-10-29 | 北京慧夜科技有限公司 | Interactive animation generation model training, interactive animation generation method and system |
| CN113570690B (en)* | 2021-08-02 | 2025-08-29 | 北京嗷呜嗷呜科技有限公司 | Interactive animation generation model training, interactive animation generation method and system |
| CN114155605B (en)* | 2021-12-03 | 2023-09-15 | 北京字跳网络技术有限公司 | A control method, device and computer storage medium |
| CN114155605A (en)* | 2021-12-03 | 2022-03-08 | 北京字跳网络技术有限公司 | A control method, device and computer storage medium |
| CN114245099A (en)* | 2021-12-13 | 2022-03-25 | 北京百度网讯科技有限公司 | Video generation method and device, electronic equipment and storage medium |
| CN114237396B (en)* | 2021-12-15 | 2023-08-15 | 北京字跳网络技术有限公司 | Action adjustment method, device, electronic device and readable storage medium |
| CN114237396A (en)* | 2021-12-15 | 2022-03-25 | 北京字跳网络技术有限公司 | Action adjustment method, device, electronic device, and readable storage medium |
| WO2023143217A1 (en)* | 2022-01-28 | 2023-08-03 | 北京字跳网络技术有限公司 | Special effect prop display method, apparatus, device, and storage medium |
| CN114612553A (en)* | 2022-03-07 | 2022-06-10 | 北京字跳网络技术有限公司 | Virtual object control method and device, computer equipment and storage medium |
| CN115888111A (en)* | 2022-11-10 | 2023-04-04 | 珠海金山数字网络科技有限公司 | Virtual object interaction method and device |
| CN115888111B (en)* | 2022-11-10 | 2025-09-23 | 珠海金山数字网络科技有限公司 | Virtual object interaction method and device |
| WO2025066320A1 (en)* | 2023-09-28 | 2025-04-03 | 腾讯科技(深圳)有限公司 | Virtual scene interaction data processing method and apparatus, and electronic device, computer program product and computer-readable storage medium |
| Publication number | Publication date |
|---|---|
| CN112774203B (en) | 2023-04-28 |
| Publication | Publication Date | Title |
|---|---|---|
| CN112774203B (en) | Pose control method and device of virtual object and computer storage medium | |
| CN112313605B (en) | Placement and manipulation of objects in an augmented reality environment | |
| US20220091725A1 (en) | Method, apparatus and device for view switching of virtual environment, and storage medium | |
| JP7331124B2 (en) | Virtual object control method, device, terminal and storage medium | |
| JP7076880B2 (en) | Posture determination method, device and medium of virtual object in virtual environment | |
| US9552673B2 (en) | Grasping virtual objects in augmented reality | |
| US20170352188A1 (en) | Support Based 3D Navigation | |
| CN112148197A (en) | Augmented reality AR interaction method and device, electronic equipment and storage medium | |
| WO2016123816A1 (en) | Aiming method and apparatus for shooting game | |
| CN111950521A (en) | A method, device, electronic device and storage medium for augmented reality interaction | |
| US11049325B2 (en) | Information processing apparatus, information processing method, and program | |
| CN111882674A (en) | Virtual object adjusting method and device, electronic equipment and storage medium | |
| CN112121406A (en) | Object control method and device, storage medium, electronic device | |
| CN112308977B (en) | Video processing method, video processing device, and storage medium | |
| CN116912463A (en) | 3D virtual image processing method, device, electronic device and readable storage medium | |
| JP2022540278A (en) | VIRTUAL OBJECT CONTROL METHOD, APPARATUS, COMPUTER DEVICE, AND COMPUTER PROGRAM | |
| CN110737326A (en) | Virtual object display method and device, terminal equipment and storage medium | |
| CN114949851A (en) | Augmented reality interaction method, device, electronic device and storage medium | |
| CN114327174A (en) | Virtual reality scene display method and cursor three-dimensional display method and device | |
| CN116889729A (en) | Somatosensory boxing game method based on function fitting | |
| CN113096152B (en) | Multi-object motion analysis method, apparatus, device and medium | |
| JP2022137142A (en) | Image generation program and image generation system | |
| CN109753152A (en) | Human body gesture-based interaction method and device, computer equipment | |
| KR101759631B1 (en) | Method for providing user interface for card game, and server and computer-readable recording media using the same | |
| JP7070245B2 (en) | Information processing device, motion control program, and motion control method |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |