Answer the question
In order to leave comments, you need to log in
How to implement the black hole effect using QML?
The task is this. It is necessary to generate a black screen and place white dots (stars) on it. Then you need to implement a moving black hole with a lensing effect. Those. when approaching the hole, the stars should stretch, turning into arcs - the closer to the boundary of the hole, the larger the arc. At the very border, the star turns into a circle. If with a static hole I can still draw everything using C ++ and throw the finished picture into QML, then how to implement the same effect with a moving hole is not entirely clear (I think it will be resource-intensive to redraw each frame). Any ideas?
Answer the question
In order to leave comments, you need to log in
doc.qt.io/qt-5/qml-qtquick-shadereffect.html
www.geeks3d.com/20110428/shader-library-swirl-post...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question