While at FOTB I played around with Away3D and
SoundMixer.computeSpectrum() to simply distribute some pumping cubes on
a grid based on the current music playing.
I set the alpha-value of a color material on a cube like this on each frame:
ColorMaterial(cubes[index].material).alpha = dampValues[i] / amplitude;
but that leads to some weird rendering issue. Have a look yourself and I
guess you see what I mean.
Demo: http://www.urdalen.com/lab/spectrumanalyzer/
Source: http://www.urdalen.com/lab/spectrumanalyzer/SpectrumAnalyzer.as
I've also tried with a using a BitmapRenderSession on the view (Rob's
suggestion), with no luck. Anyone that understand what's going on here?
I feel a bit lost here. Source is supplied so you can play around with it :)
Knut
Fabrice
Here's my result:
Before: http://www.urdalen.com/lab/spectrumanalyzer/
After: http://www.urdalen.com/lab/spectrumanalyzer/working/
Knut
Knut