Details
-
Suggestion
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
5.7
-
None
-
I7beff9e036d5de8b128cf960ba5f11477e5784e1
Description
SceneLoader provides the possibility to load an existing Scene (for example complex object model with materials and transforms of its parts).
I need to include this loaded complex object ("Scene") into some Layer to get ability make complex framegraph with using LayerFilter node.
For do this I need to add layer component to every entity within complex object (at least those ones that have geometry render component).
For do this, looking on assimp-cpp example, I need to wait when SceneLoader status changes to Ready and then walk through all entities loaded and add Layer component to them. And it works, yes.
As I see in qt src - framegraph layerFilter filter whole list of all entities in the scene (without hierarchy information). That is, there is no so easy way to add functionality "render all children entities if their parent has this layer component" in framegraph processing, am I right?
So considering all this my suggestion is to add "addLayers(QVector<QLayers*>)" function to QSceneLoader class (or something like that). Of course if there is a way to pass this argument down to backend scene parsers.
Thank you!