[Interest] Qt3D: Why DepthBuffer is required to be cleared to draw a simple triangle?

Midori Yakumo macrobull.acg.0 at gmail.com
Sun Jul 10 16:57:45 CEST 2016


In this QML code:

https://github.com/MidoriYakumo/learnopengl-qt3d/blob/master/qml/hellotriangle.qml
I want to draw a triangle like this C++ code:
  http://learnopengl.com/code_viewer.php?code=getting-started/hellotriangle


I found that I have to clear both color and depth buffer, that's weird:

activeFrameGraph: ClearBuffers { buffers: ClearBuffers.ColorDepthBuffer //
Why not ColorBuffer only??? clearColor: Qt.rgba(0.2, 0.3, 0.3, 1.0)
RenderSurfaceSelector { } }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160710/890cf4f5/attachment.html>


More information about the Interest mailing list