[Interest] Qt3D & Instancing

Paul Lemire paul.lemire at kdab.com
Thu Nov 16 08:39:41 CET 2017


Hi Igor,

Instancing is already supported by Qt3D.

QGeometryRenderer has properties for instanceCount and firstInstance.

https://doc.qt.io/qt-5/qt3drender-qgeometryrenderer.html

When instanceCount is higher than 1, Qt3D will use instanced draw calls.

Also QAttribute has a divisor property you can use to control the rate
at which vertex attributes are read (per vertex, per instance ...).

We don't have higher level elements that make use of instancing yet. We
have ideas about having something like a NodeInstantiator that does
instancing for you under the hood, hopefully for 5.11 or 5.12.


On 11/16/2017 06:30 AM, Igor Mironchik wrote:
> Hello,
>
> What's the plans/state of instanced rendering in Qt 3D?
>
> Thank you.
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-- 
Paul Lemire | paul.lemire at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel: France +33 (0)4 90 84 08 53, http://www.kdab.fr
KDAB - The Qt, C++ and OpenGL Experts


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3991 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20171116/cafc8827/attachment.bin>


More information about the Interest mailing list