The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
on my device eglfs plugin is not be supported ,but linuxfb plugin is be supported.
I want to run a QML app on it , then it fails.
is it possible for me to change the QML app ,and then run it with linuxfb plugin?
@Vinod-Kuntoji Note that I want to cover the entire red background with the BLACK rectangle.
This following code generates output shown in the next snapshot:
color: "#ff0000" // Red color window
color: "#000000" // Black color Rectangle
border.color: "#000000" // Black color Rectangle Border.
The following code which is, in fact, your code generate output shown in the next snapshot:
// No color: means white background.
border.color: "red" // Red color Rectangle Border.
color: "black" // Black color Rectangle
What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
I need to render a Qt3D scene offscreen onto an image. The reason is that I need to make a bunch of previews for different objects which will be displayed on UI. Using an OpenGL window there would be overkill.
For that purpose I've setup an offscreen surface and a frame graph with QTexture2D as a QRenderTargetOutput. Unfortunately I couldn't find any way to convert QTexture2D to QImage so decided to use QRenderCapture for that. However, the captured image is absolutely empty, not even the clear colour inside. Just an empty image with the size of the texture.
Here's the frame graph:
_surfaceSelector = new Qt3DRender::QRenderSurfaceSelector(this);
_targetSelector = new Qt3DRender::QRenderTargetSelector(_surfaceSelector);
_target = new Qt3DRender::QRenderTarget(_targetSelector);
_targetOutput = new Qt3DRender::QRenderTargetOutput(_target);
_viewport = new Qt3DRender::QViewport(_targetSelector);
_cameraSelector = new Qt3DRender::QCameraSelector(_viewport);
_clearBuffers = new Qt3DRender::QClearBuffers(_cameraSelector);
_renderCapture = new Qt3DRender::QRenderCapture(_clearBuffers);
_texture = new Qt3DRender::QTexture2D();
_viewport->setNormalizedRect(QRectF(0.0f, 0.0f, 1.0f, 1.0f));
_surface is QOffscreenSurface targeted to OGL 3.3. After the aspect is created, the scene root is set the same way as in Qt3DWindow. The whole aspect is pretty much like in Qt3DWindow just with the offscreen surface and my own graph.
I'm not sure if I've setup the graph somehow incorrectly or I'm doing all that completely wrong. In the end the captured image isn't even of the white colour as it should be due to the clear colour.
Any help would be appreciated.
@tekojo Hi, I got some help from @Ratzz. Solved. My unconscious expected the 'Topic Tools' menu to be closer the the [Solved / Unsolved] indicator so I was looking under the Topic title instead of really down under the full topic. I use Linux mint 17 with Firefox 43.0.
Have a good day Tekojo.
Disabled Categories are greyed out
This topic will be moved to the category
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.