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

Add an utility that calculates the screen-space position of an entity

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Qt3D
    • None

    Description

      Sometimes it would be nice to know the position in screen space of a given entity. (For simplicity, let's say, an entity's origin in model space).

      At the moment this is complicated if not impossible: one has to manually track the entire entity tree of entities and combine their transformations. Animations complicate things even further, requiring communication to the frontend of their changes.

      This could be solved with a convenience element that does all the magic for the user and just has a readonly property containing the desidered result. Something like

      ScreenSpaceMapper {
        entity: someEntity
        camera: someCamera // or camera selector? well...
        viewport: someViewport // ditto
        
        onScreenSpacePositionChanged: console.log("new pos is", screenSpacePosition)
      }
      

      Such position could be then used to put QQ2 items overlays and so on.

      Attachments

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

        Activity

          People

            seanharmer Sean Harmer
            peppe Giuseppe D'Angelo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes