All Projects → jarcode-foss → Glava

jarcode-foss / Glava

Licence: other
GLava - OpenGL audio spectrum visualizer

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Glava

Slop
slop (Select Operation) is an application that queries for a selection from the user and prints the region to stdout.
Stars: ✭ 639 (-16.14%)
Mutual labels:  opengl, shaders
ModularMusicVisualizer
Project in Hiatus, unmaintained, being rewritten privately. Will Open Source when stuff is ready. Project will be Renamed.
Stars: ✭ 81 (-89.37%)
Mutual labels:  shaders, audio-visualizer
Gl Engine
Rendering Engine using C++ and OpenGL
Stars: ✭ 237 (-68.9%)
Mutual labels:  opengl, shaders
Imogen
GPU Texture Generator
Stars: ✭ 648 (-14.96%)
Mutual labels:  opengl, shaders
Python Opengl
An open access book on Python, OpenGL and Scientific Visualization, Nicolas P. Rougier, 2018
Stars: ✭ 441 (-42.13%)
Mutual labels:  opengl, shaders
Glsltuto
GLSL shaders tutorial
Stars: ✭ 168 (-77.95%)
Mutual labels:  opengl, shaders
Simplerenderengine
Small C++14 render engine
Stars: ✭ 253 (-66.8%)
Mutual labels:  opengl, shaders
Tinyrenderer
A brief computer graphics / rendering course
Stars: ✭ 11,776 (+1445.41%)
Mutual labels:  opengl, shaders
Shadergen
Proof-of-concept library for generating HLSL, GLSL, and Metal shader code from C#,
Stars: ✭ 395 (-48.16%)
Mutual labels:  opengl, shaders
Diligentcore
Core functionality of Diligent Engine
Stars: ✭ 263 (-65.49%)
Mutual labels:  opengl, shaders
Gaiasky
Mirror of Gaia Sky repository hosted on Gitlab: https://gitlab.com/langurmonkey/gaiasky
Stars: ✭ 162 (-78.74%)
Mutual labels:  opengl, shaders
Hybridrenderingengine
Clustered Forward/Deferred renderer with Physically Based Shading, Image Based Lighting and a whole lot of OpenGL.
Stars: ✭ 563 (-26.12%)
Mutual labels:  opengl, shaders
Reshade
A generic post-processing injector for games and video software.
Stars: ✭ 2,285 (+199.87%)
Mutual labels:  opengl, shaders
React Imgpro
📷 Image Processing Component for React
Stars: ✭ 2,186 (+186.88%)
Mutual labels:  opengl, shaders
Nimble
An OpenGL renderer with a modern and extensible rendering pipeline.
Stars: ✭ 144 (-81.1%)
Mutual labels:  opengl, shaders
Shadered
Lightweight, cross-platform & full-featured shader IDE
Stars: ✭ 3,247 (+326.12%)
Mutual labels:  opengl, shaders
Sildurs Shaders.github.io
Sildurs shaders website
Stars: ✭ 84 (-88.98%)
Mutual labels:  opengl, shaders
Gdx Vfx
LibGDX post-processing visual effects
Stars: ✭ 105 (-86.22%)
Mutual labels:  opengl, shaders
Tinyengine
Tiny OpenGL Wrapper / 3D Engine in C++
Stars: ✭ 251 (-67.06%)
Mutual labels:  opengl, shaders
Renderhelp
⚡️ 可编程渲染管线实现,帮助初学者学习渲染
Stars: ✭ 494 (-35.17%)
Mutual labels:  opengl, shaders

GLava is a general-purpose, highly configurable OpenGL audio spectrum visualizer for X11. Displayed to the left is the radial shader module, or for a more extensive demonstration see this demo. Development is active, and reporting issues is encouranged.

Compiling:

$ git clone https://github.com/jarcode-foss/glava
$ cd glava
$ meson build --prefix /usr
$ ninja -C build
$ sudo ninja -C build install

You can pass -Dbuildtype=debug to Meson for debug builds of glava, and -Dstandalone=true to run glava directly from the build directory.

Note that versions since 2.0 use Meson for the build system, although the Makefile will remain to work identically to earlier 1.xx releases (with new features disabled). Package maintainers are encouraged to use Meson directly instead of the Make wrapper.

Requirements:

  • X11 (Xext, Xcomposite, & Xrender)
  • PulseAudio
  • Linux or BSD
  • libBlocksRuntime if compiling with Clang

Configuration tool requirements:

  • Lua (5.3 by default, change with -Dlua_version=...), and the following lua libraries:
    • Lua GObject Introspection (LGI)
    • LuaFilesystem (LFS)
  • GTK+ 3

Additional compile time requirements:

  • Meson
  • OBS (disable with -Ddisable-obs=true)

Optional requirements:

  • GLFW 3.1+ (optional, enable with -Denable_glfw=true)

Ubuntu/Debian users: the following command ensures you have all the needed packages and headers to compile GLava with the default feature set:

sudo apt-get install libgl1-mesa-dev libpulse0 libpulse-dev libxext6 libxext-dev libxrender-dev libxcomposite-dev liblua5.3-dev liblua5.3 lua-lgi lua-filesystem libobs0 libobs-dev meson build-essential gcc 

Don't forget to run sudo ldconfig after installing.

Installation

Some distributions have a package for glava. If your distribution is not listed please use the compilation instructions above.

Configuration

GLava will start by looking for an entry point in the user configuration folder (~/.config/glava/rc.glsl), and will fall back to loading from the shader installation folder (/etc/xdg/glava). The entry point will specify a module to load and should set global configuration variables. Configuration for specific modules can be done in their respective .glsl files, which the module itself will include.

You should start by running glava --copy-config. This will copy over default configuration files and create symlinks to modules in your user config folder. GLava will either load system configuration files or the user provided ones, so it's not advised to copy these files selectively.

To embed GLava in your desktop (for EWMH compliant window managers), run it with the --desktop flag and then position it accordingly with #request setgeometry x y width height in your rc.glsl.

For more information, see the main configuration page.

Desktop window compatibility

GLava aims to be compatible with most EWMH compliant window managers. Below is a list of common window managers and issues specific to them for trying to get GLava to behave as a desktop window or widget:

WM ! Details
Mutter (GNOME, Budgie) - "native" (default) opacity should be used
KWin (KDE) - "Show Desktop" temporarily hides GLava
Openbox (LXDE or standalone) - No issues
Xfwm (XFCE) - No issues
Fluxbox - No issues
IceWM - No issues
Bspwm - No issues
SpectrWM
Herbstluftwm - hc rule windowtype~'_NET_WM_WINDOW_TYPE_DESKTOP' manage=off can be used to unmanage desktop windows
Unity - No issues
AwesomeWM - Defaults to unmanaged
i3 (and i3-gaps) - Defaults to unmanaged
spectrwm - Defaults to unmanaged
EXWM - EXWM does not have a desktop, and forces window decorations
Enlightenment - Needs testing
Xmonad - Needs testing
Any non EWMH-compliant WM - Window types and hints will not work if the window manager does not support the EWMH standards.

Note that some WMs listed without issues have specific overrides when using the --desktop flag. See shaders/env_*.glsl files for details.

Reading from MPD's FIFO output

Add the following to your ~/.config/mpd.conf:

audio_output {
    type                    "fifo"
    name                    "glava_fifo"
    path                    "/tmp/mpd.fifo"
    format                  "22050:16:2"
}

Note the 22050 sample rate -- this is the reccommended setting for GLava. Restart MPD (if nessecary) and start GLava with glava --audio=fifo.

Using GLava with OBS

GLava installs a plugin for rendering directly to an OBS scene, if support was enabled at compile-time. This is enabled by default in Meson, but it is overridden to disabled in the Makefile for build compatibility.

To use the plugin, simply select GLava Direct Source from the source list in OBS and position the output accordingly. You can provide options to GLava in the source properties.

Note that this only works for the default GLX builds of both OBS and GLava. This feature will not work if OBS was compiled with EGL for context creation, or if GLava is using GLFW.

Performance

GLava will have a notable performance impact by default due to reletively high update rates, interpolation, and smoothing. Because FFT computations are (at the moment) performed on the CPU, you may wish to lower setsamplesize and setbufsize on old hardware.

However, there is functionality to prevent GLava from unessecarily eating resources. GLava will always halt completely when obscured, so a fullscreen application covering the visualizer should enounter no issues (ie. games). If you wish for GLava to halt rendering when any fullscreen application is in focus regardless of visibility, you can set setfullscreencheck to true in rc.glsl.

Any serious performance and/or updating issues (low FPS/UPS) should be reported. At a minimum, modules should be expected to run smoothly on Intel HD graphics and software rasterizers like llvmpipe.

Licensing

GLava is licensed under the terms of the GPLv3, with the exemption of khrplatform.h, which is licensed under the terms in its header. GLava includes some (heavily modified) source code that originated from cava, which was initially provided under the MIT license. The source files that originated from cava are the following:

  • [cava]/input/fifo.c -> [glava]/fifo.c
  • [cava]/input/fifo.h -> [glava]/fifo.h
  • [cava]/input/pulse.c -> [glava]/pulse_input.c
  • [cava]/input/pulse.h -> [glava]/pulse_input.h

The below copyright notice applies for the original versions of these files:

Copyright (c) 2015 Karl Stavestrand <[email protected]>

GLava also contains GLFFT, an excellent FFT implementation using Opengl 4.3 compute shaders. This was also initiallly provided under the MIT license, and applies to the following source files (where * refers to both hpp and cpp):

  • glfft/glfft.*
  • glfft/glfft_common.hpp
  • glfft/glfft_gl_interface.*
  • glfft/glfft_interface.hpp
  • glfft/glfft_wisdom.*

The below copyright notice applies for the original versions of these files:

Copyright (c) 2015 Hans-Kristian Arntzen <[email protected]>

The noted files above are all sublicensed under the terms of the GPLv3. The MIT license is included for your convenience and to satisfy the requirements of the original license, although it no longer applies to any code in this repository. You will find the original copyright notice and MIT license in the LICENSE_ORIGINAL file for cava, or glfft/LICENSE_ORIGINAL for GLFFT.

The below copyright applies for the modifications to the files listed above, and the remaining sources in the repository:

Copyright (c) 2017 Levi Webb

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].