[Interest] Qt3D - QEntity & enabling/disabling children

Sean Harmer sh at theharmers.co.uk
Tue Dec 13 13:23:41 CET 2016


Hi,

Propagation of enabled/disabled is currently handled per aspect as there 
are use cases for both propagating and not doing so.

For the specific use case you have of hiding/showing groups of entities 
you can use the QLayer component along with QLayerFilter node(s) in your 
framegraph.

Cheers,

Sean

On 12/12/2016 18:11, Andy wrote:
> I'm trying to figure out the right QEntity/QNode structure to use for
> showing/hiding/manipulating more complex objects.
>
> I am grouping several "drawable" entities (ones with meshes and
> materials) under a parent entity. When I disable the parent entity,
> however, the children are not disabled. But my "drawables" each have
> children that /are/ disabled whenever they are disabled.
>
> 1) How is it determining whether the children should be hidden?
> 2) How do I group entities for showing/hiding of an entire object then?
> Do I need to implement my own GroupEntity to handle this by iterating
> over all its children?
> 3) Is there a mechanism for this I'm missing?
>
> Thank you!
>
> ---
> Andy Maloney  //  https://asmaloney.com
> twitter ~ @asmaloney <https://twitter.com/asmaloney>
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>



More information about the Interest mailing list