[Interest] [Qt3D] Render depth images

Paul Lemire paul.lemire at kdab.com
Tue Jun 11 16:24:46 CEST 2019


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 at qt-project.org
> https://lists.qt-project.org/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190611/1d11bfd3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4282 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190611/1d11bfd3/attachment.bin>


More information about the Interest mailing list