Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertex Texture Mapping #72

Open
mariuszmaximus opened this issue Jul 21, 2023 · 3 comments
Open

Vertex Texture Mapping #72

mariuszmaximus opened this issue Jul 21, 2023 · 3 comments

Comments

@mariuszmaximus
Copy link
Contributor

Is possible draw vertex and map texture UV to vertex ?

Like https://people.eecs.berkeley.edu/~ug/slide/pipeline/assignments/as9/texture.gif

@NielsMayer
Copy link
Contributor

NielsMayer commented Jul 21, 2023

What about using Qt Quick Effect Maker (see for example Examples/Qt-6.5.1/quickeffectmaker/wiggly/WigglyEffect )

Here's my use of it in trying to develop a torture-test to show problems with QML Media Player and/or QtMultimedia with the new ffmpeg back-end on Linux. Animations are jittery and jerky until forcibly reverting back to the old gstreamer backend. Causes the exact same problems with qnanopainter unfortunately (not a qnanopainter bug, a Qt bug).

QtQuick effects maker in this case is doing what you're asking for, warping a layered composition of video, the particle system example from Examples/Qt-6.5.1/quick/particles/emitters/trailemitter.qml, and two rotating qml rectangles (which show the jitter effect more clearly).

image

@QUItCoding
Copy link
Owner

Nice demo Niels!

@marius: Like Niels said, you can apply ShaderEffect for QNanoPainter item to move vertices (and do other effects). Shader effect can be done live editing with the Qt Quick Effect Maker. Alternatively if you only need to rotate the item around x/y/z axis, you can use Item Rotation transform https://doc.qt.io/qt-6/qml-qtquick-rotation.html

@mariuszmaximus
Copy link
Contributor Author

mariuszmaximus commented Sep 20, 2023

@NielsMayer, @QUItCoding I would like use qnanopainter in QWidget application like in sample hellowidget hellowindow
I woudl like do scan conversion

fig8-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants