Hi,
thanks for the hint.
Now I got several QTexture2D, but how can I access their data buffer
directly?
I did not see any function giving me access to some data buffer (but maybe I
am just blind).
In my application I do not want to display the images and need the precise
depth data (so the full floating point number).
In the best case I do not even want to have some window, the qt signal loop
or even requiring to be in a thread with a qt object tree (the last two are
probably impossible).
Any tips on accessing the data buffer would be appreciated.
Raphael
-Original Message-
From: Paul Lemire
Sent: Tuesday, 11 June, 2019 16:25
To: Grimm, Raphael (IAR) ; interest@qt-project.org
Subject: Re: [Interest] [Qt3D] Render depth images
Hi Raphael,
What you want is to do your rendering in 2 steps:
- Render your scene into a RenderTarget (with 2 attachments/textures, one
for color, one for depth)
- Render a full screen quad on which you display the depth texture.
We have some manual test in the Qt 3D sources that should show how to do
that:
https://code.qt.io/cgit/qt/qt3d.git/tree/tests/manual/deferred-renderer-qml
I hope that helps,
Paul
On 6/11/19 10:02 AM, Grimm, Raphael (IAR) wrote:
Hi,
I am new to Qt3D and want to render a depth image of a scene.
My problem is: I do not know how I can access the depth buffer.
Could someone give me an example or point me to the correct
functions and classes?
Thanks,
Raphael
___
Interest mailing list
Interest@qt-project.org <mailto:Interest@qt-project.org>
https://lists.qt-project.org/listinfo/interest
smime.p7s
Description: S/MIME cryptographic signature
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest