-------- Forwarded Message --------
Subject:        Re: [Interest] [Qt3d] Textures flickering
Date:   Sun, 29 Jul 2018 21:09:23 +0100
From:   Sean Harmer <s...@theharmers.co.uk>
To:     interest@qt-project.org



Hi Oleg,

* Change the near plane and far plane properties of the camera so you get greater depth precision by reducing the range covered

* Use a higher bit depth depth buffer via QSurfaceFormat

* Render your scene in multiple passes using different camera z-range for each part and clearing the depth buffer in between.

Cheers,

Sean


On 29/07/2018 21:04, Oleg Evseev wrote:
Mike, thanks.

Yes you are right. This is z-conflict.
This model is rendered fine, without flickering in another project with disabled fragment depth writes to depth buffer.

How can I increase precision of z-buffer in qt 3d?


2018-07-29 21:28 GMT+03:00 Mike Krus <mike.k...@kdab.com <mailto:mike.k...@kdab.com>>:

    Hi

    hard to say from the short video, but it looks like you may have z
    fighting going on, two coinciding meshes and the lack on precision
    causing this flickering…

    Mike

    > On 29 Jul 2018, at 14:58, Oleg Evseev <ev.m...@gmail.com
    <mailto:ev.m...@gmail.com>> wrote:
    >
    > Hi all,
    >
    > When I load big models with help QSceneLoader in assimp-cpp test
    example (or small models but move camera far away from object)
    textures start flickering:
    > https://youtu.be/5FUOWc412JE
    >
    > How to fix that?
    > Thanks in advance for help.
    >
    > ---
    > With regards, Oleg
    > _______________________________________________
    > Interest mailing list
    > Interest@qt-project.org <mailto:Interest@qt-project.org>
    > http://lists.qt-project.org/mailman/listinfo/interest
    <http://lists.qt-project.org/mailman/listinfo/interest>

    --
    Mike Krus | mike.k...@kdab.com <mailto:mike.k...@kdab.com> |
    Senior Software Engineer
    KDAB (UK) Ltd., a KDAB Group company
    Tel: UK Office +44 1625 809908   Mobile +44 7833 491941
    KDAB - The Qt Experts, C++, OpenGL Experts



_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to