[Interest] Split entities into groups and render them in custom order

Sean Harmer sean.harmer at kdab.com
Tue Jul 12 11:17:36 CEST 2016


Hi,

On 12/07/2016 09:18, Harald Vistnes wrote:
>
> Oleg,
>
> Did you try putting the ClearBuffers as a child of the first 
> LayerFilter? Then the second LayerFilter can be a leaf node.
>
> * Viewport
> ** RenderSurfaceSelector
> *** CameraSelector
> **** LayerFilter [layer = opaque]
> ***** ClearBuffers
> **** LayerFilter [layer = transparent]
>

That should work, or alternatively put a NoDraw as a child of 
CLearBuffers to prevent that branch from drawing anything.

Cheers,

Sean

> Harald
>
> On Jul 12, 2016 09:38, "Oleg Evseev" <ev.mipt at gmail.com 
> <mailto:ev.mipt at gmail.com>> wrote:
>
>
>     2016-07-10 19:09 GMT+03:00 Oleg Evseev <ev.mipt at gmail.com
>     <mailto:ev.mipt at gmail.com>>:
>
>         I tried to make following sequence in "enable-qml" manual test
>         example by cleaning it (attached it):
>
>         * Viewport
>         ** RenderSurfaceSelector
>         *** CameraSelector
>         **** ClearBuffers
>         **** LayerFilter [layer = sceneLayer]
>
>         And it renders whole scene (sphere + floor), that is, ignores
>         LayerFilter:
>
>
>     Experiment with different ordering, still can't understand how it
>     works.
>     May it be a bug with LayerFilter? Should I file in JIRA?
>
>     ---
>     Regards, Oleg
>
>
>
>     _______________________________________________
>     Interest mailing list
>     Interest at qt-project.org <mailto:Interest at qt-project.org>
>     http://lists.qt-project.org/mailman/listinfo/interest
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160712/8bf0133b/attachment.html>


More information about the Interest mailing list