c++cmakeprojectsvcpkg

Qt / OpenGL / CUDA Fractal app

Another boilerplate C++ piece of graphics code:

Qt app with a custom OpenGL Widget and CUDA integration.
Widget has a double-buffered field that kernels run on and flip.
Everything is implemented with CUDA, so renders blazingly fast.

Original ideas was just to have something to quickly start another Qt app with build system ready to go, but I ended up adding OpenGL Widget and CUDA field.

Everything is modular, so parts can be easily added or taken out.

Interface might not be very obvious:

  • “Draw” mode works for “Game of Life”-like kernels
  • “Camera” tool is for 3D fractals. Idea was to quickly get something minimal that works.
  • Check the list of hotkeys, Space triggers the simulation, “R” resets it. Also try arrow keys.

Code is here: https://github.com/ssoj13/boilerplate_qt
CUDA 13.0 and Vcpkg with Qt6 are required to build it.
Final package size with all CUDA libraries is close to 1Gb, so the only viable option to test it right now is to build it.

Hi, I’m AK