人气 178

[翻译文档] Image Wave一个Unity3D试验作品 [复制链接]

星月夜 2010-7-8 01:00:57

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
【看效果请访问下面这个网址】
http://spotlightor.com/lab/unity3d/imagewave?url=rb.jpg

Image Wave这个练习之作尝试将Unity3D这款三维游戏引擎应用于范围更广的网络富媒体应用(RIA),在这片目前Flash一统天下的领域,Unity的优势自然是高质量的真三维交互体验。该作品的灵感来源于bartek drozdz的一篇文章:

http://www.everyday3d.com/blog/index.php/2010/03/09/loading-and-manipulating-images-in-unity3d/

用户通过改变网址中所包含的图像地址参数来控制Unity程序自动加载所指定的图片,并根据该图片每一个像素的亮度和颜色动态生成不同高度、色彩的方块,当鼠标滑过方块时,高低不同的方块也会像琴键一样弹起落下,发出高低各异的音效,汇成一种单纯而不乏趣味的交互体验。

“网址传递参数”技术在Flash和其他RIA应用中非常普遍,它最直接的好处就是A用户只需要分享网址便可以让打开该网址的B用户看到A此前所定制的特殊内容,可以说是最简单快捷的“用户定制内容+分享”的方式,Image Wave的网址参数格式是这样的:

http://spotlightor.com/lab/unity3d/imagewave?url=图片网址

实现这样的参数传递和诸如复制剪切板的操作,使用了Unity3D与Javascript通信的功能,Unity通过ExternalCall来调用Javascript,Javascript通过UnityObject.SendMessage将参数传递回Unity3D,这个过程与Flash中与Javascript的交互几乎如出一辙。

下面列出了一些比较有趣的Image Wave图片效果以及观看这些效果所需访问的网址:
http://spotlightor.com/lab/unity3d/imagewave?url=https://secure.avangate.com/images/merchant/35936504a37d53e03abdfbc7318d9ec7/products/gradient.jpg

http://spotlightor.com/lab/unity3d/imagewave?url=http://www.chinese-letter.com/images/fire-ball-black-hot-burning.jpg

http://spotlightor.com/lab/unity3d/imagewave?url=http://i153.photobucket.com/albums/s216/phyreblade_blog/Weapons/Spiderman/Sword.jpg

http://spotlightor.com/lab/unity3d/imagewave?url=http://http.developer.nvidia.com/GPUGems/elementLinks/fig16-04.jpg

http://spotlightor.com/lab/unity3d/imagewave?url=http://unity3d.com/images/top-menu/mm_unity_icon.png
回复

使用道具 举报

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

QQ|手机版|小黑屋|九艺游戏动画论坛 ( 津ICP备2022000452号-1 )

GMT+8, 2024-4-29 10:32 , Processed in 0.057796 second(s), 23 queries .

Powered by Discuz! X3.4  © 2001-2017 Discuz Team.