CN112774203B - Pose control method and device of virtual object and computer storage medium - Google Patents
Pose control method and device of virtual object and computer storage medium Download PDFInfo
- Publication number
- CN112774203B CN112774203B CN202110088734.XA CN202110088734A CN112774203B CN 112774203 B CN112774203 B CN 112774203B CN 202110088734 A CN202110088734 A CN 202110088734A CN 112774203 B CN112774203 B CN 112774203B
- Authority
- CN
- China
- Prior art keywords
- target
- target virtual
- pose
- standard
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/80—Special adaptations for executing a specific game genre or game mode
- A63F13/822—Strategy games; Role-playing games
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
- G06T13/20—3D [Three Dimensional] animation
- G06T13/40—3D [Three Dimensional] animation of characters, e.g. humans, animals or virtual beings
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/80—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
- A63F2300/807—Role playing or strategy games
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本公开涉及计算机技术领域,具体而言,涉及一种虚拟对象的位姿控制方法、装置以及计算机存储介质。The present disclosure relates to the field of computer technology, in particular, to a method, device and computer storage medium for controlling the pose of a virtual object.
背景技术Background technique
随着计算机技术的发展,逐渐开发出各种交互式应用程序来满足用户的使用需求,比如游戏应用。一般在游戏应用中会设置虚拟角色的拾取动作,以使玩家能够控制虚拟角色拾取交互场景中的虚拟物品。With the development of computer technology, various interactive application programs are gradually developed to meet user needs, such as game applications. Generally, in a game application, a pick-up action of the virtual character is set, so that the player can control the virtual character to pick up virtual items in the interactive scene.
但是,一般设置的拾取动作虚拟角色手臂伸出的长度以及弯腰的角度均是固定的,当虚拟角色待拾取的虚拟物品与拾取动作不适配时,虚拟角色则无法拾取虚拟物品。However, the length of the avatar's arms and the angle of bending are generally fixed in the picking action. When the virtual item to be picked up by the avatar does not match the picking action, the avatar cannot pick up the virtual item.
发明内容Contents of the invention
本公开实施例至少提供一种虚拟对象的位姿控制方法、装置以及计算机存储介质。Embodiments of the present disclosure at least provide a pose control method, device, and computer storage medium of a virtual object.
第一方面,本公开实施例提供了一种虚拟对象的位姿控制方法,包括:In a first aspect, an embodiment of the present disclosure provides a pose control method of a virtual object, including:
响应拾取目标虚拟物品的触发操作,获取所述目标虚拟物品的第一位姿信息;Responding to the trigger operation of picking up the target virtual item, acquiring the first pose information of the target virtual item;
根据所述第一位姿信息确定所述目标虚拟物品的目标标准姿态;determining a 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 second pose information corresponding to the standard pose of the target, and the movement track information of the target part where the target virtual character performs the pick-up action, show that the target virtual item changes to the target An animation special effect of a standard posture and being picked up by the target avatar.
在一种可能的实施方式中,所述根据所述第一位姿信息确定所述目标虚拟物品的目标标准姿态:In a possible implementation manner, the determining the target standard pose of the target virtual item according to the first pose information:
从预先配置的所述目标虚拟物品对应的多个标准姿态中,确定与所述目标虚拟角色的拾取动作相匹配的候选标准姿态;From among a plurality of preconfigured standard postures corresponding to the target virtual item, determine a candidate standard posture that matches the pick-up 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 manner, the standard posture is preconfigured according to the following manner:
根据所述目标虚拟角色的至少一种拾取动作,配置与各所述拾取动作匹配的标准姿态;或者,根据所述目标虚拟物品的形状,配置多种所述标准姿态;其中,所述标准姿态具有对应的第二位姿信息。According to at least one pick-up action of the target virtual character, configure a standard pose matching each of the pick-up actions; or, according to the shape of the target virtual item, configure multiple standard poses; wherein, the standard poses has corresponding second pose information.
在一种可能的实施方式中,从预先配置的所述目标虚拟物品对应的多个标准姿态中,确定与所述目标虚拟角色的拾取动作相匹配的候选标准姿态,包括:In a possible implementation manner, determining a candidate standard pose that matches the pick-up action of the target virtual character from among multiple standard poses that are preconfigured corresponding to the target virtual item includes:
根据所述目标虚拟角色执行所述拾取动作时所述目标部位的姿态信息,从预先配置的所述目标虚拟物品对应的多个标准位姿中,确定与所述目标部位的位姿信息匹配的所述候选标准姿态。According to the posture information of the target part when the target avatar performs the picking action, from among a plurality of pre-configured standard poses corresponding to the target virtual item, determine the one that matches the pose information of the target part The candidate standard pose.
在一种可能的实施方式中,所述位姿信息包括姿态信息和位置信息,根据以下步骤展示所述动画特效:In a possible implementation manner, the pose information includes pose information and position information, and the animation special effect is displayed according to the following steps:
根据所述目标虚拟物品的所述姿态信息、以及所述目标标准姿态,展示所述目标虚拟物品从当前姿态旋转到目标标准姿态的旋转动画特效;以及,According to the posture information of the target virtual item and the target standard posture, display a rotation animation special effect of the target virtual item rotating from the current posture to the target standard posture; 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 during the pick-up action, display the moving animation special effect of the target virtual item following the target part .
在一种可能的实施方式中,展示所述目标虚拟物品从当前姿态旋转到目标标准姿态的旋转动画特效,以及所述目标虚拟物品跟随所述目标部位移动的移动动画特效,包括:In a possible implementation manner, displaying the rotation animation special effect of the target virtual item rotating from the current posture to the target standard posture, and the movement animation special effect of the target virtual item following the movement of the target part, include:
同步展示所述目标虚拟物品的旋转动画特效和移动动画特效。The rotation animation special effect and the movement animation special effect of the target virtual item are displayed synchronously.
在一种可能的实施方式中,展示所述目标虚拟物品变化到目标标准姿态、并被所述目标虚拟角色拾取的动画特效,包括:In a possible implementation manner, displaying an animation special effect that the target virtual item changes to the target standard posture and is picked up by the target virtual character includes:
响应于所述目标虚拟角色执行完成弯腰动作的第一阶段动作,同步展示所述目标虚拟角色执行弯腰动作的第二阶段动作以及所述目标部位执行拾取动作的过程,以及所述目标虚拟物品从当前姿态旋转到目标标准姿态、并被所述目标虚拟角色拾取的动画特效。In response to the target avatar performing the first phase of the bending action, synchronously display the process of the target avatar performing the second phase of the bending action and the target part performing the picking action, and the target avatar An animation special effect in which the item rotates from the current posture to the target standard posture and is picked up by the target avatar.
在一种可能的实施方式中,响应拾取目标虚拟物品的触发操作,获取所述目标虚拟物品的第一位姿信息,包括:In a possible implementation manner, in response to the trigger operation of picking up the target virtual item, acquiring the first pose information of the target virtual item includes:
响应针对当前交互界面中拾取按钮的触发操作,获取与所述触发操作对应的所述目标虚拟物品在场景地图坐标系下的第一绝对位姿信息,以及所述目标虚拟角色在场景地图坐标系下的第二绝对位姿信息;Responding to a trigger operation for picking up a button in the current interactive interface, acquiring the first absolute pose information of the target virtual item corresponding to the trigger operation in the scene map coordinate system, and the target virtual character in the scene map coordinate system The second absolute pose information under;
根据所述第一绝对位姿信息和所述第二绝对位姿信息,确定所述目标虚拟物品相对所述目标虚拟角色的相对位姿信息,将该相对位姿信息作为所述目标虚拟物品的第一位姿信息。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 first pose information.
第二方面,本公开实施例还提供一种虚拟对象的位姿控制装置,包括:In the second aspect, the embodiment of the present disclosure also provides a pose control device for a virtual object, including:
响应模块,用于响应拾取目标虚拟物品的触发操作,获取所述目标虚拟物品的第一位姿信息;A response module, configured to respond to the trigger operation of picking up the target virtual item, and obtain the first pose information of the target virtual item;
确定模块,用于根据所述第一位姿信息确定所述目标虚拟物品的目标标准姿态;A determining module, configured to determine a target standard pose of the target virtual item according to the first pose information;
展示模块,用于基于所述目标虚拟物品的第一位姿信息和所述目标标准姿态对应的第二位姿信息、以及目标虚拟角色执行拾取动作的目标部位的移动轨迹信息,展示所述目标虚拟物品变化到目标标准姿态、并被所述目标虚拟角色拾取的动画特效。A display module, configured to display the target 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 picking action. An animation special effect in which 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 a candidate standard pose that matches the pick-up action of the target virtual character from a plurality of pre-configured standard poses corresponding to the target virtual item ; respectively calculating the change angles of the target virtual item from the current pose to the candidate standard pose; selecting the candidate standard pose with the smallest change angle as the target standard pose.
在一种可能的实施方式中,所述装置还包括:In a possible implementation manner, the device also includes:
配置模块,用于根据所述目标虚拟角色的至少一种拾取动作,配置与各所述拾取动作匹配的标准姿态;或者,根据所述目标虚拟物品的形状,配置多种所述标准姿态;其中,所述标准姿态具有对应的第二位姿信息。The configuration module is configured to configure a standard pose matching each of the pick-up actions according to at least one pick-up action of the target virtual character; or configure multiple standard poses according to the shape of the target virtual item; 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 avatar performs the picking action, select from a plurality of pre-configured 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 target virtual item according to the pose information of the target virtual item and the target standard pose. The rotation animation effect of the target virtual item rotating from the current posture to the target standard posture; and, according to the position information of the target virtual item and the movement of the target part of the target virtual character during the picking action Trajectory information, showing the moving animation special effect 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 effect and the movement animation special effect of the target virtual item.
在一种可能的实施方式中,所述展示模块,具体用于响应于所述目标虚拟角色执行完成弯腰动作的第一阶段动作,同步展示所述目标虚拟角色执行弯腰动作的第二阶段动作以及所述目标部位执行拾取动作的过程,以及所述目标虚拟物品从当前姿态旋转到目标标准姿态、并被所述目标虚拟角色拾取的动画特效。In a possible implementation manner, the display module is specifically configured to, in response to the target avatar performing the first stage of bending over, synchronously displaying the target avatar performing the second stage of bending over Actions and the process of the target part performing the pick-up action, and the animation special effects that the target virtual item rotates from the current posture to the target standard posture and is 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 coordinates of the target virtual item corresponding to the trigger operation in the scene map coordinate system. The first absolute pose information, 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 The relative pose information of the virtual item relative to the target virtual character 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, the memory stores machine-readable instructions executable by the processor, and the processor is used 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 is executed, or any possible implementation of the first aspect steps in the method.
第四方面,本公开可选实现方式还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被运行时执行上述第一方面,或第一方面中任一种可能的实施方式中的步骤。In a fourth aspect, an optional implementation manner of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the above-mentioned first aspect, or any one of the first aspects in the first aspect, may be executed. Steps in one possible implementation.
本公开实施例提供的虚拟对象的位姿控制方法、装置以及计算机存储介质,响应针对目标虚拟物品的拾取触发操作,获取目标虚拟物品的第一位姿信息,然后,根据该第一位姿信息确定目标虚拟物品的目标标准姿态;然后,基于目标虚拟物品的第一位姿信息和目标标准姿态对应的第二位姿信息、以及目标虚拟角色执行拾取动作的目标部位的移动轨迹信息,展示目标虚拟物品从当前位姿变化到目标标准姿态、并被目标虚拟角色拾取的动画特效;在本公开实施例中,可以将处于任意姿态下的虚拟物品,调整到与目标虚拟角色的拾取动作适配的标准姿态,使用户可以控制目标虚拟角色拾取交互场景中处于任意姿态下的虚拟物品,并将虚拟物品的姿态调整过程、以及整个拾取过程展示给用户,使用户能够清晰获知虚拟角色拾取虚拟物品的整个过程,增强虚拟物品拾取过程的真实体验,本公开实施例中虚拟物品被拾取时的展示画面更加符合现实场景中物品被拾取的过程,从而增加了虚拟物品被拾取时展示画面的精准度。The method, device, and computer storage medium for controlling the pose of a virtual object provided by the embodiments of the present disclosure obtain the first pose information of the target virtual item in response to a pick-up trigger operation for the target virtual item, 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, 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 picking action, display the target Animated special effects in which virtual items change from the current pose to the target standard pose and are picked up by the target avatar; in the embodiments of the present disclosure, the virtual item in any pose can be adjusted to match the pick-up action of the target avatar The standard posture of the target virtual character allows the user to control the target virtual character to pick up the virtual item in any posture in the interactive scene, and displays the posture adjustment process of the virtual item and the entire picking process to the user, so that the user can clearly know that the virtual character picks up the virtual item The whole process of picking up virtual items enhances the real experience of the virtual item picking process. In the embodiment of the 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. .
关于上述虚拟对象的位姿控制装置、计算机设备、及计算机可读存储介质的效果描述参见上述虚拟对象的位姿控制方法的说明,这里不再赘述。For the effect description of the pose control device for the virtual object, the computer equipment, and the computer-readable storage medium, please refer to the description of the pose control method for the virtual object above, which will not be repeated here.
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,此处的附图被并入说明书中并构成本说明书中的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present disclosure more clearly, the following will briefly introduce the accompanying drawings used in the embodiments. The accompanying drawings here are incorporated into the specification and constitute a part of the specification. The drawings show the embodiments consistent with the present disclosure, and are used together with the description to explain the technical solution 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. For those skilled in the art, they can also make From these drawings other related drawings are obtained.
图1示出了本公开实施例所提供的一种虚拟对象的位姿控制方法的流程图;FIG. 1 shows a flow chart of a method for controlling the pose of a virtual object provided by an embodiment of the present disclosure;
图2示出了本公开实施例所提供的虚拟对象的位姿控制方法中,一种目标虚拟物品对应的多种标准姿态的示意图;Fig. 2 shows a schematic diagram of various 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示出了本公开实施例所提供的虚拟对象的位姿控制方法中,一种当前交互界面的展示界面的示意图;FIG. 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示出了本公开实施例所提供的虚拟对象的位姿控制方法中,一种弯腰动作的第一阶段动作的展示画面的示意图;Fig. 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 a bending action in the pose control method of a virtual object provided by an embodiment of the present disclosure;
图6示出了本公开实施例所提供的虚拟对象的位姿控制方法中,一种目标虚拟物品的旋转动画特效的展示界面的示意图;Fig. 6 shows a schematic diagram of a display interface of a rotation animation special effect of a target virtual item in the pose control method of a virtual object provided by an embodiment of the present disclosure;
图7示出了本公开实施例所提供的虚拟对象的位姿控制方法中,一种目标虚拟物品的移动动画特效的展示界面的示意图;Fig. 7 shows a schematic diagram of a display interface of a moving animation special effect of a target virtual item 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 virtual object pose control device 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 purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only It is a part of the embodiments of the present disclosure, but not all of them. The components of the disclosed embodiments generally described and illustrated herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the present disclosure is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative effort shall fall within the protection scope of the present disclosure.
一般在游戏应用中会设置虚拟角色的拾取动作,以使玩家能够控制虚拟角色拾取交互场景中的虚拟物品。但是,设置的拾取动作对应的手臂伸出的长度以及虚拟角色弯腰的角度均是固定的,当虚拟角色待拾取的虚拟物品与拾取动作不适配时,玩家无法控制虚拟角色拾取虚拟物品。Generally, in a game application, a pick-up action of the virtual character is set, so that the player can control the virtual character to pick up virtual items in the interactive scene. However, the extended length of the arm corresponding to the set picking action and the angle at which the avatar bends down are fixed. When the virtual item to be picked up by the avatar does not match the picking 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 of a virtual object, which can adjust a virtual item in any pose to a standard pose that matches the pick-up action of the target virtual character, so that 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 entire picking process to the user, so that the user can clearly understand the whole process of the virtual character picking up the virtual item, and enhance 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 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.
针对以上方案所存在的缺陷,均是发明人在经过实践并仔细研究后得出的结果,因此,上述问题的发现过程以及下文中本公开针对上述问题所提出的解决方案,都应该是发明人在本公开过程中对本公开做出的贡献。The defects 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 proposed by the present disclosure below for the above problems should be the result of the inventor Contributions made to this disclosure during the course of this disclosure.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that like numerals and letters denote similar items in the following figures, therefore, 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 and posture of a virtual object disclosed in the embodiments of the present disclosure is firstly introduced in detail. Computer equipment with computing power, 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 terminal, terminal, cellular phone, cordless phone, personal digital Assistant (Personal Digital Assistant, PDA), handheld devices, computing devices, vehicle-mounted devices, wearable devices, etc. In some possible implementation manners, the pose control method of the virtual object may be realized by calling a computer-readable instruction stored in a memory by a processor.
下面以执行主体为终端设备为例对本公开实施例提供的虚拟对象的位姿控制方法加以说明。The pose control method of the virtual object provided by the embodiments of the present disclosure will be described below 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. For the process of being picked, the embodiment of the present disclosure provides a pose control method 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 flow chart of a method for controlling the pose of a virtual object provided by an embodiment of the present disclosure, the method includes steps S101 to S103, wherein:
S101、响应拾取目标虚拟物品的触发操作,获取所述目标虚拟物品的第一位姿信息。S101. In response to a trigger operation of picking up a target virtual item, acquire first pose information of the target virtual item.
其中,目标虚拟物品用来表征当前交互界面中用户待拾取的虚拟物品,可以包括当前交互界面中的任意虚拟物品,比如,可以包括当前交互界面中的石头、箱子、树枝、木头等多种物品中的至少一种。Among them, 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 various items such as stones, boxes, branches, and wood in the current interactive interface at least one of the
这里,当前交互界面可以为交互类应用中的场景界面;比如,当交互类应用为游戏应用时,则该当前交互界面为游戏场景界面。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.
其中,第一位姿信息可以包括目标虚拟物品的当前位置信息和当前姿态信息,这里,当前姿态信息可以是目标虚拟物品的当前朝向信息,也可以是目标虚拟物品相对交互界面的角度信息。Wherein, the first pose information may include current position information and current posture information of the target virtual item. Here, the current posture information may be the current orientation information of the target virtual item, or the angle information of the target virtual item relative to the interactive interface.
在具体实施中,用户在当前交互界面中触发拾取按钮后,终端设备响应针对当前交互界面中拾取按钮的触发操作,并获取当前交互界面中,用户待拾取的目标虚拟物品的在场景地图坐标系下的第一绝对位姿信息、以及目标虚拟角色在场景地图坐标系下的第二绝对位姿信息;根据第一绝对位姿信息和第二绝对位姿信息,确定目标虚拟物品相对目标虚拟角色的相对位姿信息,将该相对位姿信息作为目标虚拟物品的第一位姿信息。In the 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 The first absolute pose information of the target avatar 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 avatar The relative pose information of the target virtual item is used 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 interaction scene map coordinate system; The second absolute pose information below may include: current position information and current attitude information of the target virtual character in the map coordinate system of the current interactive scene; wherein, the current interactive 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 posture 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 current interaction scene coordinate system, and the position information and posture information of the target virtual character in the current interaction scene coordinate system, based on the pre-stored The relative transformation relationship between the interactive scene coordinate system, the virtual item coordinate system, and the virtual character coordinate system, through the change of the coordinate system, the position information and posture information of the target virtual item in the interactive scene coordinate system are changed to the target virtual object Under the character coordinate system, determine the position information and posture 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 The position information and posture information under the system are used as the first pose information of the target virtual item.
在具体实施中,基于步骤S101获取到目标虚拟物品相对于目标虚拟角色的相对位姿信息后,可以根据该相对位姿信息、以及目标虚拟角色在拾取目标虚拟物品时的拾取动作,确定与拾取动作匹配的目标标准姿态,具体描述参见下述步骤S102所示。In a specific implementation, after the relative pose information of the target virtual item relative to the target virtual character is obtained based on step S101, the relative pose information and the pick-up 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. For the target standard posture of action matching, refer to the following step S102 for specific description.
S102、根据所述第一位姿信息确定所述目标虚拟物品的目标标准姿态。S102. Determine a target standard pose of the target virtual item according to the first pose information.
其中,目标标准姿态用来表征与目标虚拟角色的拾取动作适配的朝向,该目标标准姿态包括目标虚拟物品在目标虚拟角色坐标系下的相对姿态,与被目标虚拟角色拾取时目标虚拟角色的朝向相关;这里,目标标准姿态具有对应的第二位姿信息,关于第二位姿信息的详细描述参见下述步骤S103中对第二位姿信息的描述。Among them, the target standard pose is used to characterize the orientation adapted to the pick-up action of the target virtual character. The target standard pose includes the relative pose of the target virtual item in the coordinate system of the target virtual character, and the relative pose of the target virtual character when picked up by the target virtual character. Orientation correlation; here, the target standard pose has corresponding second pose information, and for a detailed description of the second pose information, refer to the description of the second pose information in step S103 below.
在具体实施中,会预先配置交互场景中每种虚拟物品在被拾取时对应的至少一种标准姿态,一般可以根据下述方法预先配置与目标虚拟角色的拾取动作适配的标准姿态,具体描述如下所示:根据目标虚拟角色的至少一种拾取动作,配置与各拾取动作匹配的标准姿态;或者,根据目标虚拟物品的形状,配置多种标准姿态。In the specific implementation, at least one standard posture corresponding to each virtual item in the interactive scene will be pre-configured when picked up. Generally, the standard posture adapted to the pickup action of the target virtual character can be pre-configured according to the following method, specifically described As follows: according to at least one pick-up action of the target virtual character, configure standard poses matching each pick-up action; or, according to the shape of the target virtual item, configure multiple standard poses.
其中,标准姿态具有对应的第二位姿信息;这里,标准姿态用来表征目标虚拟物品在被拾取时,与目标虚拟角色的拾取动作适配的标准朝向;第二位姿信息包括标准姿态信息、以及在标准姿态下目标虚拟物品的位置信息。Wherein, the standard pose has corresponding second pose information; here, the standard pose is used to represent the standard orientation adapted to the pick-up action of the target virtual character when the target virtual item is picked up; the second pose information includes the standard pose information , and the position information of the target virtual item in the standard posture.
具体的,可以根据拾取目标虚拟物品对应的标准动作,确定目标虚拟物品的标准姿态:当目标虚拟角色可以通过多种拾取动作拾取目标虚拟物品时,即目标虚拟物品对应多种拾取动作时,则为各种拾取动作均配置对应的标准姿态,也就是说为目标虚拟物品配置多种标准姿态,比如,目标虚拟角色可以通过三种拾取动作:拾取动作1、拾取动作2、拾取动作3拾取目标虚拟物品,则目标虚拟物品对应的标准姿态包括与拾取动作1匹配的标准姿态、与拾取动作2匹配的标准姿态、与拾取动作3匹配的标准姿态。Specifically, the standard posture of the target virtual item can be determined according to the standard action corresponding to picking up the target virtual item: when the target virtual character can pick up the target virtual item through multiple picking actions, that is, when the target virtual item corresponds to multiple picking actions, then Configure corresponding standard poses for various pick-up actions, that is to say, configure multiple standard poses for the target virtual item. For example, the target virtual character can pick up the target through three pick-up actions: pick-up action 1, pick-up action 2, and pick-up action 3 virtual item, the standard posture corresponding to the target virtual item includes the standard posture matching the picking action 1, the standard posture matching the picking action 2, and the standard posture matching the picking action 3.
具体的,还可以根据目标虚拟物品的形状,为目标虚拟物品配置至少一个标准姿态;比如,当目标虚拟物品为长方体箱子时,由于长方体箱子有上面、下面、正面、背面、左侧面、右侧面六个面,因此,会为该长方体箱子配置与每个面对应的标准姿态,则该长方体箱子具有6个标准姿态,具体的长方体箱子的6种标准姿态的示意图可以如图2所示,包括上面朝下的标准姿态2a、下面朝下的标准姿态2b、正面朝下的标准姿态2c、背面朝下的标准姿态2d、左侧面朝下的标准姿态2e、右侧面朝下的标准姿态2f。Specifically, at least one standard posture can 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, since the cuboid box has top, bottom, front, back, left, right There are six faces on the side, therefore, the cuboid box will be configured with a standard posture corresponding to each face, then the cuboid box has 6 standard postures, and the schematic diagram of the 6 standard postures of the specific cuboid box can be shown in Figure 2 shown, including the standard posture 2a facing down, the standard posture 2b facing down, the standard posture 2c facing down, the standard posture 2d facing down, the standard posture 2e facing down on the left side, and the standard posture facing down on the right side. The standard posture of 2f.
这里,一般会将配置好的交互场景中每种虚拟物品对应的至少一种标准姿态进行存储。Here, generally at least one standard posture corresponding to each virtual item in the configured interaction scene is stored.
在具体实施中,在基于上述步骤S101确定目标虚拟物品的第一位姿信息后,可以从预先配置并存储的每种虚拟物品对应的至少一个标准姿态中,确定目标虚拟物品被目标虚拟角色拾取时,与目标虚拟角色的拾取动作相匹配的候选标准姿态;分别计算目标虚拟物品从当前姿态变化到候选标准姿态的变化角度,选择变化角度最小的候选标准姿态,作为目标虚拟物品的目标标准姿态。In a specific implementation, after the first pose information of the target virtual item is determined based on the above step S101, it can be determined that the target virtual item is picked up by the target virtual character from at least one standard posture corresponding to each virtual item that is pre-configured and stored , the candidate standard pose that matches the pick-up action of the target virtual character; respectively 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 .
其中,变化角度是指目标虚拟物品从当前姿态变化到标准姿态的角度;这里,该变化可以包括旋转变化,因此,该变化角度可以包括旋转角度。Wherein, 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, therefore, the change angle may include a rotation angle.
具体的,在确定目标虚拟物品的当前位置信息和当前姿态信息后,可以根据目标虚拟角色执行拾取动作时目标部位的姿态信息,从预先配置并存储的目标虚拟物品对应的至少一个标准姿态中,确定与目标部位的姿态信息匹配的候选标准姿态;然后,计算目标虚拟物品在虚拟角色坐标系下的当前朝向信息与目标虚拟物品在虚拟角色坐标系下的候选标准朝向之间的夹角(即计算目标虚拟物品从当前姿态变化到候选标准姿态的变化角度),将夹角(即变化角度)最小的目标候选标准姿态(朝向),作为目标虚拟物品的目标标准姿态(朝向)。Specifically, after determining the current position information and 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 pre-configured and stored target virtual item, 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 in the virtual character coordinate system and the candidate standard orientation of the target virtual item in the virtual character coordinate system (ie Calculate the change angle of the target virtual item from the current posture to the candidate standard posture), and use the target candidate standard posture (orientation) with the smallest included angle (ie, the change angle) as the target standard posture (orientation) of the target virtual item.
其中,目标部位可以包括目标虚拟角色的手部;这里,目标部位的姿态信息可以包括两只手之间的相对位姿信息,也就是说可以包括两只手之间的相对距离信息、相对方位信息、相对朝向信息;这里,一般预先存储每种类型的虚拟物品对应的目标虚拟角色在拾取时所作的拾取动作的手部姿态信息,也就是说,一般会预先存储处于不同摆放情况下每种形状的虚拟物品被拾取时,目标虚拟角色的手部之间的相对距离、相对方位以及相对朝向;比如,处于正面朝下摆放在地面上的长方体形状的虚拟物品对应的拾取动作为:两只手平行、且两只手之间的距离与长方体的长相等;再比如,处于左侧面朝下摆放在地面上的长方体形状的虚拟物品对应的拾取动作为:两只手平行、且两只手之间的距离与长方体的宽相等;再比如,处于圆锥底面朝下摆放在地面上的圆锥形状的虚拟物品对应的拾取动作为:两只手处于半圆状态、且两只手构成的圆半径小于底面半径。Wherein, the target part may include the hand of the target avatar; here, the pose information of the target part may include the relative pose information between the two hands, that is to say, it may include the relative distance information and the relative orientation information 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 stored in advance, that is to say, the When a virtual item of this shape is picked up, the relative distance, relative orientation, and relative orientation between the hands of the target virtual character; for example, the corresponding pick-up action of a cuboid-shaped virtual item placed face-down on the ground is: Two hands are parallel, and the distance between the two hands is equal to the length of the cuboid. And the distance between the two hands is equal to the width of the cuboid; for another example, the pick-up action corresponding to the cone-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 Figure 3 (taking the terminal device as a mobile phone as an example), the current interactive interface includes: a target virtual character, a cuboid box with an angle of 30 degrees to 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 a cube box). After the first pose information of the cube box is obtained, the target virtual character can pick up the cube box shown in FIG. Information: 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 pre-configured and stored cube box, determine the 6 pre-configured standards corresponding to the cube box Posture; then calculate the angle between the current orientation of the cube box in the coordinates of the target virtual character and the six standard orientations corresponding to the above-mentioned determined cube box, and choose among the six pre-configured standard postures corresponding to the cube box The corresponding standard posture with the smallest included angle (that is, when the cube box changes from the current orientation under the coordinates of the target virtual character to the 6 standard orientations corresponding to the cube box determined above, the standard orientation with the smallest change angle): the standard posture with the bottom facing down 2b, as the target standard pose of the target virtual item.
在具体实施中,基于上述步骤S101确定目标虚拟物品的第一位姿信息,并基于步骤S102确定目标虚拟物品的目标标准姿态之后,可以根据目标虚拟物品的第一姿态信息、以及目标标准姿态对应的第二位姿信息、以及目标虚拟角色执行拾取动作时手部的移动轨迹,生成目标虚拟角色拾取目标虚拟物品的动画效果,具体描述参见下述步骤S103所示。In a specific implementation, after the first pose information of the target virtual item is determined based on the above step S101, and the target standard pose of the target virtual item is determined based on step S102, the first pose information of the target virtual item and the target standard pose can be correspondingly The second pose information of the target avatar and the moving track of the hand when the target avatar performs the pick-up action generate an animation effect of the target avatar picking up the target virtual item. For a specific description, refer to the following step S103.
S103、基于所述目标虚拟物品的第一位姿信息和所述目标标准姿态对应的第二位姿信息、以及目标虚拟角色执行拾取动作的目标部位的移动轨迹信息,展示所述目标虚拟物品变化到目标标准姿态、并被所述目标虚拟角色拾取的动画特效。S103. 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 a pick-up action, display the change of the target virtual item to the standard pose of the target and the animation special effect picked up by the target avatar.
其中,位姿信息包括目标虚拟物品在目标虚拟角色坐标系下的位置信息和姿态信息;这里,姿态信息为朝向信息。Wherein, the pose information includes position information and posture information of the target virtual item in the coordinate system of the target virtual character; here, the posture information is orientation information.
这里,由于目标虚拟物品在每种标准姿态下都存在对应的标准位置;因此,会预先存储每种标准姿态下目标虚拟物品的位置信息,即在存储目标虚拟物品的标准姿态信息的同时,会对应存储标准位置信息;因此,可以由目标虚拟物品的标准姿态,确定该标准姿态下目标虚拟物品的标准位置,即可以根据目标虚拟物品的标准姿态,确定目标虚拟物品的在目标虚拟角色坐标系下的标准位姿信息。Here, since the target virtual item has a corresponding standard position under each standard posture; therefore, the position information of the target virtual item under each standard posture will be stored in advance, that is, while storing the standard posture information of the target virtual item, it will The standard position information is correspondingly stored; therefore, the standard position of the target virtual item in the target virtual character coordinate system can be determined according to the standard position of the target virtual item according to the standard position of the target virtual item. The standard pose information below.
这里,目标标准姿态对应的第二位姿信息用来表征处于目标标准姿态下的目标虚拟物品的目标标准位姿信息,可以包括目标虚拟角色坐标系下目标标准姿态信息和目标标准位置信息。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 acquired current pose information in the first pose information of the target virtual item and the target standard pose, a rotation animation special effect of the target virtual item rotating from the current pose to the target standard pose can be generated (here, in While rotating the target virtual item from the current pose to the target standard pose, the target virtual item will be adjusted from the first position in the first pose information to the target standard position in the second pose information corresponding to the target standard pose); 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 standard pose of the target, and the moving track of the target virtual character's hand during the picking action information, to generate the movement animation special effect of the target virtual item following the hand movement of the target virtual character from the standard position information in the second pose information when the target virtual item is picked up, and simultaneously display the rotation animation special effect and movement of the target virtual item Animation effects.
这里,旋转动画特效不仅包括目标虚拟物品从当前姿态旋转到目标标准姿态的姿态变化动画特效,还包括从第一姿态信息中的当前位置调整到和目标虚拟角色在进行拾取动作时手部的姿态信息匹配的第二姿态信息中的目标标准位置的位置变化动画特效(即移位动画特效)。Here, the rotation animation special effect not only includes the posture change animation special effect of the target virtual item rotating from the current posture to the target standard posture, but also includes the adjustment from the current position in the first posture information to the posture of the hand of the target virtual character when picking up. The position change animation special effect (that is, the displacement animation special effect) of the standard position of the target in the information matching second attitude information.
这里,目标虚拟角色的手部在执行拾取动作过程中移动轨迹信息可以为根据拾取的虚拟物品的类型,预先设置好的;比如,拾取的物品为石头等体积较大、重量较大的虚拟物体时,则设置拾取石头的移动轨迹信息包括将石头从地面捡起并扛到目标虚拟角色的肩膀上的整个过程轨迹;再比如,拾取的物品为形状规则的箱子时,则设置拾取箱子的移动轨迹信息包括将箱子从地面搬起并搬到目标虚拟角色的腰部位置的整个过程轨迹。Here, the moving trajectory information of the hand of the target virtual character during the picking action can be preset according to the type of virtual item picked up; , then set the movement track information of picking up the stone, including the whole process track of picking up the stone from the ground and carrying it to the shoulder of the target avatar; The information includes the trajectory of the entire process of lifting the box from the ground to the waist position of the target avatar.
具体的,在用户触发当前交互界面的拾取按钮后,目标虚拟角色执行弯腰动作的第一阶段动作,并在目标虚拟角色执行完成弯腰动作的第一阶段动作,执行弯腰动作的第二阶段动作和手部拾取动作时,同步进行将目标虚拟物品从第一位姿信息中的当前位姿变化到目标标准位姿、以及将目标虚拟物品从当前位置调整到和目标虚拟角色在进行拾取动作时手部的姿态信息匹配的第二姿态信息中的目标标准位置,并跟随目标虚拟角色的手部被拾取的拾取过程,这里,终端设备在展示目标虚拟角色执行弯腰动作的第二阶段动作以及手部执行拾取动作时,同步展示目标虚拟物品从当前姿态旋转到目标标准姿态的姿态变化动画特效、以及目标虚拟物品从当前位置调整到和目标虚拟角色在进行拾取动作时手部的姿态信息匹配的第二姿态信息中的目标标准位置的移位动画特效、以及目标虚拟物品在被拾取时跟随目标虚拟角色的手部移动的移动动画特效。Specifically, after the user triggers the pick button on the current interaction interface, the target avatar performs the first phase of the bending action, and after the target avatar performs the first phase of the bending action, it executes the second phase of the bending action. During the stage action and the hand picking 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 when picking it up. The posture information of the hand matches the target standard position in the second posture information during the action, and follows the picking process in which the hand of the target avatar is picked up. Here, the terminal device is in the second stage of showing the target avatar to perform the bending action When the action and the hand perform the picking action, the posture change animation effect of the target virtual item rotating from the current posture to the target standard posture is displayed synchronously, and the target virtual item is adjusted from the current position to the posture of the hand when the target virtual character is picking up the action. The moving animation special effect of the target standard position in the second posture information matched with the information, and the moving animation special effect of following the hand movement of the target virtual character when the target virtual item 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 is used to represent the second half of the target avatar's bending; type of bending action, for example, can include the upper body of the target virtual character bending, the lower body does not move (that is, the angle between the upper body of the target virtual character and the ground is changed, and the lower body is still in the same posture perpendicular to the ground), It can also include the action of bending the upper body of the target virtual character and squatting the lower body (that is, changing the angle between the upper body of the target virtual character and the ground, and changing the angle between the legs of the lower body and the ground); here , taking the bending action of the target avatar as an example, where the upper body of the target avatar bends and the lower body does not move. 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 virtual character and the ground is 90 degrees, and the angle between the lower body of the target virtual character 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 based on multiple practice results, 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. In this display screen, the target virtual character is shown in state 1 where the angle between the upper body and the ground is 30 degrees, and gradually bends down to change to the angle between the upper body and the ground is 45 degrees. The second half of the bending of the target virtual character may include that the target virtual character starts to bend the upper body of the target virtual character when the angle between the upper body of the target virtual character and the ground reaches the first preset threshold 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 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 State 2 is 45 degrees, gradually bend down to change to state 3 where 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 moves to pick up and touch the target virtual item, 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, In this way, the pose change animation effect of the target virtual item rotating from the current pose to the target standard pose is generated, and the target virtual item is adjusted from the current position to the second pose information that matches the pose information of the hand of the target virtual character when picking up the action. The displacement animation effect of the target standard position, and the movement animation effect of the target virtual item following the movement of the target virtual character's hand when being picked up, that is, the animation 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, and the target avatar performs the first phase of the bending action (that is, after the angle between the upper body of the target avatar and the ground reaches the first preset threshold), Continue to perform the bending action, and the terminal device displays the target virtual character performing the second stage of the bending action (that is, the upper body of the target virtual character gradually reduces the angle between the upper body and the ground from the first preset threshold to 0) and When the hand performs a pick-up action, the animation effect of the target virtual item's posture change from the current posture to the target standard posture is displayed synchronously, and the target virtual item is adjusted from the current position to match the posture information of the target virtual character's hand when picking up the action. The displacement animation special effect of the target standard position in the second posture information (here, the posture change animation special effect of rotating the target virtual item from the current posture to the target standard posture, and the target virtual item is adjusted from the current position to the target virtual character in the The displacement animation special effect of the target standard position in the second posture information matched by the posture information of the hand when performing the picking action, as the rotation animation special effect of the target virtual item rotating from the current posture to the target standard posture), and the target virtual item when 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 rotation 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 , a cuboid box (target virtual item), and the rotation change process from the cuboid box from the current posture a to the target standard posture b. Here, the dotted line cuboid box represents the target virtual item in the current posture a, and the solid line cuboid box represents the rotation The target virtual item to the target standard posture b; the specific display interface of the moving animation special effects of the target virtual item is shown in Figure 7. Taking the terminal device as a mobile phone as an example, the display interface includes: target virtual character, cuboid box (target virtual item), and the cuboid box follows the movement change process of the target virtual character's hand from position a to position b, 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 pick-up 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 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 where the target virtual character performs the picking action, show that the target virtual item changes from the current pose to the target standard pose, and is Animated special effects for the target virtual character to pick up; In the embodiment of the present disclosure, the virtual item in any posture can be adjusted to a standard posture that matches the target virtual character’s picking action, so that the user can control the target virtual character to pick up and interact Virtual items in any posture in the scene, and the posture adjustment process of virtual items and the entire picking process are displayed to users, so that users can clearly understand the entire process of picking up virtual items by virtual characters, and enhance the real experience of picking up virtual items. 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 specific implementation, the writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possible The inner logic is OK.
基于同一发明构思,本公开实施例中还提供了与虚拟对象的位姿控制方法对应的虚拟对象的位姿控制装置,由于本公开实施例中的装置解决问题的原理与本公开实施例上述虚拟对象的位姿控制方法相似,因此装置的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, the embodiment of the present disclosure also provides a virtual object pose control device corresponding to the pose control method of the virtual object. Since the problem-solving principle of the device in the embodiment of the present disclosure is the same as that of the virtual object described above in the embodiment of the present disclosure The pose control method of the object is 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 , it is a schematic diagram of a virtual object pose
响应模块801,用于响应拾取目标虚拟物品的触发操作,获取所述目标虚拟物品的第一位姿信息。The
确定模块802,用于根据所述第一位姿信息确定所述目标虚拟物品的目标标准姿态。A determining
展示模块803,用于基于所述目标虚拟物品的第一位姿信息和所述目标标准姿态对应的第二位姿信息、以及目标虚拟角色执行拾取动作的目标部位的移动轨迹信息,展示所述目标虚拟物品变化到目标标准姿态、并被所述目标虚拟角色拾取的动画特效。The
在一种可能的实施方式中,确定模块802,具体用于从预先配置的所述目标虚拟物品对应的多个标准姿态中,确定与所述目标虚拟角色的拾取动作相匹配的候选标准姿态;分别计算所述目标虚拟物品从当前姿态变化到所述候选标准姿态的变化角度;选择变化角度最小的所述候选标准姿态作为所述目标标准姿态。In a possible implementation manner, the determining
在一种可能的实施方式中,所述装置还包括:In a possible implementation manner, the device also includes:
配置模块,用于根据所述目标虚拟角色的至少一种拾取动作,配置与各所述拾取动作匹配的标准姿态;或者,根据所述目标虚拟物品的形状,配置多种所述标准姿态;其中,所述标准姿态具有对应的第二位姿信息。The configuration module is configured to configure a standard pose matching each of the pick-up actions according to at least one pick-up action of the target virtual character; or configure multiple standard poses according to the shape of the target virtual item; wherein , the standard pose has corresponding second pose information.
在一种可能的实施方式中,确定模块802,具体用于根据所述目标虚拟角色执行所述拾取动作时所述目标部位的姿态信息,从预先配置的所述目标虚拟物品对应的多个标准姿态中,确定与所述目标部位的位姿信息匹配的所述候选标准姿态。In a possible implementation manner, the determining
在一种可能的实施方式中,所述位姿信息包括姿态信息和位置信息,展示模块803,具体用于根据所述目标虚拟物品的所述姿态信息,以及所述目标标准姿态,展示所述目标虚拟物品从当前姿态旋转到目标标准姿态的旋转动画特效;以及,根据所述目标虚拟物品的所述位置信息、以及所述目标虚拟角色的所述目标部位在执行拾取动作过程中的移动轨迹信息,展示所述目标虚拟物品跟随所述目标部位移动的移动动画特效。In a possible implementation manner, the pose information includes pose 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 pick-up 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 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 where the target virtual character performs the picking 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 that matches the picking action of the target virtual character, so that the user can control the target virtual character to pick up the interactive scene virtual items in any posture, and display the posture adjustment process and the entire picking process of the virtual items to the user, so that the user can clearly understand the entire 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 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.
关于装置中的各模块的处理流程、以及各模块之间的交互流程的描述可以参照上述方法实施例中的相关说明,这里不再详述。For the description of the processing flow of each module in the device and the interaction flow between the modules, reference may be made to the relevant description in the above method embodiment, and details will not be described 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 idea, the embodiment of the present application also provides a computer device. Referring to FIG. 9 , it is a schematic structural diagram of a computer device 900 provided by an embodiment of the present application, including a
响应拾取目标虚拟物品的触发操作,获取所述目标虚拟物品的第一位姿信息;根据所述第一位姿信息确定所述目标虚拟物品的目标标准姿态;基于所述目标虚拟物品的第一位姿信息和所述目标标准姿态对应的第二位姿信息、以及目标虚拟角色执行拾取动作的目标部位的移动轨迹信息,展示所述目标虚拟物品变化到目标标准姿态、并被所述目标虚拟角色拾取的动画特效。Responding to the trigger operation of picking up the target virtual item, acquiring the first pose information of the target virtual item; determining the target standard posture 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, as well as the movement track information of the target part where the target avatar performs the pick-up action, show that the target virtual item changes to the target standard pose and is virtualized by the target. Animation effects for character pickup.
其中,处理器901的具体处理流程可以参照上述方法实施例的记载,这里不再赘述。Wherein, for the specific processing flow of the
本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中所述的虚拟对象的位姿控制方法的步骤。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。An embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the method for controlling the pose of a virtual object described in the above-mentioned method embodiments is executed. A step of. Wherein, the storage medium may be a volatile or non-volatile computer-readable storage medium.
本公开实施例还提供一种计算机程序产品,该计算机程序产品承载有程序代码,所述程序代码包括的指令可用于执行上述方法实施例中所述的虚拟对象的位姿控制方法的步骤,具体可参见上述方法实施例,在此不再赘述。The embodiment of the present disclosure also provides a computer program product, the computer program product carries a program code, and the instructions included in the program code can be used to execute the steps of the method for controlling the pose of a virtual object described in the method embodiment above, specifically Reference may be made to the foregoing method embodiments, and details are not repeated here.
其中,上述计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。Wherein, the above-mentioned computer program product may 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, the specific working process of the above-described system and device can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. The device 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 can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-OnlyMemory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage medium includes: various media that can store program codes such as U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk.
最后应说明的是:以上所述实施例,仅为本公开的具体实施方式,用以说明本公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应所述以权利要求的保护范围为准。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, and the protection scope of the present disclosure is not limited thereto, although referring to the aforementioned The embodiments have described the present disclosure in detail, and those skilled in the art should understand that any person familiar with the technical field can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present disclosure Changes can be easily imagined, or equivalent replacements can be 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 included in this disclosure. within the scope of protection. Therefore, the protection scope of the present disclosure should be defined by the protection scope of the claims.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110088734.XA CN112774203B (en) | 2021-01-22 | 2021-01-22 | Pose control method and device of virtual object and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110088734.XA CN112774203B (en) | 2021-01-22 | 2021-01-22 | Pose control method and device of virtual object and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112774203A CN112774203A (en) | 2021-05-11 |
CN112774203B true CN112774203B (en) | 2023-04-28 |
Family
ID=75758599
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110088734.XA Active CN112774203B (en) | 2021-01-22 | 2021-01-22 | Pose control method and device of virtual object and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112774203B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113362472B (en) * | 2021-05-27 | 2022-11-01 | 百度在线网络技术(北京)有限公司 | 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 |
CN114155605B (en) * | 2021-12-03 | 2023-09-15 | 北京字跳网络技术有限公司 | A control method, device and computer storage medium |
CN114245099B (en) * | 2021-12-13 | 2023-02-21 | 北京百度网讯科技有限公司 | 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 |
CN114445600A (en) * | 2022-01-28 | 2022-05-06 | 北京字跳网络技术有限公司 | Method, device and equipment for displaying special effect prop and storage medium |
CN114612553B (en) * | 2022-03-07 | 2023-07-18 | 北京字跳网络技术有限公司 | A virtual object control method, device, computer equipment and storage medium |
CN115888111A (en) * | 2022-11-10 | 2023-04-04 | 珠海金山数字网络科技有限公司 | Virtual object interaction method and device |
CN119701359A (en) * | 2023-09-28 | 2025-03-28 | 腾讯数码(天津)有限公司 | Interactive processing method and device for virtual scene, electronic equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111273780A (en) * | 2020-02-21 | 2020-06-12 | 腾讯科技(深圳)有限公司 | Animation playing method, device and equipment based on virtual environment and storage medium |
Family Cites Families (6)
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 |
CN108579088B (en) * | 2018-04-28 | 2020-04-24 | 腾讯科技(深圳)有限公司 | Method, apparatus and medium for controlling virtual object to pick up virtual article |
WO2020017981A1 (en) * | 2018-07-19 | 2020-01-23 | Soul Machines Limited | Machine interaction |
CN110370268B (en) * | 2018-09-11 | 2021-07-30 | 北京京东乾石科技有限公司 | Method, device and system for in-box sorting |
CN110045827B (en) * | 2019-04-11 | 2021-08-17 | 腾讯科技(深圳)有限公司 | Method and device for observing virtual article in virtual environment and readable storage medium |
CN111760275B (en) * | 2020-07-08 | 2024-07-30 | 网易(杭州)网络有限公司 | Game control method and device and electronic equipment |
-
2021
- 2021-01-22 CN CN202110088734.XA patent/CN112774203B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111273780A (en) * | 2020-02-21 | 2020-06-12 | 腾讯科技(深圳)有限公司 | Animation playing method, device and equipment based on virtual environment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112774203A (en) | 2021-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112774203B (en) | Pose control method and device of virtual object and computer storage medium | |
US11430192B2 (en) | Placement and manipulation of objects in augmented reality environment | |
CN107622524A (en) | Display methods and display device for mobile terminal | |
US20170352188A1 (en) | Support Based 3D Navigation | |
US7495665B2 (en) | Storage medium having game program stored thereon and game apparatus | |
US11049325B2 (en) | Information processing apparatus, information processing method, and program | |
TWI758869B (en) | Interactive object driving method, apparatus, device, and computer readable storage meidum | |
CN110389703A (en) | Acquisition methods, device, terminal and the storage medium of virtual objects | |
JP7078234B2 (en) | How to create a 3D object to be placed in augmented reality space | |
JP2014531693A (en) | Motion-controlled list scrolling | |
CN111693063A (en) | Navigation interaction display method and device, electronic equipment and storage medium | |
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 | |
WO2020114395A1 (en) | Virtual picture control method, terminal device and storage medium | |
CN114949851A (en) | Augmented reality interaction method, device, electronic device and storage medium | |
CN109753152A (en) | Human body gesture-based interaction method and device, computer equipment | |
CN113641443A (en) | Interface element display method, device, equipment and readable storage medium | |
CN114144235A (en) | Operation input program and operation input method | |
CN107050848B (en) | Somatosensory game implementation method and device based on body area network | |
JP2019103815A (en) | Game program, method and information processing apparatus | |
JP7070245B2 (en) | Information processing device, motion control program, and motion control method | |
CN113117335B (en) | Game role control method and related device | |
KR20170081889A (en) | Method for providing user interface for card game, and server and computer-readable recording media using the same | |
CN116889729A (en) | Somatosensory boxing game method based on function fitting | |
HK40055269A (en) | Display method, device, equipment and readable storage medium of interface elements |
Legal Events
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 |