Yet another Music Visualizer

audio

#1

Lotus Audio

I am sure there are lot of threejs based 3D music visualizers out there. Here’s my attempt.
The audio sample used in default is from Lotus Temple, New Delhi and the architecture of the building was an inspiration why I started making this after visiting the temple.

It is still a WIP and wanted to gather any comments.
Warning: It can freeze your browser on some machines.


#2

How are you animating your geometry? I’m getting 60FPS when no audio is playing but it drops to 3 FPS (and interrupted sound) when the audio plays.


#3

The petals in the are repeatedly removed and added to the scene which slows everything down.
I am using verbnurb to create the smooth NURBs surfaces. They look better (and is easier) than direct mesh manipulation.
Need to come up with a way to optimize that.


#4

Oof, that sounds very resource-intensive. If you want to optimize to get a smooth 60FPS animation, you could look into generating the base geometry once, then animating it in the GPU via vertex shaders, kind of like this example: https://threejs.org/examples/?q=custom#webgl_custom_attributes


#5

Thanks for the link!

I was thinking of that (although I am not too good with shader programming yet).
But from my understanding so far, for the vertex shader approach I would again be working with the mesh vertices (with no reference of the NURBS geometry used to create it) and I would need to learn a lot of NURBS math to correctly manipulate those mesh vertices to make it look similar to how a NURBS surface manipulation would look.

Reason for the NURBS preference:
They look more flowy and natural and the logic of their manipulation based on control points feels more intuitive.