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.


