将kinect关节映射到我的头像 [英] Mapping kinect joints to my avatar

查看:65
本文介绍了将kinect关节映射到我的头像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将人体图像(AVATAR)的3D模型加载到c#表单上,现在我想将kinect提供的关节连接到3D模型上的关节,使用.net 4.0和c#作为我的编码语言。

I have loaded a 3D model of a human figure(AVATAR) on to the c# form,now i want to connect the joints provided by kinect to the joints on the 3D Model,am using .net 4.0 and c# as my coding language.

推荐答案

我想要的方法是采取关节的角度(例如左膝盖将是左边的角度)从左膝盖到左膝盖矢量和左膝盖到左脚踝矢量。将得到的角度设置为想要的角度,然后从实际角度逐渐向它倾斜
Math.Lerp(...)。

The way I would go about this is to take the angle of a joint (for instance the left knee would be the angle between the left-hip-to-left-knee vector and the left-knee-to-left-ankle vector). Set the resulting angle as the wanted angle and then just gradually Math.Lerp(...) towards it from the actual angle.

支撑的关节越多越好会看。

The more joints supported the better it will look.


这篇关于将kinect关节映射到我的头像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆