Evgenii Legotckoi
Jan. 27, 2016, 9:27 p.m.

Using Qt 3D to render music

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

Do you like it? Share on social networks!

Comments

Only authorized users can post comments.
Please, Log in or Sign up
  • Last comments
  • Evgenii Legotckoi
    March 9, 2025, 9:02 p.m.
    К сожалению, я этого подсказать не могу, поскольку у меня нет необходимости в обходе блокировок и т.д. Поэтому я и не задавался решением этой проблемы. Ну выглядит так, что вам действитель…
  • VP
    March 9, 2025, 4:14 p.m.
    Здравствуйте! Я устанавливал Qt6 из исходников а также Qt Creator по отдельности. Все компоненты, связанные с разработкой для Android, установлены. Кроме одного... Когда пытаюсь скомпилиров…
  • ИМ
    Nov. 22, 2024, 9:51 p.m.
    Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
  • Evgenii Legotckoi
    Oct. 31, 2024, 11:37 p.m.
    Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup
  • A
    Oct. 19, 2024, 5:19 p.m.
    Подскажите как это запустить? Я не шарю в программировании и кодинге. Скачал и установаил Qt, но куча ошибок выдается и не запустить. А очень надо fb3 переконвертировать в html