Translation of official news by Titta Heikkala
Since the development of the Qt 3D module is in progress, we would like to provide it for review and testing of how music can be rendered using this module. The result of this experiment is a new example, the Audio Visualizer Example, for the Qt 3D module.
The example shows how you can use Qt 3D rendering with Qt Quick elements. 3D content is rendered using the Scene3D type. Speakers are objects in the NodeInstantiator and they are animated by visualizing the magnitude of the amplitude of the frequencies of the music being played. On the top layer of the scene, we placed the pause/play and stop buttons. These buttons are Qt Quick elements. The music is played using the MediaPlayer provided by the Qt Multimedia module.
This example has a curved line that wraps around 3D objects to show progress based on track duration. There is also a 3D prism showing the sample title and song. The Prism shows the song title while the song is playing, and the example title is displayed when the song is stopped. Titles are placed on different faces of the prism and the prism flip is animated when the title needs to be changed.
If you'd like to try out the example, you can find it at codereview.qt-project.org in the examples \qt3d\audio- visualizer-qml. We know that backend performance improvements are still needed to make column animations smoother, but since Qt 3D is a technology under consideration in the upcoming Qt 5.6 release, these improvements are likely very likely.
This example was created to give you an idea of what you can create using Qt 3D.
We hope you enjoy!
Источник Qt Blog