Image wave - Generate cubes from image using URL param

This little experiment is inspired by bartek drozdz’s article:

You could pass a parameter of image URL using the following format:
http://spotlightor.com/lab/unity3d/imagewave?url=YOUR_URL_HERE
And the app will load the image and generate cubes with different height, color and sound by the pixel color of this image.
You can also experiment different 'image wave’s using the GUI at top. When you are happy with your result, just click the ‘COPY’ button and the URL is ready for sharing.

Since there is no way in Unity for getting the URL of the webplayer, I use ExternalCall to inform the javascript and pass the URL using UnityObject.SendMessage. Unity ↔ Javascript connection is also used in the clipboard operation.

iTween is used for the tweening animation.

Here are 3 sample images’ urls:
Abstract Shape
Unity Logo!
Gradient Color

May you like it.

332735--11709--$chrome_2010_06_25_11_11_45_59_495.png
332735--11710--$chrome_2010_06_25_11_00_59_51_921.png
332735--11711--$chrome_2010_06_25_11_32_52_40_297.png

Very interesting! :slight_smile:

Wow, that looks surprising. I like the new ways of using Unity.

Cool…Haa~~~ :stuck_out_tongue:

That’s awesome! Thanks for the iTween callout!

iTween is so helpful for those who have been quite familiar with the tweening library in ActionScript,like me :smile:

I’m so glad to hear that! I can’t wait to get 2.0 done and out. There’s a ton of optimization and new tools in the new version. Hope to see you do more cool things with it.

it is quite interesting. Good work :slight_smile:

Very nice. One odd thing though, it still plays sounds when on different tabs in Firefox when the mouse moves over the appropriate position.