查看: 1665|回复: 0
打印 上一主题 下一主题

air与unity3d结合使用摄像头

[复制链接]

1602

主题

1

听众

2万

积分

资深设计师

Rank: 7Rank: 7Rank: 7

纳金币
24658
精华
6

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

跳转到指定楼层
楼主
发表于 2012-3-22 14:33:50 |只看该作者 |倒序浏览
比较有实用价值的研究,air与unity3d结合使用摄像头!

There seem to be several solutions to getting webcams to work with Unity, but no one seems to want to post their source. I guess that the arrival of the asset store has made many see the financial opportunities (this of course is no bad thing).
By using sockets, I have created a connection between Flash and Unity3D, I then send the pixel buffer of the webcam over the socket connection and convert the pixel buffer into a UnityEngine.Color array. The current version opens the Air application automatically once you click the Start button, but this seems to only work on Windows. I'll have a look at a Mac solution next week.
If people have a bit of free time (it is a Friday), I'd be grateful if you could take a look and make sure it works on your system. Comments/suggestions are also more than welcome.
Both executables and source can be found here:
https://github.com/rooch84/UnityFlashCam

分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

关闭

站长推荐上一条 /1 下一条

手机版|纳金网 ( 闽ICP备08008928号

GMT+8, 2024-5-5 20:23 , Processed in 0.081445 second(s), 29 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部