Further enhancements
We hope that we've given you some tools to get you going with your own music visualizations. As we've suggested throughout this chapter, the options are infinite. Unfortunately, space prohibits us from having too much fun coding more and more stuff here.
- Animations: We have applied the simplest transformations to each of our visualizations: a simple position, scale, and perhaps 90-degree rotations. Naturally, the position, rotation, and scale can be animated, that is, updated for each frame in coordination with the music, or independent of the music using
Time.deltaTime
. Stuff can be virtually flying all around you! - Advanced textures and shaders: Our shaders and data-driven textures are the most basic: fundamentally rendering a single color pixel corresponding to the audio byte value. The audio data can be fed into much more complex and interesting algorithms to generate new patterns and color and/or be used to morph preloaded textures.
- Texture mapping: The texture...