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
> [email protected]
> https://lists.qt-project.org/listinfo/interest

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Interest mailing list
[email protected]
https://lists.qt-project.org/listinfo/interest

Reply via email to