Re: [Interest] Scene Graph - Graph example background noise not appearing when OpenGL backend is used

2024-05-24 Thread Laszlo Agocs via Interest
Hello, It is not expected to happen, no. The example is expected to work identically with all the supported 3D APIs, but the noise texture is indeed sampled differently when running with OpenGL. There is a patch upcoming to remedy this. Best regards, Laszlo Fr

Re: [Interest] Porting Qt5 OpenGL app to Qt6 - QQuickRenderTarget and OpenGL frame buffer object

2024-05-15 Thread Laszlo Agocs via Interest
e, 0); glReadPixels(...); glBindFramebuffer(GL_FRAMEBUFFER, context->defaultFramebufferObject()); glDeleteFramebuffers(1, &fbo); Best regards, Laszlo From: Nuno Santos Sent: Wednesday, May 15, 2024 4:29 PM To: Laszlo Agocs Cc: interestqt-project. org Subject: Re

Re: [Interest] Qt 6.7: How to set the blend equation when doing blend on updateGraphicsPipelineState?

2024-05-10 Thread Laszlo Agocs via Interest
is to follow the same pattern and introduce these in Qt 6.8 for example. (but it will not be possible to support this in patch releases of earlier versions) Best regards, Laszlo From: Nuno Santos Sent: Wednesday, May 8, 2024 5:55 PM To: Laszlo Agocs Cc

Re: [Interest] Qt 6.7: How to set the blend equation when doing blend on updateGraphicsPipelineState?

2024-05-08 Thread Laszlo Agocs via Interest
Hi, As you found, QSGMaterialShader::GraphicsPipelineState allows specifying the blend factors, and from Qt 6.5 on it also supports specifying separate RGB and alpha factors. However, the blend equation is always ADD. There is no way to change that currently. Best regards, Laszlo ___

Re: [Interest] Is it possible to compile a shader in runtime using qsb?

2024-05-08 Thread Laszlo Agocs via Interest
Hi, >From Qt 6.6 on you can pull in the Qt Shader Tools module into the project and >try using https://doc.qt.io/qt-6/qshaderbaker.html If this is actually suitable for your use case, cannot say without more details, because doing the heavyweight compilation and transpilation at runtime is one

Re: [Interest] Porting Qt5 OpenGL app to Qt6 - QQuickRenderTarget and OpenGL frame buffer object

2024-05-08 Thread Laszlo Agocs via Interest
Hi, Passing 0 as a renderbuffer object name is not going to work. Try using https://doc.qt.io/qt-6/qquickrendertarget.html#fromOpenGLTexture with the texture that is used as the color attachment of your OpenGL framebuffer object. (actually that FBO is not useful in Qt 6 as one will be created i

Re: [Interest] Are there limits to the number of vertices that can be allocated on a QSGGeometry?

2021-10-21 Thread Laszlo Agocs
Hi Nuno, Try setting the index type to UnsignedInt in https://doc.qt.io/qt-5/qsggeometry.html#QSGGeometry and providing the index values as uint32s instead of uint16. (unless you are targeting something that does not support uint indices, although that's probably unlikely today) Alternatively,

Re: [Interest] Skybox Qt Quick3D bad performance in Android

2021-08-02 Thread Laszlo Agocs
Hi, https://doc.qt.io/qt-6/qtquick3d-requirements.html#opengl-specifics (calling and honoring QQuick3D::idealSurfaceFormat()) is probably required in this case. (otherwise, not sure why it ends up using GLSL ES 100 shaders) Yet better, in Qt 6.1 and newer the whole pre-filtering process can be

Re: [Interest] Drawing a dashed line with Qt Quick 3D

2021-05-28 Thread Laszlo Agocs
Hi, The custom geometry lacks UV coordinates in your example application, and so it samples with texture coordinates (0, 0) for any fragment, hence getting a line with color0 instead of the expected color0-color1-color0-... Add two floats per vertex and register an attribute for TexCoord0:

Re: [Interest] Using QSGMaterial & QSGMaterialShader with multiple shaders

2021-02-17 Thread Laszlo Agocs
Hi Nuno, Check your implementation of type(). It should return something unique for all the different 'source' values (i.e. for every different vertex+fragment shader combinations). Right now, with the same static type object is returns, VSMaterial::createShader() is only ever called once, so a

Re: [Interest] The state of running Qt Quick application without screen

2020-04-10 Thread Laszlo Agocs
Hi Tomasz, I assume this is about eglfs with the eglfs_kms (meaning drm+gbm) backend. (because multi-screen is pretty limited / hopeless with the other, vendor-specific, legacy fbdev-style backends) Somewhat related, but likely won't help your case: since 5.11 there is support for running head

Re: [Interest] Qt examples and primary screen

2018-12-14 Thread Laszlo Agocs
Hello, Like you found out, category 2 are all QWidget apps. The advanced stuff in eglfs (like multiscreen, cloning, and such) may not be fully supported for the QWidget stack as the primary target on embedded is Qt Quick. You need to poke around in qtbase/src/platformsupport/platformcompositor

Re: [Interest] Qt strategy WRT OpenGL support on OSX moving forward

2018-12-13 Thread Laszlo Agocs
Hi Lachlan, Yes, there are some efforts on-going around this. The existing OpenGL enablers are not going anywhere anytime soon, but going forward the strategy for Qt and its core 2D/3D offering is going to be slightly different. Instead of depending on OpenGL directly, a wider variety of graph

Re: [Interest] Compiling 5.11.2 on a Pi 3B

2018-11-08 Thread Laszlo Agocs
Enable the experimental VC4 stuff via raspi-config first. The stable option continues to be the traditional Broadcom stack (and no X11). Though perhaps VC4 works better these days than it used to, not sure. Best regards, Laszlo From: Interest on behalf of Ja

Re: [Interest] issues with Qt 5.9.3 with eglfs QPA_Platform on DRM/KMS kernel on Arm32/Mali HW

2018-03-19 Thread Laszlo Agocs
display. can someone point me toward better debugging? is a GDB step by step approach the best one? the Qt stack is that huge.. On 03/09/2018 02:42 PM, Laszlo Agocs wrote: Hi, eglfs_mali is for Mali userspace drivers (https://developer.arm.com/products/software/mali-drivers/user-space

Re: [Interest] issues with Qt 5.9.3 with eglfs QPA_Platform on DRM/KMS kernel on Arm32/Mali HW

2018-03-09 Thread Laszlo Agocs
Hi, eglfs_mali is for Mali userspace drivers (https://developer.arm.com/products/software/mali-drivers/user-space) marked as fbdev. This is from the time when there were only two options, fbdev and x11. When having the wayland variants in place, use eglfs_kms instead. When in doubt, try runnin

Re: [Interest] QBackingStore::endPaint dumps lots of warnings in software mode

2018-02-19 Thread Laszlo Agocs
There is one already: https://bugreports.qt.io/browse/QTBUG-66452 Best regards, Laszlo -Original Message- From: Interest [mailto:interest-bounces+laszlo.agocs=qt...@qt-project.org] On Behalf Of Giuseppe D'Angelo Sent: mandag 19. februar 2018 11.37 To: Manner Róbert Cc: interest@qt-proje

Re: [Interest] Interest Digest Wiki instructions for PI cross compile do not work for PostgreSQL support

2017-10-19 Thread Laszlo Agocs
Perhaps because it could be running with a pure software OpenGL implementation (Mesa llvmpipe) which Raspbian and friends tend to use to provide OpenGL on X11. (at least until VC4 becomes the default; in the meantime acceleration is limited to when running directly on Dispmanx, hence our general

Re: [Interest] QApplication::ApplicationStateChanged Signal Not Emitted When In EGLFS

2017-10-19 Thread Laszlo Agocs
Hi, Just like on other platforms where the application state concept have no meaning whatsoever, on eglfs the change to ApplicationActive is supposed be faked when the first window is becoming active. It seems this is not happening for some reason. If you can, please create a bug report in Jira

Re: [Interest] QOpenGLWidget grabbing of offscreen content in Qt 5.10

2017-08-24 Thread Laszlo Agocs
Hello, That's just yet another way of producing GL content in a texture, and then optionally reading it back into a QImage. As shown in https://bugreports.qt.io/browse/QTBUG-61280 and https://bugreports.qt.io/browse/QTBUG-47185 some users prefer to use their existing QOpenGLWidget code path to

Re: [Interest] Qt3D Rendering offscreen

2017-08-15 Thread Laszlo Agocs
The formats look a bit strange. Try rather Texture.RGBA8_UNorm and Texture.DepthFormat (or maybe Texture.D24) for color and depth, respectively. The node hierarchy looks somewhat incorrect as well. (where’s the Viewport/Camera/Clear for the custom render target? What is the FilterKey for? (are

Re: [Interest] QOpenGLWindow or QOpenGLWidget if need to render to framebuffer?

2017-08-03 Thread Laszlo Agocs
ons to the QOpenGLPaintDevice constructor. Best regards, Laszlo From: Fan Kevin Sent: Thursday, August 3, 2017 9:45:51 AM To: Laszlo Agocs Cc: interest@qt-project.org Subject: Re: [Interest] QOpenGLWindow or QOpenGLWidget if need to render to framebuffer? Hi, Thank you ver

Re: [Interest] QOpenGLWindow or QOpenGLWidget if need to render to framebuffer?

2017-08-01 Thread Laszlo Agocs
Hi, It is always possible to render into an offscreen render target. You do not even need any window for that. The typical pattern is: QOpenGLContext ctx; QSurfaceFormat fmt; fmt.setDepthBufferSize(24); … ctx.setFormat(fmt); if (!ctx.create()) panic(); QOffscreenSurface s; s.setFormat(ctx.form

Re: [Interest] Qt3D on Android with C++

2017-06-14 Thread Laszlo Agocs
Hi, createWindowContainer() has some minor issues on Android in Qt 5.9 and earlier, which unfortunately lead to not showing anything in the "embedded" window. The missing things have been added in the dev branch, so it should work in 5.10 (although I have only tested QOpenGLWindow/QVulkanWindo

Re: [Interest] eglfs and libglvnd

2017-06-13 Thread Laszlo Agocs
Hi, It is a bug in libglvnd. As a workaround try setting EGL_PLATFORM=0x31D7 Best regards, Laszlo From: Interest on behalf of Johannes Pointner Sent: Tuesday, June 13, 2017 9:25:05 PM To: interest@qt-project.org Subject: [Interest] eglfs and libglvnd Hi

Re: [Interest] Building Qt 5.8 with 2D Renderer

2017-05-19 Thread Laszlo Agocs
Hi, Starting with 5.8 there is no need to build any additional modules, the software backend is built in to Qt Quick (qtdeclarative repo). See http://doc.qt.io/qt-5/qtquick-visualcanvas-adaptations.html for how to switch between backends, although in the i.MX7 case it is likely that the softwar

Re: [Interest] QOpenGLWidget inside QDockWidget

2017-03-28 Thread Laszlo Agocs
Hi, Because it tears down and then reinitializes graphics resources when changing the associated top-level window. This does not explain the flicker, though. As a workaround try doing QCoreApplication::setAttribute(Qt:AA_ShareOpenGLContexts) before constructing the QApplication. See the se

Re: [Interest] Using QOpenGLFramebufferObject with QGraphicsView

2017-03-06 Thread Laszlo Agocs
Please report a bug, at first glance it looks like an oversight. Thanks, Laszlo Get Outlook for iOS From: Interest on behalf of ole-qt-2...@mail.plastictree.net Sent: Monday, March 6, 2017 11:18:24 AM To: interest@qt-project.org Subject

Re: [Interest] Qt 5.8 Software Backend Bug on Windows? - Window fails to copmpletly update after closing it and opening it again

2017-02-21 Thread Laszlo Agocs
Certainly. And please include a minimal example to reproduce the problem. Cheers, Laszlo From: Interest on behalf of Nuno Santos Sent: Monday, February 20, 2017 1:16:02 PM To: interest@qt-project.org Subject: [Interest] Qt 5.8 Software Backend Bug on Windows