Small examples for game development in Qt, OpenGL, Box2D, Bullet Physics, OpenAL, and so on.
-
This post is deleted!
-
I have found two solutions how I can make the first person movement in the browser. Qt doesn't allow it because it is impossible to call
emscripten_request_pointerlock()from Qt application: https://bugreports.qt.io/browse/QTBUG-126513The solution is to use SDL3, Emscripten, and Bullet Physics: Click to run a demo in the browser
The demo allows to move with first person and third person view:

Baked shadows and textures using SDL3, Emscripten, OpenGL ES 2.0, Bullet Physics, and C++

-
8 8Observer8 referenced this topic on
-
Critical problems for WebAssembly
- Background color of parent window is changed to black: https://bugreports.qt.io/browse/QTBUG-120651
- emscripten_request_pointerlock() returns EMSCRIPTEN_RESULT_UNKNOWN_TARGET: https://bugreports.qt.io/browse/QTBUG-126513
- Dealing with keyboard layout for input on Qt WebAssembly: https://forum.qt.io/post/790688
-
Transformed triangle in OpenGL 3.3 and Qt 6.9
Video: https://www.youtube.com/watch?v=AGHZsOrazEU
Source: https://github.com/8Observer8/basics-of-opengl33-and-qt6

-
Debug drawer for Box2D v3 using QPainter
It uses
b2World_Drawto draw Box2D objects for debugging. You can just download and run it without compiling libs because it include libs for Windows (MinGW) and Android.Source: https://github.com/8Observer8/debug-drawer-qpainter-box2dv3-qt6-cpp

-
8 8Observer8 referenced this topic on
-
C Christian Ehrlicher locked this topic on
-
C Christian Ehrlicher unlocked this topic
-
Tank-transistor movement with Bullet Physics
View Live Wasm-Demo - you can control the tank-transistor with WASD-keys in the browser

-
Tutorials from Box2D/Box3D creator Erin Catto on the control character:
-
Dear ImGui + Qt 6 + OpenGL 3.3 for Windows
Source code: https://github.com/ivan-enzhaev/imgui-opengl-test-qt6

-
Qt 6 + SDL3_image (WebP) + Modern OpenGL 3.3 Core (Desktop)
A step-by-step guide to configuring and running a static desktop project integrating Qt 6 and SDL3_image with WebP support and an OpenGL 3.3 context on Windows and Ubuntu.
The free texture
clear_01.pngused in this project was downloaded from OpenGameArt (Crate #5) and converted to WebP format (clear_01.webp).
-
Qt 6 + cglm + SDL3_image (WebP) + Modern OpenGL 3.3 Core: Rotating 3D Textured Cube (Desktop)
A step-by-step guide to configuring and running a static desktop project integrating Qt 6, cglm math library for Perspective, View, and Model (MVP) transformations, a dedicated UV buffer, depth testing, SDL3_image with WebP, and smooth 90°/s rotation via QTimer on Windows and Ubuntu.
Executables (Windows and Linux)
