Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-54744

Add mechanizm to set Layer to whole entities in SceneLoader

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 5.7
    • Qt3D
    • 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!

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ervin Kevin Ottens
            lukegluke Oleg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes