morphing

Smoothing a coordinate structure with javascript?

gtoledo3's picture

How does one setup the appropriate javascript to smooth a structure with indices that have an x/y/z/w substructure (the type of structure that would feed a GLTools Structure Renderer, or an OpenCL vertices input, etc.)?

I know it's possible to smooth a structure with a value for each index (the music visualizer does that), but I can't figure out how to smooth with javascript in this type of scenario. It's easy to smooth the values by using an iterator and queue, and publishing the results, but I want to see if avoiding that gains fps.

If this could be done with OpenCL and get higher fps, it would be really interesting, but I'm dubious. Also, I'm not sure if this is something that a dedicated plugin should do (?).

Any help would be greatly appreciated, and I'll post the subsequent result.