关于unity leap motion如何替换leapmotion里的hands,最好各位大神能提供个模型,谢谢~

&>&LeapMotion PPT控制软件
LeapMotion PPT控制软件
上传大小:458KB
使用LeapMotion控制PPT播放,左右挥手控制PPT上下翻页。能够自动检测LeapMotion设备和正在播放的PPT。
综合评分:0
{%username%}回复{%com_username%}{%time%}\
/*点击出现回复框*/
$(".respond_btn").on("click", function (e) {
$(this).parents(".rightLi").children(".respond_box").show();
e.stopPropagation();
$(".cancel_res").on("click", function (e) {
$(this).parents(".res_b").siblings(".res_area").val("");
$(this).parents(".respond_box").hide();
e.stopPropagation();
/*删除评论*/
$(".del_comment_c").on("click", function (e) {
var id = $(e.target).attr("id");
$.getJSON('/index.php/comment/do_invalid/' + id,
function (data) {
if (data.succ == 1) {
$(e.target).parents(".conLi").remove();
alert(data.msg);
$(".res_btn").click(function (e) {
var parentWrap = $(this).parents(".respond_box"),
q = parentWrap.find(".form1").serializeArray(),
resStr = $.trim(parentWrap.find(".res_area_r").val());
console.log(q);
//var res_area_r = $.trim($(".res_area_r").val());
if (resStr == '') {
$(".res_text").css({color: "red"});
$.post("/index.php/comment/do_comment_reply/", q,
function (data) {
if (data.succ == 1) {
var $target,
evt = e || window.
$target = $(evt.target || evt.srcElement);
var $dd = $target.parents('dd');
var $wrapReply = $dd.find('.respond_box');
console.log($wrapReply);
//var mess = $(".res_area_r").val();
var mess = resS
var str = str.replace(/{%header%}/g, data.header)
.replace(/{%href%}/g, 'http://' + window.location.host + '/user/' + data.username)
.replace(/{%username%}/g, data.username)
.replace(/{%com_username%}/g, data.com_username)
.replace(/{%time%}/g, data.time)
.replace(/{%id%}/g, data.id)
.replace(/{%mess%}/g, mess);
$dd.after(str);
$(".respond_box").hide();
$(".res_area_r").val("");
$(".res_area").val("");
$wrapReply.hide();
alert(data.msg);
}, "json");
/*删除回复*/
$(".rightLi").on("click", '.del_comment_r', function (e) {
var id = $(e.target).attr("id");
$.getJSON('/index.php/comment/do_comment_del/' + id,
function (data) {
if (data.succ == 1) {
$(e.target).parent().parent().parent().parent().parent().remove();
$(e.target).parents('.res_list').remove()
alert(data.msg);
//填充回复
function KeyP(v) {
var parentWrap = $(v).parents(".respond_box");
parentWrap.find(".res_area_r").val($.trim(parentWrap.find(".res_area").val()));
评论共有28条
楼主求一个源码,可以有偿,邮箱,qq ,微信Yasuode
很实用,很好
win7 64位没法使用。一次都没识别出来
VIP会员动态
CSDN下载频道资源及相关规则调整公告V11.10
下载频道用户反馈专区
下载频道积分规则调整V1710.18
spring mvc+mybatis+mysql+maven+bootstrap 整合实现增删查改简单实例.zip
资源所需积分/C币
当前拥有积分
当前拥有C币
输入下载码
为了良好体验,不建议使用迅雷下载
LeapMotion PPT控制软件
会员到期时间:
剩余下载个数:
剩余积分:0
为了良好体验,不建议使用迅雷下载
积分不足!
资源所需积分/C币
当前拥有积分
您可以选择
程序员的必选
绿色安全资源
资源所需积分/C币
当前拥有积分
当前拥有C币
为了良好体验,不建议使用迅雷下载
资源所需积分/C币
当前拥有积分
当前拥有C币
为了良好体验,不建议使用迅雷下载
资源所需积分/C币
当前拥有积分
当前拥有C币
您的积分不足,将扣除 10 C币
为了良好体验,不建议使用迅雷下载
无法举报自己的资源
你当前的下载分为234。
你还不是VIP会员
开通VIP会员权限,免积分下载
你下载资源过于频繁,请输入验证码
您因违反CSDN下载频道规则而被锁定帐户,如有疑问,请联络:!
若举报审核通过,可返还被扣除的积分
被举报人:
举报的资源分:
请选择类型
资源无法下载 ( 404页面、下载失败、资源本身问题)
资源无法使用 (文件损坏、内容缺失、题文不符)
侵犯版权资源 (侵犯公司或个人版权)
虚假资源 (恶意欺诈、刷分资源)
含色情、危害国家安全内容
含广告、木马病毒资源
*详细原因:
LeapMotion PPT控制软件你很优秀,但我只想做我自己
【VR】Leap Motion 官网文档(一)Unity资源与插件
Leap Motion Unity Assets and Plugin
原文地址:
The Leap Motion Unity assets provide an easy way to get motion-controlled hands into a Unity game.
Leap Motion 的Unity 资源让Unity游戏获取控制运动的手模型变得非常方便。
System Requirements(系统要求)
Leap Motion 2.3.1+ (Leap Motion 2.3.1以上版本)Unity 5.1+ (Unity 5.1以上版本)Windows 7, Windows 8, Mac OS X
Installation(安装步骤)
Download the latest asset package from: .
(下载最新的资源包从 )
Open or create a project.
(打开或者创建一个Unity工程)
Select the Unity Assets & Import Package & Custom Package menu command.
(在Unity中导入该资源包,也可双击导入)
Locate the downloaded asset package and click Open.
The assets are imported into your project.
(在本地找到下载的资源包点击Open导入Unity'中)
Every development and client computer must also install the Leap Motion service software (which runs automatically after it is installed).
(所有的开发者和客户端的电脑都必须安装Leap Motion的服务软件【注:安装后自动运行】)
Troubleshooting(故障排除)
If you do not see hands after adding the HandController prefab to a scene and pressing play, check the following:
(如果你已经把HandController预制体拖到了Scene场景中并且运行之后看不到手的模型,请查看以下几条:)
The hands are within the scene camera’s field of view, not obscured by another 3D object, and are large enough to be visible. The 3D hands appear above the location of the HandController
(这个手的模型需要放在Unity的Scene场景摄像机的视野范围之内,并且不能被其他3D物体遮挡,并且需要保证它的大小是足以可以被看见的,3D的手部模型将出现在HandController预制体所放置的位置上)Pause the game and check to see if the hand models are in the Unity editor hierarchy view. If, so, find them in the editor scene view.(暂停游戏并且检查这个手部的模型是否在Unity的Hierarchy面板中,如果在,在编辑场景中找到它)Make sure that the Unity Editor (or app if running outside the editor) has the OS input focus. (The Leap Motion Service only sends data to the active application.)
(请确保你的Unity编辑窗口或者正在运行的应用程序窗口在当前的操作系统中是有输入焦点的【注:Leap Motion的服务软件只向激活状态的应用程序发送数据】)Check that the Leap Motion icon in the task bar is green. If it has gone dark, the service isn’t sending out data. In this case, double check that the Leap Motion hardware is plugged
in and check that the service is running.
(检查任务栏中的Leap Motion 图标是否是绿色状态。如果颜色变暗,服务将不会发送数据。在这种情况下,双击图标确认Leap
Motion硬件是否被插入,服务是否在运行中)Open the Leap Motion Visualizer from the task bar icon menu. If you see hands in the Visualizer, the problem is most likely within the Unity plugin, scripts, or your own application.
If there are no hands in the Visualizer, the problem is outside Unity.
(点击任务栏图标,打开Leap Motion 观察器。如果在观察器重能够看到手模型,说明问题很可能出现在Unity插件,脚本以及Unity应用程序里。如果观察器中没有看到说,则说明不是Unity方面的问题)
扫码向博主提问
非学,无以致疑;非问,无以广识
擅长领域:
没有更多推荐了,
加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!感谢平台,希望自己不断进步
Leapmotion 感悟
自己学的其实很简单,很浅显,但是决定还是写下来
我觉得首先要了解leapmotion自带的 core asset中的相关内容
下载后导入到unity中基本上就是两个文件夹
在scene场景中导入Leap_Hands_Demo_Desktop场景,即桌面式的leapmotion,就是把leapmotion直接放到电脑前面就可以的。
这就是它在hierarchy视图中的结构。我们来一个个的分析一下
这个是leaphandcontroller的inspector视图显示的东西
可以看到它其实就是一个empty object里面加了两个脚本控制。
(1)leap hand controller脚本:
打开后先看到是一个类的定义,
public class LeapHandController : MonoBehaviour
protected virtual void Start() {
Provider = GetComponent&LeapProvider&();
Factory = GetComponent&HandFactory&();
protected virtual void Update() {
Frame frame = Provider.CurrentF
if (frame.Id != prev_graphics_id_ && graphicsEnabled) {
UpdateHandRepresentations(graphicsReps, ModelType.Graphics, frame);
prev_graphics_id_ = frame.Id;
protected virtual void FixedUpdate() {
Frame fixedFrame = Provider.CurrentFixedF
if (fixedFrame.Id != prev_physics_id_ && physicsEnabled) {
UpdateHandRepresentations(physicsReps, ModelType.Physics, fixedFrame);
prev_physics_id_ = fixedFrame.Id;
void UpdateHandRepresentations(Dictionary&int, HandRepresentation& all_hand_reps, ModelType modelType, Frame frame) {
foreach (Leap.Hand curHand in frame.Hands) {
if (!all_hand_reps.TryGetValue(curHand.Id, out rep)) {
rep = Factory.MakeHandRepresentation(curHand, modelType);
if (rep != null) {
all_hand_reps.Add(curHand.Id, rep);
if (rep != null) {
rep.IsMarked = true;
rep.UpdateRepresentation(curHand, modelType);
rep.LastUpdatedTime = (int)frame.T
(2)还有一个leap service provider 脚本
leapmotion官网上的解释是:
provides access to the tracking data and images as well as access to the Leap.|Controller|_ object. The LeapServiceProvider transforms the tracking data so that the coordinates are relative to the transform of the Unity GameObject to which it is attached. For example, if you rotate the GameObject, the hands are also rotated in the Unity scene. Likewise, a hand 200mm above the Leap Motion device is placed 200mm above the GameObject in the Unity scene. The LeapServiceProvider also converts the coordinate system from the right-handed convention used by the Leap Motion software to the left-handed convention used by Unity。
(3)最后一个handpool脚本
其实也是一个class定义里面,像我这种学的浅的没有关注过太具体的代码,知道它大概干嘛的就好了。
下面就是leaphandcontroller的四个子目录了
四个其实是两个嘛,左右手都一样的其实
capsulehand与rigidroundhand。
其中capsulehand其实就是图形中的手
其组间有叫capsulehand的脚本如下:
public class CapsuleHand : IHandModel {
private const int THUMB_BASE_INDEX = (int)Finger.FingerType.TYPE_THUMB * 4 ;
private const int PINKY_BASE_INDEX = (int)Finger.FingerType.TYPE_PINKY * 4 ;
private const float SPHERE_RADIUS = 0.008f;
private const float CYLINDER_RADIUS = 0.006f;
private const float PALM_RADIUS = 0.015f;
private static int _colorIndex = 0;
private static Color[] _colorList = { Color.blue, Color.green, Color.magenta, Color.cyan, Color.red, Color.yellow };
public override void InitHand(){...}
public override void UpdateHand()//每帧调用
updateSpheres();
updateArm();
updateCapsules();
还有一个hand enable disable脚本顾名思义了吧就
再来看看rigidroundhand
这个rigidroundhand也是一个empty object,它含有的脚本如下
其中关键的就是这个rigid hand脚本了
public override void UpdateHand() //里面含有这个关键的方法
for (int f = 0; f & fingers.L ++f) {
if (fingers[f] != null) {
fingers[f].UpdateFinger();
再往下走就是五个手指还有什么手掌的了,这里只举一个thumb的例子
thumb 含有一个rigid finger 脚本
再往下走,就是thumb下的三个bone,都含有rigidbody和capsule collider组间
没有更多推荐了,
加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!使用Leap Motion Orion开发酷炫的手势识别VR/AR应用-01有问题,上知乎。知乎作为中文互联网最大的知识分享平台,以「知识连接一切」为愿景,致力于构建一个人人都可以便捷接入的知识分享网络,让人们便捷地与世界分享知识、经验和见解,发现更大的世界。Leap Motion Orien支持Oculus和HTC Vive开发,当然对Unity的支持显然是必须的。不过前提是:1.Windows 7 64位或者windows 102.Leap Motion Orion3.Oculus SDK 1.3(需要Unity 5.3.4 p1以上版本)4.HTC Vive(需要Unity 5.4+)Unity Core Assets下载链接: (1.54 MB, 下载次数: 0) 1.Leap Motion Ineraction Engine 这个强大的交互处理引擎突破了传统实时物理引擎在手动操作虚拟物体的种种限制。该工具还提供了控制手和3D物体之间进行交互的延伸组件。相关技术文档:需要安装Unity 5.4+以上版本示例项目请参考:2.Detection Examples提供了一些示例场景,用于演示如何使用Detector脚本,目前已加入Unity Core Assets的豪华午餐相关技术文档请参考:3.Hands Module包含了一些示例Leap Hand的prefab,包括低模的手模型,以及一些脚本。相关示例场景已加入Unity Core Asset的豪华午餐系列。相关技术文档请参考:4.UI Input Module一个简化版的界面,可以和Unity UI系统的World Space Canvas对象进行物理交互。这就意味着玩家可以用双手触摸菜单并与其交互相关技术文档请参考:5.Attatchments Module提供了一个特殊的IHandModel,其中展示了几种重要的手势,比如手掌,手指和手臂。该模块还提供了一些脚本,用于开启或关闭和detector相关的游戏对象。相关技术文档请参考:参考:19分享收藏文章被以下专栏收录Learning by Playing,让k12青少年爱上编程。leap motion结合unity3D的手部模型有人弄起来了么_百度知道
leap motion结合unity3D的手部模型有人弄起来了么
我有更好的答案
官网有提供可操控的手部模型资源,还有应用场景事例,你可以去看看,如果你的问题还在的话.....
不过本人尝试在5.0版本打开资源包是有问题的,所以换成了4.6版本的unity来研究了
为您推荐:
其他类似问题
unity3d的相关知识
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。}

我要回帖

更多关于 leapmotion sdk 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信