CN107122043B - The analogy method and device of human body in virtual reality - Google Patents

The analogy method and device of human body in virtual reality Download PDF

Info

Publication number
CN107122043B
CN107122043B CN201710209562.0A CN201710209562A CN107122043B CN 107122043 B CN107122043 B CN 107122043B CN 201710209562 A CN201710209562 A CN 201710209562A CN 107122043 B CN107122043 B CN 107122043B
Authority
CN
China
Prior art keywords
node
target
manikin
tracker
head
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
Application number
CN201710209562.0A
Other languages
Chinese (zh)
Other versions
CN107122043A (en
Inventor
程东哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710209562.0A priority Critical patent/CN107122043B/en
Publication of CN107122043A publication Critical patent/CN107122043A/en
Priority to PCT/CN2018/077922 priority patent/WO2018177075A1/en
Priority to TW107109892A priority patent/TWI657263B/en
Application granted granted Critical
Publication of CN107122043B publication Critical patent/CN107122043B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/01Indexing scheme relating to G06F3/01
    • G06F2203/012Walk-in-place systems for allowing a user to walk in a virtual environment while constraining him to a given position in the physical environment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2219/00Indexing scheme for manipulating 3D models or images for computer graphics
    • G06T2219/20Indexing scheme for editing of 3D models
    • G06T2219/2016Rotation, translation, scaling

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Architecture (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses the analogy methods and device of human body in a kind of virtual reality.Wherein, this method comprises: obtaining the manikin shown in virtual reality, wherein manikin is for simulating the target body in true environment;Obtain the location information of all trackers in the tracker set of target body, wherein tracker set includes the tracker that at least one is arranged on the predetermined body part of target body;It is moved according to the manikin in the location information control virtual reality got, so that the movement of manikin simulated target human body.The present invention solves the technical issues of can not carrying out real simulation to human action in virtual reality.

Description

The analogy method and device of human body in virtual reality
Technical field
The present invention relates to field of virtual reality, in particular to the analogy method and dress of human body in a kind of virtual reality It sets.
Background technique
As the technology of virtual reality is by the breakthrough of a little, civilian household equipment gradually appears, and becomes entertainment weight The component part wanted allows people to experience unprecedented feeling.In order to allow people are better preferably to hand over inside scene Mutually, it has been more nearly true feeling, the true interaction of the person to person in virtual environment is just particularly important, and true The interactive first step is exactly that demanded image movement and the mankind are close.
In existing virtual reality interactive game, it is mostly used the non-genuine mankind greatly to indicate figure image, but simulate Figure image or be that body is inactive or mixed the spurious with the genuine by way of playing animation, is directly canceled there are also some Arms and legs portion, only head, body and hands can not really simulate figure action, influence user experience.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides the analogy methods and device of human body in a kind of virtual reality, virtually existing at least to solve The technical issues of can not carrying out real simulation to human action in reality.
According to an aspect of an embodiment of the present invention, a kind of analogy method of human body in virtual reality is provided, comprising: obtain Take the manikin shown in virtual reality, wherein the manikin is used to carry out the target body in true environment Simulation;Obtain the location information of all trackers in the tracker set of the target body, wherein the tracker set packet Include at least one tracker being arranged on the predetermined body part of the target body;According to the location information control got The manikin in virtual reality is moved, so that the manikin simulates the movement of the target body.
According to another aspect of an embodiment of the present invention, a kind of simulator of human body in virtual reality is additionally provided, comprising: First acquisition unit, for obtaining the manikin shown in virtual reality, wherein the manikin is used for true ring Target body in border is simulated;Second acquisition unit, it is all in the tracker set for obtaining the target body to chase after The location information of track device, wherein the tracker set includes the predetermined body that the target body is arranged at least one Tracker on point;Control unit, for according to get location information control virtual reality in the manikin into Row movement, so that the manikin simulates the movement of the target body.
In embodiments of the present invention, the manikin shown in virtual reality using acquisition, wherein the manikin For being simulated to the target body in true environment;Obtain all trackers in the tracker set of the target body Location information, wherein the tracker set includes that at least one is arranged in the desired body area of the target body Tracker;It is moved according to the manikin in the location information control virtual reality got, so that the human body The movement of target body described in modeling is believed by the position of the tracker in the desired body area according to target body Breath, the manikin controlled in virtual reality are moved, and have achieved the purpose that control manikin simulated target human action, To realize the location information of desired body area according to target body, control manikin to the movement of target body into The technical effect of row simulation, and then solve the technical issues of can not carrying out real simulation to human action in virtual reality.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the scene layout of the analogy method of human body in a kind of optional virtual reality according to an embodiment of the present invention Schematic diagram;
Fig. 2 is the flow chart of the analogy method of human body in a kind of optional virtual reality according to an embodiment of the present invention;
Fig. 3 is the schematic diagram of standardized human body's skeleton;
Fig. 4 is that the father node of control destination node and destination node according to an embodiment of the present invention carries out mobile process and shows It is intended to;
Fig. 5 is the part skeleton schematic diagram for including head, body and both legs;
Fig. 6 is the part skeleton schematic diagram for including both hands and both arms;
Fig. 7 is according to an embodiment of the present invention to the simplified part skeleton schematic diagram of leg skeleton progress;
Fig. 8 is the schematic diagram of the simulator of human body in a kind of optional virtual reality according to an embodiment of the present invention;
Fig. 9 is the schematic diagram of terminal according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the method that can be executed by the application Installation practice is provided, It should be noted that step shown in the flowchart of the accompanying drawings can be in the department of computer science of such as a group of computer-executable instructions It is executed in system, although also, logical order is shown in flow charts, and it in some cases, can be to be different from herein Sequence execute shown or described step.
According to embodiments of the present invention, a kind of analogy method of human body in virtual reality is provided.
This method can be applied on various virtual reality devices, by the way that tracker is arranged in target body, to obtain The location information of the desired body area of target body, and according to the location information got, control human mould in virtual reality Type is moved, so that manikin simulates the various movements of target body.Fig. 1 is according to an embodiment of the present invention one The schematic diagram of the scene layout of the analogy method of human body in the optional virtual reality of kind, as shown in Figure 1, the predetermined body of target body Tracker is configured on body region, wherein the head of target body, which is worn, the visual helmet (being equivalent to head-tracking device), target The left hand and the right hand of human body hold a handle (being equivalent to hand tracker) respectively, when target body is done in scheduled region When taking the post as conation and making, virtual reality device shown in Fig. 1 obtains the visual helmet and two hands by position information receiver The location information of handle, and then the location information on target body head and hand is obtained, and according to the location information got, control Manikin in virtual reality is moved accordingly, to simulate to the various movements that target body is made, thus real The location information of the desired body area according to target body is showed, control manikin simulates the movement of target body Technical effect, and then solve in virtual reality the technical issues of can not carrying out real simulation to human action, people made to exist Interaction in virtual reality is more nearly true feeling.
It should be noted that the analogy method of human body is applied to various in virtual reality provided by the embodiment of the present invention When virtual reality device, which should include necessary tracker, to obtain the predetermined body of target body The location information of position, such as: head-tracking device, hand tracker, foot's tracker, wherein head-tracking device is mainly used for obtaining It takes the head position information of target body, and then according to head position information, controls head of the manikin to target body, neck The movement of portion and trunk is simulated, and hand tracker is used to obtain the location information of the both hands of target body, and then basis The location information of both hands, control manikin simulate the both hands and arm action of target body, and foot's tracker is used for It has obtained with the location information of the both feet of target body, and then according to the location information of both feet, has controlled manikin to target body Both feet and both legs movement simulated.Tracker included by virtual reality device should include at least head-tracking device, with The body action of target body is simulated at least through the head position information control manikin of target body.Such as Fig. 1 The virtual reality device shown then includes head-tracking device and hand tracker, then the virtual reality device can be chased after by hand Track device simulates the both hands and arm action of target body, so that manikin be made to be more nearly the simulation of target body Really.Likewise, virtual reality device can include head-tracking device, hand tracker and foot's tracker simultaneously, with control The body action of manikin simulated target human body, both hands and both arms movement and both feet and both legs movement.
Fig. 2 is the flow chart of the analogy method of human body in a kind of optional virtual reality according to an embodiment of the present invention, with The analogy method that lower combination Fig. 2 is provided for the embodiments of the invention human body in virtual reality does specific introduction, as shown in Fig. 2, The analogy method of human body mainly includes the following steps S202 to step S206 in the virtual reality:
Step S202 obtains the manikin shown in virtual reality, wherein manikin is used for in true environment Target body simulated.
Virtual reality technology is a kind of computer simulation system that can create virtual world, it generates one using computer The simulated environment of kind Multi-source Information Fusion, interactive Three-Dimensional Dynamic what comes into a driver's, passes through the entity row in this context to user User is immersed in the environment to carry out emulation.The manikin shown in virtual reality is for the entity behavior to user It is simulated, the simulation that user is carried out by controlling manikin, and the movement for simulating manikin is more nearly use The entity behavior at family improves user experience to keep interaction of the user in virtual reality truer.
Step S204 obtains the location information of all trackers in the tracker set of target body, wherein tracker collection Close includes that the tracker on the predetermined body part of target body is arranged at least one.
In embodiments of the present invention, tracker configuration is in the desired body area of target body, in the pre- of target body When determining physical feeling and making movement, the position of tracker also changes accordingly, therefore, location information, that is, target of tracker The location information of the desired body area of human body.As shown in Figure 1, when target body rotary head, the helmet that target body is worn The direction of (being equivalent to head-tracking device) also changes, and according to the direction of the helmet, the head court of target body can be obtained To;When target body elevation arm, the position for the handle (being equivalent to hand tracker) that target body is held can also become Change, and the position for the handle held according to target body, the hand of target body and the position of arm can be obtained.
Step S206 is moved according to the manikin in the location information control virtual reality got, to make one The movement of body Model simulated target human body.
It, can be by first determining the position of sub- bone, where then reverse derives its according to reverse dynamic (dynamical) principle Skeletal chain on n grades of father's bones position, so that it is determined that the position of whole skeletal chain.In embodiments of the present invention, in control people When body Model simulates target body, according to the location information of the tracker got, each position of manikin is determined Location information, and then derive according to reverse dynamics reverse the location information at other positions, so that it is determined that entire human mould out The location information of all sites of type, so that manikin really simulates the movement of target body.
In embodiments of the present invention, the manikin shown in virtual reality using acquisition, wherein manikin is used for Target body in true environment is simulated;Obtain the position letter of all trackers in the tracker set of target body Breath, wherein tracker set includes the tracker that at least one is arranged in the desired body area of target body;According to acquisition To location information control virtual reality in manikin moved so that the movement of manikin simulated target human body, By the location information of the tracker in the desired body area according to target body, control manikin in virtual reality into Row movement has achieved the purpose that control manikin simulated target human action, to realize according to the predetermined of target body The location information of physical feeling, the technical effect that control manikin simulates the movement of target body, and then solve The technical issues of can not carrying out real simulation to human action in virtual reality.
Optionally, location information includes the position of tracker, according in the location information control virtual reality got It includes: position represented by any one location information in the location information that will acquire as mesh that manikin, which carries out movement, Cursor position;Judge whether the distance between current location and target position of the destination node of manikin is greater than the first default threshold Value, wherein the desired body area of destination node target body corresponding with target position is associated;If destination node is worked as The distance between front position and target position are greater than the first preset threshold, then control all fathers section of destination node and destination node Point is moved, wherein the multiple bones of destination node and father node for a skeletal chain in simulated target human body.
As a kind of optional embodiment of the embodiment of the present invention, the location information of tracker includes the position of tracker Set, by tracker position be make target position, using be used for target body carry out simulated person's body Model corresponding site as Destination node, then control manikin and carry out simulation to target body and need to control destination node and be moved to target position.At this In inventive embodiments, a preset threshold is set, if destination node is greater than the preset threshold at a distance from target position, is needed Control destination node and be moved to target position, control destination node be moved to target position be during, also want same time control The father node of destination node processed is moved with the movement that destination node is, to reach the mesh for carrying out real simulation to target body 's.If destination node is less than or equal to preset threshold at a distance from target position, then it is assumed that destination node is located approximately at mesh Cursor position no longer needs to mobile destination node.In embodiments of the present invention, destination node is the target body in target position Manikin node corresponding to desired body area.The equally corresponding target body physical feeling of the father node of destination node, The physical feeling is the predetermined body for being on same skeletal chain with the desired body area of target body, and being target body Father's bone of position.
Fig. 3 is the schematic diagram of standardized human body's skeleton, as shown in figure 3, each bone corresponds in manikin in Fig. 3 One node, wherein neck and backbone are father's bone of skull, and neck and the backbone corresponding node in manikin are skull The father node of node corresponding to bone.Similarly, arm and clavicle are father's bone of hand, and upper thigh bone and thigh bone are father's bone of foot Bone, then arm and the clavicle corresponding node in manikin are the father node of the corresponding node of hand, and upper thigh bone and thigh bone are in people Corresponding node is the father node of the corresponding node of foot in body Model.
Optionally, it includes: to obtain destination node that all father nodes of control destination node and destination node, which carry out movement, The positional relationship of all father nodes and target position;Select the father node adjacent with destination node as rotation according to positional relationship Node;It keeps rotation node constant at a distance from all child nodes for rotating node, rotates all child nodes of the rotation node, So that destination node is moved on rotation node and the line of target position;The father node adjacent with rotation node is reselected to make To rotate node, until all father nodes of destination node all select to finish.
As a kind of optional embodiment of the embodiment of the present invention, it is greater than at a distance from target position in destination node pre- If when threshold value, the father node for controlling destination node and destination node is moved, so that manikin carries out mould to target body Quasi-, specific to control move mode as shown in figure 4, in Fig. 4, N1, N2, N3, N4 are 4 nodes in manikin, N1, The physical feeling of the corresponding target body of N2, N3, N4 is on same skeletal chain, and the corresponding physical feeling of N1, N2, N3 is N4 Father's bone of corresponding physical feeling, then N1, N2, N3 are the father node of N4.Mould is carried out to target body in control manikin When quasi-, N4 is destination node, is configured with tracker in the desired body area of the corresponding target body of N4, and T is chasing after of getting The position of track device, i.e. target position.Before all father nodes of control destination node N4 and destination node N4 are mobile, obtain first Take all father node N1 of destination node N4, the positional relationship of N2, N3 and target position T optionally can be by by father nodes N1, N2, N3 and target position T carry out line to determine its positional relationship.It moves, selects first adjacent with destination node N4 for the first time Father node N3 as rotation node, keep rotation node N3 it is constant at a distance from its all child node (node N4), that is, keep N3N4 length is constant, and N4 is moved on the line of node N3 and target position T by moving in rotation node N4.Optionally, it is rotating In moving process, angle that node N4 is moved be can mobile minimum angles, in above-mentioned moving process for the first time, node N4 Mobile angle is a1.Second mobile, the father node (N2) for select current rotation node N3 adjacent as new rotation node, It keeps the distance of rotation node N2 and its all child node (node N3, N4) constant, that is, keeps the length of N2N3, N2N4 and N3N4 Constant, N4 is moved on the line of node N2 and target position T by moving in rotation node N3 and node N4, at above-mentioned second In moving process, the angle of node N3 and node N4 movement is a2.By above-mentioned moving method, until all fathers of destination node N4 Node is all finished by selection.In Fig. 4, the father node N1 of third time moving process selection target node N4 is as swivel Point, and node N1 is kept, N2, N3, the distance between N4 is constant, and moving in rotation node N2, N3, N4 make node N4 be moved to section On point N1 and the line of target position.So far, a simulation that manikin acts target body is completed.It needs to illustrate It is, if the distance between destination node N4 and target position T are less than or equal to preset threshold, then after completing above-mentioned movement Manikin finishes the simulation of target body, if being greater than preset threshold at a distance from before destination node N4 and target position T, Another secondary control manikin is then needed to be moved by above-mentioned moving process, until between destination node N4 and target position T Distance be less than or equal to preset threshold.
Optionally, location information includes the direction of tracker, according in the location information control virtual reality got It includes: represented by any one location information in the location information that will acquire towards as mesh that manikin, which carries out movement, Mark direction;Judge the current pre- towards whether being greater than second with target angle of the target between of the destination node of manikin If threshold value;If target angle is greater than the second preset threshold, control all father nodes of destination node and destination node according to First predetermined angle is rotated, wherein the angle of destination node rotation is equal to the second preset threshold, all fathers of destination node The rotation angle of node is less than or equal to the rotation angle of destination node;If it is default that target angle is less than or equal to second Threshold value then controls destination node and is rotated according to target angle, and controls the father node of destination node according to the second preset angle Degree is rotated, wherein the second predetermined angle is less than or equal to target angle.
People is controlled according to the angle of the tracker got as a kind of optional embodiment of the embodiment of the present invention The physical feeling of body Model is rotated, to simulate to target body.Due to the rotational angle of target body physical feeling Be it is conditional, when controlling manikin simulated target human body and being rotated, second threshold is set, according to chasing after of getting When the target angle that needs that the angle information of track device determines rotate is greater than second threshold, control destination node and destination node Father node is rotated according to the first predetermined angle, optionally, controls the father node of destination node and destination node according to first When predetermined angle is rotated, control destination node is rotated according to second threshold, while controlling the father node of destination node It is rotated according to the angle for being less than or equal to second threshold, if the needs determined according to the angle information of the tracker got When the target angle of rotation is less than or equal to second threshold, the father node for controlling destination node and destination node is pre- according to second If angle is rotated, specifically, control destination node is rotated according to target angle, and the father node for controlling destination node is pressed It is rotated according to the rotation angle for being less than or equal to target angle.Optionally, when destination node has multiple father nodes, destination node The angle of multiple father nodes rotation be respectively less than and be equal to the rotational angle of destination node, and in all nodes, father node turns Dynamic angle is less than or equal to the rotational angle of its child node.
Such as: destination node is head node, and the second preset threshold is 90 degree, then carries out in manikin to target body When simulation, when the target angle that the needs determined according to the angle information of tracker rotate is greater than 90 degree, manikin is controlled According to 90 degree of rotation heads, it is alternatively possible to which control neck rotates 70 degree at same direction, control backbone rotates at same direction 50 degree.If be 60 degree according to the target angle that the needs that the angle information of tracker determines rotate, control manikin is pressed According to 60 degree of rotation heads, it is alternatively possible to which control neck rotates 30 degree at same direction, control backbone rotates 15 at same direction Degree.
Optionally, tracker set includes at least head-tracking device, obtains all in the tracker set of target body chase after The location information of track device includes: the head position information for obtaining head-tracking device;It is virtual according to the location information control got It includes: to control manikin according to head position information to carry out that following at least one is dynamic that manikin in reality, which carries out movement, Make: head rotation, body bending and body are mobile.
In embodiments of the present invention, head-tracking device is included at least in tracker set, according to the position of head-tracking device Information, control manikin simulate the movement of target body, wherein manikin can turn the head of target body Dynamic, body bending and body movement are simulated.
Optionally, before carrying out movement according to the manikin in the location information got control virtual reality, side Method includes: that the left-hand minutia of manikin and right-hand minutia are merged into hand node;And/or by the left leg node of manikin Leg node is merged into right leg node, wherein the hand node and leg node merged is manikin head node, Father node.
As a kind of optional embodiment of the embodiment of the present invention, the location information of head-tracking device is obtained, and according to Before location information control manikin simulates the movement of target body, the node of manikin can be subjected to letter Change, and using head node, as destination node, the father node for controlling head node, and head node, is moved, so that human mould Type simulates the movement of target body.Specifically, left-hand minutia and right-hand minutia can be merged into hand node, it will be left Leg node and right leg node merge into leg node, will merge obtained hand node and/or leg node as head node, Father node control hand node when head node, is mobile and/or leg node moved accordingly.
By taking tracker set includes head-tracking device and hand tracker as an example, manikin simulated target human body is controlled When, head and body action by head node, simulated target human body, by the both hands of hand node simulated target human body and Both arms movement, human skeleton shown in Fig. 3 can be split as Fig. 5 and two parts shown in fig. 6, wherein Fig. 5 shows head Portion, body, both legs skeleton part, Fig. 6 shows the skeleton part of both hands and both arms, as shown in fig. 7, can be to shown in Fig. 6 Skeleton part simplified.Left thigh bone and right thigh bone are merged, using the midpoint of left thigh bone and right thigh bone as after merging Thigh bone merges left foot and right crus of diaphragm, using foot of the midpoint of left foot and right crus of diaphragm as after merging, the thigh bone and foot merged Father node as head.
Optionally, tracker set includes at least head-tracking device and hand tracker, obtains the tracker of target body The location information of all trackers includes: the head position information for obtaining head-tracking device and the hand of hand tracker in set Location information;Carrying out movement according to the manikin in the location information control virtual reality got includes: according to head position Confidence breath and hand position information control manikin carry out at least one following movement: head rotation, body bending, body move Dynamic, arm movement, arm bending and arm rotation.
As a kind of optional embodiment of the embodiment of the present invention, tracker set includes that head-tracking device and hand chase after When track device, the head position information of target body is obtained by head-tracking device, and target body is obtained by hand tracker Hand position information is simulated the head of target body and body action according to head position information, according to hand position Information simulates the hand and arm action of target body.
Optionally, tracker set includes at least head-tracking device, hand tracker and foot's tracker, obtains target person In the tracker set of body the location information of all trackers include: obtain the head position information of head-tracking device, hand chases after The hand position information of track device and the foot position information of foot's tracker;Virtual reality is controlled according to the location information got In manikin carry out movement include: according to head position information, hand position information and foot position information control human body Model carries out at least one following movement: head rotation, body bending, body movement, arm movement, arm bending, arm rotation Turn, leg is mobile, leg curvature and leg rotate.
As a kind of optional embodiment of the embodiment of the present invention, tracker set includes that head-tracking device, hand chase after When track device and foot's tracker, the head position information of target body is obtained by head-tracking device, is obtained by hand tracker The hand position information for taking target body obtains the foot position information of target body by foot's tracker, according to head position Confidence breath simulates the head of target body and body action, according to hand position information to the hand and hand of target body Arm movement is simulated, and is simulated according to foot position information to both feet and the both legs movement of target body.
Optionally, before obtaining the manikin shown in virtual reality, method further include: establishing has default body The manikin of body ratio;The actual body ratio of target body is obtained according to the location information of tracker;According to actual body Scaling manikin, so that the Body proportion of manikin is consistent with the Body proportion of target body.
It is similar to target body in order to improve manikin as a kind of optional embodiment of the embodiment of the present invention Degree, establishes the consistent manikin of actual body ratio with target body.Specifically, first establishing one has standard body The manikin of body ratio, then the location information of the tracker according to configuration in target body, obtains the reality of target body Border Body proportion relationship, such as: the height of target body, then root can be learnt according to the location information of target body head-tracking device According to the location information of the hand of target body, the arm length of target body is learnt.Finally, according to the actual body of target body Proportionate relationship zooms in and out the above-mentioned manikin with standard physical ratio, so that the Body proportion relationship of manikin It is consistent with the actual body ratio of target body.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, it additionally provides a kind of for implementing the void of the analogy method of human body in above-mentioned virtual reality Intend the simulator of human body in reality, it is above-mentioned to be mainly used for the execution embodiment of the present invention for the simulator of human body in the virtual reality The analogy method of human body in virtual reality provided by content, is provided for the embodiments of the invention human body in virtual reality below Simulator do specific introduction:
Fig. 8 is the schematic diagram of the simulator of human body in a kind of optional virtual reality according to an embodiment of the present invention, such as Shown in Fig. 8, the simulator of human body is specifically included that in the virtual reality
First acquisition unit 810, for obtaining the manikin shown in virtual reality, wherein manikin is used for Target body in true environment is simulated.
Virtual reality technology is a kind of computer simulation system that can create virtual world, it generates one using computer The simulated environment of kind Multi-source Information Fusion, interactive Three-Dimensional Dynamic what comes into a driver's, passes through the entity row in this context to user User is immersed in the environment to carry out emulation.The manikin shown in virtual reality is for the entity behavior to user It is simulated, the simulation that user is carried out by controlling manikin, and the movement for simulating manikin is more nearly use The entity behavior at family improves user experience to keep interaction of the user in virtual reality truer.
Second acquisition unit 820, the location information of all trackers in the tracker set for obtaining target body, In, tracker set includes the tracker that at least one is arranged on the predetermined body part of target body.
In embodiments of the present invention, tracker configuration is in the desired body area of target body, in the pre- of target body When determining physical feeling and making movement, the position of tracker also changes accordingly, therefore, location information, that is, target of tracker The location information of the desired body area of human body.As shown in Figure 1, when target body rotary head, the helmet that target body is worn The direction of (being equivalent to head-tracking device) also changes, and according to the direction of the helmet, the head court of target body can be obtained To;When target body elevation arm, the position for the handle (being equivalent to hand tracker) that target body is held can also become Change, and the position for the handle held according to target body, the hand of target body and the position of arm can be obtained.
Control unit 830, for being moved according to the manikin in the location information control virtual reality got, So that the movement of manikin simulated target human body.
It, can be by first determining the position of sub- bone, where then reverse derives its according to reverse dynamic (dynamical) principle Skeletal chain on n grades of father's bones position, so that it is determined that the position of whole skeletal chain.In embodiments of the present invention, in control people When body Model simulates target body, according to the location information of the tracker got, each position of manikin is determined Location information, and then derive according to reverse dynamics reverse the location information at other positions, so that it is determined that entire human mould out The location information of all sites of type, so that manikin really simulates the movement of target body.
In embodiments of the present invention, the manikin shown in virtual reality using acquisition, wherein manikin is used for Target body in true environment is simulated;Obtain the position letter of all trackers in the tracker set of target body Breath, wherein tracker set includes the tracker that at least one is arranged in the desired body area of target body;According to acquisition To location information control virtual reality in manikin moved so that the movement of manikin simulated target human body, By the location information of the tracker in the desired body area according to target body, control manikin in virtual reality into Row movement has achieved the purpose that control manikin simulated target human action, to realize according to the predetermined of target body The location information of physical feeling, the technical effect that control manikin simulates the movement of target body, and then solve The technical issues of can not carrying out real simulation to human action in virtual reality.
Optionally, location information includes the position of tracker, and control unit includes: position module, for what be will acquire Position represented by any one location information in location information is as target position;First judgment module, for judging people Whether the distance between current location and target position of the destination node of body Model are greater than the first preset threshold, wherein target The desired body area of node target body corresponding with target position is associated;First control module, if in target When the distance between current location and target position of node are greater than the first preset threshold, destination node and destination node are controlled All father nodes are moved, wherein the multiple bones of destination node and father node for a skeletal chain in simulated target human body Bone.
As a kind of optional embodiment of the embodiment of the present invention, the location information of tracker includes the position of tracker Set, by tracker position be make target position, using be used for target body carry out simulated person's body Model corresponding site as Destination node, then control manikin and carry out simulation to target body and need to control destination node and be moved to target position.At this In inventive embodiments, a preset threshold is set, if destination node is greater than the preset threshold at a distance from target position, is needed Control destination node and be moved to target position, control destination node be moved to target position be during, also want same time control The father node of destination node processed is moved with the movement that destination node is, to reach the mesh for carrying out real simulation to target body 's.If destination node is less than or equal to preset threshold at a distance from target position, then it is assumed that destination node is located approximately at mesh Cursor position no longer needs to mobile destination node.In embodiments of the present invention, destination node is the target body in target position Manikin node corresponding to desired body area.The equally corresponding target body physical feeling of the father node of destination node, The physical feeling is the predetermined body for being on same skeletal chain with the desired body area of target body, and being target body Father's bone of position.
Fig. 3 is the schematic diagram of standardized human body's skeleton, as shown in figure 3, each bone corresponds in manikin in Fig. 3 One node, wherein neck and backbone are father's bone of skull, and neck and the backbone corresponding node in manikin are skull The father node of node corresponding to bone.Similarly, arm and clavicle are father's bone of hand, and upper thigh bone and thigh bone are father's bone of foot Bone, then arm and the clavicle corresponding node in manikin are the father node of the corresponding node of hand, and upper thigh bone and thigh bone are in people Corresponding node is the father node of the corresponding node of foot in body Model.
Optionally, the first control module includes: acquisition submodule, for obtaining all father nodes and target of destination node The positional relationship of position;Swivel point submodule, for according to positional relationship select the father node adjacent with destination node as Rotate node;Submodule is rotated, for keeping rotation node constant at a distance from all child nodes for rotating node, rotates the rotation All child nodes of trochanterion, so that destination node is moved on rotation node and the line of target position;Submodule is repeated, is used It is used as rotation node in reselecting the father node adjacent with rotation node, until all father nodes of destination node all select It finishes.
As a kind of optional embodiment of the embodiment of the present invention, it is greater than at a distance from target position in destination node pre- If when threshold value, the father node for controlling destination node and destination node is moved, so that manikin carries out mould to target body Quasi-, specific to control move mode as shown in figure 4, in Fig. 4, N1, N2, N3, N4 are 4 nodes in manikin, N1, The physical feeling of the corresponding target body of N2, N3, N4 is on same skeletal chain, and the corresponding physical feeling of N1, N2, N3 is N4 Father's bone of corresponding physical feeling, then N1, N2, N3 are the father node of N4.Mould is carried out to target body in control manikin When quasi-, N4 is destination node, is configured with tracker in the desired body area of the corresponding target body of N4, and T is chasing after of getting The position of track device, i.e. target position.Before all father nodes of control destination node N4 and destination node N4 are mobile, obtain first Take all father node N1 of destination node N4, the positional relationship of N2, N3 and target position T optionally can be by by father nodes N1, N2, N3 and target position T carry out line to determine its positional relationship.It moves, selects first adjacent with destination node N4 for the first time Father node N3 as rotation node, keep rotation node N3 it is constant at a distance from its all child node (node N4), that is, keep N3N4 length is constant, and N4 is moved on the line of node N3 and target position T by moving in rotation node N4.Optionally, it is rotating In moving process, angle that node N4 is moved be can mobile minimum angles, in above-mentioned moving process for the first time, node N4 Mobile angle is a1.Second mobile, the father node (N2) for select current rotation node N3 adjacent as new rotation node, It keeps the distance of rotation node N2 and its all child node (node N3, N4) constant, that is, keeps the length of N2N3, N2N4 and N3N4 Constant, N4 is moved on the line of node N2 and target position T by moving in rotation node N3 and node N4, at above-mentioned second In moving process, the angle of node N3 and node N4 movement is a2.By above-mentioned moving method, until all fathers of destination node N4 Node is all finished by selection.In Fig. 4, the father node N1 of third time moving process selection target node N4 is as swivel Point, and node N1 is kept, N2, N3, the distance between N4 is constant, and moving in rotation node N2, N3, N4 make node N4 be moved to section On point N1 and the line of target position.So far, a simulation that manikin acts target body is completed.It needs to illustrate It is, if the distance between destination node N4 and target position T are less than or equal to preset threshold, then after completing above-mentioned movement Manikin finishes the simulation of target body, if being greater than preset threshold at a distance from before destination node N4 and target position T, Another secondary control manikin is then needed to be moved by above-mentioned moving process, until between destination node N4 and target position T Distance be less than or equal to preset threshold.
Optionally, location information includes the direction of tracker, and control unit includes: towards module, for what be will acquire Towards as target direction represented by any one location information in location information;Second judgment module, for judging people Whether the current of the destination node of body Model is greater than the second preset threshold towards with target angle of the target between;Second control Molding block, for when target angle is greater than the second preset threshold, all father nodes for controlling destination node and destination node to be pressed It is rotated according to the first predetermined angle, wherein the angle of destination node rotation is equal to the second preset threshold, and destination node owns The rotation angle of father node is less than or equal to the rotation angle of destination node;Third control module, for small in target angle When the second preset threshold, control destination node is rotated according to target angle, and controls the father of destination node Node is rotated according to the second predetermined angle, wherein the second predetermined angle is less than or equal to target angle.
People is controlled according to the angle of the tracker got as a kind of optional embodiment of the embodiment of the present invention The physical feeling of body Model is rotated, to simulate to target body.Due to the rotational angle of target body physical feeling Be it is conditional, when controlling manikin simulated target human body and being rotated, second threshold is set, according to chasing after of getting When the target angle that needs that the angle information of track device determines rotate is greater than second threshold, control destination node and destination node Father node is rotated according to the first predetermined angle, optionally, controls the father node of destination node and destination node according to first When predetermined angle is rotated, control destination node is rotated according to second threshold, while controlling the father node of destination node It is rotated according to the angle for being less than or equal to second threshold, if the needs determined according to the angle information of the tracker got When the target angle of rotation is less than or equal to second threshold, the father node for controlling destination node and destination node is pre- according to second If angle is rotated, specifically, control destination node is rotated according to target angle, and the father node for controlling destination node is pressed It is rotated according to the rotation angle for being less than or equal to target angle.Optionally, when destination node has multiple father nodes, destination node The angle of multiple father nodes rotation be respectively less than and be equal to the rotational angle of destination node, and in all nodes, father node turns Dynamic angle is less than or equal to the rotational angle of its child node.
Such as: destination node is head node, and the second preset threshold is 90 degree, then carries out in manikin to target body When simulation, when the target angle that the needs determined according to the angle information of tracker rotate is greater than 90 degree, manikin is controlled According to 90 degree of rotation heads, it is alternatively possible to which control neck rotates 70 degree at same direction, control backbone rotates at same direction 50 degree.If be 60 degree according to the target angle that the needs that the angle information of tracker determines rotate, control manikin is pressed According to 60 degree of rotation heads, it is alternatively possible to which control neck rotates 30 degree at same direction, control backbone rotates 15 at same direction Degree.
Optionally, tracker set includes at least head-tracking device, and second acquisition unit includes: the first acquisition module, uses In the head position information for obtaining head-tracking device;Control unit includes: the 4th control module, for according to head position information Control manikin and carry out at least one following movement: head rotation, body bending and body are mobile.
In embodiments of the present invention, head-tracking device is included at least in tracker set, according to the position of head-tracking device Information, control manikin simulate the movement of target body, wherein manikin can turn the head of target body Dynamic, body bending and body movement are simulated.
Optionally, device includes: the first combining unit, for according in the location information control virtual reality got Manikin carry out it is mobile before, the left-hand minutia of manikin and right-hand minutia are merged into hand node;And/or second Combining unit, before the manikin for being controlled in virtual reality in the location information that basis is got carries out movement, by people The left leg node and right leg node of body Model merge into leg node, wherein the hand node and leg node merged be The father node of Sheffield dummy head's node.
As a kind of optional embodiment of the embodiment of the present invention, the location information of head-tracking device is obtained, and according to Before location information control manikin simulates the movement of target body, the node of manikin can be subjected to letter Change, and using head node, as destination node, the father node for controlling head node, and head node, is moved, so that human mould Type simulates the movement of target body.Specifically, left-hand minutia and right-hand minutia can be merged into hand node, it will be left Leg node and right leg node merge into leg node, will merge obtained hand node and/or leg node as head node, Father node control hand node when head node, is mobile and/or leg node moved accordingly.
By taking tracker set includes head-tracking device and hand tracker as an example, manikin simulated target human body is controlled When, head and body action by head node, simulated target human body, by the both hands of hand node simulated target human body and Both arms movement, human skeleton shown in Fig. 3 can be split as Fig. 5 and two parts shown in fig. 6, wherein Fig. 5 shows head Portion, body, both legs skeleton part, Fig. 6 shows the skeleton part of both hands and both arms, as shown in fig. 7, can be to shown in Fig. 6 Skeleton part simplified.Left thigh bone and right thigh bone are merged, using the midpoint of left thigh bone and right thigh bone as after merging Thigh bone merges left foot and right crus of diaphragm, using foot of the midpoint of left foot and right crus of diaphragm as after merging, the thigh bone and foot merged Father node as head.
Optionally, tracker set includes at least head-tracking device and hand tracker, and second acquisition unit includes: second Module is obtained, for obtaining the head position information of head-tracking device and the hand position information of hand tracker;Control unit It include: the 5th control module, for following at least according to head position information and the control manikin progress of hand position information One movement: head rotation, body bending, body is mobile, arm is mobile, arm bending and arm rotate.
As a kind of optional embodiment of the embodiment of the present invention, tracker set includes that head-tracking device and hand chase after When track device, the head position information of target body is obtained by head-tracking device, and target body is obtained by hand tracker Hand position information is simulated the head of target body and body action according to head position information, according to hand position Information simulates the hand and arm action of target body.
Optionally, tracker set includes at least head-tracking device, hand tracker and foot's tracker, and second obtains list Member includes: that third obtains module, for obtaining the head position information of head-tracking device, the hand position information of hand tracker With the foot position information of foot tracker;Control unit includes: the 6th control module, for according to head position information, hand Portion's location information and foot position information control manikin carry out at least one following movement: head rotation, body bending, body Body movement, arm movement, arm bending, arm rotation, leg movement, leg curvature and leg rotation.
As a kind of optional embodiment of the embodiment of the present invention, tracker set includes that head-tracking device, hand chase after When track device and foot's tracker, the head position information of target body is obtained by head-tracking device, is obtained by hand tracker The hand position information for taking target body obtains the foot position information of target body by foot's tracker, according to head position Confidence breath simulates the head of target body and body action, according to hand position information to the hand and hand of target body Arm movement is simulated, and is simulated according to foot position information to both feet and the both legs movement of target body.
Optionally, device further include: unit is established, for before obtaining the manikin that shows in virtual reality, Establish the manikin with default Body proportion;Third acquiring unit, for obtaining target according to the location information of tracker The actual body ratio of human body;Unit for scaling is used for according to actual body scaling manikin, so that the body of manikin Body ratio is consistent with the Body proportion of target body.
It is similar to target body in order to improve manikin as a kind of optional embodiment of the embodiment of the present invention Degree, establishes the consistent manikin of actual body ratio with target body.Specifically, first establishing one has standard body The manikin of body ratio, then the location information of the tracker according to configuration in target body, obtains the reality of target body Border Body proportion relationship, such as: the height of target body, then root can be learnt according to the location information of target body head-tracking device According to the location information of the hand of target body, the arm length of target body is learnt.Finally, according to the actual body of target body Proportionate relationship zooms in and out the above-mentioned manikin with standard physical ratio, so that the Body proportion relationship of manikin It is consistent with the actual body ratio of target body.
Embodiment 3
According to embodiments of the present invention, it additionally provides a kind of for implementing the end of the analogy method of human body in above-mentioned virtual reality End, as shown in figure 9, the terminal mainly includes processor 901, display 902 and network interface 903, in which:
Network interface 903 is mainly used for carrying out network communication with tracker, to obtain the location information of tracker.
Display 902 is mainly used for the manikin that display is used for simulated target human body.
Processor 901 is mainly used for performing the following operations:
Obtain the manikin shown in virtual reality, wherein manikin is used for the target person in true environment Body is simulated;Obtain the location information of all trackers in the tracker set of target body, wherein tracker set includes The tracker on the predetermined body part of target body is arranged at least one;It is virtual existing according to the location information control got Manikin in reality is moved, so that the movement of manikin simulated target human body.
Position conduct represented by any one location information in the location information that processor 901 is also used to will acquire Target position;It is default to judge whether the distance between current location and target position of the destination node of manikin is greater than first Threshold value, wherein the desired body area of destination node target body corresponding with target position is associated;If destination node The distance between current location and target position are greater than the first preset threshold, then control all fathers of destination node and destination node Node is moved, wherein the multiple bones of destination node and father node for a skeletal chain in simulated target human body.
Processor 901 is also used to obtain all father nodes of destination node and the positional relationship of target position;According to position Relationship selects the father node adjacent with destination node as rotation node;It keeps rotation node and rotates all child nodes of node Distance it is constant, all child nodes of the rotation node are rotated, so that destination node is moved to rotation node and target position On line;The father node adjacent with rotation node is reselected as rotation node, until all father nodes of destination node are complete Portion's selection finishes.
Towards conduct represented by any one location information in the location information that processor 901 is also used to will acquire Target direction;Judge whether the current of the destination node of manikin is greater than second towards with target angle of the target between Preset threshold;If target angle is greater than the second preset threshold, all father nodes for controlling destination node and destination node are pressed It is rotated according to the first predetermined angle, wherein the angle of destination node rotation is equal to the second preset threshold, and destination node owns The rotation angle of father node is less than or equal to the rotation angle of destination node;If it is pre- that target angle is less than or equal to second If threshold value, then control destination node and rotated according to target angle, and the father node for controlling destination node is default according to second Angle is rotated, wherein the second predetermined angle is less than or equal to target angle.
Processor 901 is also used to obtain the head position information of head-tracking device;Human body is controlled according to head position information Model carries out at least one following movement: head rotation, body bending and body are mobile.
Processor 901 is also used to the left-hand minutia of manikin and right-hand minutia merging into hand node;And/or by people The left leg node and right leg node of body Model merge into leg node, wherein the hand node and leg node merged be The father node of Sheffield dummy head's node.
Processor 901 is also used to obtain the head position information of head-tracking device and the hand position letter of hand tracker Breath;At least one following movement: head rotation, body is carried out according to head position information and hand position information control manikin Body bending, body is mobile, arm is mobile, arm bending and arm rotate.
Processor 901 is also used to obtain the head position information of head-tracking device, the hand position information of hand tracker With the foot position information of foot tracker;People is controlled according to head position information, hand position information and foot position information Body Model carries out at least one following movement: head rotation, body bending, body movement, arm movement, arm bending, arm Rotation, leg movement, leg curvature and leg rotation.
Processor 901 is also used to establish the manikin with default Body proportion;It is obtained according to the location information of tracker Take the actual body ratio of target body;According to actual body scaling manikin, so that the Body proportion of manikin It is consistent with the Body proportion of target body.
Optionally, the specific example in the present embodiment can be shown with reference to described in above-described embodiment 1 and embodiment 2 Example, details are not described herein for the present embodiment.
Embodiment 4
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can For storage in the virtual reality of the embodiment of the present invention analogy method of human body program code.
Optionally, in the present embodiment, above-mentioned storage medium can be located at mobile communications network, wide area network, Metropolitan Area Network (MAN) or At least one network equipment in multiple network equipments in the network of local area network.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
S1 obtains the manikin shown in virtual reality, wherein manikin is used for the target in true environment Human body is simulated;
S2 obtains the location information of all trackers in the tracker set of target body, wherein tracker set includes The tracker on the predetermined body part of target body is arranged at least one;
S3 is moved according to the manikin in the location information control virtual reality got, so that manikin The movement of simulated target human body.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or The various media that can store program code such as CD.
Optionally, in the present embodiment, processor will acquire according to program code stored in storage medium execution Location information in any one location information represented by position as target position;Judge the destination node of manikin Current location and the distance between target position whether be greater than the first preset threshold, wherein destination node and target position pair The desired body area for the target body answered is associated;If the distance between the current location of destination node and target position are big In the first preset threshold, then all father nodes for controlling destination node and destination node are moved, wherein destination node and father Multiple bones of the node for a skeletal chain in simulated target human body.
Optionally, in the present embodiment, processor executes according to program code stored in storage medium and obtains target All father nodes of node and the positional relationship of target position;The father node adjacent with destination node is selected to make according to positional relationship To rotate node;It keeps rotation node constant at a distance from all child nodes for rotating node, rotates all child nodes of node, So that destination node is moved on rotation node and the line of target position;The father node adjacent with rotation node is reselected to make To rotate node, until all father nodes of destination node all select to finish.
Optionally, in the present embodiment, processor will acquire according to program code stored in storage medium execution Location information in any one location information represented by towards be used as target direction;Judge the destination node of manikin Current whether be greater than the second preset threshold towards target angle of the target between;If it is pre- that target angle is greater than second If threshold value, then all father nodes for controlling destination node and destination node are rotated according to the first predetermined angle, wherein target The angle of node rotation is equal to the second preset threshold, and the rotation angle of all father nodes of destination node is less than or equal to target The rotation angle of node;If target angle is less than or equal to the second preset threshold, destination node is controlled according to target angle Degree is rotated, and the father node for controlling destination node is rotated according to the second predetermined angle, wherein the second predetermined angle is small In or equal to target angle.
Optionally, in the present embodiment, processor executes according to program code stored in storage medium and obtains head The head position information of tracker;Control manikin according to head position information and carry out at least one following movement: head turns Dynamic, body bending and body are mobile.
Optionally, in the present embodiment, processor is executed according to program code stored in storage medium by human mould The left-hand minutia and right-hand minutia of type merge into hand node;And/or the left leg node of manikin and right leg node are merged For leg node, wherein the hand node and leg node merged is the father node of manikin head node,.
Optionally, in the present embodiment, processor executes according to program code stored in storage medium and obtains head The head position information of tracker and the hand position information of hand tracker;According to head position information and hand position information Control manikin and carry out at least one following movement: head rotation, body bending, body is mobile, arm is mobile, arm bending It is rotated with arm.
Optionally, in the present embodiment, processor executes according to program code stored in storage medium and obtains head The foot position information of the head position information of tracker, the hand position information of hand tracker and foot's tracker;According to Head position information, hand position information and foot position information control manikin carry out at least one following movement: head Rotation, body bending, body movement, arm movement, arm bending, arm rotation, leg movement, leg curvature and leg rotation Turn.
Optionally, in the present embodiment, processor executes to establish according to program code stored in storage medium and have The manikin of default Body proportion;The actual body ratio of target body is obtained according to the location information of tracker;According to reality Border Body proportion scales manikin, so that the Body proportion of manikin is consistent with the Body proportion of target body.
Optionally, the specific example in the present embodiment can be shown with reference to described in above-described embodiment 1 and embodiment 2 Example, details are not described herein for the present embodiment.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (16)

1. the analogy method of human body in a kind of virtual reality characterized by comprising
Obtain the manikin shown in virtual reality, wherein the manikin is used for the target person in true environment Body is simulated;
Obtain the location information of all trackers in the tracker set of the target body, wherein the tracker set packet Include at least one tracker being arranged on the predetermined body part of the target body;
It is moved according to the manikin in the location information control virtual reality got, so that the manikin Simulate the movement of the target body;
Wherein, the location information includes the position of the tracker, according in the location information control virtual reality got The manikin to carry out movement include: position represented by any one location information in the location information that will acquire As target position;Judge the destination node of the manikin current location and the distance between the target position whether Greater than the first preset threshold, wherein the predetermined body of the destination node target body corresponding with the target position Position is associated;If it is default that the distance between the current location of the destination node and the target position are greater than described first Threshold value, the then all father nodes for controlling the destination node and the destination node are moved, wherein the destination node with The father node is used to simulate multiple bones of a skeletal chain in the target body.
2. the method according to claim 1, wherein controlling all of the destination node and the destination node Father node carries out movement
Obtain all father nodes of the destination node and the positional relationship of the target position;
Select the father node adjacent with the destination node as rotation node according to the positional relationship;
It keeps the rotation node constant at a distance from all child nodes of the rotation node, rotates the institute of the rotation node There is child node, so that the destination node is moved on the rotation node and the line of the target position;
The father node adjacent with the rotation node is reselected as the rotation node, until owning for the destination node All selection finishes father node.
3. the method according to claim 1, wherein the location information includes the direction of the tracker, root Carrying out movement according to the manikin in the location information control virtual reality got includes:
Towards as target direction represented by any one location information in the location information that will acquire;
Judge whether the current of the destination node of the manikin is greater than towards with target angle of the target between Second preset threshold;
If the target angle is greater than second preset threshold, the institute of the destination node and the destination node is controlled There is father node to be rotated according to the first predetermined angle, wherein it is default that the angle of the destination node rotation is equal to described second Threshold value, the rotation angle of all father nodes of the destination node are less than or equal to the rotation angle of the destination node;
If the target angle is less than or equal to the second preset threshold, the destination node is controlled according to the target angle Degree is rotated, and the father node for controlling the destination node is rotated according to the second predetermined angle, wherein described second is pre- If angle is less than or equal to the target angle.
4. according to the method in any one of claims 1 to 3, which is characterized in that the tracker set includes at least head Portion's tracker,
The location information for obtaining all trackers in the tracker set of the target body includes: to obtain the head-tracking device Head position information;
Carrying out movement according to the manikin in the location information control virtual reality got includes: according to the head Location information controls the manikin and carries out at least one following movement: head rotation, body bending and body are mobile.
5. according to the method described in claim 4, it is characterized in that, according in the location information control virtual reality got The manikin carry out it is mobile before, which comprises
The left-hand minutia of the manikin and right-hand minutia are merged into hand node;And/or by a left side for the manikin Leg node and right leg node merge into leg node, wherein the hand node and the leg node merged is institute State the father node of Sheffield dummy head's node.
6. according to the method in any one of claims 1 to 3, which is characterized in that the tracker set includes at least head Portion's tracker and hand tracker,
The location information for obtaining all trackers in the tracker set of the target body includes: to obtain the head-tracking device Head position information and the hand tracker hand position information;
Carrying out movement according to the manikin in the location information control virtual reality got includes: according to the head Location information and the hand position information control the manikin and carry out at least one following movement: head rotation, body Bending, body is mobile, arm is mobile, arm bending and arm rotate.
7. according to the method in any one of claims 1 to 3, which is characterized in that the tracker set includes at least head Portion's tracker, hand tracker and foot's tracker,
The location information for obtaining all trackers in the tracker set of the target body includes: to obtain the head-tracking device Head position information, the foot position information of the hand position information of the hand tracker and foot's tracker;
Carrying out movement according to the manikin in the location information control virtual reality got includes:
According to the head position information, the hand position information and the foot position information control the manikin into At least one following movement of row: head rotation, body bending, body movement, arm movement, arm bending, arm rotation, leg Mobile, leg curvature and leg rotation.
8. the method according to claim 1, wherein obtain the manikin that is shown in virtual reality it Before, the method also includes:
Establish the manikin with default Body proportion;
The actual body ratio of the target body is obtained according to the location information of the tracker;
According to manikin described in the actual body scaling, so that the Body proportion of the manikin and the target The Body proportion of human body is consistent.
9. the simulator of human body in a kind of virtual reality characterized by comprising
First acquisition unit, for obtaining the manikin shown in virtual reality, wherein the manikin is used for true Target body in real environment is simulated;
Second acquisition unit, the location information of all trackers in the tracker set for obtaining the target body, wherein The tracker set includes the tracker that at least one is arranged on the predetermined body part of the target body;
Control unit, for being moved according to the manikin in the location information control virtual reality got, with The manikin is set to simulate the movement of the target body;
Wherein, the location information includes the position of the tracker, and described control unit includes: position module, for that will obtain Position represented by any one location information in the location information got is as target position;First judgment module is used for It is default to judge whether the current location of the destination node of the manikin and the distance between the target position are greater than first Threshold value, wherein the desired body area of the destination node target body corresponding with the target position is associated;The One control module, if for the current location in the destination node between the target position at a distance from be greater than described the When one preset threshold, all father nodes for controlling the destination node and the destination node are moved, wherein the target Node and the father node are used to simulate multiple bones of a skeletal chain in the target body.
10. device according to claim 9, which is characterized in that first control module includes:
Acquisition submodule, for obtaining all father nodes of the destination node and the positional relationship of the target position;
Swivel point submodule, for selecting the father node adjacent with the destination node as rotation according to the positional relationship Node;
Submodule is rotated, for keeping the rotation node constant, rotation at a distance from all child nodes of the rotation node All child nodes of the rotation node, so that the destination node is moved to the company of the rotation node and the target position On line;
Submodule is repeated, for reselecting the father node adjacent with the rotation node as the rotation node, Zhi Daosuo All father nodes for stating destination node all select to finish.
11. device according to claim 9, which is characterized in that the location information includes the direction of the tracker, institute Stating control unit includes:
Towards module, towards as target court represented by any one location information in the location information for will acquire To;
Second judgment module, for judge the manikin destination node it is current towards and the target between Whether target angle is greater than the second preset threshold;
Second control module, for the target angle be greater than second preset threshold when, control the destination node and All father nodes of the destination node are rotated according to the first predetermined angle, wherein the angle of the destination node rotation Equal to second preset threshold, the rotation angle of all father nodes of the destination node is less than or equal to the target section The rotation angle of point;
Third control module, for controlling the target section when the target angle is less than or equal to the second preset threshold Point is rotated according to the target angle, and the father node for controlling the destination node is revolved according to the second predetermined angle Turn, wherein second predetermined angle is less than or equal to the target angle.
12. the device according to any one of claim 9 to 11, which is characterized in that the tracker set includes at least Head-tracking device,
The second acquisition unit includes: the first acquisition module, for obtaining the head position information of the head-tracking device;
Described control unit includes: the 4th control module, for according to the head position information control the manikin into At least one following movement of row: head rotation, body bending and body are mobile.
13. device according to claim 12, which is characterized in that described device includes:
First combining unit, for being moved according to the manikin in the location information control virtual reality got Before dynamic, the left-hand minutia of the manikin and right-hand minutia are merged into hand node;And/or
Second combining unit, for being moved according to the manikin in the location information control virtual reality got Before dynamic, the left leg node of the manikin and right leg node are merged into leg node, wherein the hand merged Portion's node and the leg node are the father node of Sheffield dummy head's node.
14. the device according to any one of claim 9 to 11, which is characterized in that the tracker set includes at least Head-tracking device and hand tracker,
The second acquisition unit includes: the second acquisition module, for obtain the head-tracking device head position information and The hand position information of the hand tracker;
Described control unit includes: the 5th control module, for according to the head position information and the hand position information Control the manikin and carry out at least one following movement: head rotation, body bending, body is mobile, arm is mobile, arm Bending and arm rotation.
15. the device according to any one of claim 9 to 11, which is characterized in that the tracker set includes at least Head-tracking device, hand tracker and foot's tracker,
The second acquisition unit includes: that third obtains module, for obtaining head position information, the institute of the head-tracking device State the hand position information of hand tracker and the foot position information of foot's tracker;
Described control unit includes: the 6th control module, for according to the head position information, the hand position information and The foot position information controls the manikin and carries out at least one following movement: head rotation, body bending, body move Dynamic, arm movement, arm bending, arm rotation, leg movement, leg curvature and leg rotation.
16. device according to claim 9, which is characterized in that described device further include:
Unit is established, there is default Body proportion for establishing before obtaining the manikin shown in virtual reality Manikin;
Third acquiring unit, for obtaining the actual body ratio of the target body according to the location information of the tracker;
Unit for scaling is used for the manikin according to the actual body scaling, so that the body of the manikin Ratio is consistent with the Body proportion of the target body.
CN201710209562.0A 2017-03-31 2017-03-31 The analogy method and device of human body in virtual reality Active CN107122043B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201710209562.0A CN107122043B (en) 2017-03-31 2017-03-31 The analogy method and device of human body in virtual reality
PCT/CN2018/077922 WO2018177075A1 (en) 2017-03-31 2018-03-02 Method and apparatus for simulating human body in virtual reality, storage medium, and electronic apparatus
TW107109892A TWI657263B (en) 2017-03-31 2018-03-22 Method and device for simulating human body in virtual reality, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710209562.0A CN107122043B (en) 2017-03-31 2017-03-31 The analogy method and device of human body in virtual reality

Publications (2)

Publication Number Publication Date
CN107122043A CN107122043A (en) 2017-09-01
CN107122043B true CN107122043B (en) 2019-01-08

Family

ID=59724585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710209562.0A Active CN107122043B (en) 2017-03-31 2017-03-31 The analogy method and device of human body in virtual reality

Country Status (3)

Country Link
CN (1) CN107122043B (en)
TW (1) TWI657263B (en)
WO (1) WO2018177075A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122043B (en) * 2017-03-31 2019-01-08 腾讯科技(深圳)有限公司 The analogy method and device of human body in virtual reality
CN109542225B (en) * 2018-11-21 2022-01-25 英华达(上海)科技有限公司 Redirection virtual reality space system and method thereof
CN111190826B (en) * 2019-12-30 2024-01-23 上海曼恒数字技术股份有限公司 Testing method, device, storage medium and equipment for virtual reality immersive tracking environment
CN112379771A (en) * 2020-10-10 2021-02-19 杭州翔毅科技有限公司 Real-time interaction method, device and equipment based on virtual reality and storage medium
CN116977501A (en) * 2022-04-22 2023-10-31 北京字跳网络技术有限公司 Control method, device, equipment and storage medium for virtual image

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101579238A (en) * 2009-06-15 2009-11-18 吴健康 Human motion capture three dimensional playback system and method thereof
CN103488291A (en) * 2013-09-09 2014-01-01 北京诺亦腾科技有限公司 Immersion virtual reality system based on motion capture

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9536338B2 (en) * 2012-07-31 2017-01-03 Microsoft Technology Licensing, Llc Animating objects using the human body
CN203405772U (en) * 2013-09-09 2014-01-22 北京诺亦腾科技有限公司 Immersion type virtual reality system based on movement capture
CN105225262B (en) * 2015-10-23 2018-09-21 深圳华侨城文化旅游科技股份有限公司 A kind of dynamic capture 3D data processing methods
CN106251387A (en) * 2016-07-29 2016-12-21 武汉光之谷文化科技股份有限公司 A kind of imaging system based on motion capture
CN106484110A (en) * 2016-09-30 2017-03-08 珠海市魅族科技有限公司 A kind of method of simulation body action and virtual reality device
CN107122043B (en) * 2017-03-31 2019-01-08 腾讯科技(深圳)有限公司 The analogy method and device of human body in virtual reality

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101579238A (en) * 2009-06-15 2009-11-18 吴健康 Human motion capture three dimensional playback system and method thereof
CN103488291A (en) * 2013-09-09 2014-01-01 北京诺亦腾科技有限公司 Immersion virtual reality system based on motion capture

Also Published As

Publication number Publication date
WO2018177075A1 (en) 2018-10-04
CN107122043A (en) 2017-09-01
TWI657263B (en) 2019-04-21
TW201830090A (en) 2018-08-16

Similar Documents

Publication Publication Date Title
CN107122043B (en) The analogy method and device of human body in virtual reality
CN105955456B (en) The method, apparatus and intelligent wearable device that virtual reality is merged with augmented reality
CN106780421A (en) Finishing effect methods of exhibiting based on panoramic platform
WO2022021686A1 (en) Method and apparatus for controlling virtual object, and storage medium and electronic apparatus
CN103793060B (en) A kind of user interactive system and method
Ebrahimi et al. Investigating the effects of anthropomorphic fidelity of self-avatars on near field depth perception in immersive virtual environments
EP3347795A1 (en) Tactile interaction in virtual environments
CN103530897B (en) Movement redirection processing method and device
CN106548675A (en) Virtual military training method and device
CN109978975A (en) A kind of moving method and device, computer equipment of movement
CN106484115A (en) For strengthening the system and method with virtual reality
Lamberti et al. Virtual character animation based on affordable motion capture and reconfigurable tangible interfaces
CN108771866A (en) Virtual object control method in virtual reality and device
CN105488834B (en) The method of adjustment and device of role's face orientation
CN109191593A (en) Motion control method, device and the equipment of virtual three-dimensional model
CN108389249A (en) A kind of spaces the VR/AR classroom of multiple compatibility and its construction method
US20170221251A1 (en) Animating a virtual object in a virtual world
CN109446952A (en) A kind of piano measure of supervision, device, computer equipment and storage medium
CN105528804A (en) Processing method and device of skeleton chain in computer animation
CN109550250A (en) Virtual objects skeleton data processing method and processing device, storage medium, electronic equipment
CN108815848A (en) Virtual objects display methods, device, electronic device and storage medium
CN108595004A (en) More people's exchange methods, device and relevant device based on Virtual Reality
CN110992495A (en) Virtual model deformation method and device
CN107180372A (en) Teleshopping method, equipment and system
CN106484110A (en) A kind of method of simulation body action and virtual reality device

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240111

Address after: 518000 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 Floors

Patentee after: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

Patentee after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd.

Address before: 518000 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 Floors

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.