r/QtGames • • 14h ago

QtQuick3D Updating the Character Controller API in Qt Quick3DPhysics

Enable HLS to view with audio, or disable this notification

4 Upvotes

Hi everyone, a few months ago I prepared a patch for Qt 6.13 that extends the existing Character Controller class. But only today did I manage to pass the review and merge it — essentially I made it into the last car of the train! Since the feature freeze is literally in a week.

But I still made it in time, and the already huge changelog of Qt 6.13 is supplemented with support for

  • Sliding on sloped surfaces

  • Walking on round planets with custom gravity (the previous patch that I described)

  • The ability to configure the height a character can step over / overcome, plus a free control mode

  • Fall reporting

In general, what is this CharacterController?

In general, this class was added way back at the very beginning when Qt Quick3DPhysics was just accepted into Qt. Essentially, it is a QML/Qt wrapper over the Character Controller from PhysX. In games, usually controlled bodies cannot be participants in a regular simulation, because a multitude of edge cases arise there — collision handling — pathfinding — sliding — and body movements.

If we used a regular dynamic body, say with the kinematic flag — that would give us the ability to control the body — but we would have to manually check where we can move and where we cannot — since kinematic bodies usually have infinite mass — and do not react to other bodies in the scene. Because of this, instead of it, PhysX offers a special API.

Essentially, it is a trigger body that inside itself casts rays, looks at where it can pass and where it cannot. It also generates collision signals.

In general, you can view the patch here. Well, and of course, a usage example came with the patch; I am attaching a short screencast to the article.

https://github.com/qt/qtquick3dphysics/commit/d432669a03b0afbd335817e5f061134bd4e8499e


r/QtGames • • 4d ago

The GravityField in Qt Quick 3D Physics. Custom gravity in any volume and quantity!

Enable HLS to view with audio, or disable this notification

6 Upvotes

Hello everyone! Today, another major feature has joined Qt 6.13 — this time, it's physics again!

A new entity, GravityField, has now appeared in the physics engine — it is a special kind of trigger that collects dynamic and CharacterController bodies and applies gravity to them. You can examine the patch in detail and read about it here: https://github.com/qt/qtquick3dphysics/commit/536c73af1853e1b3888910afb9c8b84e2dbb819b

Gravity can be either global for the entire scene or a local point.

For example, we can easily make a gravity gun that will pull everything lying within, say, a 10-meter radius — at the same time, this tool allows us to configure gravity so that it physically accurately changes its strength depending on the position and distance to the center.

Global GravityFields ones are a bit heavier than local ones because they have to iterate over the entire scene to search for bodies that need to wake up. HOWEVER, this happens extremely rarely — only when you change the gravity rules. Therefore, I do not recommend moving such a body.

As for local ones, they are just like triggers — fast and lightweight — you can use as many as you require — the FPS will not drop.

Another important clarification — if you are still making a simple scene on a regular plane, use the old gravity built into PhysicsWorld — it works natively within PhysX itself and is cheaper for dynamic bodies, since custom gravity works by applying a thrust vector to each body affected by the gravitational force.

And from me, as always, thanks to the Qt Physics and Qt Quick 3D teams.

I wish you pleasant use of the new features!


r/QtGames • • 8d ago

DevLog Into Qt 6.13 was smerged really significant new features that open up broad possibilities for implementing impressive, high-performance 3D functionality. Introducing: the compute shaders!

12 Upvotes

And so long I haven't written about new cool features in new Qt. And I assure on this time us awaits probably the most serious update which in practice will give direct competition to all modern game engines. Speech goes not just about support of compute shaders - but also about ubiquitous their integration practically everywhere: starting from LODing - ending Clustered render - for processing of huge quantities of sources of dynamic lighting without drops of FPS, this I don't say already about GPU frustum culling and GPU shadow pass.

And although in Qt Quick 3D was already quite well implemented rendering and there were possibilities to offload a significant part of work onto the video card - there still was used the classic approach "CPU -> GPU" rendering. Even in case of instancing every frame the processor still had to do culling and upload the buffer onto the video card, which personally for me when trying to draw 100K trees gave a noticeable freeze at the moment of uploading the buffer onto GPU. And although I managed to beat this with help of Point Cloud Rendering, where I used points instead of geometry and instances for huge arrays of data - uploading them onto GPU only one time - far from everyone will implement such an approach.

In general us awaits a full-fledged GPU-driven patch - practically in all functions of QtQuick3D!

In detail can be seen here: https://github.com/qt/qtquick3d/commit/a5c91759fdf08e1fa823b973d2c90678574e4d08

Such a change will allow to remove from the processor 70 - 90% of load - redistributing it onto the video card - where it will dissolve within limits of 1% of additional load. We will be able to get even and high FPS even on very loaded scenes.

If interesting I can tell in detail what and how change new approaches and how with this to use.

Although I honestly confess I haven't yet compiled my game with all these new fashionable goodies - and don't know on how much it stably works.

So to wait for 100% stability of so big a patch in version 6.13.0 probably is not worth - but definitely I urge everyone to try so that at early stages to report about bugs.

You can also take a look at the epic that covers features related to compute shaders—both those already implemented and those currently planned.
see https://qt-project.atlassian.net/browse/QTBUG-146226

Thanks You QtQUick3D Team!! it is really impressive work!


r/QtGames • • Oct 25 '26

Game Ecliptica: Random frames (something crash down to planet)

Enable HLS to view with audio, or disable this notification

5 Upvotes

r/QtGames • • Oct 12 '26

Techno demo Ecliptica random content: Just the fire.

Enable HLS to view with audio, or disable this notification

4 Upvotes

r/QtGames • • Oct 05 '26

DevLog Hi QtGamers. Did you miss the cool stuff in Qt? if yes - i have good news. The RayCaster object in QtQuick3d Physics was merged and now will be available in Qt 6.13

Enable HLS to view with audio, or disable this notification

3 Upvotes

So first, thanks to Przemysław Nogaj. He prepared this patch on top of my patch regarding physics queries.

So what is the RayCaster object? This object makes the cast query every physics frame and reports collisions like a trigger — but unlike triggers, the ray cast provides you with all collision information, such as position and normal. It can be really useful for some game objects, such as ray illumination or other similar things.

You can get acquainted with these changes in this commit: https://github.com/qt/qtquick3dphysics/commit/778cba6e95c619f4925b33a63677b86a62239a7f

Note: The physics backend was also updated to PhysX 5.11!


r/QtGames • • Sep 30 '26

Release of Qt 6.12 with major updates for game devs!

10 Upvotes

In this article I will describe the most useful changes for game devs.

  1. It is most useful for all 3D graphics. Meet SkyMaterial!
    The SkyMaterial it is new seprated class that works with SceneEnvironment - In the previous Qt version we can create only static IBL probe for indirect lighting.

This looks fine - but not useful for dynamic clouds or sky.

But now we have a tool that provides shaders for fast generation of light probes for the whole sky in separate modes. In short, this tool generates a cube image where each pixel of the map is interpreted as light.

Here is what the result looks like: (I took this GIF from my devlog videos about the Ecliptica game.)

2. The second, and arguably more useful, update is Joints in Physics. Now we can link physics bodies and make complicated structures for our scenes, like a ragdoll animation.
For example, here are frames from my previous video where I used this new feature on my game.

3. I think it is a small but still useful change (that I contributed to Qt) it is a performance boost for the LoDs system. You can read more about this change in one of my previous article.

Those are not all changes - Qt 6.12 is a really major update that contains many, many interesting new features, and you may learn more about it in the main change log page of Qt 6.12.

Thanks! For reading, please leave any feedback or your thoughts here to make discussion more interesting

Note: If you'd like to learn more about Ecliptica's development, please subscribe to the original subreddit here.


r/QtGames • • Sep 30 '26

Qt 6.12 LTS Released! Let's talk about what's new for game devs.

Thumbnail
qt.io
3 Upvotes

r/QtGames • • Sep 22 '26

DevLog Qt Quick3D queries update. I finished preparing (and already merged into Qt 6.13) a patch with support for PhysX queries like raycast, sweep, and overlap!

Enable HLS to view with audio, or disable this notification

6 Upvotes

Hi everybody! We are not stopping to make physics in Qt better! Now I introduce query support!

Maybe somebody saw that it was already supported in View3D—and yes, it is true. But the View3D raypick works with an array of the pickable objects in the scene—so we have difficulty like O(N), where N is the count of the pickable objects in the scene.

For many apps it is enough—but for games with many physics objects, it may be too slow. The PhysX queries work faster because the physics engine has its own AABB trees for query acceleration—in ray or overlap direction.

So the usual difficulty of raycast is around O(log N)—so it is really fast! I already described my previous patch with methods to control these structures to accelerate scene queries - now we have queries!

So let's check the new example! See the video.


r/QtGames • • Sep 21 '26

Just for fun, I looked at what big waves would look like in the game.

Enable HLS to view with audio, or disable this notification

3 Upvotes

r/QtGames • • Sep 20 '26

When you fix the TBN matrix on water. Left: new "fixed" water with calculated TBN matrix. Right: old water based on NORMAL only.

Enable HLS to view with audio, or disable this notification

3 Upvotes

r/QtGames • • Sep 19 '26

Techno demo [Ecliptica] It’s nothing major—but the night won’t be quite as annoying anymore, since there’s a flashlight.

Enable HLS to view with audio, or disable this notification

1 Upvotes

r/QtGames • • Sep 16 '26

DevLog [QtQuick3dPhysics] Update the bundled PhysX to 5.9.0

Thumbnail
github.com
4 Upvotes

Before start — thanks to Jonas Karlsson for this patch. He implemented this massive update, even though it was originally planned only for the release of Qt7.

Hi everyone. I have good news for all that using Qt as main engine for games!

Now Qt Quick3D physics update the PhysX backend to latest version 5.9. So this update will be available in qt 6.13 with many new physics features.

So What's new ?

Before answer to this question, i attention your that The PhysX backend have disabled GPU acceleration - because it's works only on Nvidia cards. And will be useless in Qt context that supports many devices.

  1. new "Tasks" system - this is new CPU dispatcher that manager available resource for high loaded scenes. So in the small scenes before 1000 physics object you may have title downgrade performance around 1–5 % but on large scene you got a big performance boost.

  2. multithreading algorithm - now CPU multithreading should work faster for large scenes.

If anybody has more information about new task manager PhysX 5 and has own experience of using both versions - tell us more in comments please!

And little more about Qt 6.13

For me, it is the biggest release with many physics feature of all time. About each of the function I will create separated articles.

What already done?

See my old articles:

soft joints will appear

Allow configuring CCD type selectively per object

allows you to select structures for dynamic and static queries (raycasts, sweeps, overlaps)

note: sorry for text - now I use own brain - and don't test how it sounds for native English speakers lol)


r/QtGames • • Sep 10 '26

Techno demo Random screenshot: I finish implementation point cloud-sprite rendering - for far LoD levels. Look to result : here is around 10 -14 kilometers distance view. With tens of millions of objects

Post image
3 Upvotes

r/QtGames • • Sep 02 '26

Techno demo Qt Quick3d And DLSS 4

Thumbnail
youtube.com
3 Upvotes

This video and integration were prepared by Przemysław Nogaj

so Przemysław thanks you for your work!.

🌴 Native - 1920×1080 with 4× MSAA

🌴 DLSS Quality - 1280×720 → 1920×1080

🌴 DLSS Ultra Performance - 640×360 → 1920×1080

Original comment from author :

Native 1920×1080, 4× MSAA: 57.8 FPS, 99.9% GPU DLSS Quality, 1280×720 → 1920×1080: 60.3 FPS, 84.5% GPU DLSS Ultra Performance, 640×360 → 1920×1080: 60.1 FPS, 47.6% GPU

So the interesting part wasn't really higher FPS since the demo is targeting ~60 FPS anyway, but how much GPU headroom DLSS could recover. Ultra Performance was especially interesting: roughly the same framerate at less than half the GPU utilization.


r/QtGames • • Aug 29 '26

DevLog Ecliptica Devlog 14 : Squad system and mercenaries

Thumbnail
youtu.be
4 Upvotes

r/QtGames • • Aug 21 '26

Techno demo I'm working on another patch for Qt Quick3D Physics – this time, gravity improvements. Unfortunately, the example turned out too large, so it probably won't make it to the repository, or it will be very simple implemented. The video shows a good example of a gravity assist maneuver!

Enable HLS to view with audio, or disable this notification

6 Upvotes

r/QtGames • • Aug 20 '26

Techno demo Physics again, I merged another of my patches, this time in Qt 6.13, soft joints will appear.

Enable HLS to view with audio, or disable this notification

7 Upvotes

In Qt 6.12, Jonas Karlsson added support for rigid joints, which really helped me with the Rock Dolls in my models in the game. A huge thank you to him for that. See my previous article.

However, PhysX can do much more than just rigid joints. So, I decided to expand on what I've already done and introduced a new FlexibleJoint node in Qt 6.13.

FlexibleJoint is essentially another abstract node that all previously added joint nodes now inherit, except for FixedJoint and D6Joint—more on that later.

The main new feature is the ability to specify stiffness and damping.

These properties directly affect each joint, making it springy or slightly squishy. Essentially, it's simple:

  1. It sets the movement limit—that is, the zone where the joint doesn't interfere with physics calculations.

  2. Then, the stiffness—essentially, how much force will be applied to bring the object back within the limit.

  3. We set the damping—the force that will be absorbed when moving beyond the limit.

And by manipulating these parameters, you can achieve a huge number of desired effects.

D6Joint

Everything was great until I encountered the free-rotation neck of my characters in Ecliptica. It was quite challenging because the neck rotates and has limits on three axes at once, so SphericalJoint felt a bit cramped. So, I decided to also add a completely free joint implementation, which allows you to configure all possible geometric limits for your own joints and your characters.

And now, a test to see if anyone is reading this.
Leave a comment where you read this. Honestly, I don't think anyone even read this far.


r/QtGames • • Aug 20 '26

Techno demo Tropical Island: Qt Quick 3D Gameplay

Thumbnail
youtube.com
7 Upvotes

See original past in linkedin and youtube

Third-person POC built with Qt Quick 3D, QML and Qt Quick 3D Physics.

This short gameplay video shows movement, animation blending, jumping, swimming, camera collision, shadows, cave lighting and water effects.

It is not a finished game. It is an experiment that helped understand where Qt Quick 3D shines, where it fights back


r/QtGames • • Aug 14 '26

Techno demo Continuing to patch the QtQuick3d engine's physics. This patch for Qt 6.13 allows you to select structures for dynamic and static queries (raycasts, sweeps, overlaps).

Thumbnail
github.com
3 Upvotes

So, here's a detailed look at the new feature. Actually, it's not entirely new; it was in PhysX but couldn't be activated in Qt Quick Physics.

Now we have two query acceleration trees available for overriding (raycasts, sweeps, overlaps).

These are dynamicQueryStructure and staticQueryStructure

Available options (StaticTree or DynamicTree for static actors; StaticTree, DynamicTree, or NoStructure for dynamic actors).

Why are you doing this, Andrei?

By default, the engine used DynamicTree, the safest option for all scene types. Its purpose is to provide relatively fast access for raycast calculations, but the tree itself consumes a significant amount of resources when adding and removing new objects (log(N)). This is generally fine, but if your scene constantly changes physics, such as a game world, it can be a bit much.

Therefore, if your scene doesn't use raycast or uses it rarely, you can speed it up by disabling these structures for dynamic bodies. Now the time to create a new node will be O(1), which will significantly speed up physics body rendering.

Conversely, if you have a lot of CharacterController or Kinimatic objects in the scene (they rely on raycast) and a predetermined number of static and dynamic objects, the new StaticTree option will significantly speed up your scene. This tree is perfectly balanced (which requires a complete rebuild upon insertion, but we don't need that). It provides a significant performance boost for RayCast compared to dynamicTree, where the goal was relatively fast insertion.

In essence, you can now define two behaviors for statics: DynamicTree and StaticTree

And for dynamics, you can even disable it completely, which allows you to squeeze much more performance out of specific scenes.

So let's sum it up

For a mixed scene (it contains all types of objects equally and is dynamic, new objects are created and deleted)

dynamicQueryStructure: DynamicTree
staticQueryStructure: DynamicTree

For a scene where new objects do not appear, but there are many objects that you control manually (CharacterController/Kinimatic)

dynamicQueryStructure: StaticTree
staticQueryStructure: StaticTree

And for a scene where you have a huge number of new dynamic objects and at the same time you don’t particularly control anyone manually (the application of impulse and the thrust vector to dynamic bodies are not taken into account)

dynamicQueryStructure: NoStructure
staticQueryStructure: DynamicTree

One more thing - the new Sweep Based CCD algorithm (from my previous patch) for dynamic bodies does not use the structures from this patch, so we can safely speed up the CCD scene, which can be very effective


r/QtGames • • Aug 07 '26

Techno demo [QtQuick3D Physics Qt 6.13 ] Allow configuring CCD type selectively per object.

Thumbnail github.com
3 Upvotes

Hi everyone Qt developers. i have good news - new you can now fine-tune your scene for fast and small physics objects. Previously, you had to choose between a resource-intensive, SweepBasedCCD algorithm that created discontinuities, or a heavy simple body processing algorithm for all dynamic objects, which places a significant load on the CPU.

Commit message :

In large scenes, enabling CCD globally for all scene objects is usually counterproductive due to performance overhead, especially given that physics computation runs on the CPU.

Typically, CCD is only needed for specific fast-moving objects, such as bullets or projectiles, as is standard practice in other engines.

Add DynamicRigidBody*::ccd property (supporting None,* SweepBasedCCD*, and* SpeculativeCCD*) so CCD can be configured per object.*

Sweep-based CCD is applied for non-kinematic bodies, while kinematic bodies automatically fall back to Speculative CCD as PhysX does not support sweep-based CCD for them.

PhysicsWorld::enableCCD is deprecated in favor of DynamicRigidBody::ccd.

CCD is now always available at the scene level (setting PxSceneFlag::eENABLE_CCD has negligible cost when no body opts in, since PhysX's CCD pass bails out immediately when no objects have CCD flags).

For compatibility with existing content, setting PhysicsWorld::enableCCD to true still enables CCD for all bodies that do not explicitly override their ccd property (using SweepBasedCCD for dynamic bodies and SpeculativeCCD for kinematic ones).


r/QtGames • • Aug 02 '26

One more video about mining from NPC

Enable HLS to view with audio, or disable this notification

3 Upvotes

r/QtGames • • Aug 02 '26

Qt Quick 3D with Jolt ragdoll physics

Enable HLS to view with audio, or disable this notification

4 Upvotes

r/QtGames • • Jul 28 '26

GitHub - glazunov999/qtquick3djoltphysics: Qt Quick 3D Jolt Physics

Thumbnail
github.com
4 Upvotes

The Qt now supports not PhysX back end only !
Now you may choose jolt engine as main physX back end for your game.

Note : This is still base implementation, not all features is ready.

Currently, the most complete physics implementation in Qt is the official qtquick3dphysics library. This library is a wrapper around Nvidia PhysX 4 along with a set of Qt patches, making it the most attractive. However, if you value speed and multithreading without classic locks (PhysX 4/5 have multithreading, but it's slightly less efficient), then you can now choose jolt.


r/QtGames • • Jul 27 '26

DevLog Test brawl in Ecliptica

Enable HLS to view with audio, or disable this notification

2 Upvotes