[Interest] Qt3D - QEntity & enabling/disabling children

Andy asmaloney at gmail.com
Tue Dec 13 15:00:25 CET 2016


I had tried (quite a while ago) to use QLayer without success. Lacking
docs, is there a good example somewhere? (I'm using C++.) The only example
using it seems to be deferred-renderer-cpp but it doesn't help me much.

How do I filter based on specific criteria? For example, one for the
hierarchy ("I belong to this entity group") and then another one for entity
type ("I am a text label"). The goal being to show/hide either the entire
component or just the text labels in it for example. Do I add the entity's
QLayer to multiple QLayerFilters and use them somehow?

Thanks Sean.

---
Andy Maloney  //  https://asmaloney.com
twitter ~ @asmaloney <https://twitter.com/asmaloney>


On Tue, Dec 13, 2016 at 7:23 AM, Sean Harmer <sh at theharmers.co.uk> wrote:

> 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
>>
>> _______________________________________________
> 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/20161213/1a0ff92c/attachment.html>


More information about the Interest mailing list