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

Oleg Evseev ev.mipt at gmail.com
Sat Jul 9 15:27:06 CEST 2016


Hi,

I'm trying to understand how can I split entities into groups and render
them in custom order.

That is, for example, first render SkyBox - behind all entities, than a
Ground - plane mesh in front of SkyBox, but behind everything else. Then
render a group of many transparent entities in order of creation. After
that all other entities render "as usual" with ColorDepthBuffer.

For now I'm using one viewport and one camera.

Do I understand right, that I can do such rendering with help of set of
LayerFilters (like in example Deferred Renderer
http://doc.qt.io/qt-5/qt3drender-framegraph.html) with different parameters
of ClearBuffers?

So that framegraph tree is look something like this:

Viewport
RenderSurfaceSelector
LayerFilter1 LayerFilter2 LayerFilter3 ...
CameraSelector1 CameraSelector2 CameraSelector3 ... [1to1 with LayerFilters]
[one scene camera set to all cameraselectors]
ClearBuffers1 ClearBuffers2 ClearBuffers3 ... [1to1 with CameraSelector]

If I'm understand framegraph description
http://doc.qt.io/qt-5/qt3drender-framegraph.html correctly. I can set one
CameraSelector on top of viewport with same result, right?

Thank you for corrections in advance. Thank you!

---
Regards, Oleg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160709/472489b6/attachment.html>


More information about the Interest mailing list