TW201830090A - Method and device for simulating human body in virtual reality, storage medium, and electronic device - Google Patents

Method and device for simulating human body in virtual reality, storage medium, and electronic device Download PDF

Info

Publication number
TW201830090A
TW201830090A TW107109892A TW107109892A TW201830090A TW 201830090 A TW201830090 A TW 201830090A TW 107109892 A TW107109892 A TW 107109892A TW 107109892 A TW107109892 A TW 107109892A TW 201830090 A TW201830090 A TW 201830090A
Authority
TW
Taiwan
Prior art keywords
target
human body
node
tracker
position information
Prior art date
Application number
TW107109892A
Other languages
Chinese (zh)
Other versions
TWI657263B (en
Inventor
程東哲
Original Assignee
大陸商騰訊科技(深圳)有限公司
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 大陸商騰訊科技(深圳)有限公司 filed Critical 大陸商騰訊科技(深圳)有限公司
Publication of TW201830090A publication Critical patent/TW201830090A/en
Application granted granted Critical
Publication of TWI657263B publication Critical patent/TWI657263B/en

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

Abstract

The present application discloses a method and device for simulating human body in virtual reality, a storage medium, and an electronic device. The method includes obtaining a human body model shown in virtual reality, wherein the human body model is used to simulate an objective human body in a real environment; obtaining position information of all of trackers in a tracker set of the objective human body, wherein the tracker set includes at lease one tracker disposed on a predetermined body part of the objective human body; and controlling the human body model to move in the virtual reality based on the obtained position information to simulate movement of the objective human body using the human body model. The present application solves a technical problem that reality simulation for human body movements is unable to be carried out in the virtual reality.

Description

虛擬實境中人體的模擬方法和裝置、儲存介質和電子裝置  Human body simulation method and device, storage medium and electronic device in virtual reality  

本申請係關於虛擬實境領域,特別有關一種虛擬實境中人體的模擬方法和裝置、儲存介質和電子裝置。 The present application relates to the field of virtual reality, and particularly relates to a simulation method and device, a storage medium and an electronic device for a human body in a virtual reality.

隨著虛擬實境的技術被一點點的突破,民用家庭設備逐漸出現,成為娛樂生活重要的組成部分,讓人們體驗到前所未有的感覺。為了讓人們更加好的在場景裏面更好的互動,已經更加接近真實的感覺,在虛擬環境中的人與人的真實互動就顯得尤為重要,而真實互動的第一步就是要求形象動作與人類接近。 With the breakthrough of virtual reality technology, civilian home devices have emerged as an important part of entertainment life, allowing people to experience an unprecedented feeling. In order to make people better interact better in the scene, it is closer to the real feeling. The real interaction between people in the virtual environment is especially important, and the first step of real interaction is to ask for image movement and humanity. Close.

現有的虛擬實境互動遊戲中,大多用非真實的人類來表示人物形象,但模擬出的人物形象要麽是身體不能動,要麽是透過播放動畫的形式以假亂真,還有一些直接取消掉胳膊和腿部,只有頭部、身體和手,無法真實的模擬出人物動作,影響用戶體驗。 In the existing virtual reality interactive games, most of them use non-real humans to represent the characters, but the simulated characters are either physically unable to move, or by playing animations, and some directly canceling the arms. And the legs, only the head, body and hands, can not realistically simulate the movement of the characters, affecting the user experience.

針對上述的問題,目前尚未提出有效的解决方案。 In response to the above problems, no effective solution has been proposed yet.

本申請實施例提供了一種虛擬實境中人體的模擬方法和裝置、儲存介質和電子裝置,以至少解决虛擬實境中無法對人體動作進行真實模擬的技術問題。 The embodiment of the present application provides a simulation method and device for a human body in a virtual reality, a storage medium, and an electronic device, so as to at least solve the technical problem that the virtual reality cannot perform real simulation on the human body motion.

根據本申請實施例的一個方面,提供了一種虛擬實境中人體的模擬方法,包括:獲取在虛擬實境中顯示的人體模型,其中,所述人體模型用於對真實環境中的目標人體進行模擬;獲取所述目標人體的追蹤器集合中所有追蹤器的位置訊息,其中,所述追蹤器集合包括至少一個設置在所述目標人體的預定身體部分上的追蹤器;以及根據獲取到的位置訊息控制虛擬實境中的所述人體模型進行移動,以使所述人體模型模擬所述目標人體的動作。 According to an aspect of the embodiments of the present application, a method for simulating a human body in a virtual reality includes: acquiring a human body model displayed in a virtual reality, wherein the human body model is used to perform a target human body in a real environment. Simulating; acquiring location information of all trackers in the set of trackers of the target human body, wherein the set of trackers includes at least one tracker disposed on a predetermined body part of the target human body; and according to the acquired position The mannequin in the message control virtual reality is moved to cause the human body model to simulate the action of the target human body.

根據本申請實施例的另一方面,還提供了一種虛擬實境中人體的模擬裝置,包括:第一獲取單元,用於獲取在虛擬實境中顯示的人體模型,其中,所述人體模型用於對真實環境中的目標人體進行模擬;第二獲取單元,用於獲取所述目標人體的追蹤器集合中所有追蹤器的位置訊息,其中,所述追蹤器集合包括至少一個設置在所述目標人體的預定身體部分上的追蹤器;以及控制單元,用於根據獲取到的位置訊息控制虛擬實境中的所述人體模型進行移動,以使所述人體模型模擬所述目標人體的動作。 According to another aspect of the embodiments of the present application, a simulation apparatus for a human body in a virtual reality is provided, including: a first acquiring unit, configured to acquire a human body model displayed in a virtual reality, wherein the human body model is used Simulating a target human body in a real environment; a second acquiring unit, configured to acquire location information of all trackers in the tracker set of the target human body, wherein the tracker set includes at least one set in the target a tracker on the predetermined body part of the human body; and a control unit configured to control the mannequin in the virtual reality to move according to the acquired position information, so that the human body model simulates the action of the target human body.

在本申請實施例中,採用獲取在虛擬實境中顯示的人體模型,其中,所述人體模型用於對真實環境中的目標人體進行模擬;獲取所述目標人體的追蹤器集合中所有追蹤器的位置訊息,其中,所述追蹤器集合包括至少一個設置在所述目標人體的預定身體部位上的追蹤器;以及根據獲取到的位置訊息控制虛擬實境中的所述人體模型進行移動,以使所述人體模型模擬所述目標人體的動作,透過根據目標人體的預定身體部位上的追蹤器的位置訊息,控制虛擬實境中的人體模型進行移動,達到了控制人體模型模擬目標人體動作的目的,從而實現了根據目標人體的預定身體部位的位置訊息,控制人體模型對目標人體的動作進行模擬的技術效果,進而解决了虛擬實境中無法對人體動作進行真實模擬 的技術問題。 In the embodiment of the present application, a human body model displayed in a virtual reality is acquired, wherein the human body model is used to simulate a target human body in a real environment; and all trackers in the tracker set of the target human body are acquired. Location information, wherein the tracker set includes at least one tracker disposed on a predetermined body part of the target human body; and controlling the human body model in the virtual reality to move according to the acquired position information, The human body model is simulated to simulate the movement of the target human body, and the human body model in the virtual reality is controlled to move according to the position information of the tracker on the predetermined body part of the target human body, thereby achieving control of the human body model to simulate the target human body motion. The purpose is to realize the technical effect of simulating the movement of the target human body according to the position information of the predetermined body part of the target human body, thereby solving the technical problem that the virtual reality cannot perform real simulation on the human body motion.

S202~S206‧‧‧步驟 S202~S206‧‧‧Steps

此處所說明的圖式用來提供對本申請的進一步理解,構成本申請的一部分,本申請的示意性實施例及其說明用於解釋本申請,並不構成對本申請的不當限定。在圖式中:第1圖是根據本申請實施例的一種可選的虛擬實境中人體的模擬方法的場景佈局的示意圖;第2圖是根據本申請實施例的一種可選的虛擬實境中人體的模擬方法的流程圖;第3圖是根據本申請實施例的標準人體骨架的示意圖;第4圖是根據本申請實施例的控制目標節點與目標節點的父節點進行移動的過程示意圖;第5圖是根據本申請實施例的包括頭部、身體和雙腿的部分骨架示意圖;第6圖是根據本申請實施例的包括雙手和雙臂的部分骨架示意圖;第7圖是根據本申請實施例的對腿部骨架進行簡化後的部分骨架示意圖;第8圖是根據本申請實施例的一種可選的虛擬實境中人體的模擬裝置的示意圖;第9圖是根據本申請實施例的終端的示意圖。 The drawings are intended to provide a further understanding of the present application, and are intended to be a part of this application. In the drawings: FIG. 1 is a schematic diagram of a scene layout of a human body simulation method in an optional virtual reality according to an embodiment of the present application; FIG. 2 is an optional virtual reality according to an embodiment of the present application. A flowchart of a simulation method of a human body; FIG. 3 is a schematic diagram of a standard human skeleton according to an embodiment of the present application; and FIG. 4 is a schematic diagram of a process of controlling a target node to move with a parent node of a target node according to an embodiment of the present application; 5 is a schematic diagram of a partial skeleton including a head, a body and legs according to an embodiment of the present application; FIG. 6 is a schematic diagram of a partial skeleton including both hands and arms according to an embodiment of the present application; FIG. 7 is a diagram according to the present invention; FIG. 8 is a schematic diagram of a simplified simulation of a human body in a virtual reality according to an embodiment of the present application; FIG. 9 is a schematic diagram of a human body simulation apparatus according to an embodiment of the present application; Schematic diagram of the terminal.

為了使所屬技術領域具有通常知識者更好地理解本申請方案,下面將結合本申請實施例中的圖式,對本申請實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本申請一部分的實施例,而不是全部的實施例。基於本申請中 的實施例,所屬技術領域具有通常知識者在沒有做出創造性勞動前提下所獲得的所有其他實施例,都應當屬本申請保護的範圍。 The technical solutions in the embodiments of the present application are clearly and completely described in the following, in which the embodiments of the present application are described in detail in the embodiments of the present application. The examples are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are intended to be within the scope of the application.

需要說明的是,本申請的說明書和申請專利範圍及上述圖式中的術語“第一”、“第二”等是用於區別類似的對象,而不必用於描述特定的順序或先後次序。應該理解這樣使用的資料在適當情况下可以互換,以便這裡描述的本申請的實施例能够以除了在這裡圖示或描述的那些以外的順序實施。此外,術語“包括”和“具有”以及他們的任何變形,意圖在於覆蓋不排他的包含,例如,包含了一系列步驟或單元的過程、方法、系統、產品或設備不必限於清楚地列出的那些步驟或單元,而是可包括沒有清楚地列出的或對於這些過程、方法、產品或設備固有的其它步驟或單元。 It should be noted that the terms "first", "second" and the like in the specification and the claims of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or order. It is to be understood that the materials so used are interchangeable under appropriate circumstances, and that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.

根據本申請實施例,提供了一種可以透過本申請裝置實施例執行的方法實施例,需要說明的是,在圖式的流程圖示出的步驟可以在諸如一組計算機可執行指令的計算機系統中執行,並且,雖然在流程圖中示出了邏輯順序,但是在某些情况下,可以以不同於此處的順序執行所示出或描述的步驟。 In accordance with an embodiment of the present application, an embodiment of a method that can be performed by an embodiment of the apparatus of the present application is provided. It is noted that the steps illustrated in the flowchart of the drawings may be in a computer system such as a set of computer executable instructions. The steps shown and described may be performed in a different order than the ones described herein, although the logical order is shown in the flowchart.

根據本申請實施例,提供了一種虛擬實境中人體的模擬方法。 According to an embodiment of the present application, a simulation method of a human body in a virtual reality is provided.

該方法可以應用於各種虛擬實境設備上,透過在目標人體上設置追蹤器,以獲取目標人體的預定身體部位的位置訊息,並根據獲取到的位置訊息,控制虛擬實境中人體模型進行移動,以使人體模型對目標人體的各種動作進行模擬。第1圖是根據本申請實施例的一種可選的虛擬實境中人體的模擬方法的場景佈局的示意圖,如第1圖所示,目標人體的預定身體部位上配置有追蹤器,其中,目標人體的頭部佩帶有可視頭盔(相當於頭部追蹤器), 目標人體的左手和右手分別持有一個手柄(相當於手部追蹤器),當目標人體在預定的區域內做出任意動作時,第1圖中示出的虛擬實境設備透過位置訊息接收裝置獲取可視頭盔和兩個手柄的位置訊息,進而獲取目標人體頭部和手部的位置訊息,並根據獲取到的位置訊息,控制虛擬實境中的人體模型進行相應的移動,以對目標人體做出的各種動作進行模擬,從而實現了根據目標人體的預定身體部位的位置訊息,控制人體模型對目標人體的動作進行模擬的技術效果,進而解决了虛擬實境中無法對人體動作進行真實模擬的技術問題,使人們在虛擬實境中的互動更加接近真實的感覺。 The method can be applied to various virtual reality devices by setting a tracker on the target human body to obtain a position information of a predetermined body part of the target human body, and controlling the human body model in the virtual reality to move according to the acquired position information. In order to make the human body model simulate various actions of the target human body. 1 is a schematic diagram of a scene layout of a human body simulation method in an optional virtual reality according to an embodiment of the present application. As shown in FIG. 1 , a tracker is disposed on a predetermined body part of a target human body, wherein the target The head of the human body is wearing a visual helmet (equivalent to a head tracker), and the left and right hands of the target human body respectively hold a handle (equivalent to a hand tracker), when the target human body performs any action in a predetermined area. The virtual reality device shown in FIG. 1 acquires the position information of the visual helmet and the two handles through the position information receiving device, thereby acquiring the position information of the target human head and the hand, and controlling according to the acquired position information. The human body model in the virtual reality moves correspondingly to simulate various actions made by the target human body, thereby realizing the technique of simulating the movement of the target human body according to the position information of the predetermined body part of the target human body. The effect, in turn, solves the technical problem that the virtual reality cannot perform real simulation on human motion, so that people are in virtual reality. The interactions more realistic feeling.

需要說明的是,本申請實施例所提供的虛擬實境中人體的模擬方法在應用於各種虛擬實境設備時,該虛擬實境設備應當包括有必要的追蹤器,以獲取目標人體預定身體部位的位置訊息,如:頭部追蹤器、手部追蹤器、腳部追蹤器等,其中,頭部追蹤器主要用於獲取目標人體的頭部位置訊息,進而根據頭部位置訊息,控制人體模型對目標人體的頭部、頸部以及軀幹的動作進行模擬,手部追蹤器用於獲取目標人體的雙手的位置訊息,進而根據雙手的位置訊息,控制人體模型對目標人體的雙手及手臂動作進行模擬,腳部追蹤器用於獲了以目標人體的雙腳的位置訊息,進而根據雙腳的位置訊息,控制人體模型對目標人體的雙腳及雙腿動作進行模擬。虛擬實境設備所包括的追蹤器應當至少包括頭部追蹤器,以至少透過目標人體的頭部位置訊息控制人體模型對目標人體的身體動作進行模擬。如第1圖示出的虛擬實境設備則包括頭部追蹤器和手部追蹤器,則該虛擬實境設備可以透過手部追蹤器對目標人體的雙手及手臂動作進行模擬,從而使人體模型對目標人體的模擬更加接近真實。同樣的,虛擬實境設備可以 同時包括頭部追蹤器、手部追蹤器和腳部追蹤器,以控制人體模型模擬目標人體的身體動作,雙手和雙臂動作以及雙腳和雙腿動作。 It should be noted that, when the simulation method of the human body in the virtual reality provided by the embodiment of the present application is applied to various virtual reality devices, the virtual reality device should include a necessary tracker to obtain a predetermined body part of the target human body. Position information, such as: head tracker, hand tracker, foot tracker, etc., wherein the head tracker is mainly used to obtain the head position information of the target human body, and then control the human body model according to the head position information. Simulate the movement of the head, neck and torso of the target human body. The hand tracker is used to obtain the position information of the hands of the target human body, and then control the hands and arms of the human body model to the target human body according to the position information of the hands. The motion is simulated, and the foot tracker is used to obtain the position information of the target human body's feet, and then according to the position information of the feet, the human body model is controlled to simulate the motion of the target body's feet and legs. The tracker included in the virtual reality device should include at least a head tracker to control the body model to simulate the body motion of the target human body through at least the head position information of the target human body. The virtual reality device shown in FIG. 1 includes a head tracker and a hand tracker, and the virtual reality device can simulate the hands and arms of the target human body through the hand tracker, thereby making the human body The model's simulation of the target human body is closer to reality. Similarly, the virtual reality device can include both a head tracker, a hand tracker, and a foot tracker to control the body model to simulate the body movements of the target human body, both hands and arms, and both feet and legs.

第2圖是根據本申請實施例的一種可選的虛擬實境中人體的模擬方法的流程圖,以下結合第2圖對本申請實施例所提供的虛擬實境中人體的模擬方法做具體介紹,如第2圖所示,該虛擬實境中人體的模擬方法主要包括如下步驟S202至步驟S206: FIG. 2 is a flowchart of a method for simulating a human body in an optional virtual reality according to an embodiment of the present application. The simulation method of the human body in the virtual reality provided by the embodiment of the present application is specifically described below with reference to FIG. 2 . As shown in FIG. 2, the simulation method of the human body in the virtual reality mainly includes the following steps S202 to S206:

步驟S202,獲取在虛擬實境中顯示的人體模型,其中,人體模型用於對真實環境中的目標人體進行模擬。 Step S202: Acquire a human body model displayed in a virtual reality, wherein the human body model is used to simulate a target human body in a real environment.

虛擬實境技術是一種可以創建虛擬世界的計算機仿真系統,它利用計算機生成一種多源訊息融合的、互動式的三維動態視景的模擬環境,透過在該環境中對用戶的實體行為進行仿真使用戶沉浸到該環境中。在虛擬實境中顯示的人體模型用於對用戶的實體行為進行模擬,透過控制人體模型對用戶進行的模擬,並使人體模型模擬出的動作更加接近用戶的實體行為,從而使用戶在虛擬實境中的互動更加真實,提高用戶體驗。 Virtual reality technology is a computer simulation system that can create a virtual world. It uses a computer to generate a multi-source information fusion and interactive 3D dynamic vision simulation environment, through the simulation of the user's physical behavior in the environment. The household is immersed in the environment. The human body model displayed in the virtual reality is used to simulate the user's entity behavior, simulate the user model by controlling the human body model, and make the human body model simulate the action closer to the user's entity behavior, thereby making the user virtual reality. The interaction in the environment is more realistic and enhances the user experience.

步驟S204,獲取目標人體的追蹤器集合中所有追蹤器的位置訊息,其中,追蹤器集合包括至少一個設置在目標人體的預定身體部分上的追蹤器。 Step S204: Acquire location information of all trackers in the tracker set of the target human body, wherein the tracker set includes at least one tracker disposed on a predetermined body part of the target human body.

在本申請實施例中,追蹤器配置在目標人體的預定身體部位上,在目標人體的預定身體部位做出動作時,追蹤器的位置也相應的發生變化,因此,追蹤器的位置訊息即目標人體的預定身體部位的位置訊息。如第1圖所示,當目標人體轉頭時,目標人體所佩帶的頭盔(相當於頭部追蹤器)的朝向也發生變化,而根據頭盔的朝向,即可獲取目標人體的頭部朝向;當目標人體抬高手臂時,目標人體所持的手柄(相當於手部追蹤器)的位置也會 發生變化,而根據目標人體所持的手柄的位置,即可獲取目標人體的手部及手臂的位置。 In the embodiment of the present application, the tracker is disposed on a predetermined body part of the target human body, and when the predetermined body part of the target human body acts, the position of the tracker also changes accordingly, and therefore, the position information of the tracker is the target. The position information of the body's predetermined body part. As shown in Fig. 1, when the target human body turns the head, the orientation of the helmet worn by the target human body (equivalent to the head tracker) also changes, and according to the orientation of the helmet, the head orientation of the target human body can be obtained; When the target human body raises the arm, the position of the handle held by the target human body (equivalent to the hand tracker) also changes, and according to the position of the handle held by the target human body, the position of the hand and the arm of the target human body can be obtained. .

步驟S206,根據獲取到的位置訊息控制虛擬實境中的人體模型進行移動,以使人體模型模擬目標人體的動作。 Step S206, controlling the human body model in the virtual reality according to the acquired position information to move, so that the human body model simulates the action of the target human body.

根據逆向動力學的原理,可以透過先確定子骨骼的位置,然後反求推導出其所在的骨骼鏈上n級父骨骼的位置,從而確定整條骨骼鏈的位置。在本申請實施例中,在控制人體模型對目標人體進行模擬時,根據獲取到的追蹤器的位置訊息,確定人體模型各部位的位置訊息,進而根據逆向動力學反求推導出其他部位的位置訊息,從而確定出整個人體模型的所有部位的位置訊息,以使人體模型對目標人體的動作進行真實的模擬。 According to the principle of inverse dynamics, the position of the n-level parent bone on the bone chain in which it is located can be determined by first determining the position of the child bone, and then determining the position of the entire bone chain. In the embodiment of the present application, when the human body model is controlled to simulate the target human body, the position information of each part of the human body model is determined according to the acquired position information of the tracker, and then the position of other parts is derived according to the inverse dynamics. The message is used to determine the positional information of all parts of the entire human body model, so that the human body model can realistically simulate the movement of the target human body.

在本申請實施例中,採用獲取在虛擬實境中顯示的人體模型,其中,人體模型用於對真實環境中的目標人體進行模擬;獲取目標人體的追蹤器集合中所有追蹤器的位置訊息,其中,追蹤器集合包括至少一個設置在目標人體的預定身體部位上的追蹤器;根據獲取到的位置訊息控制虛擬實境中的人體模型進行移動,以使人體模型模擬目標人體的動作,透過根據目標人體的預定身體部位上的追蹤器的位置訊息,控制虛擬實境中的人體模型進行移動,達到了控制人體模型模擬目標人體動作的目的,從而實現了根據目標人體的預定身體部位的位置訊息,控制人體模型對目標人體的動作進行模擬的技術效果,進而解决了虛擬實境中無法對人體動作進行真實模擬的技術問題。 In the embodiment of the present application, the human body model displayed in the virtual reality is acquired, wherein the human body model is used to simulate the target human body in the real environment; and the position information of all the trackers in the tracker set of the target human body is acquired, The tracker set includes at least one tracker disposed on a predetermined body part of the target human body; and the human body model in the virtual reality is controlled to be moved according to the acquired position information, so that the human body model simulates the action of the target human body, The position information of the tracker on the predetermined body part of the target human body controls the human body model in the virtual reality to move, and achieves the purpose of controlling the human body model to simulate the target human body motion, thereby realizing the position information of the predetermined body part according to the target human body. The technical effect of simulating the human body model to simulate the movement of the target human body, thereby solving the technical problem that the virtual reality cannot perform real simulation on the human body motion.

可選地,位置訊息包括追蹤器的位置,根據獲取到的位置訊息控制虛擬實境中的人體模型進行移動包括:將獲取到的位置訊息中的任意一個位置訊息所表示的位置作為目標位置;判斷人體模型的目標節點的當前位置與目標位置之間的距離是否大於 第一預設閾值,其中,目標節點與目標位置對應的目標人體的預定身體部位相關聯;如果目標節點的當前位置與目標位置之間的距離大於第一預設閾值,則控制目標節點和目標節點的所有父節點進行移動,其中,目標節點與父節點用於模擬目標人體中一個骨骼鏈的多個骨骼。 Optionally, the location information includes a location of the tracker, and controlling the human body model in the virtual reality to perform the moving according to the acquired location information includes: using the location represented by any one of the acquired location information as the target location; Determining whether a distance between a current location of the target node of the human body model and the target location is greater than a first predetermined threshold, wherein the target node is associated with a predetermined body part of the target human body corresponding to the target location; if the current location and target of the target node The distance between the positions is greater than the first preset threshold, and then all the parent nodes of the control target node and the target node are moved, wherein the target node and the parent node are used to simulate multiple bones of one bone chain in the target human body.

作為本申請實施例的一種可選的實施方式,追蹤器的位置訊息包括追蹤器的位置,將追蹤器位置為作目標位置,將用於對目標人體進行模擬的人體模型的相應部位作為目標節點,則控制人體模型對目標人體進行模擬需要控制目標節點移動到目標位置。在本申請實施例中,設置一個預設閾值,如果目標節點與目標位置的距離大於該預設閾值,則需要控制目標節點移動到目標位置,在控制目標節點移動到目標位置是過程中,還要同時控制目標節點的父節點隨目標節點為的移動而移動,從而達到對目標人體進行真實模擬的目的。如果目標節點與目標位置的距離小於或者等於預設閾值,則認為目標節點近似位於目標位置,無需再移動目標節點。在本申請實施例中,目標節點為處於目標位置的目標人體的預定身體部位所對應的人體模型節點。目標節點的父節點同樣對應的目標人體身體部位,該身體部位為與目標人體的預定身體部位處於同一骨骼鏈上,且為目標人體的預定身體部位的父骨骼。 As an optional implementation manner of the embodiment of the present application, the position information of the tracker includes the position of the tracker, and the position of the tracker is the target position, and the corresponding part of the human body model used for simulating the target human body is used as the target node. Then, controlling the human body model to simulate the target human body requires controlling the target node to move to the target position. In the embodiment of the present application, a preset threshold is set. If the distance between the target node and the target location is greater than the preset threshold, the target node needs to be moved to the target location, and the control target node moves to the target location, and At the same time, the parent node of the target node is controlled to move with the movement of the target node, so as to achieve the purpose of real simulation of the target human body. If the distance between the target node and the target location is less than or equal to the preset threshold, then the target node is considered to be approximately at the target location, and the target node does not need to be moved. In the embodiment of the present application, the target node is a human body model node corresponding to a predetermined body part of the target human body at the target position. The parent node of the target node also corresponds to the target human body part, which is the same bone body as the predetermined body part of the target human body, and is the parent bone of the predetermined body part of the target human body.

第3圖是標準人體骨架的示意圖,如第3圖所示,第3圖中每一個骨骼對應於人體模型中的一個節點,其中,頸骨和脊柱為頭骨的父骨骼,頸骨和脊柱在人體模型中對應的節點為頭骨骼所對應的節點的父節點。同樣地,胳膊和鎖骨為手的父骨骼,上腿骨和腿骨為腳的父骨骼,則胳膊和鎖骨在人體模型中對應的節點為手對應的節點的父節點,上腿骨和腿骨在人體模型中對應的 節點為腳對應的節點的父節點。 Figure 3 is a schematic diagram of the standard human skeleton. As shown in Figure 3, each bone in Figure 3 corresponds to a node in the human body model, in which the neck bone and the spine are the parent bone of the skull, the neck bone and the spine are in the human body model. The corresponding node in the middle is the parent node of the node corresponding to the head bone. Similarly, the arm and the clavicle are the parent bone of the hand, the upper leg bone and the leg bone are the parent bone of the foot, and the corresponding node of the arm and the clavicle in the human body model is the parent node of the node corresponding to the hand, the upper leg bone and the leg bone The corresponding node in the human body model is the parent node of the node corresponding to the foot.

可選地,控制目標節點和目標節點的所有父節點進行移動包括:獲取目標節點的所有父節點與目標位置的位置關係;根據位置關係選擇與目標節點相鄰的父節點作為旋轉節點;保持旋轉節點與旋轉節點的所有子節點的距離不變,旋轉該旋轉節點的所有子節點,以使目標節點移動到旋轉節點與目標位置的連線上;重新選擇與旋轉節點相鄰的父節點作為旋轉節點,直到目標節點的所有父節點全部選擇完畢。 Optionally, controlling the movement of all the parent nodes of the target node and the target node comprises: acquiring a positional relationship between all the parent nodes of the target node and the target location; selecting a parent node adjacent to the target node as the rotation node according to the positional relationship; maintaining rotation The distance between the node and all the child nodes of the rotating node is unchanged, and all the child nodes of the rotating node are rotated to move the target node to the line connecting the rotating node and the target position; the parent node adjacent to the rotating node is reselected as the rotation Node until all parent nodes of the target node are selected.

作為本申請實施例的一種可選的實施方式,在目標節點與目標位置的距離大於預設閾值時,控制目標節點和目標節點的父節點進行移動,以使人體模型對目標人體進行模擬,具體的控制移動方式如第4圖所示,在第4圖中,N1,N2,N3,N4為人體模型中的4個節點,N1,N2,N3,N4對應的目標人體的身體部位處於同一骨骼鏈上,且N1,N2,N3對應的身體部位為N4對應的身體部位的父骨骼,則N1,N2,N3為N4的父節點。在控制人體模型對目標人體進行模擬時,N4為目標節點,N4對應的目標人體的預定身體部位上配置有追蹤器,T為獲取到的追蹤器的位置,即目標位置。在控制目標節點N4和目標節點N4的所有父節點移動之前,首先獲取目標節點N4的所有父節點N1,N2,N3與目標位置T的位置關係,可選的,可以透過將父節點N1,N2,N3與目標位置T進行連線以確定其位置關係。首次移動,首先選擇與目標節點N4相鄰的父節點N3作為旋轉節點,保持旋轉節點N3與其所有子節點(節點N4)的距離不變,即保持N3N4長度不變,旋轉移動節點N4,將N4移動至節點N3和目標位置T的連線上。可選的,在旋轉移動過程中,節點N4所移動的角度為可能移動的最小角度,在上述首次移動過程中,節點N4移動的角度為a1。第二次移動,選擇當前旋 轉節點N3相鄰的父節點(N2)作為新的旋轉節點,保持旋轉節點N2與其所有子節點(節點N3,N4)的距離不變,即保持N2N3、N2N4和N3N4的長度不變,旋轉移動節點N3和節點N4,將N4移動至節點N2和目標位置T的連線上,在上述第二次移動過程中,節點N3和節點N4移動的角度為a2。按上述移動方法,直到目標節點N4的所有父節點全部被選擇完畢。在第4圖中,第三次移動過程選擇目標節點N4的父節點N1作為旋轉節點,並保持節點N1,N2,N3,N4之間的距離不變,旋轉移動節點N2,N3,N4,使節點N4移動到節點N1與目標位置的連線上。至此,完成一次人體模型對目標人體動作的模擬。需要說明的是,如果在完成上述移動之後,目標節點N4與目標位置T之間的距離小於等於預設閾值,則人體模型對目標人體的模擬完畢,如果目標節點N4與目標位置T之前的距離大於預設閾值,則需要再一次控制人體模型按上述移動過程進行移動,直到目標節點N4與目標位置T之間的距離小於等於預設閾值。 As an optional implementation manner of the embodiment of the present application, when the distance between the target node and the target location is greater than a preset threshold, the target node and the parent node of the target node are moved to simulate the human body model to the target human body. The control movement mode is shown in Fig. 4. In Fig. 4, N1, N2, N3, and N4 are the four nodes in the human body model, and the body parts of the target human body corresponding to N1, N2, N3, and N4 are in the same bone. In the chain, and the body parts corresponding to N1, N2, and N3 are the parent bones of the body parts corresponding to N4, N1, N2, and N3 are the parent nodes of N4. When the human body model is controlled to simulate the target human body, N4 is the target node, and the tracker is disposed on the predetermined body part of the target human body corresponding to N4, and T is the position of the acquired tracker, that is, the target position. Before controlling all the parent nodes of the target node N4 and the target node N4 to move, first obtain the positional relationship between all the parent nodes N1, N2, N3 of the target node N4 and the target position T. Alternatively, the parent node N1, N2 may be obtained. N3 is connected to the target position T to determine its positional relationship. For the first move, the parent node N3 adjacent to the target node N4 is first selected as the rotation node, and the distance between the rotation node N3 and all its child nodes (node N4) is kept unchanged, that is, the length of the N3N4 is kept unchanged, and the mobile node N4 is rotated, and the N4 is rotated. Move to the line connecting node N3 and target position T. Optionally, during the rotational movement, the angle moved by the node N4 is the minimum angle that may be moved, and during the first movement, the angle of the movement of the node N4 is a1. For the second movement, the parent node (N2) adjacent to the current rotating node N3 is selected as a new rotating node, and the distance between the rotating node N2 and all its child nodes (nodes N3, N4) is kept unchanged, that is, N2N3, N2N4, and N3N4 are maintained. The length of the node N3 and the node N4 are rotated, and N4 is moved to the line connecting the node N2 and the target position T. During the second movement, the angle at which the node N3 and the node N4 move is a2. According to the above moving method, until all the parent nodes of the target node N4 are selected. In FIG. 4, the third moving process selects the parent node N1 of the target node N4 as a rotating node, and keeps the distance between the nodes N1, N2, N3, N4 unchanged, and rotates the mobile nodes N2, N3, N4, so that Node N4 moves to the line connecting node N1 to the target location. At this point, a simulation of the human body model to the target human body motion is completed. It should be noted that, if the distance between the target node N4 and the target position T is less than or equal to the preset threshold after the above movement is completed, the simulation of the target human body by the human body model is completed, if the distance between the target node N4 and the target position T is If the threshold value is greater than the preset threshold, the human body model needs to be controlled again to move according to the above moving process until the distance between the target node N4 and the target position T is less than or equal to a preset threshold.

可選地,位置訊息包括追蹤器的朝向,根據獲取到的位置訊息控制虛擬實境中的人體模型進行移動包括:將獲取到的位置訊息中的任意一個位置訊息所表示的朝向作為目標朝向;判斷人體模型的目標節點的當前朝向與目標朝向之間的目標角度是否大於第二預設閾值;如果目標角度大於第二預設閾值,則控制目標節點和目標節點的所有父節點按照第一預設角度進行旋轉,其中,目標節點旋轉的角度等於第二預設閾值,目標節點的所有父節點的旋轉角度小於或者等於目標節點的旋轉角度;如果目標角度小於或者等於第二預設閾值,則控制目標節點按照目標角度進行旋轉,並控制目標節點的父節點按照第二預設角度進行旋轉,其中,第二預設角度小於或者等於目標角度。 Optionally, the location information includes the orientation of the tracker, and controlling the human body model in the virtual reality to perform the moving according to the acquired location information includes: using the orientation indicated by any one of the acquired location information as the target orientation; Determining whether the target angle between the current orientation of the target node of the human body model and the target orientation is greater than a second preset threshold; if the target angle is greater than the second preset threshold, controlling all the parent nodes of the target node and the target node according to the first pre-predetermined The angle is rotated, wherein the angle of rotation of the target node is equal to the second preset threshold, and the rotation angle of all the parent nodes of the target node is less than or equal to the rotation angle of the target node; if the target angle is less than or equal to the second preset threshold, The control target node rotates according to the target angle, and controls the parent node of the target node to rotate according to the second preset angle, wherein the second preset angle is less than or equal to the target angle.

作為本申請實施例的一種可選的實施方式,根據獲取到的追蹤器的角度,控制人體模型的身體部位進行轉動,以對目標人體進行模擬。由於目標人體身體部位的轉動角度是有限制的,在控制人體模型模擬目標人體進行轉動時,設置第二閾值,在根據獲取到的追蹤器的角度訊息確定的需要轉動的目標角度大於第二閾值時,控制目標節點與目標節點的父節點按照第一預設角度進行旋轉,可選地,控制目標節點與目標節點的父節點按照第一預設角度進行旋轉時,控制目標節點按照第二閾值進行轉動,同時控制目標節點的父節點按照小於等於第二閾值的角度進行旋轉,如果根據獲取到的追蹤器的角度訊息確定的需要轉動的目標角度小於或者等於第二閾值時,控制目標節點與目標節點的父節點按照第二預設角度進行旋轉,具體地,控制目標節點按照目標角度進行旋轉,控制目標節點的父節點按照小於等於目標角度的旋轉角度進行旋轉。可選地,在目標節點有多個父節點時,目標節點的多個父節點轉動的角度均小於等於目標節點的轉動角度,並且所有節點中,父節點的轉動角度小於等於其子節點的轉動角度。 As an optional implementation manner of the embodiment of the present application, the body part of the human body model is controlled to rotate according to the obtained angle of the tracker to simulate the target human body. Since the rotation angle of the body part of the target body is limited, when the control human body model simulates the rotation of the target human body, the second threshold is set, and the target angle required to be rotated according to the angle information of the acquired tracker is greater than the second threshold. The control target node and the target node's parent node rotate according to the first preset angle. Optionally, when the control target node and the target node's parent node rotate according to the first preset angle, the control target node follows the second threshold. Rotating, while controlling the parent node of the target node to rotate according to an angle less than or equal to the second threshold. If the target angle required to be rotated according to the acquired angle information of the tracker is less than or equal to the second threshold, the target node is controlled The parent node of the target node rotates according to the second preset angle. Specifically, the control target node rotates according to the target angle, and the parent node of the control target node rotates according to a rotation angle smaller than or equal to the target angle. Optionally, when the target node has multiple parent nodes, the angles of rotation of the multiple parent nodes of the target node are less than or equal to the rotation angle of the target node, and in all the nodes, the rotation angle of the parent node is less than or equal to the rotation of the child node. angle.

例如:目標節點為頭部節點,第二預設閾值為90度,則在人體模型對目標人體進行模擬時,當根據追蹤器的角度訊息確定的需要轉動的目標角度大於90度時,控制人體模型按照90度轉動頭部,可選地,可以控制頸部按同一方向轉動70度,控制脊柱按同一方向轉動50度。如果根據追蹤器的角度訊息確定的需要轉動的目標角度為60度時,控制人體模型按照60度轉動頭部,可選地,可以控制頸部按同一方向轉動30度,控制脊柱按同一方向轉動15度。 For example, if the target node is a head node and the second preset threshold is 90 degrees, when the human body model simulates the target human body, when the target angle required to be rotated according to the angle information of the tracker is greater than 90 degrees, the human body is controlled. The model rotates the head at 90 degrees. Optionally, the neck can be controlled to rotate 70 degrees in the same direction to control the spine to rotate 50 degrees in the same direction. If the target angle to be rotated is 60 degrees according to the angle information of the tracker, the human body model is controlled to rotate the head according to 60 degrees. Alternatively, the neck can be controlled to rotate 30 degrees in the same direction to control the spine to rotate in the same direction. 15 degrees.

可選地,追蹤器集合至少包括頭部追蹤器,獲取目標人 體的追蹤器集合中所有追蹤器的位置訊息包括:獲取頭部追蹤器的頭部位置訊息;根據獲取到的位置訊息控制虛擬實境中的人體模型進行移動包括:根據頭部位置訊息控制人體模型進行以下至少一個動作:頭部轉動、身體彎曲和身體移動。 Optionally, the tracker set includes at least a head tracker, and acquiring location information of all the trackers in the tracker set of the target human body includes: acquiring a head position information of the head tracker; and controlling the virtual reality according to the acquired position information. The movement of the human body model in the environment includes: controlling the human body model according to the head position information to perform at least one of the following actions: head rotation, body bending, and body movement.

在本申請實施例中,追蹤器集合中至少包括頭部追蹤器,根據頭部追蹤器的位置訊息,控制人體模型對目標人體的動作進行模擬,其中,人體模型可以對目標人體的頭部轉動、身體彎曲和身體移動進行模擬。 In the embodiment of the present application, the tracker set includes at least a head tracker, and according to the position information of the head tracker, the human body model is controlled to simulate the motion of the target human body, wherein the human body model can rotate the head of the target human body. Simulation of body bending and body movement.

可選地,在根據獲取到的位置訊息控制虛擬實境中的人體模型進行移動之前,方法包括:將人體模型的左手節點和右手節點合併為手部節點;和/或將人體模型的左腿節點和右腿節點合併為腿部節點,其中,合併得到的手部節點和腿部節點為人體模型頭部節點的父節點。 Optionally, before controlling the movement of the human body model in the virtual reality according to the acquired location information, the method comprises: combining the left-hand node and the right-hand node of the human body model into a hand node; and/or the left leg of the human body model The node and the right leg node are merged into a leg node, wherein the merged hand node and the leg node are the parent nodes of the human body model head node.

作為本申請實施例的一種可選的實施方式,獲取頭部追蹤器的位置訊息,並根據該位置訊息控制人體模型對目標人體的動作進行模擬之前,可以將人體模型的節點進行簡化,並以頭部節點作為目標節點,控制頭部節點和頭部節點的父節點進行移動,以使人體模型對目標人體的動作進行模擬。具體地,可以將左手節點和右手節點合併為手部節點,將左腿節點和右腿節點合併為腿部節點,將合併得到的手部節點和/或腿部節點作為頭部節點的父節點,在頭部節點移動時,控制手部節點和/或腿部節點進行相應的移動。 As an optional implementation manner of the embodiment of the present application, after acquiring the location information of the head tracker and controlling the motion of the human body model to simulate the motion of the target human body according to the location information, the node of the human body model may be simplified and The head node acts as a target node, and controls the head node and the parent node of the head node to move, so that the human body model simulates the action of the target human body. Specifically, the left-hand node and the right-hand node may be merged into a hand node, the left leg node and the right leg node are merged into a leg node, and the merged hand node and/or leg node are used as a parent node of the head node. When the head node moves, the hand node and/or the leg node are controlled to move accordingly.

以追蹤器集合包括頭部追蹤器和手部追蹤器為例,控制人體模型模擬目標人體時,透過頭部節點模擬目標人體的頭部及身體動作,透過手部節點模擬目標人體的雙手和雙臂動作,第3圖所示的人體骨架可以拆分為第5圖和第6圖所示的兩個部分,其 中,第5圖示出了頭部、身體、雙腿的骨架部分,第6圖示出了雙手和雙臂的骨架部分,如第7圖所示,可以對第6圖所示的骨架部分進行簡化。將左腿骨與右腿骨進行合併,以左腿骨和右腿骨的中點作為合併後的腿骨所在的位置,將左腳與右腳進行合併,以左腳和右腳的中點作為合併後的腳所在的位置,合併得到的腿骨與腳作為頭部的父節點。 Taking the tracker set including the head tracker and the hand tracker as an example, when the human body model is controlled to simulate the target human body, the head and body movements of the target human body are simulated through the head node, and the hands of the target human body are simulated through the hand node. With the arms moving, the human skeleton shown in Fig. 3 can be divided into two parts shown in Fig. 5 and Fig. 6, wherein Fig. 5 shows the skeleton part of the head, the body, and the legs, Figure 6 shows the skeleton portion of both hands and arms. As shown in Fig. 7, the skeleton portion shown in Fig. 6 can be simplified. Combine the left leg bone with the right leg bone, and use the midpoint of the left leg bone and the right leg bone as the position of the combined leg bone, and merge the left foot and the right foot to the midpoint of the left and right feet. As the position of the merged foot, the leg bones and feet are merged as the parent of the head.

可選地,追蹤器集合至少包括頭部追蹤器和手部追蹤器,獲取目標人體的追蹤器集合中所有追蹤器的位置訊息包括:獲取頭部追蹤器的頭部位置訊息和手部追蹤器的手部位置訊息;根據獲取到的位置訊息控制虛擬實境中的人體模型進行移動包括:根據頭部位置訊息和手部位置訊息控制人體模型進行以下至少一個動作:頭部轉動、身體彎曲、身體移動、手臂移動、手臂彎曲和手臂旋轉。 Optionally, the tracker set includes at least a head tracker and a hand tracker, and acquiring location information of all trackers in the target human body tracker set includes: acquiring a head tracker head position message and a hand tracker Hand position information; controlling the human body model in the virtual reality according to the acquired position information to move: controlling the human body model according to the head position information and the hand position information to perform at least one of the following actions: head rotation, body bending, Body movement, arm movement, arm bending and arm rotation.

作為本申請實施例的一種可選的實施方式,追蹤器集合包括頭部追蹤器和手部追蹤器時,透過頭部追蹤器獲取目標人體的頭部位置訊息,透過手部追蹤器獲取目標人體的手部位置訊息,根據頭部位置訊息對目標人體的頭部及身體動作進行模擬,根據手部位置訊息對目標人體的手部及手臂動作進行模擬。 As an optional implementation manner of the embodiment of the present application, when the tracker set includes a head tracker and a hand tracker, the head position information of the target human body is obtained through the head tracker, and the target human body is acquired through the hand tracker. The hand position information simulates the head and body movements of the target human body according to the head position information, and simulates the hand and arm movements of the target human body according to the hand position information.

可選地,追蹤器集合至少包括頭部追蹤器、手部追蹤器和腳部追蹤器,獲取目標人體的追蹤器集合中所有追蹤器的位置訊息包括:獲取頭部追蹤器的頭部位置訊息、手部追蹤器的手部位置訊息和腳部追蹤器的腳部位置訊息;根據獲取到的位置訊息控制虛擬實境中的人體模型進行移動包括:根據頭部位置訊息、手部位置訊息和腳部位置訊息控制人體模型進行以下至少一個動作:頭部轉動、身體彎曲、身體移動、手臂移動、手臂彎曲、手臂旋轉、腿部移動、腿部彎曲和腿部旋轉。 Optionally, the tracker set includes at least a head tracker, a hand tracker and a foot tracker, and acquiring location information of all trackers in the target human body tracker set includes: acquiring a head tracker head position message The hand position information of the hand tracker and the foot position information of the foot tracker; controlling the movement of the human body model in the virtual reality according to the acquired position information includes: according to the head position information, the hand position information, and The foot position message controls the mannequin to perform at least one of the following actions: head rotation, body bending, body movement, arm movement, arm bending, arm rotation, leg movement, leg bending, and leg rotation.

作為本申請實施例的一種可選的實施方式,追蹤器集合包括頭部追蹤器、手部追蹤器和腳部追蹤器時,透過頭部追蹤器獲取目標人體的頭部位置訊息,透過手部追蹤器獲取目標人體的手部位置訊息,透過腳部追蹤器獲取目標人體的腳部位置訊息,根據頭部位置訊息對目標人體的頭部及身體動作進行模擬,根據手部位置訊息對目標人體的手部及手臂動作進行模擬,根據腳部位置訊息對目標人體的雙腳及雙腿動作進行模擬。 As an optional implementation manner of the embodiment of the present application, when the tracker set includes a head tracker, a hand tracker, and a foot tracker, the head tracker obtains the head position information of the target human body through the hand. The tracker obtains the hand position information of the target human body, obtains the foot position information of the target human body through the foot tracker, simulates the head and body movements of the target human body according to the head position information, and targets the target human body according to the hand position information. The hand and arm movements are simulated, and the target's feet and legs are simulated according to the foot position information.

可選地,在獲取在虛擬實境中顯示的人體模型之前,方法還包括:建立具有預設身體比例的人體模型;根據追蹤器的位置訊息獲取目標人體的實際身體比例;根據實際身體比例縮放人體模型,以使人體模型的身體比例與目標人體的身體比例一致。 Optionally, before acquiring the human body model displayed in the virtual reality, the method further includes: establishing a human body model having a preset body proportion; acquiring an actual body proportion of the target human body according to the position information of the tracker; and scaling according to the actual body proportion The human body model is such that the body proportion of the human body model is consistent with the body proportion of the target human body.

作為本申請實施例的一種可選的實施方式,為了提高人體模型與目標人體的相似度,建立一個與目標人體的實際身體比例一致的人體模型。具體地,先建立一個具有標準身體比例的人體模型,然後根據配置在目標人體上的追蹤器的位置訊息,獲取目標人體的實際身體比例關係,如:根據目標人體頭部追蹤器的位置訊息可以得知目標人體的身高,再根據目標人體的手部的位置訊息,得知目標人體的手臂長度。最後,按照目標人體的實際身體比例關係,對上述具有標準身體比例的人體模型進行縮放,以使人體模型的身體比例關係與目標人體的實際身體比例一致。 As an optional implementation manner of the embodiment of the present application, in order to improve the similarity between the human body model and the target human body, a human body model conforming to the actual body proportion of the target human body is established. Specifically, a human body model having a standard body ratio is first established, and then the actual body proportional relationship of the target human body is obtained according to the position information of the tracker configured on the target human body, for example, according to the position information of the target human body head tracker. Knowing the height of the target human body, and then knowing the arm length of the target human body based on the position information of the target human body. Finally, according to the actual body proportion relationship of the target human body, the above-mentioned human body model with a standard body proportion is scaled so that the body proportional relationship of the human body model is consistent with the actual body proportion of the target human body.

需要說明的是,對於前述的各方法實施例,為了簡單描述,故將其都表述為一系列的動作組合,但是所屬技術領域具有通常知識者應該知悉,本申請並不受所描述的動作順序的限制,因為依據本申請,某些步驟可以採用其他順序或者同時進行。其次,所屬技術領域具有通常知識者也應該知悉,說明書中所描述的實施例均屬優選實施例,所涉及的動作和模組並不一定是本申 請所必須的。 It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not subject to the described action sequence. Limitations, as some steps may be performed in other orders or concurrently in accordance with the present application. In the following, those skilled in the art should also be aware that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

透過以上的實施方式的描述,所屬技術領域具有通常知識者可以清楚地瞭解到根據上述實施例的方法可藉助軟體加必需的通用硬體平台的方式來實現,當然也可以透過硬體,但很多情况下前者是更佳的實施方式。基於這樣的理解,本申請的技術方案本質上或者說對相關技術做出貢獻的部分可以以軟體產品的形式體現出來,該計算機軟體產品儲存在一個儲存介質(如ROM/RAM、磁碟、光碟)中,包括複數指令用以使得一台終端設備(可以是手機,計算機,伺服器,或者網路設備等)執行本申請各個實施例所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of a software plus a necessary general hardware platform, and of course, can also be through hardware, but many In the case of the former is a better implementation. Based on such understanding, the technical solution of the present application, which is essential or contributes to the related art, can be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM). The plural instructions are included to cause a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present application.

根據本申請實施例,還提供了一種用於實施上述虛擬實境中人體的模擬方法的虛擬實境中人體的模擬裝置,該虛擬實境中人體的模擬裝置主要用於執行本申請實施例上述內容所提供的虛擬實境中人體的模擬方法,以下對本申請實施例所提供的虛擬實境中人體的模擬裝置做具體介紹:第8圖是根據本申請實施例的一種可選的虛擬實境中人體的模擬裝置的示意圖,如第8圖所示,該虛擬實境中人體的模擬裝置主要包括:第一獲取單元810,用於獲取在虛擬實境中顯示的人體模型,其中,人體模型用於對真實環境中的目標人體進行模擬。 According to an embodiment of the present application, there is also provided a simulation device for a human body in a virtual reality for implementing a simulation method of a human body in the virtual reality, wherein the simulation device of the human body in the virtual reality is mainly used to execute the foregoing embodiment of the present application. The simulation method of the human body in the virtual reality provided by the content is as follows: FIG. 8 is an optional virtual reality according to an embodiment of the present application. A schematic diagram of a simulation device of a human body, as shown in FIG. 8, the simulation device of the human body in the virtual reality mainly includes: a first acquisition unit 810, configured to acquire a human body model displayed in a virtual reality, wherein the human body model Used to simulate a target human body in a real environment.

虛擬實境技術是一種可以創建虛擬世界的計算機仿真系統,它利用計算機生成一種多源訊息融合的、互動式的三維動態視景的模擬環境,透過在該環境中對用戶的實體行為進行仿真使用戶沉浸到該環境中。在虛擬實境中顯示的人體模型用於對用戶的實體行為進行模擬,透過控制人體模型對用戶進行的模擬,並使人體模型模擬出的動作更加接近用戶的實體行為,從而使用 戶在虛擬實境中的互動更加真實,提高用戶體驗。 Virtual reality technology is a computer simulation system that can create a virtual world. It uses a computer to generate a multi-source information fusion and interactive 3D dynamic vision simulation environment, through the simulation of the user's physical behavior in the environment. The household is immersed in the environment. The human body model displayed in the virtual reality is used to simulate the user's entity behavior, simulate the user model by controlling the human body model, and make the human body model simulate the action closer to the user's entity behavior, thereby making the user virtual reality. The interaction in the environment is more realistic and enhances the user experience.

第二獲取單元820,用於獲取目標人體的追蹤器集合中所有追蹤器的位置訊息,其中,追蹤器集合包括至少一個設置在目標人體的預定身體部分上的追蹤器。 The second obtaining unit 820 is configured to acquire location information of all trackers in the tracker set of the target human body, wherein the tracker set includes at least one tracker disposed on a predetermined body part of the target human body.

在本申請實施例中,追蹤器配置在目標人體的預定身體部位上,在目標人體的預定身體部位做出動作時,追蹤器的位置也相應的發生變化,因此,追蹤器的位置訊息即目標人體的預定身體部位的位置訊息。如第1圖所示,當目標人體轉頭時,目標人體所佩帶的頭盔(相當於頭部追蹤器)的朝向也發生變化,而根據頭盔的朝向,即可獲取目標人體的頭部朝向;當目標人體抬高手臂時,目標人體所持的手柄(相當於手部追蹤器)的位置也會發生變化,而根據目標人體所持的手柄的位置,即可獲取目標人體的手部及手臂的位置。 In the embodiment of the present application, the tracker is disposed on a predetermined body part of the target human body, and when the predetermined body part of the target human body acts, the position of the tracker also changes accordingly, and therefore, the position information of the tracker is the target. The position information of the body's predetermined body part. As shown in Fig. 1, when the target human body turns the head, the orientation of the helmet worn by the target human body (equivalent to the head tracker) also changes, and according to the orientation of the helmet, the head orientation of the target human body can be obtained; When the target human body raises the arm, the position of the handle held by the target human body (equivalent to the hand tracker) also changes, and according to the position of the handle held by the target human body, the position of the hand and the arm of the target human body can be obtained. .

控制單元830,用於根據獲取到的位置訊息控制虛擬實境中的人體模型進行移動,以使人體模型模擬目標人體的動作。 The control unit 830 is configured to control the human body model in the virtual reality to move according to the acquired position information, so that the human body model simulates the action of the target human body.

根據逆向動力學的原理,可以透過先確定子骨骼的位置,然後反求推導出其所在的骨骼鏈上n級父骨骼的位置,從而確定整條骨骼鏈的位置。在本申請實施例中,在控制人體模型對目標人體進行模擬時,根據獲取到的追蹤器的位置訊息,確定人體模型各部位的位置訊息,進而根據逆向動力學反求推導出其他部位的位置訊息,從而確定出整個人體模型的所有部位的位置訊息,以使人體模型對目標人體的動作進行真實的模擬。 According to the principle of inverse dynamics, the position of the n-level parent bone on the bone chain in which it is located can be determined by first determining the position of the child bone, and then determining the position of the entire bone chain. In the embodiment of the present application, when the human body model is controlled to simulate the target human body, the position information of each part of the human body model is determined according to the acquired position information of the tracker, and then the position of other parts is derived according to the inverse dynamics. The message is used to determine the positional information of all parts of the entire human body model, so that the human body model can realistically simulate the movement of the target human body.

在本申請實施例中,採用獲取在虛擬實境中顯示的人體模型,其中,人體模型用於對真實環境中的目標人體進行模擬;獲取目標人體的追蹤器集合中所有追蹤器的位置訊息,其中,追蹤器集合包括至少一個設置在目標人體的預定身體部位上的追蹤 器;根據獲取到的位置訊息控制虛擬實境中的人體模型進行移動,以使人體模型模擬目標人體的動作,透過根據目標人體的預定身體部位上的追蹤器的位置訊息,控制虛擬實境中的人體模型進行移動,達到了控制人體模型模擬目標人體動作的目的,從而實現了根據目標人體的預定身體部位的位置訊息,控制人體模型對目標人體的動作進行模擬的技術效果,進而解决了虛擬實境中無法對人體動作進行真實模擬的技術問題。 In the embodiment of the present application, the human body model displayed in the virtual reality is acquired, wherein the human body model is used to simulate the target human body in the real environment; and the position information of all the trackers in the tracker set of the target human body is acquired, The tracker set includes at least one tracker disposed on a predetermined body part of the target human body; and the human body model in the virtual reality is controlled to be moved according to the acquired position information, so that the human body model simulates the action of the target human body, The position information of the tracker on the predetermined body part of the target human body controls the human body model in the virtual reality to move, and achieves the purpose of controlling the human body model to simulate the target human body motion, thereby realizing the position information of the predetermined body part according to the target human body. The technical effect of simulating the human body model to simulate the movement of the target human body, thereby solving the technical problem that the virtual reality cannot perform real simulation on the human body motion.

可選地,位置訊息包括追蹤器的位置,控制單元包括:位置模組,用於將獲取到的位置訊息中的任意一個位置訊息所表示的位置作為目標位置;第一判斷模組,用於判斷人體模型的目標節點的當前位置與目標位置之間的距離是否大於第一預設閾值,其中,目標節點與目標位置對應的目標人體的預定身體部位相關聯;第一控制模組,用於在如果目標節點的當前位置與目標位置之間的距離大於第一預設閾值時,控制目標節點和目標節點的所有父節點進行移動,其中,目標節點與父節點用於模擬目標人體中一個骨骼鏈的多個骨骼。 Optionally, the location information includes a location of the tracker, and the control unit includes: a location module, configured to use, as the target location, a location indicated by any one of the acquired location information; the first determining module is configured to: Determining whether a distance between a current location of the target node of the human body model and the target location is greater than a first predetermined threshold, wherein the target node is associated with a predetermined body part of the target human body corresponding to the target location; the first control module is configured to: Controlling the target node and all the parent nodes of the target node to move if the distance between the current position of the target node and the target position is greater than the first preset threshold, wherein the target node and the parent node are used to simulate a bone in the target human body Multiple bones of the chain.

作為本申請實施例的一種可選的實施方式,追蹤器的位置訊息包括追蹤器的位置,將追蹤器位置為作目標位置,將用於對目標人體進行模擬的人體模型的相應部位作為目標節點,則控制人體模型對目標人體進行模擬需要控制目標節點移動到目標位置。在本申請實施例中,設置一個預設閾值,如果目標節點與目標位置的距離大於該預設閾值,則需要控制目標節點移動到目標位置,在控制目標節點移動到目標位置是過程中,還要同時控制目標節點的父節點隨目標節點的移動而移動,從而達到對目標人體進行真實模擬的目的。如果目標節點與目標位置的距離小於或者等於預設閾值,則認為目標節點近似位於目標位置,無需再移 動目標節點。在本申請實施例中,目標節點為處於目標位置的目標人體的預定身體部位所對應的人體模型節點。目標節點的父節點同樣對應的目標人體身體部位,該身體部位為與目標人體的預定身體部位處於同一骨骼鏈上,且為目標人體的預定身體部位的父骨骼。 As an optional implementation manner of the embodiment of the present application, the position information of the tracker includes the position of the tracker, and the position of the tracker is the target position, and the corresponding part of the human body model used for simulating the target human body is used as the target node. Then, controlling the human body model to simulate the target human body requires controlling the target node to move to the target position. In the embodiment of the present application, a preset threshold is set. If the distance between the target node and the target location is greater than the preset threshold, the target node needs to be moved to the target location, and the control target node moves to the target location, and It is necessary to control the parent node of the target node to move with the movement of the target node, so as to achieve the purpose of real simulation of the target human body. If the distance between the target node and the target location is less than or equal to the preset threshold, then the target node is considered to be approximately at the target location, and the target node need not be moved. In the embodiment of the present application, the target node is a human body model node corresponding to a predetermined body part of the target human body at the target position. The parent node of the target node also corresponds to the target human body part, which is the same bone body as the predetermined body part of the target human body, and is the parent bone of the predetermined body part of the target human body.

第3圖是標準人體骨架的示意圖,如第3圖所示,第3圖中每一個骨骼對應於人體模型中的一個節點,其中,頸骨和脊柱為頭骨的父骨骼,頸骨和脊柱在人體模型中對應的節點為頭骨骼所對應的節點的父節點。同樣地,胳膊和鎖骨為手的父骨骼,上腿骨和腿骨為腳的父骨骼,則胳膊和鎖骨在人體模型中對應的節點為手對應的節點的父節點,上腿骨和腿骨在人體模型中對應的節點為腳對應的節點的父節點。 Figure 3 is a schematic diagram of the standard human skeleton. As shown in Figure 3, each bone in Figure 3 corresponds to a node in the human body model, in which the neck bone and the spine are the parent bone of the skull, the neck bone and the spine are in the human body model. The corresponding node in the middle is the parent node of the node corresponding to the head bone. Similarly, the arm and the clavicle are the parent bone of the hand, the upper leg bone and the leg bone are the parent bone of the foot, and the corresponding node of the arm and the clavicle in the human body model is the parent node of the node corresponding to the hand, the upper leg bone and the leg bone The corresponding node in the human body model is the parent node of the node corresponding to the foot.

可選地,第一控制模組包括:獲取子模組,用於獲取目標節點的所有父節點與目標位置的位置關係;旋轉節點子模組,用於根據位置關係選擇與目標節點相鄰的父節點作為旋轉節點;旋轉子模組,用於保持旋轉節點與旋轉節點的所有子節點的距離不變,旋轉該旋轉節點的所有子節點,以使目標節點移動到旋轉節點與目標位置的連線上;重複子模組,用於重新選擇與旋轉節點相鄰的父節點作為旋轉節點,直到目標節點的所有父節點全部選擇完畢。 Optionally, the first control module includes: an acquiring submodule, configured to acquire a positional relationship between all the parent nodes of the target node and the target location; and a rotating node submodule, configured to select the adjacent to the target node according to the positional relationship The parent node acts as a rotation node; the rotation sub-module is used to keep the distance between the rotation node and all the child nodes of the rotation node unchanged, and rotate all the child nodes of the rotation node to move the target node to the connection between the rotation node and the target position. On-line; a repeating sub-module for reselecting a parent node adjacent to a rotating node as a rotating node until all parent nodes of the target node are selected.

作為本申請實施例的一種可選的實施方式,在目標節點與目標位置的距離大於預設閾值時,控制目標節點和目標節點的父節點進行移動,以使人體模型對目標人體進行模擬,具體的控制移動方式如第4圖所示,在第4圖中,N1,N2,N3,N4為人體模型中的4個節點,N1,N2,N3,N4對應的目標人體的身體部位處於同一骨骼鏈上,且N1,N2,N3對應的身體部位為N4對應的身體 部位的父骨骼,則N1,N2,N3為N4的父節點。在控制人體模型對目標人體進行模擬時,N4為目標節點,N4對應的目標人體的預定身體部位上配置有追蹤器,T為獲取到的追蹤器的位置,即目標位置。在控制目標節點N4和目標節點N4的所有父節點移動之前,首先獲取目標節點N4的所有父節點N1,N2,N3與目標位置T的位置關係,可選的,可以透過將父節點N1,N2,N3與目標位置T進行連線以確定其位置關係。首次移動,首先選擇與目標節點N4相鄰的父節點N3作為旋轉節點,保持旋轉節點N3與其所有子節點(節點N4)的距離不變,即保持N3N4長度不變,旋轉移動節點N4,將N4移動至節點N3和目標位置T的連線上。可選的,在旋轉移動過程中,節點N4所移動的角度為可能移動的最小角度,在上述首次移動過程中,節點N4移動的角度為a1。第二次移動,選擇當前旋轉節點N3相鄰的父節點(N2)作為新的旋轉節點,保持旋轉節點N2與其所有子節點(節點N3,N4)的距離不變,即保持N2N3、N2N4和N3N4的長度不變,旋轉移動節點N3和節點N4,將N4移動至節點N2和目標位置T的連線上,在上述第二次移動過程中,節點N3和節點N4移動的角度為a2。按上述移動方法,直到目標節點N4的所有父節點全部被選擇完畢。在第4圖中,第三次移動過程選擇目標節點N4的父節點N1作為旋轉節點,並保持節點N1,N2,N3,N4之間的距離不變,旋轉移動節點N2,N3,N4,使節點N4移動到節點N1與目標位置的連線上。至此,完成一次人體模型對目標人體動作的模擬。需要說明的是,如果在完成上述移動之後,目標節點N4與目標位置T之間的距離小於等於預設閾值,則人體模型對目標人體的模擬完畢,如果目標節點N4與目標位置T之前的距離大於預設閾值,則需要再一次控制人體模型按上述移動過程進行移動,直到目標節點N4與目標位置T之間的距離小於等於預設閾 值。 As an optional implementation manner of the embodiment of the present application, when the distance between the target node and the target location is greater than a preset threshold, the target node and the parent node of the target node are moved to simulate the human body model to the target human body. The control movement mode is shown in Fig. 4. In Fig. 4, N1, N2, N3, and N4 are the four nodes in the human body model, and the body parts of the target human body corresponding to N1, N2, N3, and N4 are in the same bone. In the chain, and the body parts corresponding to N1, N2, and N3 are the parent bones of the body parts corresponding to N4, N1, N2, and N3 are the parent nodes of N4. When the human body model is controlled to simulate the target human body, N4 is the target node, and the tracker is disposed on the predetermined body part of the target human body corresponding to N4, and T is the position of the acquired tracker, that is, the target position. Before controlling all the parent nodes of the target node N4 and the target node N4 to move, first obtain the positional relationship between all the parent nodes N1, N2, N3 of the target node N4 and the target position T. Alternatively, the parent node N1, N2 may be obtained. N3 is connected to the target position T to determine its positional relationship. For the first move, the parent node N3 adjacent to the target node N4 is first selected as the rotation node, and the distance between the rotation node N3 and all its child nodes (node N4) is kept unchanged, that is, the length of the N3N4 is kept unchanged, and the mobile node N4 is rotated, and the N4 is rotated. Move to the line connecting node N3 and target position T. Optionally, during the rotational movement, the angle moved by the node N4 is the minimum angle that may be moved, and during the first movement, the angle of the movement of the node N4 is a1. For the second movement, the parent node (N2) adjacent to the current rotating node N3 is selected as a new rotating node, and the distance between the rotating node N2 and all its child nodes (nodes N3, N4) is kept unchanged, that is, N2N3, N2N4, and N3N4 are maintained. The length of the node N3 and the node N4 are rotated, and N4 is moved to the line connecting the node N2 and the target position T. During the second movement, the angle at which the node N3 and the node N4 move is a2. According to the above moving method, until all the parent nodes of the target node N4 are selected. In FIG. 4, the third moving process selects the parent node N1 of the target node N4 as a rotating node, and keeps the distance between the nodes N1, N2, N3, N4 unchanged, and rotates the mobile nodes N2, N3, N4, so that Node N4 moves to the line connecting node N1 to the target location. At this point, a simulation of the human body model to the target human body motion is completed. It should be noted that, if the distance between the target node N4 and the target position T is less than or equal to the preset threshold after the above movement is completed, the simulation of the target human body by the human body model is completed, if the distance between the target node N4 and the target position T is If the threshold value is greater than the preset threshold, the human body model needs to be controlled again to move according to the above moving process until the distance between the target node N4 and the target position T is less than or equal to a preset threshold.

可選地,位置訊息包括追蹤器的朝向,控制單元包括:朝向模組,用於將獲取到的位置訊息中的任意一個位置訊息所表示的朝向作為目標朝向;第二判斷模組,用於判斷人體模型的目標節點的當前朝向與目標朝向之間的目標角度是否大於第二預設閾值;第二控制模組,用於在目標角度大於第二預設閾值時,控制目標節點和目標節點的所有父節點按照第一預設角度進行旋轉,其中,目標節點旋轉的角度等於第二預設閾值,目標節點的所有父節點的旋轉角度小於或者等於目標節點的旋轉角度;第三控制模組,用於在目標角度小於或者等於第二預設閾值時,控制目標節點按照目標角度進行旋轉,並控制目標節點的父節點按照第二預設角度進行旋轉,其中,第二預設角度小於或者等於目標角度。 Optionally, the location information includes an orientation of the tracker, and the control unit includes: a direction module, configured to use a direction indicated by any one of the acquired location information as a target orientation; and a second determining module, configured to: Determining whether the target angle between the current orientation of the target node of the human body model and the target orientation is greater than a second preset threshold; and the second control module, configured to control the target node and the target node when the target angle is greater than the second preset threshold All the parent nodes rotate according to the first preset angle, wherein the angle of rotation of the target node is equal to the second preset threshold, and the rotation angle of all the parent nodes of the target node is less than or equal to the rotation angle of the target node; the third control module And, when the target angle is less than or equal to the second preset threshold, the control target node rotates according to the target angle, and controls the parent node of the target node to rotate according to the second preset angle, wherein the second preset angle is less than or Equal to the target angle.

作為本申請實施例的一種可選的實施方式,根據獲取到的追蹤器的角度,控制人體模型的身體部位進行轉動,以對目標人體進行模擬。由於目標人體身體部位的轉動角度是有限制的,在控制人體模型模擬目標人體進行轉動時,設置第二閾值,在根據獲取到的追蹤器的角度訊息確定的需要轉動的目標角度大於第二閾值時,控制目標節點與目標節點的父節點按照第一預設角度進行旋轉,可選地,控制目標節點與目標節點的父節點按照第一預設角度進行旋轉時,控制目標節點按照第二閾值進行轉動,同時控制目標節點的父節點按照小於等於第二閾值的角度進行旋轉,如果根據獲取到的追蹤器的角度訊息確定的需要轉動的目標角度小於或者等於第二閾值時,控制目標節點與目標節點的父節點按照第二預設角度進行旋轉,具體地,控制目標節點按照目標角度進行旋轉,控制目標節點的父節點按照小於等於目標角度的 旋轉角度進行旋轉。可選地,在目標節點有多個父節點時,目標節點的多個父節點轉動的角度均小於等於目標節點的轉動角度,並且所有節點中,父節點的轉動角度小於等於其子節點的轉動角度。 As an optional implementation manner of the embodiment of the present application, the body part of the human body model is controlled to rotate according to the obtained angle of the tracker to simulate the target human body. Since the rotation angle of the body part of the target body is limited, when the control human body model simulates the rotation of the target human body, the second threshold is set, and the target angle required to be rotated according to the angle information of the acquired tracker is greater than the second threshold. The control target node and the target node's parent node rotate according to the first preset angle. Optionally, when the control target node and the target node's parent node rotate according to the first preset angle, the control target node follows the second threshold. Rotating, while controlling the parent node of the target node to rotate according to an angle less than or equal to the second threshold. If the target angle required to be rotated according to the acquired angle information of the tracker is less than or equal to the second threshold, the target node is controlled The parent node of the target node rotates according to the second preset angle. Specifically, the control target node rotates according to the target angle, and the parent node of the control target node rotates according to a rotation angle smaller than or equal to the target angle. Optionally, when the target node has multiple parent nodes, the angles of rotation of the multiple parent nodes of the target node are less than or equal to the rotation angle of the target node, and in all the nodes, the rotation angle of the parent node is less than or equal to the rotation of the child node. angle.

例如:目標節點為頭部節點,第二預設閾值為90度,則在人體模型對目標人體進行模擬時,當根據追蹤器的角度訊息確定的需要轉動的目標角度大於90度時,控制人體模型按照90度轉動頭部,可選地,可以控制頸部按同一方向轉動70度,控制脊柱按同一方向轉動50度。如果根據追蹤器的角度訊息確定的需要轉動的目標角度為60度時,控制人體模型按照60度轉動頭部,可選地,可以控制頸部按同一方向轉動30度,控制脊柱按同一方向轉動15度。 For example, if the target node is a head node and the second preset threshold is 90 degrees, when the human body model simulates the target human body, when the target angle required to be rotated according to the angle information of the tracker is greater than 90 degrees, the human body is controlled. The model rotates the head at 90 degrees. Optionally, the neck can be controlled to rotate 70 degrees in the same direction to control the spine to rotate 50 degrees in the same direction. If the target angle to be rotated is 60 degrees according to the angle information of the tracker, the human body model is controlled to rotate the head according to 60 degrees. Alternatively, the neck can be controlled to rotate 30 degrees in the same direction to control the spine to rotate in the same direction. 15 degrees.

可選地,追蹤器集合至少包括頭部追蹤器,第二獲取單元包括:第一獲取模組,用於獲取頭部追蹤器的頭部位置訊息;控制單元包括:第四控制模組,用於根據頭部位置訊息控制人體模型進行以下至少一個動作:頭部轉動、身體彎曲和身體移動。 Optionally, the tracker set includes at least a head tracker, and the second obtaining unit includes: a first acquiring module, configured to acquire a head position information of the head tracker; and the control unit includes: a fourth control module, At least one of the following actions is performed by controlling the human body model according to the head position information: head rotation, body bending, and body movement.

在本申請實施例中,追蹤器集合中至少包括頭部追蹤器,根據頭部追蹤器的位置訊息,控制人體模型對目標人體的動作進行模擬,其中,人體模型可以對目標人體的頭部轉動、身體彎曲和身體移動進行模擬。 In the embodiment of the present application, the tracker set includes at least a head tracker, and according to the position information of the head tracker, the human body model is controlled to simulate the motion of the target human body, wherein the human body model can rotate the head of the target human body. Simulation of body bending and body movement.

可選地,裝置包括:第一合併單元,用於在根據獲取到的位置訊息控制虛擬實境中的人體模型進行移動之前,將人體模型的左手節點和右手節點合併為手部節點;和/或第二合併單元,用於在根據獲取到的位置訊息控制虛擬實境中的人體模型進行移動之前,將人體模型的左腿節點和右腿節點合併為腿部節點,其中,合併得到的手部節點和腿部節點為人體模型頭部節點的父節 點。 Optionally, the device includes: a first merging unit, configured to merge the left-hand node and the right-hand node of the human body model into a hand node before controlling the movement of the human body model in the virtual reality according to the acquired location information; and/ Or a second merging unit, configured to merge the left leg node and the right leg node of the human body model into a leg node before controlling the movement of the human body model in the virtual reality according to the acquired position information, wherein the merged hand The node and leg nodes are the parent nodes of the human body model head node.

作為本申請實施例的一種可選的實施方式,獲取頭部追蹤器的位置訊息,並根據該位置訊息控制人體模型對目標人體的動作進行模擬之前,可以將人體模型的節點進行簡化,並以頭部節點作為目標節點,控制頭部節點和頭部節點的父節點進行移動,以使人體模型對目標人體的動作進行模擬。具體地,可以將左手節點和右手節點合併為手部節點,將左腿節點和右腿節點合併為腿部節點,將合併得到的手部節點和/或腿部節點作為頭部節點的父節點,在頭部節點移動時,控制手部節點和/或腿部節點進行相應的移動。 As an optional implementation manner of the embodiment of the present application, after acquiring the location information of the head tracker and controlling the motion of the human body model to simulate the motion of the target human body according to the location information, the node of the human body model may be simplified and The head node acts as a target node, and controls the head node and the parent node of the head node to move, so that the human body model simulates the action of the target human body. Specifically, the left-hand node and the right-hand node may be merged into a hand node, the left leg node and the right leg node are merged into a leg node, and the merged hand node and/or leg node are used as a parent node of the head node. When the head node moves, the hand node and/or the leg node are controlled to move accordingly.

以追蹤器集合包括頭部追蹤器和手部追蹤器為例,控制人體模型模擬目標人體時,透過頭部節點模擬目標人體的頭部及身體動作,透過手部節點模擬目標人體的雙手和雙臂動作,第3圖所示的人體骨架可以拆分為第5圖和第6圖所示的兩個部分,其中,第5圖示出了頭部、身體、雙腿的骨架部分,第6圖示出了雙手和雙臂的骨架部分,如第7圖所示,可以對第6圖所示的骨架部分進行簡化。將左腿骨與右腿骨進行合併,以左腿骨和右腿骨的中點作為合併後腿骨,將左腳與右腳進行合併,以左腳和右腳的中點作為合併後的腳,合併得到的腿骨與腳作為頭部的父節點。 Taking the tracker set including the head tracker and the hand tracker as an example, when the human body model is controlled to simulate the target human body, the head and body movements of the target human body are simulated through the head node, and the hands of the target human body are simulated through the hand node. With the arms moving, the human skeleton shown in Fig. 3 can be divided into two parts shown in Fig. 5 and Fig. 6, wherein Fig. 5 shows the skeleton part of the head, the body, and the legs, Figure 6 shows the skeleton portion of both hands and arms. As shown in Fig. 7, the skeleton portion shown in Fig. 6 can be simplified. Combine the left leg bone with the right leg bone, and combine the left leg and the right foot with the midpoint of the left leg bone and the right leg bone, and combine the left foot and the right foot as the combined midpoint of the left foot and the right foot. The feet, the resulting leg bones and feet are the parent nodes of the head.

可選地,追蹤器集合至少包括頭部追蹤器和手部追蹤器,第二獲取單元包括:第二獲取模組,用於獲取頭部追蹤器的頭部位置訊息和手部追蹤器的手部位置訊息;控制單元包括:第五控制模組,用於根據頭部位置訊息和手部位置訊息控制人體模型進行以下至少一個動作:頭部轉動、身體彎曲、身體移動、手臂移動、手臂彎曲和手臂旋轉。 Optionally, the tracker set includes at least a head tracker and a hand tracker, and the second acquiring unit includes: a second acquiring module, configured to acquire a head tracker head position message and a hand tracker hand Position information; the control unit includes: a fifth control module, configured to control the human body model according to the head position information and the hand position information to perform at least one of the following actions: head rotation, body bending, body movement, arm movement, arm bending And the arm rotates.

作為本申請實施例的一種可選的實施方式,追蹤器集合 包括頭部追蹤器和手部追蹤器時,透過頭部追蹤器獲取目標人體的頭部位置訊息,透過手部追蹤器獲取目標人體的手部位置訊息,根據頭部位置訊息對目標人體的頭部及身體動作進行模擬,根據手部位置訊息對目標人體的手部及手臂動作進行模擬。 As an optional implementation manner of the embodiment of the present application, when the tracker set includes a head tracker and a hand tracker, the head position information of the target human body is obtained through the head tracker, and the target human body is acquired through the hand tracker. The hand position information simulates the head and body movements of the target human body according to the head position information, and simulates the hand and arm movements of the target human body according to the hand position information.

可選地,追蹤器集合至少包括頭部追蹤器、手部追蹤器和腳部追蹤器,第二獲取單元包括:第三獲取模組,用於獲取頭部追蹤器的頭部位置訊息、手部追蹤器的手部位置訊息和腳部追蹤器的腳部位置訊息;控制單元包括:第六控制模組,用於根據頭部位置訊息、手部位置訊息和腳部位置訊息控制人體模型進行以下至少一個動作:頭部轉動、身體彎曲、身體移動、手臂移動、手臂彎曲、手臂旋轉、腿部移動、腿部彎曲和腿部旋轉。 Optionally, the tracker set includes at least a head tracker, a hand tracker and a foot tracker, and the second obtaining unit comprises: a third acquiring module, configured to acquire a head tracker head position message, a hand The position information of the part tracker and the foot position information of the foot tracker; the control unit comprises: a sixth control module for controlling the human body model according to the head position information, the hand position information and the foot position information At least one of the following actions: head rotation, body bending, body movement, arm movement, arm bending, arm rotation, leg movement, leg bending, and leg rotation.

作為本申請實施例的一種可選的實施方式,追蹤器集合包括頭部追蹤器、手部追蹤器和腳部追蹤器時,透過頭部追蹤器獲取目標人體的頭部位置訊息,透過手部追蹤器獲取目標人體的手部位置訊息,透過腳部追蹤器獲取目標人體的腳部位置訊息,根據頭部位置訊息對目標人體的頭部及身體動作進行模擬,根據手部位置訊息對目標人體的手部及手臂動作進行模擬,根據腳部位置訊息對目標人體的雙腳及雙腿動作進行模擬。 As an optional implementation manner of the embodiment of the present application, when the tracker set includes a head tracker, a hand tracker, and a foot tracker, the head tracker obtains the head position information of the target human body through the hand. The tracker obtains the hand position information of the target human body, obtains the foot position information of the target human body through the foot tracker, simulates the head and body movements of the target human body according to the head position information, and targets the target human body according to the hand position information. The hand and arm movements are simulated, and the target's feet and legs are simulated according to the foot position information.

可選地,裝置還包括:建立單元,用於在獲取在虛擬實境中顯示的人體模型之前,建立具有預設身體比例的人體模型;第三獲取單元,用於根據追蹤器的位置訊息獲取目標人體的實際身體比例;縮放單元,用於根據實際身體比例縮放人體模型,以使人體模型的身體比例與目標人體的身體比例一致。 Optionally, the device further includes: an establishing unit, configured to establish a human body model having a preset body proportion before acquiring the human body model displayed in the virtual reality; and a third acquiring unit, configured to acquire the position information according to the tracker The actual body proportion of the target human body; a scaling unit for scaling the human body model according to the actual body proportion so that the body proportion of the human body model is consistent with the body proportion of the target human body.

作為本申請實施例的一種可選的實施方式,為了提高人體模型與目標人體的相似度,建立一個與目標人體的實際身體比例一致的人體模型。具體地,先建立一個具有標準身體比例的人 體模型,然後根據配置在目標人體上的追蹤器的位置訊息,獲取目標人體的實際身體比例關係,如:根據目標人體頭部追蹤器的位置訊息可以得知目標人體的身高,再根據目標人體的手部的位置訊息,得知目標人體的手臂長度。最後,按照目標人體的實際身體比例關係,對上述具有標準身體比例的人體模型進行縮放,以使人體模型的身體比例關係與目標人體的實際身體比例一致。 As an optional implementation manner of the embodiment of the present application, in order to improve the similarity between the human body model and the target human body, a human body model conforming to the actual body proportion of the target human body is established. Specifically, a human body model having a standard body ratio is first established, and then the actual body proportional relationship of the target human body is obtained according to the position information of the tracker configured on the target human body, for example, according to the position information of the target human body head tracker. Knowing the height of the target human body, and then knowing the arm length of the target human body based on the position information of the target human body. Finally, according to the actual body proportion relationship of the target human body, the above-mentioned human body model with a standard body proportion is scaled so that the body proportional relationship of the human body model is consistent with the actual body proportion of the target human body.

根據本申請實施例,還提供了一種電子裝置,包括儲存器和處理器,所述儲存器中儲存有計算機程式,所述處理器被設置為透過所述計算機程式執行上述的方法。 According to an embodiment of the present application, there is also provided an electronic device comprising a storage and a processor, wherein the storage stores a computer program, and the processor is configured to execute the method by using the computer program.

根據本申請實施例,還提供了一種用於實施上述虛擬實境中人體的模擬方法的終端,該終端可以作為上述電子裝置,如第9圖所示,該終端主要包括處理器901、顯示器902和網路連接埠903,其中:網路連接埠903主要用於與追蹤器進行網路通訊,以獲取追蹤器的位置訊息。 According to the embodiment of the present application, a terminal for implementing the simulation method of the human body in the virtual reality is provided. The terminal can be used as the electronic device. As shown in FIG. 9, the terminal mainly includes a processor 901 and a display 902. And the network connection 埠 903, wherein: the network connection 埠 903 is mainly used for network communication with the tracker to obtain the location information of the tracker.

顯示器902主要用於顯示用於模擬目標人體的人體模型。 The display 902 is mainly used to display a human body model for simulating a target human body.

處理器901主要用於執行如下操作:獲取在虛擬實境中顯示的人體模型,其中,人體模型用於對真實環境中的目標人體進行模擬;獲取目標人體的追蹤器集合中所有追蹤器的位置訊息,其中,追蹤器集合包括至少一個設置在目標人體的預定身體部分上的追蹤器;根據獲取到的位置訊息控制虛擬實境中的人體模型進行移動,以使人體模型模擬目標人體的動作。 The processor 901 is mainly configured to: perform a human body model displayed in a virtual reality, wherein the human body model is used to simulate a target human body in a real environment; and the position of all trackers in the tracker set of the target human body is acquired. The message, wherein the tracker set includes at least one tracker disposed on a predetermined body part of the target human body; and controlling the human body model in the virtual reality to move according to the acquired position information, so that the human body model simulates the action of the target human body.

處理器901還用於將獲取到的位置訊息中的任意一個位置訊息所表示的位置作為目標位置;判斷人體模型的目標節點的 當前位置與目標位置之間的距離是否大於第一預設閾值,其中,目標節點與目標位置對應的目標人體的預定身體部位相關聯;如果目標節點的當前位置與目標位置之間的距離大於第一預設閾值,則控制目標節點和目標節點的所有父節點進行移動,其中,目標節點與父節點用於模擬目標人體中一個骨骼鏈的多個骨骼。 The processor 901 is further configured to use, as the target location, the location represented by any one of the acquired location information, and determine whether the distance between the current location and the target location of the target node of the human body model is greater than a first preset threshold. Wherein, the target node is associated with a predetermined body part of the target human body corresponding to the target position; if the distance between the current position of the target node and the target position is greater than the first preset threshold, controlling all the parent nodes of the target node and the target node Move, where the target node and the parent node are used to simulate multiple bones of a bone chain in the target human body.

處理器901還用於獲取目標節點的所有父節點與目標位置的位置關係;根據位置關係選擇與目標節點相鄰的父節點作為旋轉節點;保持旋轉節點與旋轉節點的所有子節點的距離不變,旋轉該旋轉節點的所有子節點,以使目標節點移動到旋轉節點與目標位置的連線上;重新選擇與旋轉節點相鄰的父節點作為旋轉節點,直到目標節點的所有父節點全部選擇完畢。 The processor 901 is further configured to acquire a positional relationship between all the parent nodes of the target node and the target location; select a parent node adjacent to the target node as the rotation node according to the positional relationship; and keep the distance between the rotating node and all the child nodes of the rotating node unchanged. Rotating all the child nodes of the rotating node to move the target node to the line connecting the rotating node and the target position; reselecting the parent node adjacent to the rotating node as the rotating node until all the parent nodes of the target node are selected .

處理器901還用於將獲取到的位置訊息中的任意一個位置訊息所表示的朝向作為目標朝向;判斷人體模型的目標節點的當前朝向與目標朝向之間的目標角度是否大於第二預設閾值;如果目標角度大於第二預設閾值,則控制目標節點和目標節點的所有父節點按照第一預設角度進行旋轉,其中,目標節點旋轉的角度等於第二預設閾值,目標節點的所有父節點的旋轉角度小於或者等於目標節點的旋轉角度;如果目標角度小於或者等於第二預設閾值,則控制目標節點按照目標角度進行旋轉,並控制目標節點的父節點按照第二預設角度進行旋轉,其中,第二預設角度小於或者等於目標角度。 The processor 901 is further configured to use, as the target orientation, the orientation indicated by any one of the acquired location information, and determine whether the target angle between the current orientation of the target node of the human body model and the target orientation is greater than a second preset threshold. If the target angle is greater than the second preset threshold, all the parent nodes of the control target node and the target node are rotated according to the first preset angle, wherein the angle of rotation of the target node is equal to the second preset threshold, and all the parents of the target node The rotation angle of the node is less than or equal to the rotation angle of the target node; if the target angle is less than or equal to the second preset threshold, the control target node rotates according to the target angle, and controls the parent node of the target node to rotate according to the second preset angle. Wherein the second preset angle is less than or equal to the target angle.

處理器901還用於獲取頭部追蹤器的頭部位置訊息;根據頭部位置訊息控制人體模型進行以下至少一個動作:頭部轉動、身體彎曲和身體移動。 The processor 901 is further configured to acquire a head position information of the head tracker; and control the human body model according to the head position information to perform at least one of the following actions: head rotation, body bending, and body movement.

處理器901還用於將人體模型的左手節點和右手節點合併為手部節點;和/或將人體模型的左腿節點和右腿節點合併為腿 部節點,其中,合併得到的手部節點和腿部節點為人體模型頭部節點的父節點。 The processor 901 is further configured to merge the left-hand node and the right-hand node of the human body model into a hand node; and/or merge the left-leg node and the right-leg node of the human body model into a leg node, wherein the merged hand node and The leg node is the parent node of the mannequin head node.

處理器901還用於獲取頭部追蹤器的頭部位置訊息和手部追蹤器的手部位置訊息;根據頭部位置訊息和手部位置訊息控制人體模型進行以下至少一個動作:頭部轉動、身體彎曲、身體移動、手臂移動、手臂彎曲和手臂旋轉。 The processor 901 is further configured to acquire a head position information of the head tracker and a hand position information of the hand tracker; and control the human body model according to the head position information and the hand position information to perform at least one of the following actions: head rotation, Body bending, body movement, arm movement, arm bending and arm rotation.

處理器901還用於獲取頭部追蹤器的頭部位置訊息、手部追蹤器的手部位置訊息和腳部追蹤器的腳部位置訊息;根據頭部位置訊息、手部位置訊息和腳部位置訊息控制人體模型進行以下至少一個動作:頭部轉動、身體彎曲、身體移動、手臂移動、手臂彎曲、手臂旋轉、腿部移動、腿部彎曲和腿部旋轉。 The processor 901 is further configured to acquire a head position information of the head tracker, a hand position information of the hand tracker, and a foot position information of the foot tracker; according to the head position information, the hand position information, and the foot position The positional message controls the mannequin to perform at least one of the following actions: head rotation, body bending, body movement, arm movement, arm bending, arm rotation, leg movement, leg bending, and leg rotation.

處理器901還用於建立具有預設身體比例的人體模型;根據追蹤器的位置訊息獲取目標人體的實際身體比例;根據實際身體比例縮放人體模型,以使人體模型的身體比例與目標人體的身體比例一致。 The processor 901 is further configured to establish a human body model having a preset body proportion; obtain an actual body proportion of the target human body according to the position information of the tracker; and scale the human body model according to the actual body proportion, so that the body proportion of the human body model and the body of the target human body The ratio is the same.

可選地,本實施例中的具體示例可以參考上述實施例1和實施例2中所描述的示例,本實施例在此不再贅述。 For example, the specific examples in this embodiment may refer to the examples described in Embodiment 1 and Embodiment 2, and details are not described herein again.

本申請的實施例還提供了一種儲存介質。所述儲存介質中儲存有計算機程式,其中,所述計算機程式被設置為運行時執行上述的方法。 Embodiments of the present application also provide a storage medium. A computer program is stored in the storage medium, wherein the computer program is configured to execute the method described above at runtime.

可選地,在本實施例中,上述儲存介質可以用於儲存本申請實施例的虛擬實境中人體的模擬方法的程式碼。 Optionally, in the embodiment, the storage medium may be used to store the code of the simulation method of the human body in the virtual reality of the embodiment of the present application.

可選地,在本實施例中,上述儲存介質可以位於行動通訊網路、廣域網、都會網或區域網路的網路中的多個網路設備中的至少一個網路設備。 Optionally, in this embodiment, the storage medium may be located in at least one network device of multiple network devices in a network of a mobile communication network, a wide area network, a metropolitan area network, or a regional network.

可選地,在本實施例中,儲存介質被設置為儲存用於執 行以下步驟的程式碼:S1,獲取在虛擬實境中顯示的人體模型,其中,人體模型用於對真實環境中的目標人體進行模擬;S2,獲取目標人體的追蹤器集合中所有追蹤器的位置訊息,其中,追蹤器集合包括至少一個設置在目標人體的預定身體部分上的追蹤器;S3,根據獲取到的位置訊息控制虛擬實境中的人體模型進行移動,以使人體模型模擬目標人體的動作。 Optionally, in this embodiment, the storage medium is configured to store a code for performing the following steps: S1, acquiring a human body model displayed in a virtual reality, wherein the human body model is used for the target in the real environment The human body performs simulation; S2, acquiring position information of all trackers in the target human body tracker set, wherein the tracker set includes at least one tracker disposed on a predetermined body part of the target human body; S3, according to the acquired position information The human body model in the virtual reality is controlled to move so that the human body model simulates the action of the target human body.

可選地,在本實施例中,上述儲存介質可以包括但不限於:隨身碟、唯讀記憶體(ROM,Read-Only Memory)、隨機存取記憶體(RAM,Random Access Memory)、可攜式硬碟、磁碟或者光碟等各種可以儲存程式碼的介質。 Optionally, in the embodiment, the storage medium may include, but is not limited to, a flash drive, a read-only memory (ROM), a random access memory (RAM), and a portable device. A variety of media that can store code, such as hard drives, disks, or compact discs.

可選地,在本實施例中,處理器根據儲存介質中已儲存的程式碼執行將獲取到的位置訊息中的任意一個位置訊息所表示的位置作為目標位置;判斷人體模型的目標節點的當前位置與目標位置之間的距離是否大於第一預設閾值,其中,目標節點與目標位置對應的目標人體的預定身體部位相關聯;如果目標節點的當前位置與目標位置之間的距離大於第一預設閾值,則控制目標節點和目標節點的所有父節點進行移動,其中,目標節點與父節點用於模擬目標人體中一個骨骼鏈的多個骨骼。 Optionally, in this embodiment, the processor performs, according to the stored code in the storage medium, a location represented by any one of the acquired location information as a target location; and determines a current location of the target node of the human body model. Whether the distance between the position and the target position is greater than a first preset threshold, wherein the target node is associated with a predetermined body part of the target human body corresponding to the target position; if the distance between the current position of the target node and the target position is greater than the first The preset threshold controls all the parent nodes of the target node and the target node to move, wherein the target node and the parent node are used to simulate multiple bones of one bone chain in the target human body.

可選地,在本實施例中,處理器根據儲存介質中已儲存的程式碼執行獲取目標節點的所有父節點與目標位置的位置關係;根據位置關係選擇與目標節點相鄰的父節點作為旋轉節點;保持旋轉節點與旋轉節點的所有子節點的距離不變,旋轉節點的所有子節點,以使目標節點移動到旋轉節點與目標位置的連線上;重新選擇與旋轉節點相鄰的父節點作為旋轉節點,直到目標 節點的所有父節點全部選擇完畢。 Optionally, in this embodiment, the processor performs acquiring a positional relationship between all the parent nodes of the target node and the target location according to the stored code in the storage medium; and selecting a parent node adjacent to the target node as the rotation according to the positional relationship. Node; keep the distance between the rotating node and all the child nodes of the rotating node unchanged, rotate all the child nodes of the node to move the target node to the line connecting the rotating node and the target position; reselect the parent node adjacent to the rotating node As a rotating node, all the parent nodes of the target node are selected.

可選地,在本實施例中,處理器根據儲存介質中已儲存的程式碼執行將獲取到的位置訊息中的任意一個位置訊息所表示的朝向作為目標朝向;判斷人體模型的目標節點的當前朝向與目標朝向之間的目標角度是否大於第二預設閾值;如果目標角度大於第二預設閾值,則控制目標節點和目標節點的所有父節點按照第一預設角度進行旋轉,其中,目標節點旋轉的角度等於第二預設閾值,目標節點的所有父節點的旋轉角度小於或者等於目標節點的旋轉角度;如果目標角度小於或者等於第二預設閾值,則控制目標節點按照目標角度進行旋轉,並控制目標節點的父節點按照第二預設角度進行旋轉,其中,第二預設角度小於或者等於目標角度。 Optionally, in this embodiment, the processor performs, according to the stored code in the storage medium, a direction indicated by any one of the acquired location information as a target orientation; and determines a current target node of the human body model. Whether the target angle between the orientation and the target orientation is greater than a second preset threshold; if the target angle is greater than the second preset threshold, all the parent nodes of the control target node and the target node are rotated according to the first preset angle, wherein the target The angle of rotation of the node is equal to the second preset threshold, and the rotation angle of all the parent nodes of the target node is less than or equal to the rotation angle of the target node; if the target angle is less than or equal to the second preset threshold, the control target node rotates according to the target angle. And controlling the parent node of the target node to rotate according to a second preset angle, wherein the second preset angle is less than or equal to the target angle.

可選地,在本實施例中,處理器根據儲存介質中已儲存的程式碼執行獲取頭部追蹤器的頭部位置訊息;根據頭部位置訊息控制人體模型進行以下至少一個動作:頭部轉動、身體彎曲和身體移動。 Optionally, in this embodiment, the processor performs acquiring the head position information of the head tracker according to the stored code in the storage medium; and controlling the human body model according to the head position information to perform at least one of the following actions: head rotation Body bending and body movement.

可選地,在本實施例中,處理器根據儲存介質中已儲存的程式碼執行將人體模型的左手節點和右手節點合併為手部節點;和/或將人體模型的左腿節點和右腿節點合併為腿部節點,其中,合併得到的手部節點和腿部節點為人體模型頭部節點的父節點。 Optionally, in this embodiment, the processor performs combining the left-hand node and the right-hand node of the human body model into a hand node according to the stored code in the storage medium; and/or the left leg node and the right leg of the human body model The nodes are merged into leg nodes, wherein the merged hand nodes and leg nodes are the parent nodes of the human body model head node.

可選地,在本實施例中,處理器根據儲存介質中已儲存的程式碼執行獲取頭部追蹤器的頭部位置訊息和手部追蹤器的手部位置訊息;根據頭部位置訊息和手部位置訊息控制人體模型進行以下至少一個動作:頭部轉動、身體彎曲、身體移動、手臂移動、手臂彎曲和手臂旋轉。 Optionally, in this embodiment, the processor performs the acquiring the head position information of the head tracker and the hand position information of the hand tracker according to the stored code in the storage medium; according to the head position information and the hand The positional information controls the mannequin to perform at least one of the following actions: head rotation, body bending, body movement, arm movement, arm bending, and arm rotation.

可選地,在本實施例中,處理器根據儲存介質中已儲存的程式碼執行獲取頭部追蹤器的頭部位置訊息、手部追蹤器的手部位置訊息和腳部追蹤器的腳部位置訊息;根據頭部位置訊息、手部位置訊息和腳部位置訊息控制人體模型進行以下至少一個動作:頭部轉動、身體彎曲、身體移動、手臂移動、手臂彎曲、手臂旋轉、腿部移動、腿部彎曲和腿部旋轉。 Optionally, in this embodiment, the processor executes the head position information of the head tracker, the hand position information of the hand tracker, and the foot of the foot tracker according to the stored code in the storage medium. Position message; control the mannequin according to the head position message, the hand position message and the foot position message to perform at least one of the following actions: head rotation, body bending, body movement, arm movement, arm bending, arm rotation, leg movement, The legs are bent and the legs are rotated.

可選地,在本實施例中,處理器根據儲存介質中已儲存的程式碼執行建立具有預設身體比例的人體模型;根據追蹤器的位置訊息獲取目標人體的實際身體比例;根據實際身體比例縮放人體模型,以使人體模型的身體比例與目標人體的身體比例一致。 Optionally, in this embodiment, the processor performs a human body model with a preset body proportion according to the stored code in the storage medium; and obtains an actual body proportion of the target human body according to the position information of the tracker; The human body model is scaled so that the body proportion of the human body model is consistent with the body proportion of the target human body.

上述實施例中的集成的單元如果以軟體功能單元的形式實現並作為獨立的產品銷售或使用時,可以儲存在上述計算機可讀取的儲存介質中。基於這樣的理解,本申請的技術方案本質上或者說對相關技術做出貢獻的部分或者該技術方案的全部或部分可以以軟體產品的形式體現出來,該計算機軟體產品儲存在儲存介質中,包括複數指令用以使得一台或多台計算機設備(可為個人電腦、伺服器或者網路設備等)執行本申請各個實施例所述方法的全部或部分步驟。 The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in the above computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the part contributing to the related art, or all or part of the technical solution may be embodied in the form of a software product, which is stored in a storage medium, including The plurality of instructions are used to cause one or more computer devices (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.

在本申請的上述實施例中,對各個實施例的描述都各有側重,某個實施例中沒有詳述的部分,可以參見其他實施例的相關描述。 In the above-mentioned embodiments of the present application, the descriptions of the various embodiments are different, and the parts that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.

在本申請所提供的幾個實施例中,應該理解到,所揭露的客戶端,可透過其它的方式實現。其中,以上所描述的裝置實施例僅僅是示意性的,例如所述單元的劃分,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式,例如多個單元或組件可以結合或者可以集成到另一個系統,或一些特徵可以忽略, 或不執行。另一點,所顯示或討論的相互之間的耦合或直接耦合或通訊連接可以是透過一些連接埠,單元或模組的間接耦合或通訊連接,可以是電性或其它的形式。 In the several embodiments provided by the present application, it should be understood that the disclosed client may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or integrated. Go to another system, or some features can be ignored, or not executed. Alternatively, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some ports, units or modules, and may be in electrical or other form.

所述作為分離部件說明的單元可以是或者也可以不是物理上分開的,作為單元顯示的部件可以是或者也可以不是物理單元,即可以位於一個地方,或者也可以分佈到多個網路單元上。可以根據實際的需要選擇其中的部分或者全部單元來實現本實施例方案的目的。 The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.

另外,在本申請各個實施例中的各功能單元可以集成在一個處理單元中,也可以是各個單元單獨物理存在,也可以兩個或兩個以上單元集成在一個單元中。上述集成的單元既可以採用硬體的形式實現,也可以採用軟體功能單元的形式實現。 In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of a hardware or a software functional unit.

以上所述僅是本申請的優選實施方式,應當指出,對於所屬技術領域具有通常知識者來說,在不脫離本申請原理的前提下,還可以做出各種改進和潤飾,這些改進和潤飾也應視為本申請的保護範圍。 The above description is only a preferred embodiment of the present application, and it should be noted that those skilled in the art can make various improvements and refinements without departing from the principles of the present application. It should be considered as the scope of protection of this application.

Claims (20)

一種虛擬實境中人體的模擬方法,包括:獲取在虛擬實境中顯示的人體模型,其中,所述人體模型用於對真實環境中的目標人體進行模擬;獲取所述目標人體的追蹤器集合中所有追蹤器的位置訊息,其中,所述追蹤器集合包括至少一個設置在所述目標人體的預定身體部分上的追蹤器;以及根據獲取到的位置訊息控制虛擬實境中的所述人體模型進行移動,以使所述人體模型模擬所述目標人體的動作。  A simulation method for a human body in a virtual reality, comprising: acquiring a human body model displayed in a virtual reality, wherein the human body model is used for simulating a target human body in a real environment; and acquiring a tracker set of the target human body Location information of all trackers, wherein the tracker set includes at least one tracker disposed on a predetermined body part of the target human body; and controlling the human body model in the virtual reality according to the acquired position information Moving is performed to cause the human body model to simulate the motion of the target human body.   根據申請專利範圍第1項所述之方法,其中所述位置訊息包括所述追蹤器的位置,根據獲取到的位置訊息控制虛擬實境中的所述人體模型進行移動包括:將獲取到的位置訊息中的任意一個位置訊息所表示的位置作為目標位置;判斷所述人體模型的目標節點的當前位置與所述目標位置之間的距離是否大於第一預設閾值,其中,所述目標節點與所述目標位置對應的所述目標人體的預定身體部位相關聯;以及如果所述目標節點的當前位置與所述目標位置之間的距離大於所述第一預設閾值,則控制所述目標節點和所述目標節點的所有父節點進行移動,其中,所述目標節點與所述父節點用於模擬所述目標人體中一個骨骼鏈的多個骨骼。  The method of claim 1, wherein the location information includes a location of the tracker, and controlling the human body model in the virtual reality to move according to the acquired location information comprises: acquiring the acquired location a location indicated by any one of the location information as a target location; determining whether a distance between the current location of the target node of the human body model and the target location is greater than a first predetermined threshold, wherein the target node and Correlating a predetermined body part of the target human body corresponding to the target position; and controlling the target node if a distance between a current position of the target node and the target position is greater than the first preset threshold Moving with all parent nodes of the target node, wherein the target node and the parent node are used to simulate multiple bones of one bone chain in the target human body.   根據申請專利範圍第2項所述之方法,其中控制所述目標節點和所述目標節點的所有父節點進行移動包括:獲取所述目標節點的所有父節點與所述目標位置的位置關係;根據所述位置關係選擇與所述目標節點相鄰的父節點作為旋 轉節點;保持所述旋轉節點與所述旋轉節點的所有子節點的距離不變,旋轉所述旋轉節點的所有子節點,以使所述目標節點移動到所述旋轉節點與所述目標位置的連線上;以及重新選擇與所述旋轉節點相鄰的父節點作為所述旋轉節點,直到所述目標節點的所有父節點全部選擇完畢。  The method of claim 2, wherein controlling the target node and all parent nodes of the target node to move comprises: acquiring a positional relationship between all parent nodes of the target node and the target location; Selecting, by the location relationship, a parent node adjacent to the target node as a rotation node; maintaining a distance between the rotation node and all child nodes of the rotation node, and rotating all child nodes of the rotation node, so that Moving the target node to a line connecting the rotating node and the target location; and reselecting a parent node adjacent to the rotating node as the rotating node until all parent nodes of the target node are selected Finished.   根據申請專利範圍第1項所述之方法,其中所述位置訊息包括所述追蹤器的朝向,根據獲取到的位置訊息控制虛擬實境中的所述人體模型進行移動包括:將獲取到的位置訊息中的任意一個位置訊息所表示的朝向作為目標朝向;判斷所述人體模型的目標節點的當前朝向與所述目標朝向之間的目標角度是否大於第二預設閾值;如果所述目標角度大於所述第二預設閾值,則控制所述目標節點和所述目標節點的所有父節點按照第一預設角度進行旋轉,其中,所述目標節點旋轉的角度等於所述第二預設閾值,所述目標節點的所有父節點的旋轉角度小於或者等於所述目標節點的旋轉角度;以及如果所述目標角度小於或者等於第二預設閾值,則控制所述目標節點按照所述目標角度進行旋轉,並控制所述目標節點的父節點按照第二預設角度進行旋轉,其中,所述第二預設角度小於或者等於所述目標角度。  The method of claim 1, wherein the location information includes an orientation of the tracker, and controlling the human body model in the virtual reality to move according to the acquired location information comprises: acquiring the acquired location The orientation indicated by any one of the location information is used as the target orientation; determining whether the target angle between the current orientation of the target node of the human body model and the target orientation is greater than a second preset threshold; if the target angle is greater than The second preset threshold is used to control that all the parent nodes of the target node and the target node are rotated according to a first preset angle, wherein an angle of rotation of the target node is equal to the second preset threshold. The rotation angle of all the parent nodes of the target node is less than or equal to the rotation angle of the target node; and if the target angle is less than or equal to the second preset threshold, controlling the target node to rotate according to the target angle And controlling the parent node of the target node to rotate according to a second preset angle, wherein the second The preset angle is less than or equal to the target angle.   根據申請專利範圍第1至4項任一項所述之方法,其中所述追蹤器集合至少包括頭部追蹤器,獲取所述目標人體的追蹤器集合中所有追蹤器的位置訊息包括:獲取所述頭部追蹤器的頭部位置訊息;以及 根據獲取到的位置訊息控制虛擬實境中的所述人體模型進行移動包括:根據所述頭部位置訊息控制所述人體模型進行以下至少一個動作:頭部轉動、身體彎曲和身體移動。  The method of any one of claims 1 to 4, wherein the set of trackers includes at least a head tracker, and acquiring location information of all trackers in the tracker set of the target human body comprises: acquiring The head position information of the head tracker; and controlling the movement of the human body model in the virtual reality according to the acquired position information comprises: controlling the human body model according to the head position information to perform at least one of the following actions: Head rotation, body bending and body movement.   根據申請專利範圍第5項所述之方法,其中在根據獲取到的位置訊息控制虛擬實境中的所述人體模型進行移動之前,所述方法包括:將所述人體模型的左手節點和右手節點合併為手部節點;和/或將所述人體模型的左腿節點和右腿節點合併為腿部節點,其中,合併得到的所述手部節點和所述腿部節點為所述人體模型頭部節點的父節點。  The method of claim 5, wherein before the moving according to the acquired location information to control the human body model in the virtual reality, the method comprises: placing a left-hand node and a right-hand node of the human body model Merging into a hand node; and/or merging the left leg node and the right leg node of the mannequin into a leg node, wherein the merged hand node and the leg node are the mannequin head The parent node of the node.   根據申請專利範圍第1至4項任一項所述之方法,其中所述追蹤器集合至少包括頭部追蹤器和手部追蹤器,獲取所述目標人體的追蹤器集合中所有追蹤器的位置訊息包括:獲取所述頭部追蹤器的頭部位置訊息和所述手部追蹤器的手部位置訊息;以及根據獲取到的位置訊息控制虛擬實境中的所述人體模型進行移動包括:根據所述頭部位置訊息和所述手部位置訊息控制所述人體模型進行以下至少一個動作:頭部轉動、身體彎曲、身體移動、手臂移動、手臂彎曲和手臂旋轉。  The method of any one of claims 1 to 4, wherein the set of trackers includes at least a head tracker and a hand tracker to acquire locations of all trackers in the tracker set of the target human body The message includes: acquiring a head position information of the head tracker and a hand position information of the hand tracker; and controlling the movement of the human body model in the virtual reality according to the acquired position information, including: The head position information and the hand position information control the human body model to perform at least one of the following actions: head rotation, body bending, body movement, arm movement, arm bending, and arm rotation.   根據申請專利範圍第1至4項任一項所述之方法,其中所述追蹤器集合至少包括頭部追蹤器、手部追蹤器和腳部追蹤器,獲取所述目標人體的追蹤器集合中所有追蹤器的位置訊息包括:獲取所述頭部追蹤器的頭部位置訊息、所述手部追蹤器的手部位置訊息和所述腳部追蹤器的腳部位置訊息;以及根據獲取到的位置訊息控制虛擬實境中的所述人體模型進行 移動包括:根據所述頭部位置訊息、所述手部位置訊息和所述腳部位置訊息控制所述人體模型進行以下至少一個動作:頭部轉動、身體彎曲、身體移動、手臂移動、手臂彎曲、手臂旋轉、腿部移動、腿部彎曲和腿部旋轉。  The method of any one of claims 1 to 4, wherein the set of trackers comprises at least a head tracker, a hand tracker and a foot tracker, and the tracker set of the target human body is acquired The location information of all the trackers includes: obtaining a head position information of the head tracker, a hand position information of the hand tracker, and a foot position information of the foot tracker; and according to the acquired The movement of the human body model in the positional control virtual reality comprises: controlling the human body model according to the head position information, the hand position information and the foot position information to perform at least one of the following actions: Rotation, body bending, body movement, arm movement, arm bending, arm rotation, leg movement, leg bending, and leg rotation.   根據申請專利範圍第1項所述之方法,其中在獲取在虛擬實境中顯示的人體模型之前,所述方法還包括:建立具有預設身體比例的人體模型;根據所述追蹤器的位置訊息獲取所述目標人體的實際身體比例;根據所述實際身體比例縮放所述人體模型,以使所述人體模型的身體比例與所述目標人體的身體比例一致。  The method of claim 1, wherein before acquiring the human body model displayed in the virtual reality, the method further comprises: establishing a human body model having a preset body proportion; and according to the position information of the tracker Obtaining an actual body proportion of the target human body; scaling the human body model according to the actual body proportion such that a body proportion of the human body model is consistent with a body proportion of the target human body.   一種虛擬實境中人體的模擬裝置,包括:第一獲取單元,用於獲取在虛擬實境中顯示的人體模型,其中,所述人體模型用於對真實環境中的目標人體進行模擬;第二獲取單元,用於獲取所述目標人體的追蹤器集合中所有追蹤器的位置訊息,其中,所述追蹤器集合包括至少一個設置在所述目標人體的預定身體部分上的追蹤器;以及控制單元,用於根據獲取到的位置訊息控制虛擬實境中的所述人體模型進行移動,以使所述人體模型模擬所述目標人體的動作。  A human body simulation device in a virtual reality, comprising: a first acquiring unit, configured to acquire a human body model displayed in a virtual reality, wherein the human body model is used for simulating a target human body in a real environment; An acquiring unit, configured to acquire location information of all trackers in the tracker set of the target human body, wherein the tracker set includes at least one tracker disposed on a predetermined body part of the target human body; and a control unit And controlling to move the human body model in the virtual reality according to the acquired location information, so that the human body model simulates an action of the target human body.   根據申請專利範圍第10項所述之裝置,其中所述位置訊息包括所述追蹤器的位置,所述控制單元包括:位置模組,用於將獲取到的位置訊息中的任意一個位置訊息所表示的位置作為目標位置;第一判斷模組,用於判斷所述人體模型的目標節點的當前位置與所述目標位置之間的距離是否大於第一預設閾值,其中,所 述目標節點與所述目標位置對應的所述目標人體的預定身體部位相關聯;以及第一控制模組,用於在如果所述目標節點的當前位置與所述目標位置之間的距離大於所述第一預設閾值時,控制所述目標節點和所述目標節點的所有父節點進行移動,其中,所述目標節點與所述父節點用於模擬所述目標人體中一個骨骼鏈的多個骨骼。  The device of claim 10, wherein the location information includes a location of the tracker, and the control unit comprises: a location module, configured to: use any one of the acquired location messages The position of the target is used as a target location; the first determining module is configured to determine whether a distance between a current location of the target node of the human body model and the target location is greater than a first preset threshold, wherein the target node is Corresponding to the predetermined body part of the target human body corresponding to the target position; and a first control module, configured to: if a distance between a current location of the target node and the target location is greater than the first pre- When the threshold is set, all the parent nodes of the target node and the target node are controlled to move, wherein the target node and the parent node are used to simulate multiple bones of one bone chain in the target human body.   根據申請專利範圍第11項所述之裝置,其中所述第一控制模組包括:獲取子模組,用於獲取所述目標節點的所有父節點與所述目標位置的位置關係;旋轉節點子模組,用於根據所述位置關係選擇與所述目標節點相鄰的父節點作為旋轉節點;旋轉子模組,用於保持所述旋轉節點與所述旋轉節點的所有子節點的距離不變,旋轉所述旋轉節點的所有子節點,以使所述目標節點移動到所述旋轉節點與所述目標位置的連線上;以及重複子模組,用於重新選擇與所述旋轉節點相鄰的父節點作為所述旋轉節點,直到所述目標節點的所有父節點全部選擇完畢。  The device of claim 11, wherein the first control module comprises: an acquisition submodule, configured to acquire a positional relationship between all parent nodes of the target node and the target location; a module, configured to select a parent node adjacent to the target node as a rotation node according to the positional relationship; and a rotation submodule, configured to maintain a distance between the rotation node and all child nodes of the rotation node Rotating all child nodes of the rotating node to move the target node to a line connecting the rotating node and the target position; and repeating a sub-module for reselecting adjacent to the rotating node The parent node acts as the rotating node until all parent nodes of the target node are selected.   根據申請專利範圍第10項所述之裝置,其中所述位置訊息包括所述追蹤器的朝向,所述控制單元包括:朝向模組,用於將獲取到的位置訊息中的任意一個位置訊息所表示的朝向作為目標朝向;第二判斷模組,用於判斷所述人體模型的目標節點的當前朝向與所述目標朝向之間的目標角度是否大於第二預設閾值;第二控制模組,用於在所述目標角度大於所述第二預設閾值時,控制所述目標節點和所述目標節點的所有父節點按照第一預設角度進行旋轉,其中,所述目標節點旋轉的角度等於所述第二 預設閾值,所述目標節點的所有父節點的旋轉角度小於或者等於所述目標節點的旋轉角度;以及第三控制模組,用於在所述目標角度小於或者等於第二預設閾值時,控制所述目標節點按照所述目標角度進行旋轉,並控制所述目標節點的父節點按照第二預設角度進行旋轉,其中,所述第二預設角度小於或者等於所述目標角度。  The device of claim 10, wherein the location information includes an orientation of the tracker, and the control unit comprises: a heading module for using any one of the acquired location messages The orientation of the representation is the target orientation; the second determining module is configured to determine whether the target angle between the current orientation of the target node of the human body model and the target orientation is greater than a second preset threshold; the second control module, And controlling, when the target angle is greater than the second preset threshold, all the parent nodes of the target node and the target node to rotate according to a first preset angle, wherein an angle of rotation of the target node is equal to The second preset threshold, the rotation angle of all the parent nodes of the target node is less than or equal to the rotation angle of the target node; and the third control module is configured to use the target angle to be less than or equal to the second pre- When the threshold is set, the target node is controlled to rotate according to the target angle, and the parent node of the target node is controlled to enter the second preset angle. Rotation, wherein said second predetermined angle is less than or equal to the target angle.   根據申請專利範圍第10至13項任一項所述之裝置,其中所述追蹤器集合至少包括頭部追蹤器,所述第二獲取單元包括:第一獲取模組,用於獲取所述頭部追蹤器的頭部位置訊息;以及所述控制單元包括:第四控制模組,用於根據所述頭部位置訊息控制所述人體模型進行以下至少一個動作:頭部轉動、身體彎曲和身體移動。  The device according to any one of claims 10 to 13, wherein the tracker set includes at least a head tracker, and the second obtaining unit comprises: a first acquisition module, configured to acquire the head The head position information of the part tracker; and the control unit comprises: a fourth control module, configured to control the human body model according to the head position information to perform at least one of the following actions: head rotation, body bending, and body mobile.   根據申請專利範圍第10項所述之裝置,更包括:第一合併單元,用於在根據獲取到的位置訊息控制虛擬實境中的所述人體模型進行移動之前,將所述人體模型的左手節點和右手節點合併為手部節點;和/或第二合併單元,用於在根據獲取到的位置訊息控制虛擬實境中的所述人體模型進行移動之前,將所述人體模型的左腿節點和右腿節點合併為腿部節點,其中,合併得到的所述手部節點和所述腿部節點為所述人體模型頭部節點的父節點。  The device according to claim 10, further comprising: a first merging unit, configured to: control the left hand of the mannequin before moving the mannequin in the virtual reality according to the acquired location information The node and the right-hand node are merged into a hand node; and/or a second merging unit is configured to: before the movement of the human body model in the virtual reality is controlled according to the acquired location information, the left leg node of the human body model And the right leg node is merged into a leg node, wherein the merged hand node and the leg node are parent nodes of the mannequin head node.   根據申請專利範圍第10至13項任一項所述之裝置,其中所述追蹤器集合至少包括頭部追蹤器和手部追蹤器,所述第二獲取單元包括:第二獲取模組,用於獲取所述頭部追蹤器的頭部位置訊息和所述手部追蹤器的手部位置訊息;以及所述控制單元包括:第五控制模組,用於根據所述頭部位置 訊息和所述手部位置訊息控制所述人體模型進行以下至少一個動作:頭部轉動、身體彎曲、身體移動、手臂移動、手臂彎曲和手臂旋轉。  The device of any one of claims 10 to 13, wherein the set of trackers comprises at least a head tracker and a hand tracker, and the second obtaining unit comprises: a second acquisition module, Obtaining a head position information of the head tracker and a hand position information of the hand tracker; and the control unit includes: a fifth control module, configured to use the head position information and the The hand position message controls the mannequin to perform at least one of the following actions: head rotation, body bending, body movement, arm movement, arm bending, and arm rotation.   根據申請專利範圍第10至13項任一項所述之裝置,其中所述追蹤器集合至少包括頭部追蹤器、手部追蹤器和腳部追蹤器,所述第二獲取單元包括:第三獲取模組,用於獲取所述頭部追蹤器的頭部位置訊息、所述手部追蹤器的手部位置訊息和所述腳部追蹤器的腳部位置訊息;以及所述控制單元包括:第六控制模組,用於根據所述頭部位置訊息、所述手部位置訊息和所述腳部位置訊息控制所述人體模型進行以下至少一個動作:頭部轉動、身體彎曲、身體移動、手臂移動、手臂彎曲、手臂旋轉、腿部移動、腿部彎曲和腿部旋轉。  The device of any one of claims 10 to 13, wherein the set of trackers comprises at least a head tracker, a hand tracker and a foot tracker, the second obtaining unit comprising: a third Obtaining a module, configured to acquire a head position information of the head tracker, a hand position information of the hand tracker, and a foot position information of the foot tracker; and the control unit includes: a sixth control module, configured to control the human body model according to the head position information, the hand position information, and the foot position information to perform at least one of the following actions: head rotation, body bending, body movement, Arm movement, arm bending, arm rotation, leg movement, leg bending and leg rotation.   根據申請專利範圍第10項所述之裝置,更包括:建立單元,用於在獲取在虛擬實境中顯示的人體模型之前,建立具有預設身體比例的人體模型;第三獲取單元,用於根據所述追蹤器的位置訊息獲取所述目標人體的實際身體比例;以及縮放單元,用於根據所述實際身體比例縮放所述人體模型,以使所述人體模型的身體比例與所述目標人體的身體比例一致。  The device according to claim 10, further comprising: a establishing unit, configured to establish a human body model having a preset body proportion before acquiring the human body model displayed in the virtual reality; and a third acquiring unit, configured to: Acquiring an actual body proportion of the target human body according to the position information of the tracker; and a scaling unit, configured to scale the human body model according to the actual body proportion, so that a body proportion of the human body model and the target human body The body proportions are the same.   一種儲存介質,所述儲存介質中儲存有計算機程式,其中,所述計算機程式被設置為運行時執行申請專利範圍第1至9項任一項中所述的方法。  A storage medium storing a computer program, wherein the computer program is set to execute the method described in any one of claims 1 to 9 at runtime.   一種電子裝置,包括儲存器和處理器,所述儲存器中儲存有計算機程式,所述處理器被設置為透過所述計算機程式執行申請專利範圍第1至9項任一項中所述的方法。  An electronic device comprising a memory and a processor, wherein the memory stores a computer program, the processor being arranged to execute the method described in any one of claims 1 to 9 by the computer program .  
TW107109892A 2017-03-31 2018-03-22 Method and device for simulating human body in virtual reality, storage medium, and electronic device TWI657263B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
??201710209562.0 2017-03-31
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
TW201830090A true TW201830090A (en) 2018-08-16
TWI657263B TWI657263B (en) 2019-04-21

Family

ID=59724585

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107109892A TWI657263B (en) 2017-03-31 2018-03-22 Method and device for simulating human body in virtual reality, storage medium, and electronic device

Country Status (3)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI707250B (en) * 2018-11-21 2020-10-11 英華達股份有限公司 Redirected virtual reality space system and method thereof

Families Citing this family (4)

* 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
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

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101579238B (en) * 2009-06-15 2012-12-19 吴健康 Human motion capture three dimensional playback system and method thereof
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
CN103488291B (en) * 2013-09-09 2017-05-24 北京诺亦腾科技有限公司 Immersion virtual reality system based on motion 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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI707250B (en) * 2018-11-21 2020-10-11 英華達股份有限公司 Redirected virtual reality space system and method thereof

Also Published As

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

Similar Documents

Publication Publication Date Title
TWI657263B (en) Method and device for simulating human body in virtual reality, storage medium, and electronic device
Balakrishnan et al. Interaction of Spatial Computing In Augmented Reality
EP3347795B1 (en) Tactile interaction in virtual environments
Latoschik et al. FakeMi: A fake mirror system for avatar embodiment studies
KR102103939B1 (en) Avatar facial expression animations with head rotation
TWI752502B (en) Method for realizing lens splitting effect, electronic equipment and computer readable storage medium thereof
Marks et al. Evaluation of game engines for simulated surgical training
JP7299414B2 (en) Image processing method, device, electronic device and computer program
US11514638B2 (en) 3D asset generation from 2D images
US20200057435A1 (en) Method and system for controlling robots within in an interactive arena and generating a virtual overlayed
Song et al. An immersive VR system for sports education
Cadi Yazli et al. Modeling craftspeople for cultural heritage: A case study
Hughes et al. Augmenting museum experiences with mixed reality
US20230120883A1 (en) Inferred skeletal structure for practical 3d assets
Skulimowski et al. Design and optimisation methods for interactive mobile VR visualisation
CN113041616A (en) Method and device for controlling jumping display in game, electronic equipment and storage medium
Montusiewicz et al. The concept of low-cost interactive and gamified virtual exposition
Pranith et al. Real‐Time Applications of Virtual Reality
Gobira et al. Expansion of uses and applications of virtual reality
Lin et al. Space connection: a new 3D tele-immersion platform for web-based gesture-collaborative games and services
Chung et al. Optimizing Camera Setup for In-Home First-person Rendering Mixed Reality Gaming System
US11769297B2 (en) Simulation of rigid bodies
EP4280226A1 (en) Remote reproduction method, system, and apparatus, device, medium, and program product
Wang et al. Automatic generation of game content customized by players: Generate 3D game character based on pictures
Das et al. Future of Virtual Reality and Augmented Reality