CN104408775B - Depth perception based three-dimensional shadow play production method - Google Patents
Depth perception based three-dimensional shadow play production method Download PDFInfo
- Publication number
- CN104408775B CN104408775B CN201410798524.XA CN201410798524A CN104408775B CN 104408775 B CN104408775 B CN 104408775B CN 201410798524 A CN201410798524 A CN 201410798524A CN 104408775 B CN104408775 B CN 104408775B
- Authority
- CN
- China
- Prior art keywords
- shadow
- model
- joint
- areal
- play
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Processing Or Creating Images (AREA)
Abstract
基于深度感知的三维皮影戏制作方法,属于数字皮影戏制作技术领域。本发明是为了解决现有皮影戏传承方式不能真实反映皮影表演的虚实变换,并不能适应性的匹配皮影花纹的问题。它首先将待制作皮影人物整体图像作为三维模型制作模块的前视图,以作为皮影人物三维模型的参照;再制作皮影人物全部身体部件平面模型;对所述平面模型进行表面颜色的贴图;将待制作皮影人物全部身体部件平面模型按序缀接,形成皮影人物三维模型;将皮影人物三维模型与所有骨骼建立绑定;将皮影人物三维模型的所有骨骼与相应人体骨骼关节的三维坐标信息建立映射关系;再用人体骨骼运动序列控制皮影人物三维模型的骨骼运动。本发明用于三维皮影戏制作。
The invention discloses a three-dimensional shadow play production method based on depth perception, and belongs to the technical field of digital shadow play production. The present invention aims to solve the problem that the existing shadow puppet play inheritance methods cannot truly reflect the virtual-real transformation of the shadow puppet show, and cannot adaptively match the shadow puppet pattern. It first takes the overall image of the shadow play figure to be made as the front view of the three-dimensional model making module as a reference for the three-dimensional model of the shadow play figure; then makes a plane model of all body parts of the shadow play figure; carries out surface color mapping to the plane model; Make the plane model of all body parts of the shadow puppet figure and join them in order to form a 3D model of the shadow puppet figure; bind the 3D model of the shadow play figure with all the bones; establish a mapping between all the bones of the 3D shadow play figure model and the 3D coordinate information of the corresponding human bone joints relationship; and then use the human skeleton movement sequence to control the skeleton movement of the 3D model of the shadow puppet figure. The invention is used for making three-dimensional shadow puppets.
Description
技术领域technical field
本发明涉及基于深度感知的三维皮影戏制作方法,属于数字皮影戏制作技术领域。The invention relates to a three-dimensional shadow play production method based on depth perception, and belongs to the technical field of digital shadow play production.
背景技术Background technique
皮影戏起源于汉代,是世界上最早供人观赏的幕影艺术。皮影艺术经历千百年的发展和传承,与民间习俗相互承载、与地方传统和民俗文化相互融合,其造型技术形式独特,具有特殊的表现力和形式美感,是我国传统说唱表演艺术与民间工艺美术完美结合而成的独特艺术品种,曾经是人们日常生活娱乐的重要组成部分。然而,随着其他艺术形式以及信息技术的出现与飞速发展,人们逐渐习惯通过电视、个人计算机与互联网足不出户地获取信息以及进行娱乐互动,丰富多彩的现代娱乐设施,令人应接不暇的高科技产品,使皮影戏的观众严重流失。此外,皮影戏仍主要以师徒教学的方式传承,皮影影人制作工艺复杂且难于保存,表演需在特定场地进行,唱腔方言化很难为大范围受众所接受,很多皮影戏的造型、剧目以及唱腔都是传统表演的再现,很少呈现新剧本、新造型、新的表演形式,致使皮影戏在当代的传承陷入困境。以一同被列入世界非物质文化遗产的望奎皮影戏为例,皮影戏传承人与其他表演艺人的平均年龄已超过70岁,却仍没有明确的传承人,该项非物质文化遗产几乎面临失传的危险境地。Shadow puppetry originated in the Han Dynasty and is the earliest screen shadow art for people to watch in the world. Shadow puppet art has experienced thousands of years of development and inheritance. It bears mutual bearing with folk customs and integrates with local traditions and folk culture. Its modeling technique is unique, with special expressive force and formal beauty. It is a traditional rap performance art and folk craft in my country The unique art variety formed by the perfect combination of fine arts was once an important part of people's daily life entertainment. However, with the emergence and rapid development of other art forms and information technology, people gradually get used to obtaining information and interacting with entertainment through TV, personal computer and the Internet without leaving home. Technology products have caused a serious loss of audience for shadow puppetry. In addition, shadow puppetry is still mainly passed on in the form of master-apprentice teaching. The production process of shadow puppetry is complicated and difficult to preserve. The performance needs to be performed in a specific venue. It is a reappearance of traditional performances, and rarely presents new scripts, new styles, and new performance forms, which makes the inheritance of shadow puppetry in the contemporary dilemma. Take the Wangkui shadow puppetry, which is also included in the world's intangible cultural heritage, as an example. The average age of the inheritors of shadow puppetry and other performers is over 70 years old, but there is still no clear successor. This intangible cultural heritage is almost at risk of being lost. dangerous situation.
皮影戏濒临消亡的现状已经引起了很多学者的注意,开始采用不同思路对皮影戏进行保护与传承。部分学者从皮影戏的表演形式的传承入手,如西安电子科技大学的付少锋等人使用智能机器人代替皮影影人进行皮影戏表演、西安理工大学的汤奥斐等人用机械自动化的控制方式代替传统皮影艺人使用操纵杆控制皮影影人在表演空间的运动。但机器人或经机械控制的表演动作始终需按照预先设置的程式进行,僵化且不自然,只能机械地模仿皮影其形,而无法传其神。另一部分学者从皮影影人雕制工艺复杂且难于保存的困境入手,如西北大学的华庆一等人对传统皮影影人的各组成部分及皮影背景进行扫描并数字化,提出二维皮影人物与皮影背景的建模方法,实现一种基于互联网的使用鼠标进行交互的数字皮影戏制作方法。北京工业大学的蔡建平等人使用手工画制的传统皮影人物为素材构建基于Flash二维动画制作软件的皮影戏数字表演平台,允许用户使用鼠标与触摸屏实现交互式的皮影戏动画制作。但这些方法仅仅是形成了具有皮影风格的二维动画配以相近风格的背景音乐,实难达到传承皮影艺术的目的,且皮影艺术中所强调的表演者的即兴发挥以及与观众的实时互动也难以恰当表达。华东师范大学的温岩等人采用基于Kinect的体感控制方法,建立皮影表演者与二维数字皮影人物间的动作联系,力图以表演者的躯体动作控制皮影人物进行表演,以使远程客户端计算机屏幕可观赏到皮影戏的表演。但该方法仅使用人体运动的二维信息以模仿皮影人物在影幕平面上的水平移动方式,并未真实反映皮影表演时通过远离与靠近影幕所呈现的虚实变换效果。也就是说,虽然传统皮影的表演是通过影幕的透光效果实现的,但皮影人物并非紧贴在影幕上运动,而是在影幕平面与影幕后方所构成的三维空间中模仿真实的人体运动。电子科技大学的邱航等人公开了一种将普通的三维模型风格化为具有传统皮影审美特点的三维皮影模型制作方法,但应用该方法制作而成的三维皮影模型具有一定的厚度,与传统皮影模型几乎无厚度的特点不符,且简单地将一些传统皮影的花纹随机风格化到所生成的皮影模型中也有悖于皮影数字化保护与传承。The fact that shadow puppetry is on the verge of extinction has attracted the attention of many scholars, who have begun to use different ideas to protect and inherit shadow puppetry. Some scholars start with the inheritance of the performance form of shadow puppetry. For example, Fu Shaofeng of Xidian University and others used intelligent robots instead of shadow puppets to perform shadow puppetry, and Tang Aofei of Xi'an University of Technology and others replaced traditional The shadow puppeteer uses a joystick to control the movement of the shadow puppet in the performance space. However, robot or mechanically controlled performances always need to be carried out according to the preset program, which is rigid and unnatural. It can only mechanically imitate the shape of shadow puppetry, but cannot express its spirit. Another group of scholars started with the plight of shadow puppets with complex carving techniques and difficulty in preservation. For example, Hua Qingyi and others from Northwest University scanned and digitized the various components of traditional shadow puppets and shadow puppet backgrounds, and proposed that two-dimensional shadow puppet figures and The modeling method of the shadow puppet background realizes an Internet-based digital shadow puppet production method using a mouse for interaction. Cai Jianping from Beijing University of Technology used hand-drawn traditional shadow puppets as materials to build a shadow play digital performance platform based on Flash two-dimensional animation software, allowing users to use the mouse and touch screen to realize interactive shadow play animation production. However, these methods only form a two-dimensional animation with a shadow play style and a similar style of background music. difficult to express properly. Wen Yan et al. from East China Normal University used a Kinect-based somatosensory control method to establish the action link between the shadow puppet performer and the two-dimensional digital shadow puppet figure, and tried to use the performer's body movements to control the shadow puppet figure to perform, so that the remote client computer You can watch shadow puppetry performances on the screen. However, this method only uses two-dimensional information of human body movement to imitate the horizontal movement of shadow puppet characters on the screen plane, and does not truly reflect the virtual-real transformation effect presented by moving away from and approaching the shadow screen during shadow puppetry performances. That is to say, although the performance of traditional shadow puppets is realized through the light transmission effect of the shadow screen, the shadow puppets do not move close to the shadow screen, but imitate reality in the three-dimensional space formed by the plane of the shadow screen and the back of the shadow screen. human body movement. Qiu Hang and others from the University of Electronic Science and Technology of China disclosed a method for making a 3D shadow puppet model by stylizing an ordinary 3D model into a 3D shadow puppet model with the aesthetic characteristics of traditional shadow puppetry. The shadow puppet model has almost no thickness, and simply stylizing some traditional shadow puppet patterns into the generated shadow puppet model is also contrary to the digital protection and inheritance of shadow puppetry.
发明内容Contents of the invention
本发明目的是为了解决现有皮影戏传承方式不能真实反映皮影表演的虚实变换,并不能适应性的匹配皮影花纹的问题,提供了一种基于深度感知的三维皮影戏制作方法。The purpose of the present invention is to solve the problem that the existing inheritance method of shadow puppetry cannot truly reflect the virtual-real transformation of shadow puppetry performance, and cannot adaptively match the shadow puppet pattern, and provides a three-dimensional shadow puppet production method based on depth perception.
本发明所述基于深度感知的三维皮影戏制作方法,它包括以下步骤:The three-dimensional shadow play production method based on depth perception of the present invention, it comprises the following steps:
步骤一:将待制作皮影人物整体图像作为三维模型制作模块的前视图,该前视图作为皮影人物三维模型的参照,所述待制作皮影人物整体图像呈现手脚90度动作;Step 1: use the overall image of the shadow play figure to be made as the front view of the three-dimensional model making module, and the front view is used as a reference for the three-dimensional model of the shadow play figure, and the overall image of the shadow play figure to be produced presents 90-degree movements of hands and feet;
步骤二:根据所述前视图建立待制作皮影人物全部身体部件平面模型;Step 2: Establish a plane model of all body parts of the shadow puppet figure to be made according to the front view;
步骤三:对待制作皮影人物全部身体部件平面模型进行表面颜色的贴图;Step 3: Carry out surface color mapping on the plane model of all body parts of the shadow puppet figure to be produced;
步骤四:调整待制作皮影人物全部身体部件平面模型的位置,并将其按序缀接,形成皮影人物三维模型;Step 4: Adjust the positions of the plane models of all the body parts of the shadow puppet figure to be made, and connect them in order to form a three-dimensional model of the shadow puppet figure;
步骤五:建立皮影人物三维模型的所有骨骼,再通过骨骼的蒙皮,将皮影人物三维模型与所有骨骼建立绑定;Step 5: Create all the bones of the 3D model of the shadow puppet, and then bind the 3D model of the shadow puppet to all the bones through the skinning of the bones;
步骤六:采用深度传感器捕捉人体骨骼运动,获得所有人体骨骼关节的三维坐标信息,将皮影人物三维模型的所有骨骼与相应人体骨骼关节的三维坐标信息建立映射关系;再利用捕捉的人体骨骼运动序列控制皮影人物三维模型的所有骨骼运动,同步播放录制的表演者唱腔或伴奏乐曲,实现三维皮影戏制作。Step 6: Use the depth sensor to capture the movement of human bones, obtain the three-dimensional coordinate information of all human bone joints, and establish a mapping relationship between all the bones of the shadow puppet figure's three-dimensional model and the three-dimensional coordinate information of the corresponding human bone joints; then use the captured human bone movement sequence Control all the skeletal movements of the 3D model of shadow puppets, and play the recorded vocals or accompaniment music synchronously to realize the production of 3D shadow puppets.
步骤一中待制作皮影人物整体图像的获得方法为:拍摄获得待制作皮影人物整体相片,采用图像处理工具对待制作皮影人物整体相片进行背景抠除,然后保存为png格式文件作为待制作皮影人物整体图像。The method for obtaining the overall image of the shadow puppet figure to be produced in step 1 is: take the overall photo of the shadow puppet figure to be produced, use an image processing tool to remove the background from the overall photo of the shadow puppet figure to be produced, and then save it as a png format file as the overall figure of the shadow puppet figure to be produced image.
步骤二中建立待制作皮影人物全部身体部件平面模型的具体方法为:The specific method of establishing the plane model of all body parts of the shadow puppet figure to be made in step 2 is as follows:
在三维模型制作模块中,根据步骤一中所述的作为三维模型制作模块的前视图的待制作皮影人物整体图像,新建平面模型,修改该新建平面模型的参数依次获得头茬部件P1平面模型、上身P2平面模型、右大臂P3平面模型、右小臂P4平面模型、右手P5平面模型、左大臂P6平面模型、左小臂P7平面模型、左手P8平面模型、右上腿P9平面模型、右下腿P10平面模型、右脚P11平面模型、左上腿P12平面模型、左下腿P13平面模型和左脚P14平面模型;In the three-dimensional model making module, according to the overall image of the shadow puppet figure to be made as the front view of the three-dimensional model making module described in step 1, a new plane model is created, and the parameters of the new plane model are modified to obtain the head crop parts P1 plane model, P2 plane model of upper body, P3 plane model of right upper arm, P4 plane model of right forearm, P5 plane model of right hand, P6 plane model of left forearm, P7 plane model of left forearm, P8 plane model of left hand, P9 plane model of right upper leg, P10 plane model of lower leg, P11 plane model of right foot, P12 plane model of left upper leg, P13 plane model of left lower leg and P14 plane model of left foot;
所述修改该新建平面模型的参数的修改依据为:将待制作皮影人物拆解为头茬、两个上臂、两个小臂、两只手、一个身子、两个大腿、两个小腿以及两只脚共14个身体部件,分别拍摄获得所述14个身体部件的正反面相片,采用图像处理工具分别对14个身体部件的正反面相片进行背景抠除,然后分别保存为png格式文件作为相应新建平面模型的参数修改依据。The basis for modifying the parameters of the new plane model is to disassemble the shadow puppet figure to be made into head stubble, two upper arms, two forearms, two hands, one body, two thighs, two calves and two There are 14 body parts in total, and the front and back photos of the 14 body parts are taken respectively, and the background is removed from the front and back photos of the 14 body parts with image processing tools, and then saved as png format files as corresponding The basis for modifying the parameters of the newly created plane model.
步骤三中对待制作皮影人物全部身体部件平面模型进行表面颜色的贴图的具体方法为:In step 3, the specific method for mapping the surface color of all the body parts of the shadow puppet figure to be produced is as follows:
在三维模型制作模块中,遵循从左至右,从上到下的顺序,对所有身体部件平面模型进行贴图:首先选择头茬部件P1平面模型,创建其Z轴方向的平面贴图,然后使用与头茬部件P1平面模型对应身体部件的png格式文件对头茬部件P1平面模型进行表面颜色的贴图;然后依此方式,依次对14个身体部件平面模型进行表面颜色的贴图。In the 3D model making module, follow the order from left to right and from top to bottom to texture the plane models of all body parts: first select the plane model of the head stubble part P1, create its plane texture in the Z-axis direction, and then use the The plane model of the head crop part P1 is corresponding to the png format file of the body part, and the surface color mapping is carried out on the plane model of the head crop part P1;
步骤四中形成皮影人物三维模型的具体方法为:The specific method of forming the three-dimensional model of shadow puppet figure in the step 4 is:
当头茬部件P1朝向右侧时:When head stubble part P1 faces to the right:
移动Z轴方向,正方向表示前移,负方向表示后退;按以下层次顺序将14个身体部件平面模型缀接:上身P2平面模型覆盖头茬部件P1平面模型;右手P5平面模型覆盖右小臂P4平面模型,右小臂P4平面模型覆盖右大臂P3平面模型,右大臂P3平面模型覆盖上身P2平面模型;右脚P11平面模型覆盖右下腿P10平面模型,右下腿P10平面模型覆盖右上腿P9平面模型,右上腿P9平面模型覆盖上身P2平面模型;上身P2平面模型覆盖左大臂P6平面模型,左大臂P6平面模型覆盖左小臂P7平面模型,左小臂P7平面模型覆盖左手P8平面模型;上身P2平面模型覆盖左上腿P12平面模型,左上腿P12平面模型覆盖左下腿P13平面模型,左下腿P13平面模型覆盖左脚P14平面模型;形成皮影人物三维模型。Move the Z-axis direction, the positive direction means moving forward, and the negative direction means backward; join the 14 body parts plane models in the following hierarchical order: the upper body P2 plane model covers the head part P1 plane model; the right hand P5 plane model covers the right forearm P4 plane model, the P4 plane model of the right forearm covers the P3 plane model of the right arm, the P3 plane model of the right arm covers the P2 plane model of the upper body; the P11 plane model of the right foot covers the P10 plane model of the lower right leg, and the P10 plane model of the right lower leg covers the upper right leg P9 plane model, right upper leg P9 plane model covers upper body P2 plane model; upper body P2 plane model covers left forearm P6 plane model, left forearm P6 plane model covers left forearm P7 plane model, left forearm P7 plane model covers left hand P8 Plane model; P2 plane model of the upper body covers the P12 plane model of the left upper leg, P12 plane model of the left upper leg covers P13 plane model of the left lower leg, P13 plane model of the left lower leg covers the P14 plane model of the left foot; a three-dimensional model of a shadow puppet figure is formed.
步骤五中将皮影人物三维模型与所有骨骼建立绑定的具体方法为:In Step 5, the specific method of binding the 3D model of the shadow puppet figure to all the bones is as follows:
建立皮影人物三维模型的所有骨骼分别为15个关节点:头部关节S1、双肩中央S2、右肩关节S3、右肘关节S4、右腕关节S5、左肩关节S6、左肘关节S7、左腕关节S8、臀部中央关节S9、右臀部关节S10、右膝关节S11、右踝关节S12、左臀部关节S13、左膝关节S14和左踝关节S15;再通过骨骼的蒙皮,将皮影人物三维模型的所有骨骼与皮影人物三维模型建立绑定。All the bones for building the 3D model of shadow puppets are 15 joint points: head joint S1, shoulder center S2, right shoulder joint S3, right elbow joint S4, right wrist joint S5, left shoulder joint S6, left elbow joint S7, left wrist joint S8 , central hip joint S9, right hip joint S10, right knee joint S11, right ankle joint S12, left hip joint S13, left knee joint S14, and left ankle joint S15; The skeleton is bound to the 3D model of the shadow puppet figure.
步骤六中将皮影人物三维模型的所有骨骼与相应人体骨骼关节的三维坐标信息建立映射关系的具体方法为:In step six, the specific method for establishing a mapping relationship between all the bones of the three-dimensional model of the shadow play figure and the three-dimensional coordinate information of the corresponding human bone joints is:
采用深度传感器捕捉表演者的人体骨骼运动,获得表演者运动时的骨骼关节点三维坐标信息;同时用深度传感器两端的麦克风阵列获取表演者的唱腔和乐队演奏的戏曲;保存获取的表演者在整个表演过程中骨骼运动序列以及对应的音频信号;The depth sensor is used to capture the human skeleton movement of the performer to obtain the three-dimensional coordinate information of the bone joint points during the movement of the performer; at the same time, the microphone array at both ends of the depth sensor is used to obtain the performer's singing voice and the opera played by the band; the obtained performer is saved in the whole Skeletal movement sequences and corresponding audio signals during the performance;
由骨骼运动序列的每一帧中抽取表演者20个骨骼关节点三维坐标信息,将该20个骨骼关节点三维坐标信息中的15个相应骨骼关节点三维坐标信息与皮影人物三维模型的15个关节点建立映射关系如下:将头部骨架位置模块中头部关节点三维坐标信息赋值给头部关节S1;将肩部骨架位置模块中肩部关节点三维坐标信息赋值给双肩中央S2;将右肩骨架位置模块中右肩关节点三维坐标信息赋值给右肩关节S3;将右肘骨架位置模块中右肘关节点三维坐标信息赋值给右肘关节S4;将右腕骨架位置模块中右腕关节点三维坐标信息赋值给右腕关节S5;将左肩骨架位置模块中左肩关节点三维坐标信息赋值给左肩关节S6;将左肘骨架位置模块中左肘关节点三维坐标信息赋值给左肘关节S7;将左腕骨架位置模块中左腕关节点三维坐标信息赋值给左腕关节S8;将臀部中央骨架位置模块中臀部中央关节点三维坐标信息赋值给臀部中央关节S9;将右臀部骨架位置模块中右臀部关节点三维坐标信息赋值给右臀部关节S10;将右膝骨架位置模块中右膝关节点三维坐标信息赋值给右膝关节S11;将右踝骨架位置模块中右踝关节点三维坐标信息赋值给右踝关节S12;将左臀部骨架位置模块中左臀部关节点三维坐标信息赋值给左臀部关节S13;将左膝骨架位置模块中左膝关节点三维坐标信息赋值给左膝关节S14;将左踝骨架位置模块中左踝关节点三维坐标信息赋值给左踝关节S15;Extract the three-dimensional coordinate information of 20 skeleton joint points of the performer from each frame of the skeleton motion sequence, and combine the three-dimensional coordinate information of 15 corresponding skeleton joint points in the three-dimensional coordinate information of the 20 skeleton joint points with the 15 three-dimensional coordinate information of the shadow puppet figure. The mapping relationship of the joint points is as follows: assign the three-dimensional coordinate information of the head joint point in the head skeleton position module to the head joint S1; assign the three-dimensional coordinate information of the shoulder joint point in the shoulder skeleton position module to the center of the shoulders S2; Assign the three-dimensional coordinate information of the right shoulder joint point in the shoulder skeleton position module to the right shoulder joint S3; assign the three-dimensional coordinate information of the right elbow joint point in the right elbow skeleton position module to the right elbow joint S4; assign the three-dimensional coordinate information of the right wrist joint point in the right wrist skeleton position module Assign the coordinate information to the right wrist joint S5; assign the three-dimensional coordinate information of the left shoulder joint point in the left shoulder skeleton position module to the left shoulder joint S6; assign the three-dimensional coordinate information of the left elbow joint point in the left elbow skeleton position module to the left elbow joint S7; assign the left wrist skeleton position module Assign the three-dimensional coordinate information of the left wrist joint point in the position module to the left wrist joint S8; assign the three-dimensional coordinate information of the hip central joint point in the hip central skeleton position module to the hip central joint S9; assign the right hip joint point three-dimensional coordinate information in the right hip skeleton position module Assign the value to the right hip joint S10; assign the three-dimensional coordinate information of the right knee joint point in the right knee skeleton position module to the right knee joint S11; assign the three-dimensional coordinate information of the right ankle joint point in the right ankle skeleton position module to the right ankle joint S12; Assign the three-dimensional coordinate information of the left hip joint point in the left hip skeleton position module to the left hip joint S13; assign the three-dimensional coordinate information of the left knee joint point in the left knee skeleton position module to the left knee joint S14; assign the left ankle joint point information in the left ankle skeleton position module The three-dimensional coordinate information of joint points is assigned to the left ankle joint S15;
利用捕捉的人体骨骼运动序列控制皮影人物三维模型的所有骨骼运动的具体方法为:The specific method for controlling all the bone motions of the 3D model of the shadow puppet figure by using the captured human bone motion sequence is as follows:
使用骨骼运动序列中与双肩中央S2对应图像的相邻两帧x轴方向相对距离控制皮影人物三维模型的皮影人物脸部朝向:以x轴正半轴向左延伸为标准,当相邻两帧骨骼序列中与双肩中央S2对应图像的x坐标之差为正时,将头部关节S1所控制的头茬部件P1平面模型向左翻转,当相邻两帧骨骼序列中与双肩中央S2对应图像的x坐标之差为负时,将头部关节S1所控制的头茬部件P1平面模型向右翻转;结合应用骨骼运动序列中其余相应图像动作控制皮影人物三维模型的其余所有骨骼运动,再同步播放录制的表演者唱腔或伴奏乐曲,实现三维皮影戏制作。Use the relative distance in the x-axis direction of two adjacent frames corresponding to the image corresponding to the center of the shoulders S2 in the skeletal motion sequence to control the face orientation of the shadow puppet figure in the 3D model of the shadow puppet figure: the positive semi-axis of the x-axis extends to the left as the standard, when two adjacent frames When the difference between the x coordinates of the image corresponding to the center of the shoulders S2 in the skeleton sequence is positive, turn the plane model of the stubble part P1 controlled by the head joint S1 to the left, and when the images corresponding to the center of the shoulders S2 in the two adjacent frames of the skeleton sequence When the difference of the x coordinates of the two is negative, turn the plane model of the stubble part P1 controlled by the head joint S1 to the right; combine the other corresponding image actions in the application bone motion sequence to control all other bone motions of the shadow puppet 3D model, and then synchronize Play the recorded vocals or accompaniment music of performers to realize the production of 3D shadow puppetry.
本发明的优点:本发明为一种数字皮影戏制作方法,它在传统皮影影人图像素材的基础上,生成真实感三维皮影人物模型,进而利用深度传感器捕捉传统戏曲表演者的表演动作对应的骨骼运动序列并录制表演者的唱腔及伴奏乐曲,最后将捕捉到的骨骼数据与三维皮影人物模型的骨骼绑定,生成不同于传统戏曲的真实感三维皮影戏。Advantages of the present invention: the present invention is a digital shadow puppet production method, which generates a realistic three-dimensional shadow puppet figure model on the basis of traditional shadow puppet image materials, and then uses a depth sensor to capture the bones corresponding to the performance actions of traditional opera performers The movement sequence and recording of the performer's singing and accompaniment music, and finally the captured skeleton data is bound to the skeleton of the 3D shadow puppet character model to generate a realistic 3D shadow puppetry that is different from traditional opera.
本发明方法可以实时控制虚拟的皮影人物三维模型,它借助具体的深度传感器捕捉人体的运动特征,进而建立人体骨骼与皮影骨骼的关系,以实现用人的运动骨骼序列控制皮影骨骼进行运动。从而生成实时的、有沉浸感、真实感的三维皮影戏,它真实的反映了皮影表演的虚实变换,并实现了适应性的皮影花纹匹配。The method of the invention can control the three-dimensional model of the virtual shadow puppet figure in real time, it captures the movement characteristics of the human body by means of a specific depth sensor, and then establishes the relationship between the human skeleton and the shadow puppet skeleton, so as to realize the movement of the shadow puppet skeleton controlled by the human motion skeleton sequence. In this way, a real-time, immersive and realistic three-dimensional shadow puppet show is generated, which truly reflects the virtual-real transformation of the shadow puppet show, and realizes adaptive matching of shadow puppet patterns.
附图说明Description of drawings
图1是待制作皮影人物全部身体部件平面模型示意图;Fig. 1 is the schematic diagram of all body parts planar models of shadow puppet figures to be made;
图2是对真实皮影人物的拆解示意图;Fig. 2 is a schematic diagram of dismantling a real shadow puppet figure;
图3是按顺序缀接后的皮影人物三维模型;Fig. 3 is the three-dimensional model of the shadow puppet figure after splicing in order;
图4是皮影人物三维模型的所有骨骼关节点的示意图;Fig. 4 is the schematic diagram of all skeletal articulation points of shadow puppet figure three-dimensional model;
图5是皮影人物三维模型的所有骨骼示意图。Fig. 5 is a schematic diagram of all the skeletons of the three-dimensional model of the shadow play figure.
具体实施方式detailed description
具体实施方式一:下面结合图1至图5说明本实施方式,本实施方式所述基于深度感知的三维皮影戏制作方法,它包括以下步骤:Specific embodiment one: below in conjunction with Fig. 1 to Fig. 5 illustrate this embodiment, the three-dimensional shadow puppet production method based on depth perception described in this embodiment, it comprises the following steps:
步骤一:将待制作皮影人物整体图像作为三维模型制作模块的前视图,该前视图作为皮影人物三维模型的参照,所述待制作皮影人物整体图像呈现手脚90度动作;Step 1: use the overall image of the shadow play figure to be made as the front view of the three-dimensional model making module, and the front view is used as a reference for the three-dimensional model of the shadow play figure, and the overall image of the shadow play figure to be produced presents 90-degree movements of hands and feet;
步骤二:根据所述前视图建立待制作皮影人物全部身体部件平面模型;Step 2: Establish a plane model of all body parts of the shadow puppet figure to be made according to the front view;
步骤三:对待制作皮影人物全部身体部件平面模型进行表面颜色的贴图;Step 3: Carry out surface color mapping on the plane model of all body parts of the shadow puppet figure to be produced;
步骤四:调整待制作皮影人物全部身体部件平面模型的位置,并将其按序缀接,形成皮影人物三维模型;Step 4: Adjust the positions of the plane models of all the body parts of the shadow puppet figure to be made, and connect them in order to form a three-dimensional model of the shadow puppet figure;
步骤五:建立皮影人物三维模型的所有骨骼,再通过骨骼的蒙皮,将皮影人物三维模型与所有骨骼建立绑定;Step 5: Create all the bones of the 3D model of the shadow puppet, and then bind the 3D model of the shadow puppet to all the bones through the skinning of the bones;
步骤六:采用深度传感器捕捉人体骨骼运动,获得所有人体骨骼关节的三维坐标信息,将皮影人物三维模型的所有骨骼与相应人体骨骼关节的三维坐标信息建立映射关系;再利用捕捉的人体骨骼运动序列控制皮影人物三维模型的所有骨骼运动,同步播放录制的表演者唱腔或伴奏乐曲,实现三维皮影戏制作。Step 6: Use the depth sensor to capture the movement of human bones, obtain the three-dimensional coordinate information of all human bone joints, and establish a mapping relationship between all the bones of the shadow puppet figure's three-dimensional model and the three-dimensional coordinate information of the corresponding human bone joints; then use the captured human bone movement sequence Control all the skeletal movements of the 3D model of shadow puppets, and play the recorded vocals or accompaniment music synchronously to realize the production of 3D shadow puppets.
具体实施方式二:本实施方式对实施方式一作进一步说明,步骤一中待制作皮影人物整体图像的获得方法为:拍摄获得待制作皮影人物整体相片,采用图像处理工具对待制作皮影人物整体相片进行背景抠除,然后保存为png格式文件作为待制作皮影人物整体图像。Specific embodiment two: this embodiment will further explain embodiment one, the method for obtaining the overall image of the shadow puppet figure to be made in the step 1 is: take and obtain the overall photo of the shadow puppet figure to be made, and use an image processing tool to process the background of the overall photo of the shadow puppet figure to be produced Cut out, and then save it as a png format file as the overall image of the shadow puppet figure to be made.
本实施方式中的图像处理工具可以采用Photoshop。The image processing tool in this embodiment can use Photoshop.
具体实施方式三:下面结合图1至图3说明本实施方式,本实施方式对实施方式二作进一步说明,步骤二中建立待制作皮影人物全部身体部件平面模型的具体方法为:Specific embodiment three: below in conjunction with Fig. 1 to Fig. 3 illustrate present embodiment, present embodiment is described further to embodiment two, and the concrete method of setting up the whole body parts plane model of shadow puppet figure to be made in step 2 is:
在三维模型制作模块中,根据步骤一中所述的作为三维模型制作模块的前视图的待制作皮影人物整体图像,新建平面模型,修改该新建平面模型的参数依次获得头茬部件P1平面模型、上身P2平面模型、右大臂P3平面模型、右小臂P4平面模型、右手P5平面模型、左大臂P6平面模型、左小臂P7平面模型、左手P8平面模型、右上腿P9平面模型、右下腿P10平面模型、右脚P11平面模型、左上腿P12平面模型、左下腿P13平面模型和左脚P14平面模型;In the three-dimensional model making module, according to the overall image of the shadow puppet figure to be made as the front view of the three-dimensional model making module described in step 1, a new plane model is created, and the parameters of the new plane model are modified to obtain the head crop parts P1 plane model, P2 plane model of upper body, P3 plane model of right upper arm, P4 plane model of right forearm, P5 plane model of right hand, P6 plane model of left forearm, P7 plane model of left forearm, P8 plane model of left hand, P9 plane model of right upper leg, P10 plane model of lower leg, P11 plane model of right foot, P12 plane model of left upper leg, P13 plane model of left lower leg and P14 plane model of left foot;
所述修改该新建平面模型的参数的修改依据为:将待制作皮影人物拆解为头茬、两个上臂、两个小臂、两只手、一个身子、两个大腿、两个小腿以及两只脚共14个身体部件,分别拍摄获得所述14个身体部件的正反面相片,采用图像处理工具分别对14个身体部件的正反面相片进行背景抠除,然后分别保存为png格式文件作为相应新建平面模型的参数修改依据。The basis for modifying the parameters of the new plane model is to disassemble the shadow puppet figure to be made into head stubble, two upper arms, two forearms, two hands, one body, two thighs, two calves and two There are 14 body parts in total, and the front and back photos of the 14 body parts are taken respectively, and the background is removed from the front and back photos of the 14 body parts with image processing tools, and then saved as png format files as corresponding The basis for modifying the parameters of the newly created plane model.
本实施方式中,在三维模型制作模块的前视图中导入待制作皮影人物整体图像,放在其前视图的中心点位置,作为建模的参照物形成手脚成90度的皮影人物动作。根据前视图中的待制作皮影人物整体图像,调整相应平面模型的长度,宽度比例,使平面模型的比例与实际皮影人物的大小相匹配,如图1所示。其次,平面模型的大小匹配完成后,通过增加平面模型的点,调整相应点的位置,结合背景皮影影人的素材,使平面模型的外形比例更接近实际的皮影影人。In this embodiment, the overall image of the shadow puppet figure to be made is imported into the front view of the three-dimensional model making module, placed at the center point of the front view, and used as a reference for modeling to form a shadow play figure whose hands and feet are at 90 degrees. According to the overall image of the shadow puppets to be made in the front view, adjust the length and width ratio of the corresponding plane model so that the proportion of the plane model matches the size of the actual shadow puppets, as shown in Figure 1. Secondly, after the size matching of the planar model is completed, the points of the planar model are added, the positions of the corresponding points are adjusted, and the material of the shadow puppet in the background is combined to make the appearance ratio of the planar model closer to the actual shadow puppet.
具体实施方式四:本实施方式对实施方式三作进一步说明,步骤三中对待制作皮影人物全部身体部件平面模型进行表面颜色的贴图的具体方法为:Specific implementation mode four: present implementation mode is described further to implementation mode three, and in step 3, the specific method of carrying out the texture map of surface color to be made shadow puppet figure whole body parts plane model is:
在三维模型制作模块中,遵循从左至右,从上到下的顺序,对所有身体部件平面模型进行贴图:首先选择头茬部件P1平面模型,创建其Z轴方向的平面贴图,然后使用与头茬部件P1平面模型对应身体部件的png格式文件对头茬部件P1平面模型进行表面颜色的贴图;然后依此方式,依次对14个身体部件平面模型进行表面颜色的贴图。In the 3D model making module, follow the order from left to right and from top to bottom to texture the plane models of all body parts: first select the plane model of the head stubble part P1, create its plane texture in the Z-axis direction, and then use the The plane model of the head crop part P1 is corresponding to the png format file of the body part, and the surface color mapping is carried out on the plane model of the head crop part P1;
具体实施方式五:下面结合图1、图2和图3说明本实施方式,本实施方式对实施方式四作进一步说明,步骤四中形成皮影人物三维模型的具体方法为:Specific embodiment five: below in conjunction with Fig. 1, Fig. 2 and Fig. 3 illustrate present embodiment, present embodiment is described further to embodiment 4, the concrete method that forms shadow puppet character three-dimensional model in the step 4 is:
当头茬部件P1朝向右侧时:When head stubble part P1 faces to the right:
移动Z轴方向,正方向表示前移,负方向表示后退;按以下层次顺序将14个身体部件平面模型缀接:上身P2平面模型覆盖头茬部件P1平面模型;右手P5平面模型覆盖右小臂P4平面模型,右小臂P4平面模型覆盖右大臂P3平面模型,右大臂P3平面模型覆盖上身P2平面模型;右脚P11平面模型覆盖右下腿P10平面模型,右下腿P10平面模型覆盖右上腿P9平面模型,右上腿P9平面模型覆盖上身P2平面模型;上身P2平面模型覆盖左大臂P6平面模型,左大臂P6平面模型覆盖左小臂P7平面模型,左小臂P7平面模型覆盖左手P8平面模型;上身P2平面模型覆盖左上腿P12平面模型,左上腿P12平面模型覆盖左下腿P13平面模型,左下腿P13平面模型覆盖左脚P14平面模型;形成皮影人物三维模型。Move the Z-axis direction, the positive direction means moving forward, and the negative direction means backward; join the 14 body parts plane models in the following hierarchical order: the upper body P2 plane model covers the head part P1 plane model; the right hand P5 plane model covers the right forearm P4 plane model, the P4 plane model of the right forearm covers the P3 plane model of the right arm, the P3 plane model of the right arm covers the P2 plane model of the upper body; the P11 plane model of the right foot covers the P10 plane model of the lower right leg, and the P10 plane model of the right lower leg covers the upper right leg P9 plane model, right upper leg P9 plane model covers upper body P2 plane model; upper body P2 plane model covers left forearm P6 plane model, left forearm P6 plane model covers left forearm P7 plane model, left forearm P7 plane model covers left hand P8 Plane model; P2 plane model of the upper body covers the P12 plane model of the left upper leg, P12 plane model of the left upper leg covers P13 plane model of the left lower leg, P13 plane model of the left lower leg covers the P14 plane model of the left foot; a three-dimensional model of a shadow puppet figure is formed.
由于皮影本身是通过线将皮影人物各部分缀接起来的,存在皮影部件缀结的前后顺序的位置关系,因此所建立的皮影平面模型的各部分之间也应该有相应的前后顺序。以头部的朝向为标准,本实施方式以头部朝右为例调整平面模型的位置。先将皮影模型进行拆分,如图2所示。本实施方式将十四个皮影部件平面模型缀接的方式,能够形成皮影人物左侧面较远、右侧面较近的距离感,缀接完成后,即基本具备了皮影人物缀结的特点,如图3所示。Since the shadow puppet itself connects the various parts of the shadow puppet figure through lines, there is a positional relationship of the order in which the shadow puppet parts are attached, so there should also be a corresponding order between the parts of the established shadow play plane model. Taking the orientation of the head as a standard, in this embodiment, the position of the planar model is adjusted by taking the head facing right as an example. First split the shadow puppet model, as shown in Figure 2. In this embodiment, the fourteen shadow puppet parts plane models are joined together, which can form a sense of distance that the left side of the shadow puppet figure is farther away and the right side is closer. ,As shown in Figure 3.
具体实施方式六:下面结合图4和图5说明本实施方式,本实施方式对实施方式五作进一步说明,步骤五中将皮影人物三维模型与所有骨骼建立绑定的具体方法为:Specific embodiment six: the present embodiment is described below in conjunction with Fig. 4 and Fig. 5, and present embodiment is further described to embodiment five, and in step five, the specific method that the three-dimensional model of shadow puppet figure is established binding with all skeletons is:
建立皮影人物三维模型的所有骨骼分别为15个关节点:头部关节S1、双肩中央S2、右肩关节S3、右肘关节S4、右腕关节S5、左肩关节S6、左肘关节S7、左腕关节S8、臀部中央关节S9、右臀部关节S10、右膝关节S11、右踝关节S12、左臀部关节S13、左膝关节S14和左踝关节S15;再通过骨骼的蒙皮,将皮影人物三维模型的所有骨骼与皮影人物三维模型建立绑定。All the bones for building the 3D model of shadow puppets are 15 joint points: head joint S1, shoulder center S2, right shoulder joint S3, right elbow joint S4, right wrist joint S5, left shoulder joint S6, left elbow joint S7, left wrist joint S8 , central hip joint S9, right hip joint S10, right knee joint S11, right ankle joint S12, left hip joint S13, left knee joint S14, and left ankle joint S15; The skeleton is bound to the 3D model of the shadow puppet figure.
由于皮影人物的造型以侧面和半侧面为主,骨骼在运动的过程中有自己独特的特点,因此皮影人物的骨骼绑定也有自己的特性。根据皮影人物的特点,将皮影人物的主要骨骼分为上述15个关节点,如图4所示。Since the shape of shadow puppet figures is mainly profile and half profile, the bones have their own unique characteristics in the process of movement, so the bone binding of shadow puppet figures also has its own characteristics. According to the characteristics of the shadow puppet figure, the main skeleton of the shadow puppet figure is divided into the above 15 joint points, as shown in Figure 4.
在三维模型制作软件中,根据皮影人物的特点,依次建立从头部到脚部,从左手到右手的骨骼,如图5所示。然后,通过骨骼的蒙皮,使骨骼的运动能真正与皮影人物三维模型建立联系。最后,通过刷权重来使单独的骨骼影响单独的模型部件。至此,皮影人物三维模型及其对应的骨骼已建立并绑定。In the 3D model making software, according to the characteristics of the shadow puppet figure, the bones from the head to the feet and from the left hand to the right hand are established in sequence, as shown in Figure 5. Then, through the skinning of the skeleton, the movement of the skeleton can really establish a connection with the 3D model of the shadow puppet figure. Finally, brush weights to make individual bones affect individual model parts. So far, the 3D model of the shadow puppet figure and its corresponding skeleton have been established and bound.
具体实施方式七:下面结合图4和图5说明本实施方式,本实施方式对实施方式六作进一步说明,步骤六中将皮影人物三维模型的所有骨骼与相应人体骨骼关节的三维坐标信息建立映射关系的具体方法为:Specific embodiment seven: the present embodiment is described below in conjunction with Fig. 4 and Fig. 5, and present embodiment is further described to embodiment six, and in step six, all skeletons of the three-dimensional model of the shadow play figure are mapped with the three-dimensional coordinate information of corresponding human skeleton joints The specific method of the relationship is:
采用深度传感器捕捉表演者的人体骨骼运动,获得表演者运动时的骨骼关节点三维坐标信息;同时用深度传感器两端的麦克风阵列获取表演者的唱腔和乐队演奏的戏曲;保存获取的表演者在整个表演过程中骨骼运动序列以及对应的音频信号;The depth sensor is used to capture the human skeleton movement of the performer to obtain the three-dimensional coordinate information of the bone joint points during the movement of the performer; at the same time, the microphone array at both ends of the depth sensor is used to obtain the performer's singing voice and the opera played by the band; the obtained performer is saved in the whole Skeletal movement sequences and corresponding audio signals during the performance;
由骨骼运动序列的每一帧中抽取表演者20个骨骼关节点三维坐标信息,将该20个骨骼关节点三维坐标信息中的15个相应骨骼关节点三维坐标信息与皮影人物三维模型的15个关节点建立映射关系如下:将头部骨架位置模块中头部关节点三维坐标信息赋值给头部关节S1;将肩部骨架位置模块中肩部关节点三维坐标信息赋值给双肩中央S2;将右肩骨架位置模块中右肩关节点三维坐标信息赋值给右肩关节S3;将右肘骨架位置模块中右肘关节点三维坐标信息赋值给右肘关节S4;将右腕骨架位置模块中右腕关节点三维坐标信息赋值给右腕关节S5;将左肩骨架位置模块中左肩关节点三维坐标信息赋值给左肩关节S6;将左肘骨架位置模块中左肘关节点三维坐标信息赋值给左肘关节S7;将左腕骨架位置模块中左腕关节点三维坐标信息赋值给左腕关节S8;将臀部中央骨架位置模块中臀部中央关节点三维坐标信息赋值给臀部中央关节S9;将右臀部骨架位置模块中右臀部关节点三维坐标信息赋值给右臀部关节S10;将右膝骨架位置模块中右膝关节点三维坐标信息赋值给右膝关节S11;将右踝骨架位置模块中右踝关节点三维坐标信息赋值给右踝关节S12;将左臀部骨架位置模块中左臀部关节点三维坐标信息赋值给左臀部关节S13;将左膝骨架位置模块中左膝关节点三维坐标信息赋值给左膝关节S14;将左踝骨架位置模块中左踝关节点三维坐标信息赋值给左踝关节S15;Extract the three-dimensional coordinate information of 20 skeleton joint points of the performer from each frame of the skeleton motion sequence, and combine the three-dimensional coordinate information of 15 corresponding skeleton joint points in the three-dimensional coordinate information of the 20 skeleton joint points with the 15 three-dimensional coordinate information of the shadow puppet figure. The mapping relationship of the joint points is as follows: assign the three-dimensional coordinate information of the head joint point in the head skeleton position module to the head joint S1; assign the three-dimensional coordinate information of the shoulder joint point in the shoulder skeleton position module to the center of the shoulders S2; Assign the three-dimensional coordinate information of the right shoulder joint point in the shoulder skeleton position module to the right shoulder joint S3; assign the three-dimensional coordinate information of the right elbow joint point in the right elbow skeleton position module to the right elbow joint S4; assign the three-dimensional coordinate information of the right wrist joint point in the right wrist skeleton position module Assign the coordinate information to the right wrist joint S5; assign the three-dimensional coordinate information of the left shoulder joint point in the left shoulder skeleton position module to the left shoulder joint S6; assign the three-dimensional coordinate information of the left elbow joint point in the left elbow skeleton position module to the left elbow joint S7; assign the left wrist skeleton position module Assign the three-dimensional coordinate information of the left wrist joint point in the position module to the left wrist joint S8; assign the three-dimensional coordinate information of the hip central joint point in the hip central skeleton position module to the hip central joint S9; assign the right hip joint point three-dimensional coordinate information in the right hip skeleton position module Assign the value to the right hip joint S10; assign the three-dimensional coordinate information of the right knee joint point in the right knee skeleton position module to the right knee joint S11; assign the three-dimensional coordinate information of the right ankle joint point in the right ankle skeleton position module to the right ankle joint S12; Assign the three-dimensional coordinate information of the left hip joint point in the left hip skeleton position module to the left hip joint S13; assign the three-dimensional coordinate information of the left knee joint point in the left knee skeleton position module to the left knee joint S14; assign the left ankle joint point information in the left ankle skeleton position module The three-dimensional coordinate information of joint points is assigned to the left ankle joint S15;
利用捕捉的人体骨骼运动序列控制皮影人物三维模型的所有骨骼运动的具体方法为:The specific method for controlling all the bone motions of the 3D model of the shadow puppet figure by using the captured human bone motion sequence is as follows:
使用骨骼运动序列中与双肩中央S2对应图像的相邻两帧x轴方向相对距离控制皮影人物三维模型的皮影人物脸部朝向:以x轴正半轴向左延伸为标准,当相邻两帧骨骼序列中与双肩中央S2对应图像的x坐标之差为正时,将头部关节S1所控制的头茬部件P1平面模型向左翻转,当相邻两帧骨骼序列中与双肩中央S2对应图像的x坐标之差为负时,将头部关节S1所控制的头茬部件P1平面模型向右翻转;结合应用骨骼运动序列中其余相应图像动作控制皮影人物三维模型的其余所有骨骼运动,再同步播放录制的表演者唱腔或伴奏乐曲,实现三维皮影戏制作。Use the relative distance in the x-axis direction of two adjacent frames corresponding to the image corresponding to the center of the shoulders S2 in the skeletal motion sequence to control the face orientation of the shadow puppet figure in the 3D model of the shadow puppet figure: the positive semi-axis of the x-axis extends to the left as the standard, when two adjacent frames When the difference between the x coordinates of the image corresponding to the center of the shoulders S2 in the skeleton sequence is positive, turn the plane model of the stubble part P1 controlled by the head joint S1 to the left, and when the images corresponding to the center of the shoulders S2 in the two adjacent frames of the skeleton sequence When the difference of the x coordinates of the two is negative, turn the plane model of the stubble part P1 controlled by the head joint S1 to the right; combine the other corresponding image actions in the application bone motion sequence to control all other bone motions of the shadow puppet 3D model, and then synchronize Play the recorded vocals or accompaniment music of performers to realize the production of 3D shadow puppetry.
本实施方式中,深度传感器可采用Kinect深度摄像头,Kinect深度摄像头可以对人体进行完整的骨骼跟踪,并提供20个骨骼关节点的三维坐标信息。因此,这里将皮影人物三维模型中的15个骨骼关节点与Kinect所提供的相应关节点建立映射关系,即可实现应用Kinect捕捉的人体运动控制皮影人物三维模型进行运动。In this embodiment, the depth sensor can use a Kinect depth camera, which can perform complete bone tracking on the human body and provide three-dimensional coordinate information of 20 bone joint points. Therefore, the mapping relationship between the 15 skeletal joint points in the 3D model of the shadow play figure and the corresponding joint points provided by Kinect can be established to realize the movement of the 3D model of the shadow play figure by using the human body motion captured by Kinect.
应用Kinect捕捉的骨骼节点直接控制皮影人物三维模型运动时,无法区分其脸部的朝向。根据皮影戏中以颈部为支撑点控制皮影人物转身的特点,这里使用双肩中央关节点S2在相邻两帧中的x轴方向相对距离来控制皮影人物脸部的朝向。这里从Kinect深度摄像头的视角,以x轴正半轴向左延伸为标准,当相邻两帧骨骼序列中S2的x坐标之差为正时,将头部关节S1所控制的头茬部件P1向左翻转,当相邻两帧骨骼序列中S2的x坐标之差为负时,将头部关节S1所控制的头茬部件P1向右翻转。这样就解决了用Kinect控制的皮影模型头部始终朝向一侧的问题。When the skeletal nodes captured by Kinect are used to directly control the movement of the 3D model of shadow puppets, the orientation of their faces cannot be distinguished. According to the characteristics of shadow puppetry in which the neck is used as the supporting point to control the turning of the shadow puppet figure, here the relative distance of the central joint point S2 of the shoulders in the x-axis direction in two adjacent frames is used to control the orientation of the shadow puppet figure's face. Here, from the perspective of the Kinect depth camera, the positive semi-axis of the x-axis extends to the left as the standard. When the difference between the x-coordinates of S2 in two adjacent frames of skeleton sequences is positive, the head part P1 controlled by the head joint S1 Flip to the left, when the difference between the x coordinates of S2 in two adjacent frames of skeleton sequences is negative, flip the head part P1 controlled by the head joint S1 to the right. This solves the problem that the head of the shadow puppet model controlled by Kinect is always facing one side.
在应用捕捉到的骨骼运动序列控制皮影人物三维模型时,同步播放所录制的表演者的唱腔和伴奏乐曲,即可呈现相应的真实感三维皮影戏。应用本发明方法既可以生成皮影表演艺人用肢体进行动作表演的三维皮影戏剧目,也可以由其他传统戏曲表演者的表演动作控制皮影人物模型结合所录制的唱腔和伴奏乐曲生成具有皮影戏表演风格的其他传统戏曲三维皮影戏。When the captured skeletal movement sequence is used to control the 3D model of the shadow puppet figure, the recorded vocals and accompaniment music of the performer are played synchronously to present a corresponding realistic 3D shadow play. Applying the method of the present invention can not only generate a three-dimensional shadow puppet show in which shadow puppet performers use their limbs to perform action performances, but also can control the shadow puppet character model by combining the recorded singing and accompaniment music by the performance actions of other traditional opera performers to generate other shadow puppet performance styles. Traditional opera three-dimensional shadow puppetry.
Claims (1)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410798524.XA CN104408775B (en) | 2014-12-19 | 2014-12-19 | Depth perception based three-dimensional shadow play production method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410798524.XA CN104408775B (en) | 2014-12-19 | 2014-12-19 | Depth perception based three-dimensional shadow play production method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104408775A CN104408775A (en) | 2015-03-11 |
| CN104408775B true CN104408775B (en) | 2017-04-26 |
Family
ID=52646403
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410798524.XA Active CN104408775B (en) | 2014-12-19 | 2014-12-19 | Depth perception based three-dimensional shadow play production method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104408775B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10607403B2 (en) | 2017-10-04 | 2020-03-31 | Google Llc | Shadows for inserted content |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106251389B (en) * | 2016-08-01 | 2019-12-24 | 北京小小牛创意科技有限公司 | Method and device for producing animation |
| CN107945285B (en) * | 2017-10-11 | 2021-05-04 | 浙江慧脑信息科技有限公司 | Three-dimensional model map changing and deforming method |
| CN108304064A (en) * | 2018-01-09 | 2018-07-20 | 上海大学 | More people based on passive optical motion capture virtually preview system |
| CN110288684B (en) * | 2019-05-22 | 2023-02-28 | 广西一九岂非影视传媒有限公司 | Method and system for rapidly generating two-dimensional animation based on shadow play preview |
| CN111724483B (en) * | 2020-04-16 | 2024-07-19 | 北京诺亦腾科技有限公司 | Image transplanting method |
| CN114566135B (en) * | 2022-02-24 | 2025-07-22 | 西安电子科技大学 | OpenPose model and robot kinematics-based shadow play self-mastering method and system |
| CN114782645B (en) * | 2022-03-11 | 2023-08-29 | 科大讯飞(苏州)科技有限公司 | Virtual digital person making method, related equipment and readable storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102716587A (en) * | 2012-06-15 | 2012-10-10 | 西安理工大学 | System and method for controlling automatic puppet performance |
| CN102778953A (en) * | 2012-06-28 | 2012-11-14 | 华东师范大学 | Motion sensing control method of shadow play remote digital performing based on Kinect |
| CN103065357A (en) * | 2013-01-10 | 2013-04-24 | 电子科技大学 | Manufacturing method of shadow figure model based on common three-dimensional model |
| CN103425136A (en) * | 2012-05-23 | 2013-12-04 | 西安宣仁电子科技有限责任公司 | Control method of intelligent interactive robot shadow puppet show |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI377055B (en) * | 2007-08-10 | 2012-11-21 | Ind Tech Res Inst | Interactive rehabilitation method and system for upper and lower extremities |
-
2014
- 2014-12-19 CN CN201410798524.XA patent/CN104408775B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103425136A (en) * | 2012-05-23 | 2013-12-04 | 西安宣仁电子科技有限责任公司 | Control method of intelligent interactive robot shadow puppet show |
| CN102716587A (en) * | 2012-06-15 | 2012-10-10 | 西安理工大学 | System and method for controlling automatic puppet performance |
| CN102778953A (en) * | 2012-06-28 | 2012-11-14 | 华东师范大学 | Motion sensing control method of shadow play remote digital performing based on Kinect |
| CN103065357A (en) * | 2013-01-10 | 2013-04-24 | 电子科技大学 | Manufacturing method of shadow figure model based on common three-dimensional model |
Non-Patent Citations (2)
| Title |
|---|
| Chinese Shadow Puppetry with an Interactive Interface Using the KINECT Sensor;ZHANG Hui et al.;《Proceedings of the 12th international conference on computer vision 2012》;20121231(第1期);第 352-361y页 * |
| 交互式视声一体化皮影动画系统的设计与实现;尉彦斌;《中国优秀硕士学位论文全文数据库信息科技辑》;20141115(第11期);第25-38页 * |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10607403B2 (en) | 2017-10-04 | 2020-03-31 | Google Llc | Shadows for inserted content |
| US10679404B2 (en) | 2017-10-04 | 2020-06-09 | Google Llc | Shadows for inserted content |
| US10762694B1 (en) | 2017-10-04 | 2020-09-01 | Google Llc | Shadows for inserted content |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104408775A (en) | 2015-03-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104408775B (en) | Depth perception based three-dimensional shadow play production method | |
| Menache | Understanding motion capture for computer animation and video games | |
| CN114119905B (en) | A virtual fitting method, system, device and storage medium | |
| CN105654537B (en) | It is a kind of to realize and the expression cloning method and device of virtual role real-time interactive | |
| CN113822984B (en) | A method, device, system and medium for generating three-dimensional model | |
| CN109829976A (en) | One kind performing method and its system based on holographic technique in real time | |
| CN105955456A (en) | Virtual reality and augmented reality fusion method, device and intelligent wearable equipment | |
| CN100557639C (en) | Three-dimensional virtual human body movement generation method based on key frame and space-time restriction | |
| Thalmann et al. | Synthetic Actors: in Computer-Generated 3D Films | |
| CN105225262B (en) | A kind of dynamic capture 3D data processing methods | |
| JPH10188028A (en) | Animation image generating device by skeleton, method for generating the animation image and medium storing program for generating the animation image | |
| CN105528808B (en) | Jingchu folktale clay figure digital three-dimemsional model synthetic method and system | |
| CN107248185A (en) | A kind of virtual emulation idol real-time live broadcast method and system | |
| CN114972583B (en) | Method, device, electronic device and storage medium for generating user motion trajectory | |
| EP4160545A1 (en) | Three-dimensional avatar generation device, three-dimensional avatar generation method, and three-dimensional avatar generation program | |
| WO2008116426A1 (en) | Controlling method of role animation and system thereof | |
| CN108304064A (en) | More people based on passive optical motion capture virtually preview system | |
| CN103729871A (en) | Cloud animation production method | |
| CN110442239A (en) | Theatre play virtual reality reproducting method based on motion capture technology | |
| CN110288684A (en) | A kind of method and system quickly generating 2 D animation based on shadow show preview | |
| CN115413352A (en) | Computer system, virtual model generation control method and program | |
| CN105389005A (en) | Three-dimensional interactive display method for twenty-four-form Tai Chi Chuan | |
| CN205736018U (en) | System and server for making humanoid dolls | |
| Lin et al. | PuppetTalk: Conversation between glove puppetry and internet of things | |
| Yan et al. | The interactive narration of Chinese shadow play |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |